summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-08-23 22:50:14 +0100
committerColin Watson <cjwatson@debian.org>2010-08-23 22:50:14 +0100
commit43094ebf14c9b16f1ea398bc5b65a7335e947288 (patch)
tree10f5da5fe4f61992d238da7a71692157a609c819 /configure
parent4b8ebe7e3647d3078fd4d025f4325b8cc1ac20d6 (diff)
parentff0095389ba9a9e4599e6051c8d5bae6777c4d64 (diff)
Import 5.6p1 tarball
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30983
1 files changed, 30983 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..ef3bb0f0f
--- /dev/null
+++ b/configure
@@ -0,0 +1,30983 @@
1#! /bin/sh
2# From configure.ac Revision: 1.451 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
230 /*)
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 7<&0 </dev/null 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597# include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680CAT
681KILL
682PERL
683SED
684ENT
685TEST_MINUS_S_SH
686SH
687TEST_SHELL
688PATH_GROUPADD_PROG
689PATH_USERADD_PROG
690MAKE_PACKAGE_SUPPORTED
691STARTUP_SCRIPT_SHELL
692LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG
694LD
695SSHDLIBS
696PKGCONFIG
697LIBEDIT
698INSTALL_SSH_RAND_HELPER
699SSH_PRIVSEP_USER
700PROG_LS
701PROG_NETSTAT
702PROG_ARP
703PROG_IFCONFIG
704PROG_JSTAT
705PROG_PS
706PROG_SAR
707PROG_W
708PROG_WHO
709PROG_LAST
710PROG_LASTLOG
711PROG_DF
712PROG_VMSTAT
713PROG_UPTIME
714PROG_IPCS
715PROG_TAIL
716INSTALL_SSH_PRNG_CMDS
717KRB5CONF
718PRIVSEP_PATH
719xauth_path
720STRIP_OPT
721XAUTH_PATH
722NROFF
723MANTYPE
724mansubdir
725user_path
726piddir
727TEST_SSH_IPV6
728LIBOBJS
729LTLIBOBJS'
730ac_subst_files=''
731 ac_precious_vars='build_alias
732host_alias
733target_alias
734CC
735CFLAGS
736LDFLAGS
737LIBS
738CPPFLAGS
739CPP'
740
741
742# Initialize some variables set by options.
743ac_init_help=
744ac_init_version=false
745# The variables have the same names as the options, with
746# dashes changed to underlines.
747cache_file=/dev/null
748exec_prefix=NONE
749no_create=
750no_recursion=
751prefix=NONE
752program_prefix=NONE
753program_suffix=NONE
754program_transform_name=s,x,x,
755silent=
756site=
757srcdir=
758verbose=
759x_includes=NONE
760x_libraries=NONE
761
762# Installation directory options.
763# These are left unexpanded so users can "make install exec_prefix=/foo"
764# and all the variables that are supposed to be based on exec_prefix
765# by default will actually change.
766# Use braces instead of parens because sh, perl, etc. also accept them.
767# (The list follows the same order as the GNU Coding Standards.)
768bindir='${exec_prefix}/bin'
769sbindir='${exec_prefix}/sbin'
770libexecdir='${exec_prefix}/libexec'
771datarootdir='${prefix}/share'
772datadir='${datarootdir}'
773sysconfdir='${prefix}/etc'
774sharedstatedir='${prefix}/com'
775localstatedir='${prefix}/var'
776includedir='${prefix}/include'
777oldincludedir='/usr/include'
778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779infodir='${datarootdir}/info'
780htmldir='${docdir}'
781dvidir='${docdir}'
782pdfdir='${docdir}'
783psdir='${docdir}'
784libdir='${exec_prefix}/lib'
785localedir='${datarootdir}/locale'
786mandir='${datarootdir}/man'
787
788ac_prev=
789ac_dashdash=
790for ac_option
791do
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
797 fi
798
799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
814
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
829
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
834
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
842 -disable-* | --disable-*)
843 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
846 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
847 { (exit 1); exit 1; }; }
848 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
849 eval enable_$ac_feature=no ;;
850
851 -docdir | --docdir | --docdi | --doc | --do)
852 ac_prev=docdir ;;
853 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 docdir=$ac_optarg ;;
855
856 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 ac_prev=dvidir ;;
858 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 dvidir=$ac_optarg ;;
860
861 -enable-* | --enable-*)
862 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
865 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
866 { (exit 1); exit 1; }; }
867 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
868 eval enable_$ac_feature=\$ac_optarg ;;
869
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
878
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
882
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
889
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
894
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
900
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
907
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
912
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
917
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
924
925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
929
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir=$ac_optarg ;;
936
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
941
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
945
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
949
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
953
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
962
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
967
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
974
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
981
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
998
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1003
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1008
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
1059 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid package name: $ac_package" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1065 eval with_$ac_package=\$ac_optarg ;;
1066
1067 -without-* | --without-*)
1068 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=no ;;
1075
1076 --x)
1077 # Obsolete; use --with-x.
1078 with_x=yes ;;
1079
1080 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081 | --x-incl | --x-inc | --x-in | --x-i)
1082 ac_prev=x_includes ;;
1083 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085 x_includes=$ac_optarg ;;
1086
1087 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1088 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089 ac_prev=x_libraries ;;
1090 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092 x_libraries=$ac_optarg ;;
1093
1094 -*) { echo "$as_me: error: unrecognized option: $ac_option
1095Try \`$0 --help' for more information." >&2
1096 { (exit 1); exit 1; }; }
1097 ;;
1098
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1104 { (exit 1); exit 1; }; }
1105 eval $ac_envvar=\$ac_optarg
1106 export $ac_envvar ;;
1107
1108 *)
1109 # FIXME: should be removed in autoconf 3.0.
1110 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1114 ;;
1115
1116 esac
1117done
1118
1119if test -n "$ac_prev"; then
1120 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1121 { echo "$as_me: error: missing argument to $ac_option" >&2
1122 { (exit 1); exit 1; }; }
1123fi
1124
1125# Be sure to have absolute directory names.
1126for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1127 datadir sysconfdir sharedstatedir localstatedir includedir \
1128 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1129 libdir localedir mandir
1130do
1131 eval ac_val=\$$ac_var
1132 case $ac_val in
1133 [\\/$]* | ?:[\\/]* ) continue;;
1134 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1135 esac
1136 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1137 { (exit 1); exit 1; }; }
1138done
1139
1140# There might be people who depend on the old broken behavior: `$host'
1141# used to hold the argument of --host etc.
1142# FIXME: To remove some day.
1143build=$build_alias
1144host=$host_alias
1145target=$target_alias
1146
1147# FIXME: To remove some day.
1148if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
1151 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1152 If a cross compiler is detected then cross compile mode will be used." >&2
1153 elif test "x$build_alias" != "x$host_alias"; then
1154 cross_compiling=yes
1155 fi
1156fi
1157
1158ac_tool_prefix=
1159test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160
1161test "$silent" = yes && exec 6>/dev/null
1162
1163
1164ac_pwd=`pwd` && test -n "$ac_pwd" &&
1165ac_ls_di=`ls -di .` &&
1166ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167 { echo "$as_me: error: Working directory cannot be determined" >&2
1168 { (exit 1); exit 1; }; }
1169test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1170 { echo "$as_me: error: pwd does not report name of working directory" >&2
1171 { (exit 1); exit 1; }; }
1172
1173
1174# Find the source files, if location was not specified.
1175if test -z "$srcdir"; then
1176 ac_srcdir_defaulted=yes
1177 # Try the directory containing this script, then the parent directory.
1178 ac_confdir=`$as_dirname -- "$0" ||
1179$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180 X"$0" : 'X\(//\)[^/]' \| \
1181 X"$0" : 'X\(//\)$' \| \
1182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1183echo X"$0" |
1184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)[^/].*/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\/\)$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\).*/{
1197 s//\1/
1198 q
1199 }
1200 s/.*/./; q'`
1201 srcdir=$ac_confdir
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 srcdir=..
1204 fi
1205else
1206 ac_srcdir_defaulted=no
1207fi
1208if test ! -r "$srcdir/$ac_unique_file"; then
1209 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1210 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1211 { (exit 1); exit 1; }; }
1212fi
1213ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1214ac_abs_confdir=`(
1215 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1216 { (exit 1); exit 1; }; }
1217 pwd)`
1218# When building in place, set srcdir=.
1219if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221fi
1222# Remove unnecessary trailing slashes from srcdir.
1223# Double slashes in file names in object file debugging info
1224# mess up M-x gdb in Emacs.
1225case $srcdir in
1226*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227esac
1228for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233done
1234
1235#
1236# Report the --help message.
1237#
1238if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1243
1244Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249Defaults for the options are specified in brackets.
1250
1251Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268By default, \`make install' will install all the files in
1269\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271for instance \`--prefix=\$HOME'.
1272
1273For better control, use the options below.
1274
1275Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295_ACEOF
1296
1297 cat <<\_ACEOF
1298
1299System types:
1300 --build=BUILD configure for building on BUILD [guessed]
1301 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1302_ACEOF
1303fi
1304
1305if test -n "$ac_init_help"; then
1306 case $ac_init_help in
1307 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1308 esac
1309 cat <<\_ACEOF
1310
1311Optional Features:
1312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1314 --disable-largefile omit support for large files
1315 --disable-strip Disable calling strip(1) on install
1316 --disable-etc-default-login Disable using PATH from /etc/default/login no
1317 --disable-lastlog disable use of lastlog even if detected no
1318 --disable-utmp disable use of utmp even if detected no
1319 --disable-utmpx disable use of utmpx even if detected no
1320 --disable-wtmp disable use of wtmp even if detected no
1321 --disable-wtmpx disable use of wtmpx even if detected no
1322 --disable-libutil disable use of libutil (login() etc.) no
1323 --disable-pututline disable use of pututline() etc. (uwtmp) no
1324 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1325
1326Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-stackprotect Don't use compiler's stack protection
1330 --without-rpath Disable auto-added -R linker paths
1331 --with-cflags Specify additional flags to pass to compiler
1332 --with-cppflags Specify additional flags to pass to preprocessor
1333 --with-ldflags Specify additional flags to pass to linker
1334 --with-libs Specify additional libraries to link with
1335 --with-Werror Build main code with -Werror
1336 --with-solaris-contracts Enable Solaris process contracts (experimental)
1337 --with-osfsia Enable Digital Unix SIA
1338 --with-zlib=PATH Use zlib in PATH
1339 --without-zlib-version-check Disable zlib version check
1340 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1341 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1342 --with-libedit[=PATH] Enable libedit support for sftp
1343 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1344 --with-ssl-dir=PATH Specify path to OpenSSL installation
1345 --without-openssl-header-check Disable OpenSSL version consistency check
1346 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1347 --with-pam Enable PAM support
1348 --with-rand-helper Use subprocess to gather strong randomness
1349 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1350 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1351 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1352 --with-privsep-user=user Specify non-privileged user for privilege separation
1353 --with-selinux Enable SELinux support
1354 --with-kerberos5=PATH Enable Kerberos 5 support
1355 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1356 --with-xauth=PATH Specify path to xauth program
1357 --with-mantype=man|cat|doc Set man page type
1358 --with-md5-passwords Enable use of MD5 passwords
1359 --without-shadow Disable shadow password support
1360 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1361 --with-default-path= Specify default \$PATH environment for server
1362 --with-superuser-path= Specify different path for super-user
1363 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1364 --with-bsd-auth Enable BSD auth support
1365 --with-pid-dir=PATH Specify location of ssh.pid file
1366 --with-lastlog=FILE|DIR specify lastlog location common locations
1367
1368Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
1373 LIBS libraries to pass to the linker, e.g. -l<library>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CPP C preprocessor
1377
1378Use these variables to override the choices made by `configure' or to help
1379it to find libraries and programs with nonstandard names/locations.
1380
1381Report bugs to <openssh-unix-dev@mindrot.org>.
1382_ACEOF
1383ac_status=$?
1384fi
1385
1386if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" || continue
1390 ac_builddir=.
1391
1392case "$ac_dir" in
1393.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394*)
1395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 esac ;;
1402esac
1403ac_abs_top_builddir=$ac_pwd
1404ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405# for backward compatibility:
1406ac_top_builddir=$ac_top_build_prefix
1407
1408case $srcdir in
1409 .) # We are building in place.
1410 ac_srcdir=.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1417 *) # Relative name.
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421esac
1422ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1432 else
1433 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 fi || ac_status=$?
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1436 done
1437fi
1438
1439test -n "$ac_init_help" && exit $ac_status
1440if $ac_init_version; then
1441 cat <<\_ACEOF
1442OpenSSH configure Portable
1443generated by GNU Autoconf 2.61
1444
1445Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1447This configure script is free software; the Free Software Foundation
1448gives unlimited permission to copy, distribute and modify it.
1449_ACEOF
1450 exit
1451fi
1452cat >config.log <<_ACEOF
1453This file contains any messages produced by compilers while
1454running configure, to aid debugging if configure makes a mistake.
1455
1456It was created by OpenSSH $as_me Portable, which was
1457generated by GNU Autoconf 2.61. Invocation command line was
1458
1459 $ $0 $@
1460
1461_ACEOF
1462exec 5>>config.log
1463{
1464cat <<_ASUNAME
1465## --------- ##
1466## Platform. ##
1467## --------- ##
1468
1469hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1470uname -m = `(uname -m) 2>/dev/null || echo unknown`
1471uname -r = `(uname -r) 2>/dev/null || echo unknown`
1472uname -s = `(uname -s) 2>/dev/null || echo unknown`
1473uname -v = `(uname -v) 2>/dev/null || echo unknown`
1474
1475/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1476/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1477
1478/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1479/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1480/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1481/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1482/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1483/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1484/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1485
1486_ASUNAME
1487
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 echo "PATH: $as_dir"
1494done
1495IFS=$as_save_IFS
1496
1497} >&5
1498
1499cat >&5 <<_ACEOF
1500
1501
1502## ----------- ##
1503## Core tests. ##
1504## ----------- ##
1505
1506_ACEOF
1507
1508
1509# Keep a trace of the command line.
1510# Strip out --no-create and --no-recursion so they do not pile up.
1511# Strip out --silent because we don't want to record it for future runs.
1512# Also quote any args containing shell meta-characters.
1513# Make two passes to allow for proper duplicate-argument suppression.
1514ac_configure_args=
1515ac_configure_args0=
1516ac_configure_args1=
1517ac_must_keep_next=false
1518for ac_pass in 1 2
1519do
1520 for ac_arg
1521 do
1522 case $ac_arg in
1523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1525 | -silent | --silent | --silen | --sile | --sil)
1526 continue ;;
1527 *\'*)
1528 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1529 esac
1530 case $ac_pass in
1531 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 2)
1533 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1534 if test $ac_must_keep_next = true; then
1535 ac_must_keep_next=false # Got value, back to normal.
1536 else
1537 case $ac_arg in
1538 *=* | --config-cache | -C | -disable-* | --disable-* \
1539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1541 | -with-* | --with-* | -without-* | --without-* | --x)
1542 case "$ac_configure_args0 " in
1543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1544 esac
1545 ;;
1546 -* ) ac_must_keep_next=true ;;
1547 esac
1548 fi
1549 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 ;;
1551 esac
1552 done
1553done
1554$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1555$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556
1557# When interrupted or exit'd, cleanup temporary files, and complete
1558# config.log. We remove comments because anyway the quotes in there
1559# would cause problems or look ugly.
1560# WARNING: Use '\'' to represent an apostrophe within the trap.
1561# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1562trap 'exit_status=$?
1563 # Save into config.log some information that might help in debugging.
1564 {
1565 echo
1566
1567 cat <<\_ASBOX
1568## ---------------- ##
1569## Cache variables. ##
1570## ---------------- ##
1571_ASBOX
1572 echo
1573 # The following way of writing the cache mishandles newlines in values,
1574(
1575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1576 eval ac_val=\$$ac_var
1577 case $ac_val in #(
1578 *${as_nl}*)
1579 case $ac_var in #(
1580 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1581echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1582 esac
1583 case $ac_var in #(
1584 _ | IFS | as_nl) ;; #(
1585 *) $as_unset $ac_var ;;
1586 esac ;;
1587 esac
1588 done
1589 (set) 2>&1 |
1590 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1591 *${as_nl}ac_space=\ *)
1592 sed -n \
1593 "s/'\''/'\''\\\\'\'''\''/g;
1594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1595 ;; #(
1596 *)
1597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ;;
1599 esac |
1600 sort
1601)
1602 echo
1603
1604 cat <<\_ASBOX
1605## ----------------- ##
1606## Output variables. ##
1607## ----------------- ##
1608_ASBOX
1609 echo
1610 for ac_var in $ac_subst_vars
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619
1620 if test -n "$ac_subst_files"; then
1621 cat <<\_ASBOX
1622## ------------------- ##
1623## File substitutions. ##
1624## ------------------- ##
1625_ASBOX
1626 echo
1627 for ac_var in $ac_subst_files
1628 do
1629 eval ac_val=\$$ac_var
1630 case $ac_val in
1631 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 esac
1633 echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1636 fi
1637
1638 if test -s confdefs.h; then
1639 cat <<\_ASBOX
1640## ----------- ##
1641## confdefs.h. ##
1642## ----------- ##
1643_ASBOX
1644 echo
1645 cat confdefs.h
1646 echo
1647 fi
1648 test "$ac_signal" != 0 &&
1649 echo "$as_me: caught signal $ac_signal"
1650 echo "$as_me: exit $exit_status"
1651 } >&5
1652 rm -f core *.core core.conftest.* &&
1653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1654 exit $exit_status
1655' 0
1656for ac_signal in 1 2 13 15; do
1657 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658done
1659ac_signal=0
1660
1661# confdefs.h avoids OS command line length limits that DEFS can exceed.
1662rm -f -r conftest* confdefs.h
1663
1664# Predefined preprocessor variables.
1665
1666cat >>confdefs.h <<_ACEOF
1667#define PACKAGE_NAME "$PACKAGE_NAME"
1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define PACKAGE_VERSION "$PACKAGE_VERSION"
1678_ACEOF
1679
1680
1681cat >>confdefs.h <<_ACEOF
1682#define PACKAGE_STRING "$PACKAGE_STRING"
1683_ACEOF
1684
1685
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688_ACEOF
1689
1690
1691# Let the site file select an alternate cache file if it wants to.
1692# Prefer explicitly selected file to automatically selected ones.
1693if test -n "$CONFIG_SITE"; then
1694 set x "$CONFIG_SITE"
1695elif test "x$prefix" != xNONE; then
1696 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697else
1698 set x "$ac_default_prefix/share/config.site" \
1699 "$ac_default_prefix/etc/config.site"
1700fi
1701shift
1702for ac_site_file
1703do
1704 if test -r "$ac_site_file"; then
1705 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1706echo "$as_me: loading site script $ac_site_file" >&6;}
1707 sed 's/^/| /' "$ac_site_file" >&5
1708 . "$ac_site_file"
1709 fi
1710done
1711
1712if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
1716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1717echo "$as_me: loading cache $cache_file" >&6;}
1718 case $cache_file in
1719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1720 *) . "./$cache_file";;
1721 esac
1722 fi
1723else
1724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1725echo "$as_me: creating cache $cache_file" >&6;}
1726 >$cache_file
1727fi
1728
1729# Check that the precious variables saved in the cache have kept the same
1730# value.
1731ac_cache_corrupted=false
1732for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1738 set,)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1747 *)
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1752echo "$as_me: former value: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1754echo "$as_me: current value: $ac_new_val" >&2;}
1755 ac_cache_corrupted=:
1756 fi;;
1757 esac
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1760 case $ac_new_val in
1761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 *) ac_arg=$ac_var=$ac_new_val ;;
1763 esac
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 esac
1768 fi
1769done
1770if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1772echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1774echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1776fi
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802ac_ext=c
1803ac_cpp='$CPP $CPPFLAGS'
1804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807
1808
1809
1810
1811
1812ac_config_headers="$ac_config_headers config.h"
1813
1814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1824if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
1843IFS=$as_save_IFS
1844
1845fi
1846fi
1847CC=$ac_cv_prog_CC
1848if test -n "$CC"; then
1849 { echo "$as_me:$LINENO: result: $CC" >&5
1850echo "${ECHO_T}$CC" >&6; }
1851else
1852 { echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6; }
1854fi
1855
1856
1857fi
1858if test -z "$ac_cv_prog_CC"; then
1859 ac_ct_CC=$CC
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861set dummy gcc; ac_word=$2
1862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869else
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1880 fi
1881done
1882done
1883IFS=$as_save_IFS
1884
1885fi
1886fi
1887ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888if test -n "$ac_ct_CC"; then
1889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890echo "${ECHO_T}$ac_ct_CC" >&6; }
1891else
1892 { echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6; }
1894fi
1895
1896 if test "x$ac_ct_CC" = x; then
1897 CC=""
1898 else
1899 case $cross_compiling:$ac_tool_warned in
1900yes:)
1901{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1902whose name does not start with the host triplet. If you think this
1903configuration is useful to you, please write to autoconf@gnu.org." >&5
1904echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1905whose name does not start with the host triplet. If you think this
1906configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1907ac_tool_warned=yes ;;
1908esac
1909 CC=$ac_ct_CC
1910 fi
1911else
1912 CC="$ac_cv_prog_CC"
1913fi
1914
1915if test -z "$CC"; then
1916 if test -n "$ac_tool_prefix"; then
1917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1918set dummy ${ac_tool_prefix}cc; ac_word=$2
1919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1921if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1926else
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1934 ac_cv_prog_CC="${ac_tool_prefix}cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938done
1939done
1940IFS=$as_save_IFS
1941
1942fi
1943fi
1944CC=$ac_cv_prog_CC
1945if test -n "$CC"; then
1946 { echo "$as_me:$LINENO: result: $CC" >&5
1947echo "${ECHO_T}$CC" >&6; }
1948else
1949 { echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6; }
1951fi
1952
1953
1954 fi
1955fi
1956if test -z "$CC"; then
1957 # Extract the first word of "cc", so it can be a program name with args.
1958set dummy cc; ac_word=$2
1959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1961if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1966else
1967 ac_prog_rejected=no
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1976 ac_prog_rejected=yes
1977 continue
1978 fi
1979 ac_cv_prog_CC="cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983done
1984done
1985IFS=$as_save_IFS
1986
1987if test $ac_prog_rejected = yes; then
1988 # We found a bogon in the path, so make sure we never use it.
1989 set dummy $ac_cv_prog_CC
1990 shift
1991 if test $# != 0; then
1992 # We chose a different compiler from the bogus one.
1993 # However, it has the same basename, so the bogon will be chosen
1994 # first if we set CC to just the basename; use the full file name.
1995 shift
1996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1997 fi
1998fi
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011fi
2012if test -z "$CC"; then
2013 if test -n "$ac_tool_prefix"; then
2014 for ac_prog in cl.exe
2015 do
2016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020if test "${ac_cv_prog_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2025else
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2036 fi
2037done
2038done
2039IFS=$as_save_IFS
2040
2041fi
2042fi
2043CC=$ac_cv_prog_CC
2044if test -n "$CC"; then
2045 { echo "$as_me:$LINENO: result: $CC" >&5
2046echo "${ECHO_T}$CC" >&6; }
2047else
2048 { echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6; }
2050fi
2051
2052
2053 test -n "$CC" && break
2054 done
2055fi
2056if test -z "$CC"; then
2057 ac_ct_CC=$CC
2058 for ac_prog in cl.exe
2059do
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061set dummy $ac_prog; ac_word=$2
2062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069else
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 ac_cv_prog_ac_ct_CC="$ac_prog"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2080 fi
2081done
2082done
2083IFS=$as_save_IFS
2084
2085fi
2086fi
2087ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088if test -n "$ac_ct_CC"; then
2089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090echo "${ECHO_T}$ac_ct_CC" >&6; }
2091else
2092 { echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6; }
2094fi
2095
2096
2097 test -n "$ac_ct_CC" && break
2098done
2099
2100 if test "x$ac_ct_CC" = x; then
2101 CC=""
2102 else
2103 case $cross_compiling:$ac_tool_warned in
2104yes:)
2105{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2106whose name does not start with the host triplet. If you think this
2107configuration is useful to you, please write to autoconf@gnu.org." >&5
2108echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2109whose name does not start with the host triplet. If you think this
2110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2111ac_tool_warned=yes ;;
2112esac
2113 CC=$ac_ct_CC
2114 fi
2115fi
2116
2117fi
2118
2119
2120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2125
2126# Provide some information about the compiler.
2127echo "$as_me:$LINENO: checking for C compiler version" >&5
2128ac_compiler=`set X $ac_compile; echo $2`
2129{ (ac_try="$ac_compiler --version >&5"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler --version >&5") 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139{ (ac_try="$ac_compiler -v >&5"
2140case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143esac
2144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler -v >&5") 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149{ (ac_try="$ac_compiler -V >&5"
2150case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153esac
2154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_compiler -V >&5") 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159
2160cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170
2171 ;
2172 return 0;
2173}
2174_ACEOF
2175ac_clean_files_save=$ac_clean_files
2176ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177# Try to create an executable without -o first, disregard a.out.
2178# It will help us diagnose broken compilers, and finding out an intuition
2179# of exeext.
2180{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2182ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183#
2184# List of possible output files, starting from the most likely.
2185# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2186# only as a last resort. b.out is created by i960 compilers.
2187ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2188#
2189# The IRIX 6 linker writes into existing files which may not be
2190# executable, retaining their permissions. Remove them first so a
2191# subsequent execution test works.
2192ac_rmfiles=
2193for ac_file in $ac_files
2194do
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2198 esac
2199done
2200rm -f $ac_rmfiles
2201
2202if { (ac_try="$ac_link_default"
2203case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_link_default") 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2213# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2214# in a Makefile. We should not override ac_cv_exeext if it was cached,
2215# so that the user can short-circuit this test for compilers unknown to
2216# Autoconf.
2217for ac_file in $ac_files ''
2218do
2219 test -f "$ac_file" || continue
2220 case $ac_file in
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2222 ;;
2223 [ab].out )
2224 # We found the default executable, but exeext='' is most
2225 # certainly right.
2226 break;;
2227 *.* )
2228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2229 then :; else
2230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 fi
2232 # We set ac_cv_exeext here because the later test for it is not
2233 # safe: cross compilers may not add the suffix if given an `-o'
2234 # argument, so we may need to know it at that point already.
2235 # Even if this section looks crufty: it has the advantage of
2236 # actually working.
2237 break;;
2238 * )
2239 break;;
2240 esac
2241done
2242test "$ac_cv_exeext" = no && ac_cv_exeext=
2243
2244else
2245 ac_file=''
2246fi
2247
2248{ echo "$as_me:$LINENO: result: $ac_file" >&5
2249echo "${ECHO_T}$ac_file" >&6; }
2250if test -z "$ac_file"; then
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: C compiler cannot create executables
2257See \`config.log' for more details." >&2;}
2258 { (exit 77); exit 77; }; }
2259fi
2260
2261ac_exeext=$ac_cv_exeext
2262
2263# Check that the compiler produces executables we can run. If not, either
2264# the compiler is broken, or we cross compile.
2265{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2266echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2267# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2268# If not cross compiling, check that we can run a simple program.
2269if test "$cross_compiling" != yes; then
2270 if { ac_try='./$ac_file'
2271 { (case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274esac
2275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 cross_compiling=no
2281 else
2282 if test "$cross_compiling" = maybe; then
2283 cross_compiling=yes
2284 else
2285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2286If you meant to cross compile, use \`--host'.
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot run C compiled programs.
2289If you meant to cross compile, use \`--host'.
2290See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292 fi
2293 fi
2294fi
2295{ echo "$as_me:$LINENO: result: yes" >&5
2296echo "${ECHO_T}yes" >&6; }
2297
2298rm -f a.out a.exe conftest$ac_cv_exeext b.out
2299ac_clean_files=$ac_clean_files_save
2300# Check that the compiler produces executables we can run. If not, either
2301# the compiler is broken, or we cross compile.
2302{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2303echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2304{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2305echo "${ECHO_T}$cross_compiling" >&6; }
2306
2307{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2308echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2309if { (ac_try="$ac_link"
2310case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
2314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_link") 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2321# work properly (i.e., refer to `conftest.exe'), while it won't with
2322# `rm'.
2323for ac_file in conftest.exe conftest conftest.*; do
2324 test -f "$ac_file" || continue
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 break;;
2329 * ) break;;
2330 esac
2331done
2332else
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2336See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest$ac_cv_exeext
2341{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2342echo "${ECHO_T}$ac_cv_exeext" >&6; }
2343
2344rm -f conftest.$ac_ext
2345EXEEXT=$ac_cv_exeext
2346ac_exeext=$EXEEXT
2347{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2348echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2349if test "${ac_cv_objext+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
2358
2359int
2360main ()
2361{
2362
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367rm -f conftest.o conftest.obj
2368if { (ac_try="$ac_compile"
2369case "(($ac_try" in
2370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2371 *) ac_try_echo=$ac_try;;
2372esac
2373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2374 (eval "$ac_compile") 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file in conftest.o conftest.obj conftest.*; do
2379 test -f "$ac_file" || continue;
2380 case $ac_file in
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383 break;;
2384 esac
2385done
2386else
2387 echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6; }
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408 cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h. */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h. */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419 choke me
2420#endif
2421
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (ac_try="$ac_compile"
2428case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_compile") 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } && {
2440 test -z "$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2442 } && test -s conftest.$ac_objext; then
2443 ac_compiler_gnu=yes
2444else
2445 echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_compiler_gnu=no
2449fi
2450
2451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454fi
2455{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457GCC=`test $ac_compiler_gnu = yes && echo yes`
2458ac_test_CFLAGS=${CFLAGS+set}
2459ac_save_CFLAGS=$CFLAGS
2460{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462if test "${ac_cv_prog_cc_g+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 ac_save_c_werror_flag=$ac_c_werror_flag
2466 ac_c_werror_flag=yes
2467 ac_cv_prog_cc_g=no
2468 CFLAGS="-g"
2469 cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h. */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h. */
2475
2476int
2477main ()
2478{
2479
2480 ;
2481 return 0;
2482}
2483_ACEOF
2484rm -f conftest.$ac_objext
2485if { (ac_try="$ac_compile"
2486case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } && {
2498 test -z "$ac_c_werror_flag" ||
2499 test ! -s conftest.err
2500 } && test -s conftest.$ac_objext; then
2501 ac_cv_prog_cc_g=yes
2502else
2503 echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 CFLAGS=""
2507 cat >conftest.$ac_ext <<_ACEOF
2508/* confdefs.h. */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h. */
2513
2514int
2515main ()
2516{
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522rm -f conftest.$ac_objext
2523if { (ac_try="$ac_compile"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compile") 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } && {
2536 test -z "$ac_c_werror_flag" ||
2537 test ! -s conftest.err
2538 } && test -s conftest.$ac_objext; then
2539 :
2540else
2541 echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_c_werror_flag=$ac_save_c_werror_flag
2545 CFLAGS="-g"
2546 cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
2552
2553int
2554main ()
2555{
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (ac_try="$ac_compile"
2563case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } && {
2575 test -z "$ac_c_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest.$ac_objext; then
2578 ac_cv_prog_cc_g=yes
2579else
2580 echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583
2584fi
2585
2586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587fi
2588
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590fi
2591
2592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 ac_c_werror_flag=$ac_save_c_werror_flag
2594fi
2595{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2596echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2597if test "$ac_test_CFLAGS" = set; then
2598 CFLAGS=$ac_save_CFLAGS
2599elif test $ac_cv_prog_cc_g = yes; then
2600 if test "$GCC" = yes; then
2601 CFLAGS="-g -O2"
2602 else
2603 CFLAGS="-g"
2604 fi
2605else
2606 if test "$GCC" = yes; then
2607 CFLAGS="-O2"
2608 else
2609 CFLAGS=
2610 fi
2611fi
2612{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2613echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2614if test "${ac_cv_prog_cc_c89+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 ac_cv_prog_cc_c89=no
2618ac_save_CC=$CC
2619cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h. */
2625#include <stdarg.h>
2626#include <stdio.h>
2627#include <sys/types.h>
2628#include <sys/stat.h>
2629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2630struct buf { int x; };
2631FILE * (*rcsopen) (struct buf *, struct stat *, int);
2632static char *e (p, i)
2633 char **p;
2634 int i;
2635{
2636 return p[i];
2637}
2638static char *f (char * (*g) (char **, int), char **p, ...)
2639{
2640 char *s;
2641 va_list v;
2642 va_start (v,p);
2643 s = g (p, va_arg (v,int));
2644 va_end (v);
2645 return s;
2646}
2647
2648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2649 function prototypes and stuff, but not '\xHH' hex character constants.
2650 These don't provoke an error unfortunately, instead are silently treated
2651 as 'x'. The following induces an error, until -std is added to get
2652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2653 array size at least. It's necessary to write '\x00'==0 to get something
2654 that's true only with -std. */
2655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2656
2657/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2658 inside strings and character constants. */
2659#define FOO(x) 'x'
2660int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2661
2662int test (int i, double x);
2663struct s1 {int (*f) (int a);};
2664struct s2 {int (*f) (double a);};
2665int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2666int argc;
2667char **argv;
2668int
2669main ()
2670{
2671return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678do
2679 CC="$ac_save_CC $ac_arg"
2680 rm -f conftest.$ac_objext
2681if { (ac_try="$ac_compile"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.$ac_objext; then
2697 ac_cv_prog_cc_c89=$ac_arg
2698else
2699 echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702
2703fi
2704
2705rm -f core conftest.err conftest.$ac_objext
2706 test "x$ac_cv_prog_cc_c89" != "xno" && break
2707done
2708rm -f conftest.$ac_ext
2709CC=$ac_save_CC
2710
2711fi
2712# AC_CACHE_VAL
2713case "x$ac_cv_prog_cc_c89" in
2714 x)
2715 { echo "$as_me:$LINENO: result: none needed" >&5
2716echo "${ECHO_T}none needed" >&6; } ;;
2717 xno)
2718 { echo "$as_me:$LINENO: result: unsupported" >&5
2719echo "${ECHO_T}unsupported" >&6; } ;;
2720 *)
2721 CC="$CC $ac_cv_prog_cc_c89"
2722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2723echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2724esac
2725
2726
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733ac_aux_dir=
2734for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2735 if test -f "$ac_dir/install-sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 break
2739 elif test -f "$ac_dir/install.sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 break
2743 elif test -f "$ac_dir/shtool"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/shtool install -c"
2746 break
2747 fi
2748done
2749if test -z "$ac_aux_dir"; then
2750 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2751echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2752 { (exit 1); exit 1; }; }
2753fi
2754
2755# These three variables are undocumented and unsupported,
2756# and are intended to be withdrawn in a future Autoconf release.
2757# They can cause serious problems if a builder's source tree is in a directory
2758# whose full name contains unusual characters.
2759ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2760ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2761ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2762
2763
2764# Make sure we can run config.sub.
2765$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2767echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2768 { (exit 1); exit 1; }; }
2769
2770{ echo "$as_me:$LINENO: checking build system type" >&5
2771echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2772if test "${ac_cv_build+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 ac_build_alias=$build_alias
2776test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778test "x$ac_build_alias" = x &&
2779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2781 { (exit 1); exit 1; }; }
2782ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2783 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2784echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2785 { (exit 1); exit 1; }; }
2786
2787fi
2788{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2789echo "${ECHO_T}$ac_cv_build" >&6; }
2790case $ac_cv_build in
2791*-*-*) ;;
2792*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2793echo "$as_me: error: invalid value of canonical build" >&2;}
2794 { (exit 1); exit 1; }; };;
2795esac
2796build=$ac_cv_build
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_build
2799shift
2800build_cpu=$1
2801build_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805build_os=$*
2806IFS=$ac_save_IFS
2807case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2808
2809
2810{ echo "$as_me:$LINENO: checking host system type" >&5
2811echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2812if test "${ac_cv_host+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815 if test "x$host_alias" = x; then
2816 ac_cv_host=$ac_cv_build
2817else
2818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2820echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2821 { (exit 1); exit 1; }; }
2822fi
2823
2824fi
2825{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2826echo "${ECHO_T}$ac_cv_host" >&6; }
2827case $ac_cv_host in
2828*-*-*) ;;
2829*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2830echo "$as_me: error: invalid value of canonical host" >&2;}
2831 { (exit 1); exit 1; }; };;
2832esac
2833host=$ac_cv_host
2834ac_save_IFS=$IFS; IFS='-'
2835set x $ac_cv_host
2836shift
2837host_cpu=$1
2838host_vendor=$2
2839shift; shift
2840# Remember, the first character of IFS is used to create $*,
2841# except with old shells:
2842host_os=$*
2843IFS=$ac_save_IFS
2844case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2845
2846
2847
2848ac_ext=c
2849ac_cpp='$CPP $CPPFLAGS'
2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2854echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2855# On Suns, sometimes $CPP names a directory.
2856if test -n "$CPP" && test -d "$CPP"; then
2857 CPP=
2858fi
2859if test -z "$CPP"; then
2860 if test "${ac_cv_prog_CPP+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862else
2863 # Double quotes because CPP needs to be expanded
2864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2865 do
2866 ac_preproc_ok=false
2867for ac_c_preproc_warn_flag in '' yes
2868do
2869 # Use a header file that comes with gcc, so configuring glibc
2870 # with a fresh cross-compiler works.
2871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2872 # <limits.h> exists even on freestanding compilers.
2873 # On the NeXT, cc -E runs the code through the compiler's parser,
2874 # not just through cpp. "Syntax error" is here to catch this case.
2875 cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
2881#ifdef __STDC__
2882# include <limits.h>
2883#else
2884# include <assert.h>
2885#endif
2886 Syntax error
2887_ACEOF
2888if { (ac_try="$ac_cpp conftest.$ac_ext"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } >/dev/null && {
2901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 }; then
2904 :
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 # Broken: fails on valid input.
2910continue
2911fi
2912
2913rm -f conftest.err conftest.$ac_ext
2914
2915 # OK, works on sane cases. Now check whether nonexistent headers
2916 # can be detected and how.
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923#include <ac_nonexistent.h>
2924_ACEOF
2925if { (ac_try="$ac_cpp conftest.$ac_ext"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev/null && {
2938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 }; then
2941 # Broken: success on invalid input.
2942continue
2943else
2944 echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 # Passes both tests.
2948ac_preproc_ok=:
2949break
2950fi
2951
2952rm -f conftest.err conftest.$ac_ext
2953
2954done
2955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956rm -f conftest.err conftest.$ac_ext
2957if $ac_preproc_ok; then
2958 break
2959fi
2960
2961 done
2962 ac_cv_prog_CPP=$CPP
2963
2964fi
2965 CPP=$ac_cv_prog_CPP
2966else
2967 ac_cv_prog_CPP=$CPP
2968fi
2969{ echo "$as_me:$LINENO: result: $CPP" >&5
2970echo "${ECHO_T}$CPP" >&6; }
2971ac_preproc_ok=false
2972for ac_c_preproc_warn_flag in '' yes
2973do
2974 # Use a header file that comes with gcc, so configuring glibc
2975 # with a fresh cross-compiler works.
2976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2977 # <limits.h> exists even on freestanding compilers.
2978 # On the NeXT, cc -E runs the code through the compiler's parser,
2979 # not just through cpp. "Syntax error" is here to catch this case.
2980 cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
2986#ifdef __STDC__
2987# include <limits.h>
2988#else
2989# include <assert.h>
2990#endif
2991 Syntax error
2992_ACEOF
2993if { (ac_try="$ac_cpp conftest.$ac_ext"
2994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null && {
3006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3007 test ! -s conftest.err
3008 }; then
3009 :
3010else
3011 echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 # Broken: fails on valid input.
3015continue
3016fi
3017
3018rm -f conftest.err conftest.$ac_ext
3019
3020 # OK, works on sane cases. Now check whether nonexistent headers
3021 # can be detected and how.
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028#include <ac_nonexistent.h>
3029_ACEOF
3030if { (ac_try="$ac_cpp conftest.$ac_ext"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null && {
3043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 }; then
3046 # Broken: success on invalid input.
3047continue
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 # Passes both tests.
3053ac_preproc_ok=:
3054break
3055fi
3056
3057rm -f conftest.err conftest.$ac_ext
3058
3059done
3060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061rm -f conftest.err conftest.$ac_ext
3062if $ac_preproc_ok; then
3063 :
3064else
3065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3066See \`config.log' for more details." >&5
3067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3068See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3070fi
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078
3079{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3080echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3081if test "${ac_cv_path_GREP+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084 # Extract the first word of "grep ggrep" to use in msg output
3085if test -z "$GREP"; then
3086set dummy grep ggrep; ac_prog_name=$2
3087if test "${ac_cv_path_GREP+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090 ac_path_GREP_found=false
3091# Loop through the user's path and test for each of PROGNAME-LIST
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_prog in grep ggrep; do
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3100 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3101 # Check for GNU ac_path_GREP and select it if it is found.
3102 # Check for GNU $ac_path_GREP
3103case `"$ac_path_GREP" --version 2>&1` in
3104*GNU*)
3105 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3106*)
3107 ac_count=0
3108 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3109 while :
3110 do
3111 cat "conftest.in" "conftest.in" >"conftest.tmp"
3112 mv "conftest.tmp" "conftest.in"
3113 cp "conftest.in" "conftest.nl"
3114 echo 'GREP' >> "conftest.nl"
3115 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3117 ac_count=`expr $ac_count + 1`
3118 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3119 # Best one so far, save it but keep looking for a better one
3120 ac_cv_path_GREP="$ac_path_GREP"
3121 ac_path_GREP_max=$ac_count
3122 fi
3123 # 10*(2^10) chars as input seems more than enough
3124 test $ac_count -gt 10 && break
3125 done
3126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3127esac
3128
3129
3130 $ac_path_GREP_found && break 3
3131 done
3132done
3133
3134done
3135IFS=$as_save_IFS
3136
3137
3138fi
3139
3140GREP="$ac_cv_path_GREP"
3141if test -z "$GREP"; then
3142 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3143echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3144 { (exit 1); exit 1; }; }
3145fi
3146
3147else
3148 ac_cv_path_GREP=$GREP
3149fi
3150
3151
3152fi
3153{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3154echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3155 GREP="$ac_cv_path_GREP"
3156
3157
3158{ echo "$as_me:$LINENO: checking for egrep" >&5
3159echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3160if test "${ac_cv_path_EGREP+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3164 then ac_cv_path_EGREP="$GREP -E"
3165 else
3166 # Extract the first word of "egrep" to use in msg output
3167if test -z "$EGREP"; then
3168set dummy egrep; ac_prog_name=$2
3169if test "${ac_cv_path_EGREP+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 ac_path_EGREP_found=false
3173# Loop through the user's path and test for each of PROGNAME-LIST
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_prog in egrep; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3183 # Check for GNU ac_path_EGREP and select it if it is found.
3184 # Check for GNU $ac_path_EGREP
3185case `"$ac_path_EGREP" --version 2>&1` in
3186*GNU*)
3187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3188*)
3189 ac_count=0
3190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3191 while :
3192 do
3193 cat "conftest.in" "conftest.in" >"conftest.tmp"
3194 mv "conftest.tmp" "conftest.in"
3195 cp "conftest.in" "conftest.nl"
3196 echo 'EGREP' >> "conftest.nl"
3197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3199 ac_count=`expr $ac_count + 1`
3200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3201 # Best one so far, save it but keep looking for a better one
3202 ac_cv_path_EGREP="$ac_path_EGREP"
3203 ac_path_EGREP_max=$ac_count
3204 fi
3205 # 10*(2^10) chars as input seems more than enough
3206 test $ac_count -gt 10 && break
3207 done
3208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3209esac
3210
3211
3212 $ac_path_EGREP_found && break 3
3213 done
3214done
3215
3216done
3217IFS=$as_save_IFS
3218
3219
3220fi
3221
3222EGREP="$ac_cv_path_EGREP"
3223if test -z "$EGREP"; then
3224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3225echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3226 { (exit 1); exit 1; }; }
3227fi
3228
3229else
3230 ac_cv_path_EGREP=$EGREP
3231fi
3232
3233
3234 fi
3235fi
3236{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3237echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3238 EGREP="$ac_cv_path_EGREP"
3239
3240
3241{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3242echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3243if test "${ac_cv_header_stdc+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252#include <stdlib.h>
3253#include <stdarg.h>
3254#include <string.h>
3255#include <float.h>
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_header_stdc=yes
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 ac_cv_header_stdc=no
3288fi
3289
3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291
3292if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#include <string.h>
3301
3302_ACEOF
3303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3305 :
3306else
3307 ac_cv_header_stdc=no
3308fi
3309rm -f conftest*
3310
3311fi
3312
3313if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321#include <stdlib.h>
3322
3323_ACEOF
3324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev/null 2>&1; then
3326 :
3327else
3328 ac_cv_header_stdc=no
3329fi
3330rm -f conftest*
3331
3332fi
3333
3334if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then
3337 :
3338else
3339 cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h. */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h. */
3345#include <ctype.h>
3346#include <stdlib.h>
3347#if ((' ' & 0x0FF) == 0x020)
3348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350#else
3351# define ISLOWER(c) \
3352 (('a' <= (c) && (c) <= 'i') \
3353 || ('j' <= (c) && (c) <= 'r') \
3354 || ('s' <= (c) && (c) <= 'z'))
3355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3356#endif
3357
3358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359int
3360main ()
3361{
3362 int i;
3363 for (i = 0; i < 256; i++)
3364 if (XOR (islower (i), ISLOWER (i))
3365 || toupper (i) != TOUPPER (i))
3366 return 2;
3367 return 0;
3368}
3369_ACEOF
3370rm -f conftest$ac_exeext
3371if { (ac_try="$ac_link"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 :
3391else
3392 echo "$as_me: program exited with status $ac_status" >&5
3393echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396( exit $ac_status )
3397ac_cv_header_stdc=no
3398fi
3399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3400fi
3401
3402
3403fi
3404fi
3405{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3406echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3407if test $ac_cv_header_stdc = yes; then
3408
3409cat >>confdefs.h <<\_ACEOF
3410#define STDC_HEADERS 1
3411_ACEOF
3412
3413fi
3414
3415# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3426 inttypes.h stdint.h unistd.h
3427do
3428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3429{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440$ac_includes_default
3441
3442#include <$ac_header>
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (ac_try="$ac_compile"
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3461 eval "$as_ac_Header=yes"
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 eval "$as_ac_Header=no"
3467fi
3468
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471ac_res=`eval echo '${'$as_ac_Header'}'`
3472 { echo "$as_me:$LINENO: result: $ac_res" >&5
3473echo "${ECHO_T}$ac_res" >&6; }
3474if test `eval echo '${'$as_ac_Header'}'` = yes; then
3475 cat >>confdefs.h <<_ACEOF
3476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3477_ACEOF
3478
3479fi
3480
3481done
3482
3483
3484{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3485echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3486if test "${ac_cv_c_bigendian+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 # See if sys/param.h defines the BYTE_ORDER macro.
3490cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h. */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h. */
3496#include <sys/types.h>
3497#include <sys/param.h>
3498
3499int
3500main ()
3501{
3502#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3503 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3504 bogus endian macros
3505#endif
3506
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (ac_try="$ac_compile"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3528 # It does; now see whether it defined to BIG_ENDIAN or not.
3529cat >conftest.$ac_ext <<_ACEOF
3530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
3535#include <sys/types.h>
3536#include <sys/param.h>
3537
3538int
3539main ()
3540{
3541#if BYTE_ORDER != BIG_ENDIAN
3542 not big endian
3543#endif
3544
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (ac_try="$ac_compile"
3551case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554esac
3555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3566 ac_cv_c_bigendian=yes
3567else
3568 echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 ac_cv_c_bigendian=no
3572fi
3573
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # It does not; compile a test program.
3580if test "$cross_compiling" = yes; then
3581 # try to guess the endianness by grepping values into an object file
3582 ac_cv_c_bigendian=unknown
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3590short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3591void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3592short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3593short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3594void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3595int
3596main ()
3597{
3598 _ascii (); _ebcdic ();
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603rm -f conftest.$ac_objext
3604if { (ac_try="$ac_compile"
3605case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
3609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3621 ac_cv_c_bigendian=yes
3622fi
3623if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3624 if test "$ac_cv_c_bigendian" = unknown; then
3625 ac_cv_c_bigendian=no
3626 else
3627 # finding both strings is unlikely to happen, but who knows?
3628 ac_cv_c_bigendian=unknown
3629 fi
3630fi
3631else
3632 echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635
3636fi
3637
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639else
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646$ac_includes_default
3647int
3648main ()
3649{
3650
3651 /* Are we little or big endian? From Harbison&Steele. */
3652 union
3653 {
3654 long int l;
3655 char c[sizeof (long int)];
3656 } u;
3657 u.l = 1;
3658 return u.c[sizeof (long int) - 1] == 1;
3659
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664rm -f conftest$ac_exeext
3665if { (ac_try="$ac_link"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_link") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678esac
3679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_c_bigendian=no
3685else
3686 echo "$as_me: program exited with status $ac_status" >&5
3687echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690( exit $ac_status )
3691ac_cv_c_bigendian=yes
3692fi
3693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3694fi
3695
3696
3697fi
3698
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700fi
3701{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3702echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3703case $ac_cv_c_bigendian in
3704 yes)
3705
3706cat >>confdefs.h <<\_ACEOF
3707#define WORDS_BIGENDIAN 1
3708_ACEOF
3709 ;;
3710 no)
3711 ;;
3712 *)
3713 { { echo "$as_me:$LINENO: error: unknown endianness
3714presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3715echo "$as_me: error: unknown endianness
3716presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3717 { (exit 1); exit 1; }; } ;;
3718esac
3719
3720
3721# Checks for programs.
3722for ac_prog in gawk mawk nawk awk
3723do
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725set dummy $ac_prog; ac_word=$2
3726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3728if test "${ac_cv_prog_AWK+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 if test -n "$AWK"; then
3732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_AWK="$ac_prog"
3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745done
3746done
3747IFS=$as_save_IFS
3748
3749fi
3750fi
3751AWK=$ac_cv_prog_AWK
3752if test -n "$AWK"; then
3753 { echo "$as_me:$LINENO: result: $AWK" >&5
3754echo "${ECHO_T}$AWK" >&6; }
3755else
3756 { echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6; }
3758fi
3759
3760
3761 test -n "$AWK" && break
3762done
3763
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3770echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3771# On Suns, sometimes $CPP names a directory.
3772if test -n "$CPP" && test -d "$CPP"; then
3773 CPP=
3774fi
3775if test -z "$CPP"; then
3776 if test "${ac_cv_prog_CPP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 # Double quotes because CPP needs to be expanded
3780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3781 do
3782 ac_preproc_ok=false
3783for ac_c_preproc_warn_flag in '' yes
3784do
3785 # Use a header file that comes with gcc, so configuring glibc
3786 # with a fresh cross-compiler works.
3787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788 # <limits.h> exists even on freestanding compilers.
3789 # On the NeXT, cc -E runs the code through the compiler's parser,
3790 # not just through cpp. "Syntax error" is here to catch this case.
3791 cat >conftest.$ac_ext <<_ACEOF
3792/* confdefs.h. */
3793_ACEOF
3794cat confdefs.h >>conftest.$ac_ext
3795cat >>conftest.$ac_ext <<_ACEOF
3796/* end confdefs.h. */
3797#ifdef __STDC__
3798# include <limits.h>
3799#else
3800# include <assert.h>
3801#endif
3802 Syntax error
3803_ACEOF
3804if { (ac_try="$ac_cpp conftest.$ac_ext"
3805case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808esac
3809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 }; then
3820 :
3821else
3822 echo "$as_me: failed program was:" >&5
3823sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 # Broken: fails on valid input.
3826continue
3827fi
3828
3829rm -f conftest.err conftest.$ac_ext
3830
3831 # OK, works on sane cases. Now check whether nonexistent headers
3832 # can be detected and how.
3833 cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h. */
3839#include <ac_nonexistent.h>
3840_ACEOF
3841if { (ac_try="$ac_cpp conftest.$ac_ext"
3842case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845esac
3846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null && {
3854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3855 test ! -s conftest.err
3856 }; then
3857 # Broken: success on invalid input.
3858continue
3859else
3860 echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 # Passes both tests.
3864ac_preproc_ok=:
3865break
3866fi
3867
3868rm -f conftest.err conftest.$ac_ext
3869
3870done
3871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872rm -f conftest.err conftest.$ac_ext
3873if $ac_preproc_ok; then
3874 break
3875fi
3876
3877 done
3878 ac_cv_prog_CPP=$CPP
3879
3880fi
3881 CPP=$ac_cv_prog_CPP
3882else
3883 ac_cv_prog_CPP=$CPP
3884fi
3885{ echo "$as_me:$LINENO: result: $CPP" >&5
3886echo "${ECHO_T}$CPP" >&6; }
3887ac_preproc_ok=false
3888for ac_c_preproc_warn_flag in '' yes
3889do
3890 # Use a header file that comes with gcc, so configuring glibc
3891 # with a fresh cross-compiler works.
3892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3893 # <limits.h> exists even on freestanding compilers.
3894 # On the NeXT, cc -E runs the code through the compiler's parser,
3895 # not just through cpp. "Syntax error" is here to catch this case.
3896 cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h. */
3902#ifdef __STDC__
3903# include <limits.h>
3904#else
3905# include <assert.h>
3906#endif
3907 Syntax error
3908_ACEOF
3909if { (ac_try="$ac_cpp conftest.$ac_ext"
3910case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913esac
3914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 }; then
3925 :
3926else
3927 echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 # Broken: fails on valid input.
3931continue
3932fi
3933
3934rm -f conftest.err conftest.$ac_ext
3935
3936 # OK, works on sane cases. Now check whether nonexistent headers
3937 # can be detected and how.
3938 cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h. */
3944#include <ac_nonexistent.h>
3945_ACEOF
3946if { (ac_try="$ac_cpp conftest.$ac_ext"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null && {
3959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 }; then
3962 # Broken: success on invalid input.
3963continue
3964else
3965 echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 # Passes both tests.
3969ac_preproc_ok=:
3970break
3971fi
3972
3973rm -f conftest.err conftest.$ac_ext
3974
3975done
3976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977rm -f conftest.err conftest.$ac_ext
3978if $ac_preproc_ok; then
3979 :
3980else
3981 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3982See \`config.log' for more details." >&5
3983echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3984See \`config.log' for more details." >&2;}
3985 { (exit 1); exit 1; }; }
3986fi
3987
3988ac_ext=c
3989ac_cpp='$CPP $CPPFLAGS'
3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
3994if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3996set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999if test "${ac_cv_prog_RANLIB+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 if test -n "$RANLIB"; then
4003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022RANLIB=$ac_cv_prog_RANLIB
4023if test -n "$RANLIB"; then
4024 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4025echo "${ECHO_T}$RANLIB" >&6; }
4026else
4027 { echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6; }
4029fi
4030
4031
4032fi
4033if test -z "$ac_cv_prog_RANLIB"; then
4034 ac_ct_RANLIB=$RANLIB
4035 # Extract the first word of "ranlib", so it can be a program name with args.
4036set dummy ranlib; ac_word=$2
4037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4039if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 if test -n "$ac_ct_RANLIB"; then
4043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_ac_ct_RANLIB="ranlib"
4053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4063if test -n "$ac_ct_RANLIB"; then
4064 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4065echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4066else
4067 { echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6; }
4069fi
4070
4071 if test "x$ac_ct_RANLIB" = x; then
4072 RANLIB=":"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4077whose name does not start with the host triplet. If you think this
4078configuration is useful to you, please write to autoconf@gnu.org." >&5
4079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080whose name does not start with the host triplet. If you think this
4081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4082ac_tool_warned=yes ;;
4083esac
4084 RANLIB=$ac_ct_RANLIB
4085 fi
4086else
4087 RANLIB="$ac_cv_prog_RANLIB"
4088fi
4089
4090# Find a good install program. We prefer a C program (faster),
4091# so one script is as good as another. But avoid the broken or
4092# incompatible versions:
4093# SysV /etc/install, /usr/sbin/install
4094# SunOS /usr/etc/install
4095# IRIX /sbin/install
4096# AIX /bin/install
4097# AmigaOS /C/install, which installs bootblocks on floppy discs
4098# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4099# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4100# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4101# OS/2's system install, which has a completely different semantic
4102# ./install, which can be erroneously created by make from ./install.sh.
4103{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4104echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4105if test -z "$INSTALL"; then
4106if test "${ac_cv_path_install+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 # Account for people who put trailing slashes in PATH elements.
4115case $as_dir/ in
4116 ./ | .// | /cC/* | \
4117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4118 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4119 /usr/ucb/* ) ;;
4120 *)
4121 # OSF1 and SCO ODT 3.0 have their own names for install.
4122 # Don't use installbsd from OSF since it installs stuff as root
4123 # by default.
4124 for ac_prog in ginstall scoinst install; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4127 if test $ac_prog = install &&
4128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4129 # AIX install. It has an incompatible calling convention.
4130 :
4131 elif test $ac_prog = install &&
4132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # program-specific install script used by HP pwplus--don't use.
4134 :
4135 else
4136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4137 break 3
4138 fi
4139 fi
4140 done
4141 done
4142 ;;
4143esac
4144done
4145IFS=$as_save_IFS
4146
4147
4148fi
4149 if test "${ac_cv_path_install+set}" = set; then
4150 INSTALL=$ac_cv_path_install
4151 else
4152 # As a last resort, use the slow shell script. Don't cache a
4153 # value for INSTALL within a source directory, because that will
4154 # break other packages using the cache if that directory is
4155 # removed, or if the value is a relative name.
4156 INSTALL=$ac_install_sh
4157 fi
4158fi
4159{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4160echo "${ECHO_T}$INSTALL" >&6; }
4161
4162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4163# It thinks the first close brace ends the variable substitution.
4164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4165
4166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4167
4168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4169
4170{ echo "$as_me:$LINENO: checking for egrep" >&5
4171echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4172if test "${ac_cv_path_EGREP+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174else
4175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176 then ac_cv_path_EGREP="$GREP -E"
4177 else
4178 # Extract the first word of "egrep" to use in msg output
4179if test -z "$EGREP"; then
4180set dummy egrep; ac_prog_name=$2
4181if test "${ac_cv_path_EGREP+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 ac_path_EGREP_found=false
4185# Loop through the user's path and test for each of PROGNAME-LIST
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in egrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4195 # Check for GNU ac_path_EGREP and select it if it is found.
4196 # Check for GNU $ac_path_EGREP
4197case `"$ac_path_EGREP" --version 2>&1` in
4198*GNU*)
4199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200*)
4201 ac_count=0
4202 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4203 while :
4204 do
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 echo 'EGREP' >> "conftest.nl"
4209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 ac_count=`expr $ac_count + 1`
4212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_EGREP="$ac_path_EGREP"
4215 ac_path_EGREP_max=$ac_count
4216 fi
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4219 done
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221esac
4222
4223
4224 $ac_path_EGREP_found && break 3
4225 done
4226done
4227
4228done
4229IFS=$as_save_IFS
4230
4231
4232fi
4233
4234EGREP="$ac_cv_path_EGREP"
4235if test -z "$EGREP"; then
4236 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4237echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4238 { (exit 1); exit 1; }; }
4239fi
4240
4241else
4242 ac_cv_path_EGREP=$EGREP
4243fi
4244
4245
4246 fi
4247fi
4248{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4249echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
4251
4252
4253# Extract the first word of "ar", so it can be a program name with args.
4254set dummy ar; ac_word=$2
4255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4257if test "${ac_cv_path_AR+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 case $AR in
4261 [\\/]* | ?:[\\/]*)
4262 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4263 ;;
4264 *)
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276done
4277done
4278IFS=$as_save_IFS
4279
4280 ;;
4281esac
4282fi
4283AR=$ac_cv_path_AR
4284if test -n "$AR"; then
4285 { echo "$as_me:$LINENO: result: $AR" >&5
4286echo "${ECHO_T}$AR" >&6; }
4287else
4288 { echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6; }
4290fi
4291
4292
4293# Extract the first word of "cat", so it can be a program name with args.
4294set dummy cat; ac_word=$2
4295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297if test "${ac_cv_path_CAT+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 case $CAT in
4301 [\\/]* | ?:[\\/]*)
4302 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4303 ;;
4304 *)
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316done
4317done
4318IFS=$as_save_IFS
4319
4320 ;;
4321esac
4322fi
4323CAT=$ac_cv_path_CAT
4324if test -n "$CAT"; then
4325 { echo "$as_me:$LINENO: result: $CAT" >&5
4326echo "${ECHO_T}$CAT" >&6; }
4327else
4328 { echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6; }
4330fi
4331
4332
4333# Extract the first word of "kill", so it can be a program name with args.
4334set dummy kill; ac_word=$2
4335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4337if test "${ac_cv_path_KILL+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 case $KILL in
4341 [\\/]* | ?:[\\/]*)
4342 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4343 ;;
4344 *)
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356done
4357done
4358IFS=$as_save_IFS
4359
4360 ;;
4361esac
4362fi
4363KILL=$ac_cv_path_KILL
4364if test -n "$KILL"; then
4365 { echo "$as_me:$LINENO: result: $KILL" >&5
4366echo "${ECHO_T}$KILL" >&6; }
4367else
4368 { echo "$as_me:$LINENO: result: no" >&5
4369echo "${ECHO_T}no" >&6; }
4370fi
4371
4372
4373for ac_prog in perl5 perl
4374do
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376set dummy $ac_prog; ac_word=$2
4377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379if test "${ac_cv_path_PERL+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382 case $PERL in
4383 [\\/]* | ?:[\\/]*)
4384 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4385 ;;
4386 *)
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398done
4399done
4400IFS=$as_save_IFS
4401
4402 ;;
4403esac
4404fi
4405PERL=$ac_cv_path_PERL
4406if test -n "$PERL"; then
4407 { echo "$as_me:$LINENO: result: $PERL" >&5
4408echo "${ECHO_T}$PERL" >&6; }
4409else
4410 { echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6; }
4412fi
4413
4414
4415 test -n "$PERL" && break
4416done
4417
4418# Extract the first word of "sed", so it can be a program name with args.
4419set dummy sed; ac_word=$2
4420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422if test "${ac_cv_path_SED+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424else
4425 case $SED in
4426 [\\/]* | ?:[\\/]*)
4427 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4428 ;;
4429 *)
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
4443IFS=$as_save_IFS
4444
4445 ;;
4446esac
4447fi
4448SED=$ac_cv_path_SED
4449if test -n "$SED"; then
4450 { echo "$as_me:$LINENO: result: $SED" >&5
4451echo "${ECHO_T}$SED" >&6; }
4452else
4453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
4455fi
4456
4457
4458
4459# Extract the first word of "ent", so it can be a program name with args.
4460set dummy ent; ac_word=$2
4461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_path_ENT+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 case $ENT in
4467 [\\/]* | ?:[\\/]*)
4468 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4469 ;;
4470 *)
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482done
4483done
4484IFS=$as_save_IFS
4485
4486 ;;
4487esac
4488fi
4489ENT=$ac_cv_path_ENT
4490if test -n "$ENT"; then
4491 { echo "$as_me:$LINENO: result: $ENT" >&5
4492echo "${ECHO_T}$ENT" >&6; }
4493else
4494 { echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6; }
4496fi
4497
4498
4499
4500# Extract the first word of "bash", so it can be a program name with args.
4501set dummy bash; ac_word=$2
4502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 case $TEST_MINUS_S_SH in
4508 [\\/]* | ?:[\\/]*)
4509 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4510 ;;
4511 *)
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523done
4524done
4525IFS=$as_save_IFS
4526
4527 ;;
4528esac
4529fi
4530TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4531if test -n "$TEST_MINUS_S_SH"; then
4532 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4533echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4534else
4535 { echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6; }
4537fi
4538
4539
4540# Extract the first word of "ksh", so it can be a program name with args.
4541set dummy ksh; ac_word=$2
4542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 case $TEST_MINUS_S_SH in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4550 ;;
4551 *)
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563done
4564done
4565IFS=$as_save_IFS
4566
4567 ;;
4568esac
4569fi
4570TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4571if test -n "$TEST_MINUS_S_SH"; then
4572 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4573echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4574else
4575 { echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6; }
4577fi
4578
4579
4580# Extract the first word of "sh", so it can be a program name with args.
4581set dummy sh; ac_word=$2
4582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 case $TEST_MINUS_S_SH in
4588 [\\/]* | ?:[\\/]*)
4589 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4590 ;;
4591 *)
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605IFS=$as_save_IFS
4606
4607 ;;
4608esac
4609fi
4610TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4611if test -n "$TEST_MINUS_S_SH"; then
4612 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4613echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4614else
4615 { echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6; }
4617fi
4618
4619
4620# Extract the first word of "sh", so it can be a program name with args.
4621set dummy sh; ac_word=$2
4622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624if test "${ac_cv_path_SH+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627 case $SH in
4628 [\\/]* | ?:[\\/]*)
4629 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4630 ;;
4631 *)
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643done
4644done
4645IFS=$as_save_IFS
4646
4647 ;;
4648esac
4649fi
4650SH=$ac_cv_path_SH
4651if test -n "$SH"; then
4652 { echo "$as_me:$LINENO: result: $SH" >&5
4653echo "${ECHO_T}$SH" >&6; }
4654else
4655 { echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6; }
4657fi
4658
4659
4660TEST_SHELL=sh
4661
4662
4663# Extract the first word of "groupadd", so it can be a program name with args.
4664set dummy groupadd; ac_word=$2
4665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 case $PATH_GROUPADD_PROG in
4671 [\\/]* | ?:[\\/]*)
4672 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4673 ;;
4674 *)
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686done
4687done
4688IFS=$as_save_IFS
4689
4690 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4691 ;;
4692esac
4693fi
4694PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4695if test -n "$PATH_GROUPADD_PROG"; then
4696 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4697echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4698else
4699 { echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6; }
4701fi
4702
4703
4704# Extract the first word of "useradd", so it can be a program name with args.
4705set dummy useradd; ac_word=$2
4706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711 case $PATH_USERADD_PROG in
4712 [\\/]* | ?:[\\/]*)
4713 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4714 ;;
4715 *)
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728done
4729IFS=$as_save_IFS
4730
4731 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4732 ;;
4733esac
4734fi
4735PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4736if test -n "$PATH_USERADD_PROG"; then
4737 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4738echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4739else
4740 { echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6; }
4742fi
4743
4744
4745# Extract the first word of "pkgmk", so it can be a program name with args.
4746set dummy pkgmk; ac_word=$2
4747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4753 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766done
4767done
4768IFS=$as_save_IFS
4769
4770 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4771fi
4772fi
4773MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4774if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4775 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4776echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4777else
4778 { echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6; }
4780fi
4781
4782
4783if test -x /sbin/sh; then
4784 STARTUP_SCRIPT_SHELL=/sbin/sh
4785
4786else
4787 STARTUP_SCRIPT_SHELL=/bin/sh
4788
4789fi
4790
4791# System features
4792# Check whether --enable-largefile was given.
4793if test "${enable_largefile+set}" = set; then
4794 enableval=$enable_largefile;
4795fi
4796
4797if test "$enable_largefile" != no; then
4798
4799 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4800echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4801if test "${ac_cv_sys_largefile_CC+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804 ac_cv_sys_largefile_CC=no
4805 if test "$GCC" != yes; then
4806 ac_save_CC=$CC
4807 while :; do
4808 # IRIX 6.2 and later do not support large files by default,
4809 # so use the C compiler's -n32 option if that helps.
4810 cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h. */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */
4816#include <sys/types.h>
4817 /* Check that off_t can represent 2**63 - 1 correctly.
4818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4819 since some C++ compilers masquerading as C compilers
4820 incorrectly reject 9223372036854775807. */
4821#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4823 && LARGE_OFF_T % 2147483647 == 1)
4824 ? 1 : -1];
4825int
4826main ()
4827{
4828
4829 ;
4830 return 0;
4831}
4832_ACEOF
4833 rm -f conftest.$ac_objext
4834if { (ac_try="$ac_compile"
4835case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838esac
4839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 break
4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855
4856fi
4857
4858rm -f core conftest.err conftest.$ac_objext
4859 CC="$CC -n32"
4860 rm -f conftest.$ac_objext
4861if { (ac_try="$ac_compile"
4862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 ac_cv_sys_largefile_CC=' -n32'; break
4878else
4879 echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882
4883fi
4884
4885rm -f core conftest.err conftest.$ac_objext
4886 break
4887 done
4888 CC=$ac_save_CC
4889 rm -f conftest.$ac_ext
4890 fi
4891fi
4892{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4893echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4894 if test "$ac_cv_sys_largefile_CC" != no; then
4895 CC=$CC$ac_cv_sys_largefile_CC
4896 fi
4897
4898 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4899echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4900if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 while :; do
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#include <sys/types.h>
4911 /* Check that off_t can represent 2**63 - 1 correctly.
4912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4913 since some C++ compilers masquerading as C compilers
4914 incorrectly reject 9223372036854775807. */
4915#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4917 && LARGE_OFF_T % 2147483647 == 1)
4918 ? 1 : -1];
4919int
4920main ()
4921{
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927rm -f conftest.$ac_objext
4928if { (ac_try="$ac_compile"
4929case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4944 ac_cv_sys_file_offset_bits=no; break
4945else
4946 echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949
4950fi
4951
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#define _FILE_OFFSET_BITS 64
4960#include <sys/types.h>
4961 /* Check that off_t can represent 2**63 - 1 correctly.
4962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4963 since some C++ compilers masquerading as C compilers
4964 incorrectly reject 9223372036854775807. */
4965#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4967 && LARGE_OFF_T % 2147483647 == 1)
4968 ? 1 : -1];
4969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4994 ac_cv_sys_file_offset_bits=64; break
4995else
4996 echo "$as_me: failed program was:" >&5
4997sed 's/^/| /' conftest.$ac_ext >&5
4998
4999
5000fi
5001
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_cv_sys_file_offset_bits=unknown
5004 break
5005done
5006fi
5007{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5008echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5009case $ac_cv_sys_file_offset_bits in #(
5010 no | unknown) ;;
5011 *)
5012cat >>confdefs.h <<_ACEOF
5013#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5014_ACEOF
5015;;
5016esac
5017rm -f conftest*
5018 if test $ac_cv_sys_file_offset_bits = unknown; then
5019 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5020echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5021if test "${ac_cv_sys_large_files+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 while :; do
5025 cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
5031#include <sys/types.h>
5032 /* Check that off_t can represent 2**63 - 1 correctly.
5033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5034 since some C++ compilers masquerading as C compilers
5035 incorrectly reject 9223372036854775807. */
5036#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5038 && LARGE_OFF_T % 2147483647 == 1)
5039 ? 1 : -1];
5040int
5041main ()
5042{
5043
5044 ;
5045 return 0;
5046}
5047_ACEOF
5048rm -f conftest.$ac_objext
5049if { (ac_try="$ac_compile"
5050case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053esac
5054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_compile") 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && {
5062 test -z "$ac_c_werror_flag" ||
5063 test ! -s conftest.err
5064 } && test -s conftest.$ac_objext; then
5065 ac_cv_sys_large_files=no; break
5066else
5067 echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070
5071fi
5072
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#define _LARGE_FILES 1
5081#include <sys/types.h>
5082 /* Check that off_t can represent 2**63 - 1 correctly.
5083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5084 since some C++ compilers masquerading as C compilers
5085 incorrectly reject 9223372036854775807. */
5086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5088 && LARGE_OFF_T % 2147483647 == 1)
5089 ? 1 : -1];
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (ac_try="$ac_compile"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5115 ac_cv_sys_large_files=1; break
5116else
5117 echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120
5121fi
5122
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_cv_sys_large_files=unknown
5125 break
5126done
5127fi
5128{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5129echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5130case $ac_cv_sys_large_files in #(
5131 no | unknown) ;;
5132 *)
5133cat >>confdefs.h <<_ACEOF
5134#define _LARGE_FILES $ac_cv_sys_large_files
5135_ACEOF
5136;;
5137esac
5138rm -f conftest*
5139 fi
5140fi
5141
5142
5143if test -z "$AR" ; then
5144 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5145echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5146 { (exit 1); exit 1; }; }
5147fi
5148
5149# Use LOGIN_PROGRAM from environment if possible
5150if test ! -z "$LOGIN_PROGRAM" ; then
5151
5152cat >>confdefs.h <<_ACEOF
5153#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5154_ACEOF
5155
5156else
5157 # Search for login
5158 # Extract the first word of "login", so it can be a program name with args.
5159set dummy login; ac_word=$2
5160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 case $LOGIN_PROGRAM_FALLBACK in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182done
5183IFS=$as_save_IFS
5184
5185 ;;
5186esac
5187fi
5188LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5189if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5190 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5191echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5192else
5193 { echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6; }
5195fi
5196
5197
5198 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5199 cat >>confdefs.h <<_ACEOF
5200#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5201_ACEOF
5202
5203 fi
5204fi
5205
5206# Extract the first word of "passwd", so it can be a program name with args.
5207set dummy passwd; ac_word=$2
5208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 case $PATH_PASSWD_PROG in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231IFS=$as_save_IFS
5232
5233 ;;
5234esac
5235fi
5236PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5237if test -n "$PATH_PASSWD_PROG"; then
5238 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5239echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5240else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6; }
5243fi
5244
5245
5246if test ! -z "$PATH_PASSWD_PROG" ; then
5247
5248cat >>confdefs.h <<_ACEOF
5249#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5250_ACEOF
5251
5252fi
5253
5254if test -z "$LD" ; then
5255 LD=$CC
5256fi
5257
5258
5259{ echo "$as_me:$LINENO: checking for inline" >&5
5260echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5261if test "${ac_cv_c_inline+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264 ac_cv_c_inline=no
5265for ac_kw in inline __inline__ __inline; do
5266 cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h. */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h. */
5272#ifndef __cplusplus
5273typedef int foo_t;
5274static $ac_kw foo_t static_foo () {return 0; }
5275$ac_kw foo_t foo () {return 0; }
5276#endif
5277
5278_ACEOF
5279rm -f conftest.$ac_objext
5280if { (ac_try="$ac_compile"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest.$ac_objext; then
5296 ac_cv_c_inline=$ac_kw
5297else
5298 echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301
5302fi
5303
5304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 test "$ac_cv_c_inline" != no && break
5306done
5307
5308fi
5309{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5310echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5311
5312
5313case $ac_cv_c_inline in
5314 inline | yes) ;;
5315 *)
5316 case $ac_cv_c_inline in
5317 no) ac_val=;;
5318 *) ac_val=$ac_cv_c_inline;;
5319 esac
5320 cat >>confdefs.h <<_ACEOF
5321#ifndef __cplusplus
5322#define inline $ac_val
5323#endif
5324_ACEOF
5325 ;;
5326esac
5327
5328
5329{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5330echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5331if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334 cat >conftest.$ac_ext <<_ACEOF
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340#include <limits.h>
5341
5342int
5343main ()
5344{
5345#ifndef LLONG_MAX
5346 (void) LLONG_MAX;
5347#endif
5348
5349 ;
5350 return 0;
5351}
5352_ACEOF
5353rm -f conftest.$ac_objext
5354if { (ac_try="$ac_compile"
5355case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compile") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest.$ac_objext; then
5370 ac_cv_have_decl_LLONG_MAX=yes
5371else
5372 echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_cv_have_decl_LLONG_MAX=no
5376fi
5377
5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379fi
5380{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5381echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5382if test $ac_cv_have_decl_LLONG_MAX = yes; then
5383 have_llong_max=1
5384fi
5385
5386
5387use_stack_protector=1
5388
5389# Check whether --with-stackprotect was given.
5390if test "${with_stackprotect+set}" = set; then
5391 withval=$with_stackprotect;
5392 if test "x$withval" = "xno"; then
5393 use_stack_protector=0
5394 fi
5395fi
5396
5397
5398if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5399 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5400 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5401 case $GCC_VER in
5402 1.*) no_attrib_nonnull=1 ;;
5403 2.8* | 2.9*)
5404 CFLAGS="$CFLAGS -Wsign-compare"
5405 no_attrib_nonnull=1
5406 ;;
5407 2.*) no_attrib_nonnull=1 ;;
5408 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5409 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;;
5410 *) ;;
5411 esac
5412
5413 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5414echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5415 saved_CFLAGS="$CFLAGS"
5416 CFLAGS="$CFLAGS -fno-builtin-memset"
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423
5424#include <string.h>
5425int main(void){char b[10]; memset(b, 0, sizeof(b));}
5426
5427_ACEOF
5428rm -f conftest.$ac_objext conftest$ac_exeext
5429if { (ac_try="$ac_link"
5430case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433esac
5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest$ac_exeext &&
5445 $as_test_x conftest$ac_exeext; then
5446 { echo "$as_me:$LINENO: result: yes" >&5
5447echo "${ECHO_T}yes" >&6; }
5448else
5449 echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452 { echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6; }
5454 CFLAGS="$saved_CFLAGS"
5455
5456fi
5457
5458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5459 conftest$ac_exeext conftest.$ac_ext
5460
5461 # -fstack-protector-all doesn't always work for some GCC versions
5462 # and/or platforms, so we test if we can. If it's not supported
5463 # on a given platform gcc will emit a warning so we use -Werror.
5464 if test "x$use_stack_protector" = "x1"; then
5465 for t in -fstack-protector-all -fstack-protector; do
5466 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5467echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5468 saved_CFLAGS="$CFLAGS"
5469 saved_LDFLAGS="$LDFLAGS"
5470 CFLAGS="$CFLAGS $t -Werror"
5471 LDFLAGS="$LDFLAGS $t -Werror"
5472 cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478
5479#include <stdio.h>
5480int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5481
5482_ACEOF
5483rm -f conftest.$ac_objext conftest$ac_exeext
5484if { (ac_try="$ac_link"
5485case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488esac
5489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_link") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest$ac_exeext &&
5500 $as_test_x conftest$ac_exeext; then
5501 { echo "$as_me:$LINENO: result: yes" >&5
5502echo "${ECHO_T}yes" >&6; }
5503 CFLAGS="$saved_CFLAGS $t"
5504 LDFLAGS="$saved_LDFLAGS $t"
5505 { echo "$as_me:$LINENO: checking if $t works" >&5
5506echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5507 if test "$cross_compiling" = yes; then
5508 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5509echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5510 break
5511
5512else
5513 cat >conftest.$ac_ext <<_ACEOF
5514/* confdefs.h. */
5515_ACEOF
5516cat confdefs.h >>conftest.$ac_ext
5517cat >>conftest.$ac_ext <<_ACEOF
5518/* end confdefs.h. */
5519
5520#include <stdio.h>
5521int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5522
5523_ACEOF
5524rm -f conftest$ac_exeext
5525if { (ac_try="$ac_link"
5526case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5529esac
5530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_link") 2>&5
5532 ac_status=$?
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5535 { (case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538esac
5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_try") 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 { echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6; }
5546 break
5547else
5548 echo "$as_me: program exited with status $ac_status" >&5
5549echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552( exit $ac_status )
5553 { echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6; }
5555fi
5556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5557fi
5558
5559
5560
5561else
5562 echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 { echo "$as_me:$LINENO: result: no" >&5
5566echo "${ECHO_T}no" >&6; }
5567
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5571 conftest$ac_exeext conftest.$ac_ext
5572 CFLAGS="$saved_CFLAGS"
5573 LDFLAGS="$saved_LDFLAGS"
5574 done
5575 fi
5576
5577 if test -z "$have_llong_max"; then
5578 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5579 unset ac_cv_have_decl_LLONG_MAX
5580 saved_CFLAGS="$CFLAGS"
5581 CFLAGS="$CFLAGS -std=gnu99"
5582 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5583echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5584if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h. */
5593#include <limits.h>
5594
5595
5596int
5597main ()
5598{
5599#ifndef LLONG_MAX
5600 (void) LLONG_MAX;
5601#endif
5602
5603 ;
5604 return 0;
5605}
5606_ACEOF
5607rm -f conftest.$ac_objext
5608if { (ac_try="$ac_compile"
5609case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612esac
5613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_cv_have_decl_LLONG_MAX=yes
5625else
5626 echo "$as_me: failed program was:" >&5
5627sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 ac_cv_have_decl_LLONG_MAX=no
5630fi
5631
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633fi
5634{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5635echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5636if test $ac_cv_have_decl_LLONG_MAX = yes; then
5637 have_llong_max=1
5638else
5639 CFLAGS="$saved_CFLAGS"
5640fi
5641
5642 fi
5643fi
5644
5645if test "x$no_attrib_nonnull" != "x1" ; then
5646
5647cat >>confdefs.h <<\_ACEOF
5648#define HAVE_ATTRIBUTE__NONNULL__ 1
5649_ACEOF
5650
5651fi
5652
5653
5654# Check whether --with-rpath was given.
5655if test "${with_rpath+set}" = set; then
5656 withval=$with_rpath;
5657 if test "x$withval" = "xno" ; then
5658 need_dash_r=""
5659 fi
5660 if test "x$withval" = "xyes" ; then
5661 need_dash_r=1
5662 fi
5663
5664
5665fi
5666
5667
5668# Allow user to specify flags
5669
5670# Check whether --with-cflags was given.
5671if test "${with_cflags+set}" = set; then
5672 withval=$with_cflags;
5673 if test -n "$withval" && test "x$withval" != "xno" && \
5674 test "x${withval}" != "xyes"; then
5675 CFLAGS="$CFLAGS $withval"
5676 fi
5677
5678
5679fi
5680
5681
5682# Check whether --with-cppflags was given.
5683if test "${with_cppflags+set}" = set; then
5684 withval=$with_cppflags;
5685 if test -n "$withval" && test "x$withval" != "xno" && \
5686 test "x${withval}" != "xyes"; then
5687 CPPFLAGS="$CPPFLAGS $withval"
5688 fi
5689
5690
5691fi
5692
5693
5694# Check whether --with-ldflags was given.
5695if test "${with_ldflags+set}" = set; then
5696 withval=$with_ldflags;
5697 if test -n "$withval" && test "x$withval" != "xno" && \
5698 test "x${withval}" != "xyes"; then
5699 LDFLAGS="$LDFLAGS $withval"
5700 fi
5701
5702
5703fi
5704
5705
5706# Check whether --with-libs was given.
5707if test "${with_libs+set}" = set; then
5708 withval=$with_libs;
5709 if test -n "$withval" && test "x$withval" != "xno" && \
5710 test "x${withval}" != "xyes"; then
5711 LIBS="$LIBS $withval"
5712 fi
5713
5714
5715fi
5716
5717
5718# Check whether --with-Werror was given.
5719if test "${with_Werror+set}" = set; then
5720 withval=$with_Werror;
5721 if test -n "$withval" && test "x$withval" != "xno"; then
5722 werror_flags="-Werror"
5723 if test "x${withval}" != "xyes"; then
5724 werror_flags="$withval"
5725 fi
5726 fi
5727
5728
5729fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795for ac_header in \
5796 bstring.h \
5797 crypt.h \
5798 crypto/sha2.h \
5799 dirent.h \
5800 endian.h \
5801 features.h \
5802 fcntl.h \
5803 floatingpoint.h \
5804 getopt.h \
5805 glob.h \
5806 ia.h \
5807 iaf.h \
5808 limits.h \
5809 login.h \
5810 maillock.h \
5811 ndir.h \
5812 net/if_tun.h \
5813 netdb.h \
5814 netgroup.h \
5815 pam/pam_appl.h \
5816 paths.h \
5817 poll.h \
5818 pty.h \
5819 readpassphrase.h \
5820 rpc/types.h \
5821 security/pam_appl.h \
5822 sha2.h \
5823 shadow.h \
5824 stddef.h \
5825 stdint.h \
5826 string.h \
5827 strings.h \
5828 sys/audit.h \
5829 sys/bitypes.h \
5830 sys/bsdtty.h \
5831 sys/cdefs.h \
5832 sys/dir.h \
5833 sys/mman.h \
5834 sys/ndir.h \
5835 sys/poll.h \
5836 sys/prctl.h \
5837 sys/pstat.h \
5838 sys/select.h \
5839 sys/stat.h \
5840 sys/stream.h \
5841 sys/stropts.h \
5842 sys/strtio.h \
5843 sys/statvfs.h \
5844 sys/sysmacros.h \
5845 sys/time.h \
5846 sys/timers.h \
5847 sys/un.h \
5848 time.h \
5849 tmpdir.h \
5850 ttyent.h \
5851 ucred.h \
5852 unistd.h \
5853 usersec.h \
5854 util.h \
5855 utime.h \
5856 utmp.h \
5857 utmpx.h \
5858 vis.h \
5859
5860do
5861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867fi
5868ac_res=`eval echo '${'$as_ac_Header'}'`
5869 { echo "$as_me:$LINENO: result: $ac_res" >&5
5870echo "${ECHO_T}$ac_res" >&6; }
5871else
5872 # Is the header compilable?
5873{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5875cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h. */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h. */
5881$ac_includes_default
5882#include <$ac_header>
5883_ACEOF
5884rm -f conftest.$ac_objext
5885if { (ac_try="$ac_compile"
5886case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_compile") 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_c_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest.$ac_objext; then
5901 ac_header_compiler=yes
5902else
5903 echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_header_compiler=no
5907fi
5908
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5911echo "${ECHO_T}$ac_header_compiler" >&6; }
5912
5913# Is the header present?
5914{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5916cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h. */
5922#include <$ac_header>
5923_ACEOF
5924if { (ac_try="$ac_cpp conftest.$ac_ext"
5925case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928esac
5929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } >/dev/null && {
5937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 }; then
5940 ac_header_preproc=yes
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_header_preproc=no
5946fi
5947
5948rm -f conftest.err conftest.$ac_ext
5949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5950echo "${ECHO_T}$ac_header_preproc" >&6; }
5951
5952# So? What about this header?
5953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5954 yes:no: )
5955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5959 ac_header_preproc=yes
5960 ;;
5961 no:yes:* )
5962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5974 ( cat <<\_ASBOX
5975## ------------------------------------------- ##
5976## Report this to openssh-unix-dev@mindrot.org ##
5977## ------------------------------------------- ##
5978_ASBOX
5979 ) | sed "s/^/$as_me: WARNING: /" >&2
5980 ;;
5981esac
5982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987 eval "$as_ac_Header=\$ac_header_preproc"
5988fi
5989ac_res=`eval echo '${'$as_ac_Header'}'`
5990 { echo "$as_me:$LINENO: result: $ac_res" >&5
5991echo "${ECHO_T}$ac_res" >&6; }
5992
5993fi
5994if test `eval echo '${'$as_ac_Header'}'` = yes; then
5995 cat >>confdefs.h <<_ACEOF
5996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997_ACEOF
5998
5999fi
6000
6001done
6002
6003
6004# lastlog.h requires sys/time.h to be included first on Solaris
6005
6006for ac_header in lastlog.h
6007do
6008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014 cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h. */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h. */
6020
6021#ifdef HAVE_SYS_TIME_H
6022# include <sys/time.h>
6023#endif
6024
6025
6026#include <$ac_header>
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (ac_try="$ac_compile"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 eval "$as_ac_Header=yes"
6046else
6047 echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 eval "$as_ac_Header=no"
6051fi
6052
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055ac_res=`eval echo '${'$as_ac_Header'}'`
6056 { echo "$as_me:$LINENO: result: $ac_res" >&5
6057echo "${ECHO_T}$ac_res" >&6; }
6058if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061_ACEOF
6062
6063fi
6064
6065done
6066
6067
6068# sys/ptms.h requires sys/stream.h to be included first on Solaris
6069
6070for ac_header in sys/ptms.h
6071do
6072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084
6085#ifdef HAVE_SYS_STREAM_H
6086# include <sys/stream.h>
6087#endif
6088
6089
6090#include <$ac_header>
6091_ACEOF
6092rm -f conftest.$ac_objext
6093if { (ac_try="$ac_compile"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 eval "$as_ac_Header=yes"
6110else
6111 echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
6114 eval "$as_ac_Header=no"
6115fi
6116
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118fi
6119ac_res=`eval echo '${'$as_ac_Header'}'`
6120 { echo "$as_me:$LINENO: result: $ac_res" >&5
6121echo "${ECHO_T}$ac_res" >&6; }
6122if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123 cat >>confdefs.h <<_ACEOF
6124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125_ACEOF
6126
6127fi
6128
6129done
6130
6131
6132# login_cap.h requires sys/types.h on NetBSD
6133
6134for ac_header in login_cap.h
6135do
6136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6137{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148
6149#include <sys/types.h>
6150
6151
6152#include <$ac_header>
6153_ACEOF
6154rm -f conftest.$ac_objext
6155if { (ac_try="$ac_compile"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.$ac_objext; then
6171 eval "$as_ac_Header=yes"
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 eval "$as_ac_Header=no"
6177fi
6178
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180fi
6181ac_res=`eval echo '${'$as_ac_Header'}'`
6182 { echo "$as_me:$LINENO: result: $ac_res" >&5
6183echo "${ECHO_T}$ac_res" >&6; }
6184if test `eval echo '${'$as_ac_Header'}'` = yes; then
6185 cat >>confdefs.h <<_ACEOF
6186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6187_ACEOF
6188
6189fi
6190
6191done
6192
6193
6194# older BSDs need sys/param.h before sys/mount.h
6195
6196for ac_header in sys/mount.h
6197do
6198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204 cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
6210
6211#include <sys/param.h>
6212
6213
6214#include <$ac_header>
6215_ACEOF
6216rm -f conftest.$ac_objext
6217if { (ac_try="$ac_compile"
6218case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221esac
6222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
6233 eval "$as_ac_Header=yes"
6234else
6235 echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238 eval "$as_ac_Header=no"
6239fi
6240
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi
6243ac_res=`eval echo '${'$as_ac_Header'}'`
6244 { echo "$as_me:$LINENO: result: $ac_res" >&5
6245echo "${ECHO_T}$ac_res" >&6; }
6246if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247 cat >>confdefs.h <<_ACEOF
6248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249_ACEOF
6250
6251fi
6252
6253done
6254
6255
6256# Messages for features tested for in target-specific section
6257SIA_MSG="no"
6258SPC_MSG="no"
6259
6260# Check for some target-specific stuff
6261case "$host" in
6262*-*-aix*)
6263 # Some versions of VAC won't allow macro redefinitions at
6264 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6265 # particularly with older versions of vac or xlc.
6266 # It also throws errors about null macro argments, but these are
6267 # not fatal.
6268 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6269echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6270 cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
6276
6277#define testmacro foo
6278#define testmacro bar
6279int main(void) { exit(0); }
6280
6281_ACEOF
6282rm -f conftest.$ac_objext
6283if { (ac_try="$ac_compile"
6284case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 { echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6; }
6301else
6302 echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 { echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6; }
6307 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6308 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6309 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6310 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6311
6312
6313fi
6314
6315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
6317 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6318echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6319 if (test -z "$blibpath"); then
6320 blibpath="/usr/lib:/lib"
6321 fi
6322 saved_LDFLAGS="$LDFLAGS"
6323 if test "$GCC" = "yes"; then
6324 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6325 else
6326 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6327 fi
6328 for tryflags in $flags ;do
6329 if (test -z "$blibflags"); then
6330 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6331 cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h. */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h. */
6337
6338int
6339main ()
6340{
6341
6342 ;
6343 return 0;
6344}
6345_ACEOF
6346rm -f conftest.$ac_objext conftest$ac_exeext
6347if { (ac_try="$ac_link"
6348case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351esac
6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_link") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest$ac_exeext &&
6363 $as_test_x conftest$ac_exeext; then
6364 blibflags=$tryflags
6365else
6366 echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369
6370fi
6371
6372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6373 conftest$ac_exeext conftest.$ac_ext
6374 fi
6375 done
6376 if (test -z "$blibflags"); then
6377 { echo "$as_me:$LINENO: result: not found" >&5
6378echo "${ECHO_T}not found" >&6; }
6379 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6380echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6381 { (exit 1); exit 1; }; }
6382 else
6383 { echo "$as_me:$LINENO: result: $blibflags" >&5
6384echo "${ECHO_T}$blibflags" >&6; }
6385 fi
6386 LDFLAGS="$saved_LDFLAGS"
6387 { echo "$as_me:$LINENO: checking for authenticate" >&5
6388echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6389if test "${ac_cv_func_authenticate+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392 cat >conftest.$ac_ext <<_ACEOF
6393/* confdefs.h. */
6394_ACEOF
6395cat confdefs.h >>conftest.$ac_ext
6396cat >>conftest.$ac_ext <<_ACEOF
6397/* end confdefs.h. */
6398/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6400#define authenticate innocuous_authenticate
6401
6402/* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char authenticate (); below.
6404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6405 <limits.h> exists even on freestanding compilers. */
6406
6407#ifdef __STDC__
6408# include <limits.h>
6409#else
6410# include <assert.h>
6411#endif
6412
6413#undef authenticate
6414
6415/* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6418#ifdef __cplusplus
6419extern "C"
6420#endif
6421char authenticate ();
6422/* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425#if defined __stub_authenticate || defined __stub___authenticate
6426choke me
6427#endif
6428
6429int
6430main ()
6431{
6432return authenticate ();
6433 ;
6434 return 0;
6435}
6436_ACEOF
6437rm -f conftest.$ac_objext conftest$ac_exeext
6438if { (ac_try="$ac_link"
6439case "(($ac_try" in
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442esac
6443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444 (eval "$ac_link") 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && {
6451 test -z "$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 } && test -s conftest$ac_exeext &&
6454 $as_test_x conftest$ac_exeext; then
6455 ac_cv_func_authenticate=yes
6456else
6457 echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 ac_cv_func_authenticate=no
6461fi
6462
6463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6464 conftest$ac_exeext conftest.$ac_ext
6465fi
6466{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6467echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6468if test $ac_cv_func_authenticate = yes; then
6469
6470cat >>confdefs.h <<\_ACEOF
6471#define WITH_AIXAUTHENTICATE 1
6472_ACEOF
6473
6474else
6475 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6476echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6477if test "${ac_cv_lib_s_authenticate+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 ac_check_lib_save_LIBS=$LIBS
6481LIBS="-ls $LIBS"
6482cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488
6489/* Override any GCC internal prototype to avoid an error.
6490 Use char because int might match the return type of a GCC
6491 builtin and then its argument prototype would still apply. */
6492#ifdef __cplusplus
6493extern "C"
6494#endif
6495char authenticate ();
6496int
6497main ()
6498{
6499return authenticate ();
6500 ;
6501 return 0;
6502}
6503_ACEOF
6504rm -f conftest.$ac_objext conftest$ac_exeext
6505if { (ac_try="$ac_link"
6506case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_link") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest$ac_exeext &&
6521 $as_test_x conftest$ac_exeext; then
6522 ac_cv_lib_s_authenticate=yes
6523else
6524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 ac_cv_lib_s_authenticate=no
6528fi
6529
6530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6531 conftest$ac_exeext conftest.$ac_ext
6532LIBS=$ac_check_lib_save_LIBS
6533fi
6534{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6535echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6536if test $ac_cv_lib_s_authenticate = yes; then
6537 cat >>confdefs.h <<\_ACEOF
6538#define WITH_AIXAUTHENTICATE 1
6539_ACEOF
6540
6541 LIBS="$LIBS -ls"
6542
6543fi
6544
6545
6546fi
6547
6548 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6549echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6550if test "${ac_cv_have_decl_authenticate+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h. */
6559#include <usersec.h>
6560
6561int
6562main ()
6563{
6564#ifndef authenticate
6565 (void) authenticate;
6566#endif
6567
6568 ;
6569 return 0;
6570}
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (ac_try="$ac_compile"
6574case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6589 ac_cv_have_decl_authenticate=yes
6590else
6591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_cv_have_decl_authenticate=no
6595fi
6596
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6600echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6601if test $ac_cv_have_decl_authenticate = yes; then
6602
6603cat >>confdefs.h <<_ACEOF
6604#define HAVE_DECL_AUTHENTICATE 1
6605_ACEOF
6606
6607
6608else
6609 cat >>confdefs.h <<_ACEOF
6610#define HAVE_DECL_AUTHENTICATE 0
6611_ACEOF
6612
6613
6614fi
6615{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6616echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6617if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <usersec.h>
6627
6628int
6629main ()
6630{
6631#ifndef loginrestrictions
6632 (void) loginrestrictions;
6633#endif
6634
6635 ;
6636 return 0;
6637}
6638_ACEOF
6639rm -f conftest.$ac_objext
6640if { (ac_try="$ac_compile"
6641case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6644esac
6645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_compile") 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && {
6653 test -z "$ac_c_werror_flag" ||
6654 test ! -s conftest.err
6655 } && test -s conftest.$ac_objext; then
6656 ac_cv_have_decl_loginrestrictions=yes
6657else
6658 echo "$as_me: failed program was:" >&5
6659sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ac_cv_have_decl_loginrestrictions=no
6662fi
6663
6664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665fi
6666{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6667echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6668if test $ac_cv_have_decl_loginrestrictions = yes; then
6669
6670cat >>confdefs.h <<_ACEOF
6671#define HAVE_DECL_LOGINRESTRICTIONS 1
6672_ACEOF
6673
6674
6675else
6676 cat >>confdefs.h <<_ACEOF
6677#define HAVE_DECL_LOGINRESTRICTIONS 0
6678_ACEOF
6679
6680
6681fi
6682{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6683echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6684if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686else
6687 cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h. */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h. */
6693#include <usersec.h>
6694
6695int
6696main ()
6697{
6698#ifndef loginsuccess
6699 (void) loginsuccess;
6700#endif
6701
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706rm -f conftest.$ac_objext
6707if { (ac_try="$ac_compile"
6708case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_compile") 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest.$ac_objext; then
6723 ac_cv_have_decl_loginsuccess=yes
6724else
6725 echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_cv_have_decl_loginsuccess=no
6729fi
6730
6731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732fi
6733{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6734echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6735if test $ac_cv_have_decl_loginsuccess = yes; then
6736
6737cat >>confdefs.h <<_ACEOF
6738#define HAVE_DECL_LOGINSUCCESS 1
6739_ACEOF
6740
6741
6742else
6743 cat >>confdefs.h <<_ACEOF
6744#define HAVE_DECL_LOGINSUCCESS 0
6745_ACEOF
6746
6747
6748fi
6749{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6750echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6751if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754 cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
6760#include <usersec.h>
6761
6762int
6763main ()
6764{
6765#ifndef passwdexpired
6766 (void) passwdexpired;
6767#endif
6768
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext
6774if { (ac_try="$ac_compile"
6775case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778esac
6779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6780 (eval "$ac_compile") 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && {
6787 test -z "$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 } && test -s conftest.$ac_objext; then
6790 ac_cv_have_decl_passwdexpired=yes
6791else
6792 echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ac_cv_have_decl_passwdexpired=no
6796fi
6797
6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799fi
6800{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6801echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6802if test $ac_cv_have_decl_passwdexpired = yes; then
6803
6804cat >>confdefs.h <<_ACEOF
6805#define HAVE_DECL_PASSWDEXPIRED 1
6806_ACEOF
6807
6808
6809else
6810 cat >>confdefs.h <<_ACEOF
6811#define HAVE_DECL_PASSWDEXPIRED 0
6812_ACEOF
6813
6814
6815fi
6816{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6817echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6818if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 cat >conftest.$ac_ext <<_ACEOF
6822/* confdefs.h. */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h. */
6827#include <usersec.h>
6828
6829int
6830main ()
6831{
6832#ifndef setauthdb
6833 (void) setauthdb;
6834#endif
6835
6836 ;
6837 return 0;
6838}
6839_ACEOF
6840rm -f conftest.$ac_objext
6841if { (ac_try="$ac_compile"
6842case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845esac
6846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 ac_cv_have_decl_setauthdb=yes
6858else
6859 echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 ac_cv_have_decl_setauthdb=no
6863fi
6864
6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866fi
6867{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6868echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6869if test $ac_cv_have_decl_setauthdb = yes; then
6870
6871cat >>confdefs.h <<_ACEOF
6872#define HAVE_DECL_SETAUTHDB 1
6873_ACEOF
6874
6875
6876else
6877 cat >>confdefs.h <<_ACEOF
6878#define HAVE_DECL_SETAUTHDB 0
6879_ACEOF
6880
6881
6882fi
6883
6884
6885 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6886echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6887if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890 cat >conftest.$ac_ext <<_ACEOF
6891/* confdefs.h. */
6892_ACEOF
6893cat confdefs.h >>conftest.$ac_ext
6894cat >>conftest.$ac_ext <<_ACEOF
6895/* end confdefs.h. */
6896#include <usersec.h>
6897
6898
6899int
6900main ()
6901{
6902#ifndef loginfailed
6903 (void) loginfailed;
6904#endif
6905
6906 ;
6907 return 0;
6908}
6909_ACEOF
6910rm -f conftest.$ac_objext
6911if { (ac_try="$ac_compile"
6912case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915esac
6916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 ac_cv_have_decl_loginfailed=yes
6928else
6929 echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 ac_cv_have_decl_loginfailed=no
6933fi
6934
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6938echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6939if test $ac_cv_have_decl_loginfailed = yes; then
6940
6941cat >>confdefs.h <<_ACEOF
6942#define HAVE_DECL_LOGINFAILED 1
6943_ACEOF
6944
6945{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6946echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6947 cat >conftest.$ac_ext <<_ACEOF
6948/* confdefs.h. */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h. */
6953#include <usersec.h>
6954int
6955main ()
6956{
6957(void)loginfailed("user","host","tty",0);
6958 ;
6959 return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext
6963if { (ac_try="$ac_compile"
6964case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967esac
6968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_compile") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest.$ac_objext; then
6979 { echo "$as_me:$LINENO: result: yes" >&5
6980echo "${ECHO_T}yes" >&6; }
6981
6982cat >>confdefs.h <<\_ACEOF
6983#define AIX_LOGINFAILED_4ARG 1
6984_ACEOF
6985
6986else
6987 echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
6990 { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
6992
6993fi
6994
6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996else
6997 cat >>confdefs.h <<_ACEOF
6998#define HAVE_DECL_LOGINFAILED 0
6999_ACEOF
7000
7001
7002fi
7003
7004
7005
7006
7007for ac_func in getgrset setauthdb
7008do
7009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015 cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
7021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7023#define $ac_func innocuous_$ac_func
7024
7025/* System header to define __stub macros and hopefully few prototypes,
7026 which can conflict with char $ac_func (); below.
7027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 <limits.h> exists even on freestanding compilers. */
7029
7030#ifdef __STDC__
7031# include <limits.h>
7032#else
7033# include <assert.h>
7034#endif
7035
7036#undef $ac_func
7037
7038/* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7041#ifdef __cplusplus
7042extern "C"
7043#endif
7044char $ac_func ();
7045/* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048#if defined __stub_$ac_func || defined __stub___$ac_func
7049choke me
7050#endif
7051
7052int
7053main ()
7054{
7055return $ac_func ();
7056 ;
7057 return 0;
7058}
7059_ACEOF
7060rm -f conftest.$ac_objext conftest$ac_exeext
7061if { (ac_try="$ac_link"
7062case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065esac
7066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_link") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest$ac_exeext &&
7077 $as_test_x conftest$ac_exeext; then
7078 eval "$as_ac_var=yes"
7079else
7080 echo "$as_me: failed program was:" >&5
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 eval "$as_ac_var=no"
7084fi
7085
7086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7087 conftest$ac_exeext conftest.$ac_ext
7088fi
7089ac_res=`eval echo '${'$as_ac_var'}'`
7090 { echo "$as_me:$LINENO: result: $ac_res" >&5
7091echo "${ECHO_T}$ac_res" >&6; }
7092if test `eval echo '${'$as_ac_var'}'` = yes; then
7093 cat >>confdefs.h <<_ACEOF
7094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7095_ACEOF
7096
7097fi
7098done
7099
7100 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7101echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7102if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h. */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h. */
7111 #include <limits.h>
7112 #include <fcntl.h>
7113
7114
7115int
7116main ()
7117{
7118#ifndef F_CLOSEM
7119 (void) F_CLOSEM;
7120#endif
7121
7122 ;
7123 return 0;
7124}
7125_ACEOF
7126rm -f conftest.$ac_objext
7127if { (ac_try="$ac_compile"
7128case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131esac
7132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
7143 ac_cv_have_decl_F_CLOSEM=yes
7144else
7145 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ac_cv_have_decl_F_CLOSEM=no
7149fi
7150
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152fi
7153{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7154echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7155if test $ac_cv_have_decl_F_CLOSEM = yes; then
7156
7157cat >>confdefs.h <<\_ACEOF
7158#define HAVE_FCNTL_CLOSEM 1
7159_ACEOF
7160
7161fi
7162
7163 check_for_aix_broken_getaddrinfo=1
7164
7165cat >>confdefs.h <<\_ACEOF
7166#define BROKEN_REALPATH 1
7167_ACEOF
7168
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define SETEUID_BREAKS_SETUID 1
7172_ACEOF
7173
7174
7175cat >>confdefs.h <<\_ACEOF
7176#define BROKEN_SETREUID 1
7177_ACEOF
7178
7179
7180cat >>confdefs.h <<\_ACEOF
7181#define BROKEN_SETREGID 1
7182_ACEOF
7183
7184
7185cat >>confdefs.h <<\_ACEOF
7186#define DISABLE_LASTLOG 1
7187_ACEOF
7188
7189
7190cat >>confdefs.h <<\_ACEOF
7191#define LOGIN_NEEDS_UTMPX 1
7192_ACEOF
7193
7194
7195cat >>confdefs.h <<\_ACEOF
7196#define SPT_TYPE SPT_REUSEARGV
7197_ACEOF
7198
7199
7200cat >>confdefs.h <<\_ACEOF
7201#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7202_ACEOF
7203
7204
7205cat >>confdefs.h <<\_ACEOF
7206#define PTY_ZEROREAD 1
7207_ACEOF
7208
7209 ;;
7210*-*-cygwin*)
7211 check_for_libcrypt_later=1
7212 LIBS="$LIBS /usr/lib/textreadmode.o"
7213
7214cat >>confdefs.h <<\_ACEOF
7215#define HAVE_CYGWIN 1
7216_ACEOF
7217
7218
7219cat >>confdefs.h <<\_ACEOF
7220#define USE_PIPES 1
7221_ACEOF
7222
7223
7224cat >>confdefs.h <<\_ACEOF
7225#define DISABLE_SHADOW 1
7226_ACEOF
7227
7228
7229cat >>confdefs.h <<\_ACEOF
7230#define NO_X11_UNIX_SOCKETS 1
7231_ACEOF
7232
7233
7234cat >>confdefs.h <<\_ACEOF
7235#define NO_IPPORT_RESERVED_CONCEPT 1
7236_ACEOF
7237
7238
7239cat >>confdefs.h <<\_ACEOF
7240#define DISABLE_FD_PASSING 1
7241_ACEOF
7242
7243
7244cat >>confdefs.h <<\_ACEOF
7245#define SSH_IOBUFSZ 65535
7246_ACEOF
7247
7248 ;;
7249*-*-dgux*)
7250
7251cat >>confdefs.h <<\_ACEOF
7252#define IP_TOS_IS_BROKEN 1
7253_ACEOF
7254
7255 cat >>confdefs.h <<\_ACEOF
7256#define SETEUID_BREAKS_SETUID 1
7257_ACEOF
7258
7259 cat >>confdefs.h <<\_ACEOF
7260#define BROKEN_SETREUID 1
7261_ACEOF
7262
7263 cat >>confdefs.h <<\_ACEOF
7264#define BROKEN_SETREGID 1
7265_ACEOF
7266
7267 ;;
7268*-*-darwin*)
7269 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7270echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7271 if test "$cross_compiling" = yes; then
7272 { echo "$as_me:$LINENO: result: assume it is working" >&5
7273echo "${ECHO_T}assume it is working" >&6; }
7274else
7275 cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h. */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h. */
7281#include <mach-o/dyld.h>
7282main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7283 exit(0);
7284 else
7285 exit(1);
7286}
7287_ACEOF
7288rm -f conftest$ac_exeext
7289if { (ac_try="$ac_link"
7290case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293esac
7294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_link") 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7299 { (case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302esac
7303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_try") 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 { echo "$as_me:$LINENO: result: working" >&5
7309echo "${ECHO_T}working" >&6; }
7310else
7311 echo "$as_me: program exited with status $ac_status" >&5
7312echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315( exit $ac_status )
7316{ echo "$as_me:$LINENO: result: buggy" >&5
7317echo "${ECHO_T}buggy" >&6; }
7318
7319cat >>confdefs.h <<\_ACEOF
7320#define BROKEN_GETADDRINFO 1
7321_ACEOF
7322
7323fi
7324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7325fi
7326
7327
7328 cat >>confdefs.h <<\_ACEOF
7329#define SETEUID_BREAKS_SETUID 1
7330_ACEOF
7331
7332 cat >>confdefs.h <<\_ACEOF
7333#define BROKEN_SETREUID 1
7334_ACEOF
7335
7336 cat >>confdefs.h <<\_ACEOF
7337#define BROKEN_SETREGID 1
7338_ACEOF
7339
7340
7341cat >>confdefs.h <<\_ACEOF
7342#define BROKEN_GLOB 1
7343_ACEOF
7344
7345
7346cat >>confdefs.h <<_ACEOF
7347#define BIND_8_COMPAT 1
7348_ACEOF
7349
7350
7351cat >>confdefs.h <<\_ACEOF
7352#define SSH_TUN_FREEBSD 1
7353_ACEOF
7354
7355
7356cat >>confdefs.h <<\_ACEOF
7357#define SSH_TUN_COMPAT_AF 1
7358_ACEOF
7359
7360
7361cat >>confdefs.h <<\_ACEOF
7362#define SSH_TUN_PREPEND_AF 1
7363_ACEOF
7364
7365
7366 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7367echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7368if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370else
7371 cat >conftest.$ac_ext <<_ACEOF
7372/* confdefs.h. */
7373_ACEOF
7374cat confdefs.h >>conftest.$ac_ext
7375cat >>conftest.$ac_ext <<_ACEOF
7376/* end confdefs.h. */
7377$ac_includes_default
7378int
7379main ()
7380{
7381#ifndef AU_IPv4
7382 (void) AU_IPv4;
7383#endif
7384
7385 ;
7386 return 0;
7387}
7388_ACEOF
7389rm -f conftest.$ac_objext
7390if { (ac_try="$ac_compile"
7391case "(($ac_try" in
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7394esac
7395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396 (eval "$ac_compile") 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest.$ac_objext; then
7406 ac_cv_have_decl_AU_IPv4=yes
7407else
7408 echo "$as_me: failed program was:" >&5
7409sed 's/^/| /' conftest.$ac_ext >&5
7410
7411 ac_cv_have_decl_AU_IPv4=no
7412fi
7413
7414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415fi
7416{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7417echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7418if test $ac_cv_have_decl_AU_IPv4 = yes; then
7419 :
7420else
7421
7422cat >>confdefs.h <<\_ACEOF
7423#define AU_IPv4 0
7424_ACEOF
7425
7426 #include <bsm/audit.h>
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define LASTLOG_WRITE_PUTUTXLINE 1
7430_ACEOF
7431
7432
7433fi
7434
7435 ;;
7436*-*-dragonfly*)
7437 SSHDLIBS="$SSHDLIBS -lcrypt"
7438 ;;
7439*-*-haiku*)
7440 LIBS="$LIBS -lbsd "
7441
7442{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
7443echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
7444if test "${ac_cv_lib_network_socket+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 ac_check_lib_save_LIBS=$LIBS
7448LIBS="-lnetwork $LIBS"
7449cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h. */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h. */
7455
7456/* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459#ifdef __cplusplus
7460extern "C"
7461#endif
7462char socket ();
7463int
7464main ()
7465{
7466return socket ();
7467 ;
7468 return 0;
7469}
7470_ACEOF
7471rm -f conftest.$ac_objext conftest$ac_exeext
7472if { (ac_try="$ac_link"
7473case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476esac
7477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_link") 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest$ac_exeext &&
7488 $as_test_x conftest$ac_exeext; then
7489 ac_cv_lib_network_socket=yes
7490else
7491 echo "$as_me: failed program was:" >&5
7492sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_lib_network_socket=no
7495fi
7496
7497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7498 conftest$ac_exeext conftest.$ac_ext
7499LIBS=$ac_check_lib_save_LIBS
7500fi
7501{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
7502echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
7503if test $ac_cv_lib_network_socket = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505#define HAVE_LIBNETWORK 1
7506_ACEOF
7507
7508 LIBS="-lnetwork $LIBS"
7509
7510fi
7511
7512 cat >>confdefs.h <<\_ACEOF
7513#define HAVE_U_INT64_T 1
7514_ACEOF
7515
7516 MANTYPE=man
7517 ;;
7518*-*-hpux*)
7519 # first we define all of the options common to all HP-UX releases
7520 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7521 IPADDR_IN_DISPLAY=yes
7522 cat >>confdefs.h <<\_ACEOF
7523#define USE_PIPES 1
7524_ACEOF
7525
7526
7527cat >>confdefs.h <<\_ACEOF
7528#define LOGIN_NO_ENDOPT 1
7529_ACEOF
7530
7531 cat >>confdefs.h <<\_ACEOF
7532#define LOGIN_NEEDS_UTMPX 1
7533_ACEOF
7534
7535
7536cat >>confdefs.h <<\_ACEOF
7537#define LOCKED_PASSWD_STRING "*"
7538_ACEOF
7539
7540 cat >>confdefs.h <<\_ACEOF
7541#define SPT_TYPE SPT_PSTAT
7542_ACEOF
7543
7544 MAIL="/var/mail/username"
7545 LIBS="$LIBS -lsec"
7546
7547{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7548echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7549if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 ac_check_lib_save_LIBS=$LIBS
7553LIBS="-lxnet $LIBS"
7554cat >conftest.$ac_ext <<_ACEOF
7555/* confdefs.h. */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h. */
7560
7561/* Override any GCC internal prototype to avoid an error.
7562 Use char because int might match the return type of a GCC
7563 builtin and then its argument prototype would still apply. */
7564#ifdef __cplusplus
7565extern "C"
7566#endif
7567char t_error ();
7568int
7569main ()
7570{
7571return t_error ();
7572 ;
7573 return 0;
7574}
7575_ACEOF
7576rm -f conftest.$ac_objext conftest$ac_exeext
7577if { (ac_try="$ac_link"
7578case "(($ac_try" in
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581esac
7582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_link") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest$ac_exeext &&
7593 $as_test_x conftest$ac_exeext; then
7594 ac_cv_lib_xnet_t_error=yes
7595else
7596 echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_cv_lib_xnet_t_error=no
7600fi
7601
7602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7603 conftest$ac_exeext conftest.$ac_ext
7604LIBS=$ac_check_lib_save_LIBS
7605fi
7606{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7607echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7608if test $ac_cv_lib_xnet_t_error = yes; then
7609 cat >>confdefs.h <<_ACEOF
7610#define HAVE_LIBXNET 1
7611_ACEOF
7612
7613 LIBS="-lxnet $LIBS"
7614
7615else
7616 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7617echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7618 { (exit 1); exit 1; }; }
7619fi
7620
7621
7622 # next, we define all of the options specific to major releases
7623 case "$host" in
7624 *-*-hpux10*)
7625 if test -z "$GCC"; then
7626 CFLAGS="$CFLAGS -Ae"
7627 fi
7628 ;;
7629 *-*-hpux11*)
7630
7631cat >>confdefs.h <<\_ACEOF
7632#define PAM_SUN_CODEBASE 1
7633_ACEOF
7634
7635
7636cat >>confdefs.h <<\_ACEOF
7637#define DISABLE_UTMP 1
7638_ACEOF
7639
7640
7641cat >>confdefs.h <<\_ACEOF
7642#define USE_BTMP 1
7643_ACEOF
7644
7645 check_for_hpux_broken_getaddrinfo=1
7646 check_for_conflicting_getspnam=1
7647 ;;
7648 esac
7649
7650 # lastly, we define options specific to minor releases
7651 case "$host" in
7652 *-*-hpux10.26)
7653
7654cat >>confdefs.h <<\_ACEOF
7655#define HAVE_SECUREWARE 1
7656_ACEOF
7657
7658 disable_ptmx_check=yes
7659 LIBS="$LIBS -lsecpw"
7660 ;;
7661 esac
7662 ;;
7663*-*-irix5*)
7664 PATH="$PATH:/usr/etc"
7665
7666cat >>confdefs.h <<\_ACEOF
7667#define BROKEN_INET_NTOA 1
7668_ACEOF
7669
7670 cat >>confdefs.h <<\_ACEOF
7671#define SETEUID_BREAKS_SETUID 1
7672_ACEOF
7673
7674 cat >>confdefs.h <<\_ACEOF
7675#define BROKEN_SETREUID 1
7676_ACEOF
7677
7678 cat >>confdefs.h <<\_ACEOF
7679#define BROKEN_SETREGID 1
7680_ACEOF
7681
7682
7683cat >>confdefs.h <<\_ACEOF
7684#define WITH_ABBREV_NO_TTY 1
7685_ACEOF
7686
7687 cat >>confdefs.h <<\_ACEOF
7688#define LOCKED_PASSWD_STRING "*LK*"
7689_ACEOF
7690
7691 ;;
7692*-*-irix6*)
7693 PATH="$PATH:/usr/etc"
7694
7695cat >>confdefs.h <<\_ACEOF
7696#define WITH_IRIX_ARRAY 1
7697_ACEOF
7698
7699
7700cat >>confdefs.h <<\_ACEOF
7701#define WITH_IRIX_PROJECT 1
7702_ACEOF
7703
7704
7705cat >>confdefs.h <<\_ACEOF
7706#define WITH_IRIX_AUDIT 1
7707_ACEOF
7708
7709 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7710echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7711if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714 cat >conftest.$ac_ext <<_ACEOF
7715/* confdefs.h. */
7716_ACEOF
7717cat confdefs.h >>conftest.$ac_ext
7718cat >>conftest.$ac_ext <<_ACEOF
7719/* end confdefs.h. */
7720/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7722#define jlimit_startjob innocuous_jlimit_startjob
7723
7724/* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char jlimit_startjob (); below.
7726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727 <limits.h> exists even on freestanding compilers. */
7728
7729#ifdef __STDC__
7730# include <limits.h>
7731#else
7732# include <assert.h>
7733#endif
7734
7735#undef jlimit_startjob
7736
7737/* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7740#ifdef __cplusplus
7741extern "C"
7742#endif
7743char jlimit_startjob ();
7744/* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7748choke me
7749#endif
7750
7751int
7752main ()
7753{
7754return jlimit_startjob ();
7755 ;
7756 return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext conftest$ac_exeext
7760if { (ac_try="$ac_link"
7761case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7764esac
7765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_link") 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest$ac_exeext &&
7776 $as_test_x conftest$ac_exeext; then
7777 ac_cv_func_jlimit_startjob=yes
7778else
7779 echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_cv_func_jlimit_startjob=no
7783fi
7784
7785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7786 conftest$ac_exeext conftest.$ac_ext
7787fi
7788{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7789echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7790if test $ac_cv_func_jlimit_startjob = yes; then
7791
7792cat >>confdefs.h <<\_ACEOF
7793#define WITH_IRIX_JOBS 1
7794_ACEOF
7795
7796fi
7797
7798 cat >>confdefs.h <<\_ACEOF
7799#define BROKEN_INET_NTOA 1
7800_ACEOF
7801
7802 cat >>confdefs.h <<\_ACEOF
7803#define SETEUID_BREAKS_SETUID 1
7804_ACEOF
7805
7806 cat >>confdefs.h <<\_ACEOF
7807#define BROKEN_SETREUID 1
7808_ACEOF
7809
7810 cat >>confdefs.h <<\_ACEOF
7811#define BROKEN_SETREGID 1
7812_ACEOF
7813
7814
7815cat >>confdefs.h <<\_ACEOF
7816#define BROKEN_UPDWTMPX 1
7817_ACEOF
7818
7819 cat >>confdefs.h <<\_ACEOF
7820#define WITH_ABBREV_NO_TTY 1
7821_ACEOF
7822
7823 cat >>confdefs.h <<\_ACEOF
7824#define LOCKED_PASSWD_STRING "*LK*"
7825_ACEOF
7826
7827 ;;
7828*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7829 check_for_libcrypt_later=1
7830 cat >>confdefs.h <<\_ACEOF
7831#define PAM_TTY_KLUDGE 1
7832_ACEOF
7833
7834 cat >>confdefs.h <<\_ACEOF
7835#define LOCKED_PASSWD_PREFIX "!"
7836_ACEOF
7837
7838 cat >>confdefs.h <<\_ACEOF
7839#define SPT_TYPE SPT_REUSEARGV
7840_ACEOF
7841
7842
7843cat >>confdefs.h <<\_ACEOF
7844#define _PATH_BTMP "/var/log/btmp"
7845_ACEOF
7846
7847
7848cat >>confdefs.h <<\_ACEOF
7849#define USE_BTMP 1
7850_ACEOF
7851
7852 ;;
7853*-*-linux*)
7854 no_dev_ptmx=1
7855 check_for_libcrypt_later=1
7856 check_for_openpty_ctty_bug=1
7857
7858cat >>confdefs.h <<\_ACEOF
7859#define PAM_TTY_KLUDGE 1
7860_ACEOF
7861
7862
7863cat >>confdefs.h <<\_ACEOF
7864#define LOCKED_PASSWD_PREFIX "!"
7865_ACEOF
7866
7867 cat >>confdefs.h <<\_ACEOF
7868#define SPT_TYPE SPT_REUSEARGV
7869_ACEOF
7870
7871
7872cat >>confdefs.h <<\_ACEOF
7873#define LINK_OPNOTSUPP_ERRNO EPERM
7874_ACEOF
7875
7876
7877cat >>confdefs.h <<\_ACEOF
7878#define _PATH_BTMP "/var/log/btmp"
7879_ACEOF
7880
7881 cat >>confdefs.h <<\_ACEOF
7882#define USE_BTMP 1
7883_ACEOF
7884
7885
7886cat >>confdefs.h <<\_ACEOF
7887#define LINUX_OOM_ADJUST 1
7888_ACEOF
7889
7890 inet6_default_4in6=yes
7891 case `uname -r` in
7892 1.*|2.0.*)
7893
7894cat >>confdefs.h <<\_ACEOF
7895#define BROKEN_CMSG_TYPE 1
7896_ACEOF
7897
7898 ;;
7899 esac
7900 # tun(4) forwarding compat code
7901
7902for ac_header in linux/if_tun.h
7903do
7904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910fi
7911ac_res=`eval echo '${'$as_ac_Header'}'`
7912 { echo "$as_me:$LINENO: result: $ac_res" >&5
7913echo "${ECHO_T}$ac_res" >&6; }
7914else
7915 # Is the header compilable?
7916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7918cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924$ac_includes_default
7925#include <$ac_header>
7926_ACEOF
7927rm -f conftest.$ac_objext
7928if { (ac_try="$ac_compile"
7929case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
7944 ac_header_compiler=yes
7945else
7946 echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 ac_header_compiler=no
7950fi
7951
7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7954echo "${ECHO_T}$ac_header_compiler" >&6; }
7955
7956# Is the header present?
7957{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7959cat >conftest.$ac_ext <<_ACEOF
7960/* confdefs.h. */
7961_ACEOF
7962cat confdefs.h >>conftest.$ac_ext
7963cat >>conftest.$ac_ext <<_ACEOF
7964/* end confdefs.h. */
7965#include <$ac_header>
7966_ACEOF
7967if { (ac_try="$ac_cpp conftest.$ac_ext"
7968case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971esac
7972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } >/dev/null && {
7980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 }; then
7983 ac_header_preproc=yes
7984else
7985 echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 ac_header_preproc=no
7989fi
7990
7991rm -f conftest.err conftest.$ac_ext
7992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7993echo "${ECHO_T}$ac_header_preproc" >&6; }
7994
7995# So? What about this header?
7996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7997 yes:no: )
7998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8002 ac_header_preproc=yes
8003 ;;
8004 no:yes:* )
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8017 ( cat <<\_ASBOX
8018## ------------------------------------------- ##
8019## Report this to openssh-unix-dev@mindrot.org ##
8020## ------------------------------------------- ##
8021_ASBOX
8022 ) | sed "s/^/$as_me: WARNING: /" >&2
8023 ;;
8024esac
8025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030 eval "$as_ac_Header=\$ac_header_preproc"
8031fi
8032ac_res=`eval echo '${'$as_ac_Header'}'`
8033 { echo "$as_me:$LINENO: result: $ac_res" >&5
8034echo "${ECHO_T}$ac_res" >&6; }
8035
8036fi
8037if test `eval echo '${'$as_ac_Header'}'` = yes; then
8038 cat >>confdefs.h <<_ACEOF
8039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8040_ACEOF
8041
8042fi
8043
8044done
8045
8046 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
8047
8048cat >>confdefs.h <<\_ACEOF
8049#define SSH_TUN_LINUX 1
8050_ACEOF
8051
8052
8053cat >>confdefs.h <<\_ACEOF
8054#define SSH_TUN_COMPAT_AF 1
8055_ACEOF
8056
8057
8058cat >>confdefs.h <<\_ACEOF
8059#define SSH_TUN_PREPEND_AF 1
8060_ACEOF
8061
8062 fi
8063 ;;
8064mips-sony-bsd|mips-sony-newsos4)
8065
8066cat >>confdefs.h <<\_ACEOF
8067#define NEED_SETPGRP 1
8068_ACEOF
8069
8070 SONY=1
8071 ;;
8072*-*-netbsd*)
8073 check_for_libcrypt_before=1
8074 if test "x$withval" != "xno" ; then
8075 need_dash_r=1
8076 fi
8077
8078cat >>confdefs.h <<\_ACEOF
8079#define SSH_TUN_FREEBSD 1
8080_ACEOF
8081
8082 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8083 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8084echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8085if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087fi
8088{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8089echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8090else
8091 # Is the header compilable?
8092{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8093echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8094cat >conftest.$ac_ext <<_ACEOF
8095/* confdefs.h. */
8096_ACEOF
8097cat confdefs.h >>conftest.$ac_ext
8098cat >>conftest.$ac_ext <<_ACEOF
8099/* end confdefs.h. */
8100$ac_includes_default
8101#include <net/if_tap.h>
8102_ACEOF
8103rm -f conftest.$ac_objext
8104if { (ac_try="$ac_compile"
8105case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108esac
8109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_header_compiler=yes
8121else
8122 echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 ac_header_compiler=no
8126fi
8127
8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8130echo "${ECHO_T}$ac_header_compiler" >&6; }
8131
8132# Is the header present?
8133{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8134echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8135cat >conftest.$ac_ext <<_ACEOF
8136/* confdefs.h. */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h. */
8141#include <net/if_tap.h>
8142_ACEOF
8143if { (ac_try="$ac_cpp conftest.$ac_ext"
8144case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147esac
8148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } >/dev/null && {
8156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 }; then
8159 ac_header_preproc=yes
8160else
8161 echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ac_header_preproc=no
8165fi
8166
8167rm -f conftest.err conftest.$ac_ext
8168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8169echo "${ECHO_T}$ac_header_preproc" >&6; }
8170
8171# So? What about this header?
8172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8173 yes:no: )
8174 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8175echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8177echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8178 ac_header_preproc=yes
8179 ;;
8180 no:yes:* )
8181 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8182echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8184echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8186echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8188echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8189 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8190echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8192echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8193 ( cat <<\_ASBOX
8194## ------------------------------------------- ##
8195## Report this to openssh-unix-dev@mindrot.org ##
8196## ------------------------------------------- ##
8197_ASBOX
8198 ) | sed "s/^/$as_me: WARNING: /" >&2
8199 ;;
8200esac
8201{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8202echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8203if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 ac_cv_header_net_if_tap_h=$ac_header_preproc
8207fi
8208{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8209echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8210
8211fi
8212if test $ac_cv_header_net_if_tap_h = yes; then
8213 :
8214else
8215
8216cat >>confdefs.h <<\_ACEOF
8217#define SSH_TUN_NO_L2 1
8218_ACEOF
8219
8220fi
8221
8222
8223
8224cat >>confdefs.h <<\_ACEOF
8225#define SSH_TUN_PREPEND_AF 1
8226_ACEOF
8227
8228 ;;
8229*-*-freebsd*)
8230 check_for_libcrypt_later=1
8231
8232cat >>confdefs.h <<\_ACEOF
8233#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8234_ACEOF
8235
8236
8237cat >>confdefs.h <<\_ACEOF
8238#define SSH_TUN_FREEBSD 1
8239_ACEOF
8240
8241 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8242 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8243echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8244if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246fi
8247{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8248echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8249else
8250 # Is the header compilable?
8251{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8252echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8253cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259$ac_includes_default
8260#include <net/if_tap.h>
8261_ACEOF
8262rm -f conftest.$ac_objext
8263if { (ac_try="$ac_compile"
8264case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_header_compiler=yes
8280else
8281 echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 ac_header_compiler=no
8285fi
8286
8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8289echo "${ECHO_T}$ac_header_compiler" >&6; }
8290
8291# Is the header present?
8292{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8293echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8294cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h. */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h. */
8300#include <net/if_tap.h>
8301_ACEOF
8302if { (ac_try="$ac_cpp conftest.$ac_ext"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } >/dev/null && {
8315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 }; then
8318 ac_header_preproc=yes
8319else
8320 echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 ac_header_preproc=no
8324fi
8325
8326rm -f conftest.err conftest.$ac_ext
8327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328echo "${ECHO_T}$ac_header_preproc" >&6; }
8329
8330# So? What about this header?
8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8332 yes:no: )
8333 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8336echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8337 ac_header_preproc=yes
8338 ;;
8339 no:yes:* )
8340 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8341echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8343echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8345echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8347echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8349echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8351echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8352 ( cat <<\_ASBOX
8353## ------------------------------------------- ##
8354## Report this to openssh-unix-dev@mindrot.org ##
8355## ------------------------------------------- ##
8356_ASBOX
8357 ) | sed "s/^/$as_me: WARNING: /" >&2
8358 ;;
8359esac
8360{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8361echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8362if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364else
8365 ac_cv_header_net_if_tap_h=$ac_header_preproc
8366fi
8367{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8368echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8369
8370fi
8371if test $ac_cv_header_net_if_tap_h = yes; then
8372 :
8373else
8374
8375cat >>confdefs.h <<\_ACEOF
8376#define SSH_TUN_NO_L2 1
8377_ACEOF
8378
8379fi
8380
8381
8382
8383cat >>confdefs.h <<\_ACEOF
8384#define BROKEN_GLOB 1
8385_ACEOF
8386
8387 ;;
8388*-*-bsdi*)
8389 cat >>confdefs.h <<\_ACEOF
8390#define SETEUID_BREAKS_SETUID 1
8391_ACEOF
8392
8393 cat >>confdefs.h <<\_ACEOF
8394#define BROKEN_SETREUID 1
8395_ACEOF
8396
8397 cat >>confdefs.h <<\_ACEOF
8398#define BROKEN_SETREGID 1
8399_ACEOF
8400
8401 ;;
8402*-next-*)
8403 conf_lastlog_location="/usr/adm/lastlog"
8404 conf_utmp_location=/etc/utmp
8405 conf_wtmp_location=/usr/adm/wtmp
8406 MAIL=/usr/spool/mail
8407
8408cat >>confdefs.h <<\_ACEOF
8409#define HAVE_NEXT 1
8410_ACEOF
8411
8412 cat >>confdefs.h <<\_ACEOF
8413#define BROKEN_REALPATH 1
8414_ACEOF
8415
8416 cat >>confdefs.h <<\_ACEOF
8417#define USE_PIPES 1
8418_ACEOF
8419
8420
8421cat >>confdefs.h <<\_ACEOF
8422#define BROKEN_SAVED_UIDS 1
8423_ACEOF
8424
8425 ;;
8426*-*-openbsd*)
8427
8428cat >>confdefs.h <<\_ACEOF
8429#define HAVE_ATTRIBUTE__SENTINEL__ 1
8430_ACEOF
8431
8432
8433cat >>confdefs.h <<\_ACEOF
8434#define HAVE_ATTRIBUTE__BOUNDED__ 1
8435_ACEOF
8436
8437
8438cat >>confdefs.h <<\_ACEOF
8439#define SSH_TUN_OPENBSD 1
8440_ACEOF
8441
8442
8443cat >>confdefs.h <<\_ACEOF
8444#define SYSLOG_R_SAFE_IN_SIGHAND 1
8445_ACEOF
8446
8447 ;;
8448*-*-solaris*)
8449 if test "x$withval" != "xno" ; then
8450 need_dash_r=1
8451 fi
8452 cat >>confdefs.h <<\_ACEOF
8453#define PAM_SUN_CODEBASE 1
8454_ACEOF
8455
8456 cat >>confdefs.h <<\_ACEOF
8457#define LOGIN_NEEDS_UTMPX 1
8458_ACEOF
8459
8460
8461cat >>confdefs.h <<\_ACEOF
8462#define LOGIN_NEEDS_TERM 1
8463_ACEOF
8464
8465 cat >>confdefs.h <<\_ACEOF
8466#define PAM_TTY_KLUDGE 1
8467_ACEOF
8468
8469
8470cat >>confdefs.h <<\_ACEOF
8471#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8472_ACEOF
8473
8474 cat >>confdefs.h <<\_ACEOF
8475#define LOCKED_PASSWD_STRING "*LK*"
8476_ACEOF
8477
8478 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8479
8480cat >>confdefs.h <<\_ACEOF
8481#define SSHD_ACQUIRES_CTTY 1
8482_ACEOF
8483
8484
8485cat >>confdefs.h <<\_ACEOF
8486#define PASSWD_NEEDS_USERNAME 1
8487_ACEOF
8488
8489
8490cat >>confdefs.h <<\_ACEOF
8491#define BROKEN_TCGETATTR_ICANON 1
8492_ACEOF
8493
8494 external_path_file=/etc/default/login
8495 # hardwire lastlog location (can't detect it on some versions)
8496 conf_lastlog_location="/var/adm/lastlog"
8497 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8498echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8499 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8500 if test "$sol2ver" -ge 8; then
8501 { echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6; }
8503 cat >>confdefs.h <<\_ACEOF
8504#define DISABLE_UTMP 1
8505_ACEOF
8506
8507
8508cat >>confdefs.h <<\_ACEOF
8509#define DISABLE_WTMP 1
8510_ACEOF
8511
8512 else
8513 { echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6; }
8515 fi
8516
8517# Check whether --with-solaris-contracts was given.
8518if test "${with_solaris_contracts+set}" = set; then
8519 withval=$with_solaris_contracts;
8520 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8521echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8522if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524else
8525 ac_check_lib_save_LIBS=$LIBS
8526LIBS="-lcontract $LIBS"
8527cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533
8534/* Override any GCC internal prototype to avoid an error.
8535 Use char because int might match the return type of a GCC
8536 builtin and then its argument prototype would still apply. */
8537#ifdef __cplusplus
8538extern "C"
8539#endif
8540char ct_tmpl_activate ();
8541int
8542main ()
8543{
8544return ct_tmpl_activate ();
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext conftest$ac_exeext
8550if { (ac_try="$ac_link"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_link") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest$ac_exeext &&
8566 $as_test_x conftest$ac_exeext; then
8567 ac_cv_lib_contract_ct_tmpl_activate=yes
8568else
8569 echo "$as_me: failed program was:" >&5
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_cv_lib_contract_ct_tmpl_activate=no
8573fi
8574
8575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8576 conftest$ac_exeext conftest.$ac_ext
8577LIBS=$ac_check_lib_save_LIBS
8578fi
8579{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8580echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8581if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8582
8583cat >>confdefs.h <<\_ACEOF
8584#define USE_SOLARIS_PROCESS_CONTRACTS 1
8585_ACEOF
8586
8587 SSHDLIBS="$SSHDLIBS -lcontract"
8588
8589 SPC_MSG="yes"
8590fi
8591
8592
8593fi
8594
8595 ;;
8596*-*-sunos4*)
8597 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8598
8599for ac_func in getpwanam
8600do
8601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8602{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606else
8607 cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h. */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h. */
8613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8615#define $ac_func innocuous_$ac_func
8616
8617/* System header to define __stub macros and hopefully few prototypes,
8618 which can conflict with char $ac_func (); below.
8619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8620 <limits.h> exists even on freestanding compilers. */
8621
8622#ifdef __STDC__
8623# include <limits.h>
8624#else
8625# include <assert.h>
8626#endif
8627
8628#undef $ac_func
8629
8630/* Override any GCC internal prototype to avoid an error.
8631 Use char because int might match the return type of a GCC
8632 builtin and then its argument prototype would still apply. */
8633#ifdef __cplusplus
8634extern "C"
8635#endif
8636char $ac_func ();
8637/* The GNU C library defines this for functions which it implements
8638 to always fail with ENOSYS. Some functions are actually named
8639 something starting with __ and the normal name is an alias. */
8640#if defined __stub_$ac_func || defined __stub___$ac_func
8641choke me
8642#endif
8643
8644int
8645main ()
8646{
8647return $ac_func ();
8648 ;
8649 return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext conftest$ac_exeext
8653if { (ac_try="$ac_link"
8654case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_link") 2>conftest.er1
8660 ac_status=$?
8661 grep -v '^ *+' conftest.er1 >conftest.err
8662 rm -f conftest.er1
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } && {
8666 test -z "$ac_c_werror_flag" ||
8667 test ! -s conftest.err
8668 } && test -s conftest$ac_exeext &&
8669 $as_test_x conftest$ac_exeext; then
8670 eval "$as_ac_var=yes"
8671else
8672 echo "$as_me: failed program was:" >&5
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 eval "$as_ac_var=no"
8676fi
8677
8678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8679 conftest$ac_exeext conftest.$ac_ext
8680fi
8681ac_res=`eval echo '${'$as_ac_var'}'`
8682 { echo "$as_me:$LINENO: result: $ac_res" >&5
8683echo "${ECHO_T}$ac_res" >&6; }
8684if test `eval echo '${'$as_ac_var'}'` = yes; then
8685 cat >>confdefs.h <<_ACEOF
8686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8687_ACEOF
8688
8689fi
8690done
8691
8692 cat >>confdefs.h <<\_ACEOF
8693#define PAM_SUN_CODEBASE 1
8694_ACEOF
8695
8696 conf_utmp_location=/etc/utmp
8697 conf_wtmp_location=/var/adm/wtmp
8698 conf_lastlog_location=/var/adm/lastlog
8699 cat >>confdefs.h <<\_ACEOF
8700#define USE_PIPES 1
8701_ACEOF
8702
8703 ;;
8704*-ncr-sysv*)
8705 LIBS="$LIBS -lc89"
8706 cat >>confdefs.h <<\_ACEOF
8707#define USE_PIPES 1
8708_ACEOF
8709
8710 cat >>confdefs.h <<\_ACEOF
8711#define SSHD_ACQUIRES_CTTY 1
8712_ACEOF
8713
8714 cat >>confdefs.h <<\_ACEOF
8715#define SETEUID_BREAKS_SETUID 1
8716_ACEOF
8717
8718 cat >>confdefs.h <<\_ACEOF
8719#define BROKEN_SETREUID 1
8720_ACEOF
8721
8722 cat >>confdefs.h <<\_ACEOF
8723#define BROKEN_SETREGID 1
8724_ACEOF
8725
8726 ;;
8727*-sni-sysv*)
8728 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8729
8730{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8731echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8732if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734else
8735 ac_check_lib_save_LIBS=$LIBS
8736LIBS="-ldl $LIBS"
8737cat >conftest.$ac_ext <<_ACEOF
8738/* confdefs.h. */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h. */
8743
8744/* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8747#ifdef __cplusplus
8748extern "C"
8749#endif
8750char dlsym ();
8751int
8752main ()
8753{
8754return dlsym ();
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759rm -f conftest.$ac_objext conftest$ac_exeext
8760if { (ac_try="$ac_link"
8761case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764esac
8765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest$ac_exeext &&
8776 $as_test_x conftest$ac_exeext; then
8777 ac_cv_lib_dl_dlsym=yes
8778else
8779 echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 ac_cv_lib_dl_dlsym=no
8783fi
8784
8785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8786 conftest$ac_exeext conftest.$ac_ext
8787LIBS=$ac_check_lib_save_LIBS
8788fi
8789{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8790echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8791if test $ac_cv_lib_dl_dlsym = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793#define HAVE_LIBDL 1
8794_ACEOF
8795
8796 LIBS="-ldl $LIBS"
8797
8798fi
8799
8800 # -lresolv needs to be at the end of LIBS or DNS lookups break
8801 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8802echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8803if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 ac_check_lib_save_LIBS=$LIBS
8807LIBS="-lresolv $LIBS"
8808cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
8814
8815/* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char res_query ();
8822int
8823main ()
8824{
8825return res_query ();
8826 ;
8827 return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext conftest$ac_exeext
8831if { (ac_try="$ac_link"
8832case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835esac
8836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_link") 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext &&
8847 $as_test_x conftest$ac_exeext; then
8848 ac_cv_lib_resolv_res_query=yes
8849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_cv_lib_resolv_res_query=no
8854fi
8855
8856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857 conftest$ac_exeext conftest.$ac_ext
8858LIBS=$ac_check_lib_save_LIBS
8859fi
8860{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8861echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8862if test $ac_cv_lib_resolv_res_query = yes; then
8863 LIBS="$LIBS -lresolv"
8864fi
8865
8866 IPADDR_IN_DISPLAY=yes
8867 cat >>confdefs.h <<\_ACEOF
8868#define USE_PIPES 1
8869_ACEOF
8870
8871 cat >>confdefs.h <<\_ACEOF
8872#define IP_TOS_IS_BROKEN 1
8873_ACEOF
8874
8875 cat >>confdefs.h <<\_ACEOF
8876#define SETEUID_BREAKS_SETUID 1
8877_ACEOF
8878
8879 cat >>confdefs.h <<\_ACEOF
8880#define BROKEN_SETREUID 1
8881_ACEOF
8882
8883 cat >>confdefs.h <<\_ACEOF
8884#define BROKEN_SETREGID 1
8885_ACEOF
8886
8887 cat >>confdefs.h <<\_ACEOF
8888#define SSHD_ACQUIRES_CTTY 1
8889_ACEOF
8890
8891 external_path_file=/etc/default/login
8892 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8893 # Attention: always take care to bind libsocket and libnsl before libc,
8894 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8895 ;;
8896# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8897*-*-sysv4.2*)
8898 cat >>confdefs.h <<\_ACEOF
8899#define USE_PIPES 1
8900_ACEOF
8901
8902 cat >>confdefs.h <<\_ACEOF
8903#define SETEUID_BREAKS_SETUID 1
8904_ACEOF
8905
8906 cat >>confdefs.h <<\_ACEOF
8907#define BROKEN_SETREUID 1
8908_ACEOF
8909
8910 cat >>confdefs.h <<\_ACEOF
8911#define BROKEN_SETREGID 1
8912_ACEOF
8913
8914
8915cat >>confdefs.h <<\_ACEOF
8916#define PASSWD_NEEDS_USERNAME 1
8917_ACEOF
8918
8919 cat >>confdefs.h <<\_ACEOF
8920#define LOCKED_PASSWD_STRING "*LK*"
8921_ACEOF
8922
8923 ;;
8924# UnixWare 7.x, OpenUNIX 8
8925*-*-sysv5*)
8926 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8927
8928cat >>confdefs.h <<\_ACEOF
8929#define UNIXWARE_LONG_PASSWORDS 1
8930_ACEOF
8931
8932 cat >>confdefs.h <<\_ACEOF
8933#define USE_PIPES 1
8934_ACEOF
8935
8936 cat >>confdefs.h <<\_ACEOF
8937#define SETEUID_BREAKS_SETUID 1
8938_ACEOF
8939
8940 cat >>confdefs.h <<\_ACEOF
8941#define BROKEN_GETADDRINFO 1
8942_ACEOF
8943
8944 cat >>confdefs.h <<\_ACEOF
8945#define BROKEN_SETREUID 1
8946_ACEOF
8947
8948 cat >>confdefs.h <<\_ACEOF
8949#define BROKEN_SETREGID 1
8950_ACEOF
8951
8952 cat >>confdefs.h <<\_ACEOF
8953#define PASSWD_NEEDS_USERNAME 1
8954_ACEOF
8955
8956 case "$host" in
8957 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8958 TEST_SHELL=/u95/bin/sh
8959
8960cat >>confdefs.h <<\_ACEOF
8961#define BROKEN_LIBIAF 1
8962_ACEOF
8963
8964 cat >>confdefs.h <<\_ACEOF
8965#define BROKEN_UPDWTMPX 1
8966_ACEOF
8967
8968 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
8969echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
8970if test "${ac_cv_lib_prot_getluid+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972else
8973 ac_check_lib_save_LIBS=$LIBS
8974LIBS="-lprot $LIBS"
8975cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h. */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h. */
8981
8982/* Override any GCC internal prototype to avoid an error.
8983 Use char because int might match the return type of a GCC
8984 builtin and then its argument prototype would still apply. */
8985#ifdef __cplusplus
8986extern "C"
8987#endif
8988char getluid ();
8989int
8990main ()
8991{
8992return getluid ();
8993 ;
8994 return 0;
8995}
8996_ACEOF
8997rm -f conftest.$ac_objext conftest$ac_exeext
8998if { (ac_try="$ac_link"
8999case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002esac
9003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_link") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest$ac_exeext &&
9014 $as_test_x conftest$ac_exeext; then
9015 ac_cv_lib_prot_getluid=yes
9016else
9017 echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 ac_cv_lib_prot_getluid=no
9021fi
9022
9023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9024 conftest$ac_exeext conftest.$ac_ext
9025LIBS=$ac_check_lib_save_LIBS
9026fi
9027{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
9028echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
9029if test $ac_cv_lib_prot_getluid = yes; then
9030 LIBS="$LIBS -lprot"
9031
9032
9033for ac_func in getluid setluid
9034do
9035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9036{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040else
9041 cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h. */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h. */
9047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9049#define $ac_func innocuous_$ac_func
9050
9051/* System header to define __stub macros and hopefully few prototypes,
9052 which can conflict with char $ac_func (); below.
9053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9054 <limits.h> exists even on freestanding compilers. */
9055
9056#ifdef __STDC__
9057# include <limits.h>
9058#else
9059# include <assert.h>
9060#endif
9061
9062#undef $ac_func
9063
9064/* Override any GCC internal prototype to avoid an error.
9065 Use char because int might match the return type of a GCC
9066 builtin and then its argument prototype would still apply. */
9067#ifdef __cplusplus
9068extern "C"
9069#endif
9070char $ac_func ();
9071/* The GNU C library defines this for functions which it implements
9072 to always fail with ENOSYS. Some functions are actually named
9073 something starting with __ and the normal name is an alias. */
9074#if defined __stub_$ac_func || defined __stub___$ac_func
9075choke me
9076#endif
9077
9078int
9079main ()
9080{
9081return $ac_func ();
9082 ;
9083 return 0;
9084}
9085_ACEOF
9086rm -f conftest.$ac_objext conftest$ac_exeext
9087if { (ac_try="$ac_link"
9088case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091esac
9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_link") 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && {
9100 test -z "$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 } && test -s conftest$ac_exeext &&
9103 $as_test_x conftest$ac_exeext; then
9104 eval "$as_ac_var=yes"
9105else
9106 echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109 eval "$as_ac_var=no"
9110fi
9111
9112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9113 conftest$ac_exeext conftest.$ac_ext
9114fi
9115ac_res=`eval echo '${'$as_ac_var'}'`
9116 { echo "$as_me:$LINENO: result: $ac_res" >&5
9117echo "${ECHO_T}$ac_res" >&6; }
9118if test `eval echo '${'$as_ac_var'}'` = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9121_ACEOF
9122
9123fi
9124done
9125
9126 cat >>confdefs.h <<\_ACEOF
9127#define HAVE_SECUREWARE 1
9128_ACEOF
9129
9130 cat >>confdefs.h <<\_ACEOF
9131#define DISABLE_SHADOW 1
9132_ACEOF
9133
9134
9135fi
9136
9137 ;;
9138 *) cat >>confdefs.h <<\_ACEOF
9139#define LOCKED_PASSWD_STRING "*LK*"
9140_ACEOF
9141
9142 check_for_libcrypt_later=1
9143 ;;
9144 esac
9145 ;;
9146*-*-sysv*)
9147 ;;
9148# SCO UNIX and OEM versions of SCO UNIX
9149*-*-sco3.2v4*)
9150 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
9151echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
9152 { (exit 1); exit 1; }; }
9153 ;;
9154# SCO OpenServer 5.x
9155*-*-sco3.2v5*)
9156 if test -z "$GCC"; then
9157 CFLAGS="$CFLAGS -belf"
9158 fi
9159 LIBS="$LIBS -lprot -lx -ltinfo -lm"
9160 no_dev_ptmx=1
9161 cat >>confdefs.h <<\_ACEOF
9162#define USE_PIPES 1
9163_ACEOF
9164
9165 cat >>confdefs.h <<\_ACEOF
9166#define HAVE_SECUREWARE 1
9167_ACEOF
9168
9169 cat >>confdefs.h <<\_ACEOF
9170#define DISABLE_SHADOW 1
9171_ACEOF
9172
9173 cat >>confdefs.h <<\_ACEOF
9174#define DISABLE_FD_PASSING 1
9175_ACEOF
9176
9177 cat >>confdefs.h <<\_ACEOF
9178#define SETEUID_BREAKS_SETUID 1
9179_ACEOF
9180
9181 cat >>confdefs.h <<\_ACEOF
9182#define BROKEN_GETADDRINFO 1
9183_ACEOF
9184
9185 cat >>confdefs.h <<\_ACEOF
9186#define BROKEN_SETREUID 1
9187_ACEOF
9188
9189 cat >>confdefs.h <<\_ACEOF
9190#define BROKEN_SETREGID 1
9191_ACEOF
9192
9193 cat >>confdefs.h <<\_ACEOF
9194#define WITH_ABBREV_NO_TTY 1
9195_ACEOF
9196
9197 cat >>confdefs.h <<\_ACEOF
9198#define BROKEN_UPDWTMPX 1
9199_ACEOF
9200
9201 cat >>confdefs.h <<\_ACEOF
9202#define PASSWD_NEEDS_USERNAME 1
9203_ACEOF
9204
9205
9206
9207for ac_func in getluid setluid
9208do
9209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9210{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9223#define $ac_func innocuous_$ac_func
9224
9225/* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char $ac_func (); below.
9227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 <limits.h> exists even on freestanding compilers. */
9229
9230#ifdef __STDC__
9231# include <limits.h>
9232#else
9233# include <assert.h>
9234#endif
9235
9236#undef $ac_func
9237
9238/* Override any GCC internal prototype to avoid an error.
9239 Use char because int might match the return type of a GCC
9240 builtin and then its argument prototype would still apply. */
9241#ifdef __cplusplus
9242extern "C"
9243#endif
9244char $ac_func ();
9245/* The GNU C library defines this for functions which it implements
9246 to always fail with ENOSYS. Some functions are actually named
9247 something starting with __ and the normal name is an alias. */
9248#if defined __stub_$ac_func || defined __stub___$ac_func
9249choke me
9250#endif
9251
9252int
9253main ()
9254{
9255return $ac_func ();
9256 ;
9257 return 0;
9258}
9259_ACEOF
9260rm -f conftest.$ac_objext conftest$ac_exeext
9261if { (ac_try="$ac_link"
9262case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265esac
9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_link") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest$ac_exeext &&
9277 $as_test_x conftest$ac_exeext; then
9278 eval "$as_ac_var=yes"
9279else
9280 echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283 eval "$as_ac_var=no"
9284fi
9285
9286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287 conftest$ac_exeext conftest.$ac_ext
9288fi
9289ac_res=`eval echo '${'$as_ac_var'}'`
9290 { echo "$as_me:$LINENO: result: $ac_res" >&5
9291echo "${ECHO_T}$ac_res" >&6; }
9292if test `eval echo '${'$as_ac_var'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9295_ACEOF
9296
9297fi
9298done
9299
9300 MANTYPE=man
9301 TEST_SHELL=ksh
9302 ;;
9303*-*-unicosmk*)
9304
9305cat >>confdefs.h <<\_ACEOF
9306#define NO_SSH_LASTLOG 1
9307_ACEOF
9308
9309 cat >>confdefs.h <<\_ACEOF
9310#define SETEUID_BREAKS_SETUID 1
9311_ACEOF
9312
9313 cat >>confdefs.h <<\_ACEOF
9314#define BROKEN_SETREUID 1
9315_ACEOF
9316
9317 cat >>confdefs.h <<\_ACEOF
9318#define BROKEN_SETREGID 1
9319_ACEOF
9320
9321 cat >>confdefs.h <<\_ACEOF
9322#define USE_PIPES 1
9323_ACEOF
9324
9325 cat >>confdefs.h <<\_ACEOF
9326#define DISABLE_FD_PASSING 1
9327_ACEOF
9328
9329 LDFLAGS="$LDFLAGS"
9330 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9331 MANTYPE=cat
9332 ;;
9333*-*-unicosmp*)
9334 cat >>confdefs.h <<\_ACEOF
9335#define SETEUID_BREAKS_SETUID 1
9336_ACEOF
9337
9338 cat >>confdefs.h <<\_ACEOF
9339#define BROKEN_SETREUID 1
9340_ACEOF
9341
9342 cat >>confdefs.h <<\_ACEOF
9343#define BROKEN_SETREGID 1
9344_ACEOF
9345
9346 cat >>confdefs.h <<\_ACEOF
9347#define WITH_ABBREV_NO_TTY 1
9348_ACEOF
9349
9350 cat >>confdefs.h <<\_ACEOF
9351#define USE_PIPES 1
9352_ACEOF
9353
9354 cat >>confdefs.h <<\_ACEOF
9355#define DISABLE_FD_PASSING 1
9356_ACEOF
9357
9358 LDFLAGS="$LDFLAGS"
9359 LIBS="$LIBS -lgen -lacid -ldb"
9360 MANTYPE=cat
9361 ;;
9362*-*-unicos*)
9363 cat >>confdefs.h <<\_ACEOF
9364#define SETEUID_BREAKS_SETUID 1
9365_ACEOF
9366
9367 cat >>confdefs.h <<\_ACEOF
9368#define BROKEN_SETREUID 1
9369_ACEOF
9370
9371 cat >>confdefs.h <<\_ACEOF
9372#define BROKEN_SETREGID 1
9373_ACEOF
9374
9375 cat >>confdefs.h <<\_ACEOF
9376#define USE_PIPES 1
9377_ACEOF
9378
9379 cat >>confdefs.h <<\_ACEOF
9380#define DISABLE_FD_PASSING 1
9381_ACEOF
9382
9383 cat >>confdefs.h <<\_ACEOF
9384#define NO_SSH_LASTLOG 1
9385_ACEOF
9386
9387 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9388 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9389 MANTYPE=cat
9390 ;;
9391*-dec-osf*)
9392 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9393echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9394 no_osfsia=""
9395
9396# Check whether --with-osfsia was given.
9397if test "${with_osfsia+set}" = set; then
9398 withval=$with_osfsia;
9399 if test "x$withval" = "xno" ; then
9400 { echo "$as_me:$LINENO: result: disabled" >&5
9401echo "${ECHO_T}disabled" >&6; }
9402 no_osfsia=1
9403 fi
9404
9405fi
9406
9407 if test -z "$no_osfsia" ; then
9408 if test -f /etc/sia/matrix.conf; then
9409 { echo "$as_me:$LINENO: result: yes" >&5
9410echo "${ECHO_T}yes" >&6; }
9411
9412cat >>confdefs.h <<\_ACEOF
9413#define HAVE_OSF_SIA 1
9414_ACEOF
9415
9416
9417cat >>confdefs.h <<\_ACEOF
9418#define DISABLE_LOGIN 1
9419_ACEOF
9420
9421 cat >>confdefs.h <<\_ACEOF
9422#define DISABLE_FD_PASSING 1
9423_ACEOF
9424
9425 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9426 SIA_MSG="yes"
9427 else
9428 { echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6; }
9430
9431cat >>confdefs.h <<\_ACEOF
9432#define LOCKED_PASSWD_SUBSTR "Nologin"
9433_ACEOF
9434
9435 fi
9436 fi
9437 cat >>confdefs.h <<\_ACEOF
9438#define BROKEN_GETADDRINFO 1
9439_ACEOF
9440
9441 cat >>confdefs.h <<\_ACEOF
9442#define SETEUID_BREAKS_SETUID 1
9443_ACEOF
9444
9445 cat >>confdefs.h <<\_ACEOF
9446#define BROKEN_SETREUID 1
9447_ACEOF
9448
9449 cat >>confdefs.h <<\_ACEOF
9450#define BROKEN_SETREGID 1
9451_ACEOF
9452
9453
9454cat >>confdefs.h <<\_ACEOF
9455#define BROKEN_READV_COMPARISON 1
9456_ACEOF
9457
9458 ;;
9459
9460*-*-nto-qnx*)
9461 cat >>confdefs.h <<\_ACEOF
9462#define USE_PIPES 1
9463_ACEOF
9464
9465 cat >>confdefs.h <<\_ACEOF
9466#define NO_X11_UNIX_SOCKETS 1
9467_ACEOF
9468
9469
9470cat >>confdefs.h <<\_ACEOF
9471#define MISSING_NFDBITS 1
9472_ACEOF
9473
9474
9475cat >>confdefs.h <<\_ACEOF
9476#define MISSING_HOWMANY 1
9477_ACEOF
9478
9479
9480cat >>confdefs.h <<\_ACEOF
9481#define MISSING_FD_MASK 1
9482_ACEOF
9483
9484 cat >>confdefs.h <<\_ACEOF
9485#define DISABLE_LASTLOG 1
9486_ACEOF
9487
9488 cat >>confdefs.h <<\_ACEOF
9489#define SSHD_ACQUIRES_CTTY 1
9490_ACEOF
9491
9492
9493cat >>confdefs.h <<\_ACEOF
9494#define BROKEN_SHADOW_EXPIRE 1
9495_ACEOF
9496
9497 enable_etc_default_login=no # has incompatible /etc/default/login
9498 case "$host" in
9499 *-*-nto-qnx6*)
9500 cat >>confdefs.h <<\_ACEOF
9501#define DISABLE_FD_PASSING 1
9502_ACEOF
9503
9504 ;;
9505 esac
9506 ;;
9507
9508*-*-ultrix*)
9509
9510cat >>confdefs.h <<\_ACEOF
9511#define BROKEN_GETGROUPS 1
9512_ACEOF
9513
9514
9515cat >>confdefs.h <<\_ACEOF
9516#define BROKEN_MMAP 1
9517_ACEOF
9518
9519 cat >>confdefs.h <<\_ACEOF
9520#define NEED_SETPGRP 1
9521_ACEOF
9522
9523
9524cat >>confdefs.h <<\_ACEOF
9525#define HAVE_SYS_SYSLOG_H 1
9526_ACEOF
9527
9528 ;;
9529
9530*-*-lynxos)
9531 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9532 cat >>confdefs.h <<\_ACEOF
9533#define MISSING_HOWMANY 1
9534_ACEOF
9535
9536
9537cat >>confdefs.h <<\_ACEOF
9538#define BROKEN_SETVBUF 1
9539_ACEOF
9540
9541 ;;
9542esac
9543
9544{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9545echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9546if test "$cross_compiling" = yes; then
9547 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9548echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9549
9550else
9551 cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h. */
9557
9558#include <stdio.h>
9559int main(){exit(0);}
9560
9561_ACEOF
9562rm -f conftest$ac_exeext
9563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9573 { (case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576esac
9577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 { echo "$as_me:$LINENO: result: yes" >&5
9583echo "${ECHO_T}yes" >&6; }
9584else
9585 echo "$as_me: program exited with status $ac_status" >&5
9586echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589( exit $ac_status )
9590
9591 { echo "$as_me:$LINENO: result: no" >&5
9592echo "${ECHO_T}no" >&6; }
9593 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9594echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9595 { (exit 1); exit 1; }; }
9596
9597fi
9598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9599fi
9600
9601
9602
9603# Checks for libraries.
9604{ echo "$as_me:$LINENO: checking for yp_match" >&5
9605echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9606if test "${ac_cv_func_yp_match+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617#define yp_match innocuous_yp_match
9618
9619/* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char yp_match (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9623
9624#ifdef __STDC__
9625# include <limits.h>
9626#else
9627# include <assert.h>
9628#endif
9629
9630#undef yp_match
9631
9632/* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635#ifdef __cplusplus
9636extern "C"
9637#endif
9638char yp_match ();
9639/* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642#if defined __stub_yp_match || defined __stub___yp_match
9643choke me
9644#endif
9645
9646int
9647main ()
9648{
9649return yp_match ();
9650 ;
9651 return 0;
9652}
9653_ACEOF
9654rm -f conftest.$ac_objext conftest$ac_exeext
9655if { (ac_try="$ac_link"
9656case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_link") 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest$ac_exeext &&
9671 $as_test_x conftest$ac_exeext; then
9672 ac_cv_func_yp_match=yes
9673else
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_cv_func_yp_match=no
9678fi
9679
9680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681 conftest$ac_exeext conftest.$ac_ext
9682fi
9683{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9684echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9685if test $ac_cv_func_yp_match = yes; then
9686 :
9687else
9688
9689{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9690echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9691if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694 ac_check_lib_save_LIBS=$LIBS
9695LIBS="-lnsl $LIBS"
9696cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
9702
9703/* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709char yp_match ();
9710int
9711main ()
9712{
9713return yp_match ();
9714 ;
9715 return 0;
9716}
9717_ACEOF
9718rm -f conftest.$ac_objext conftest$ac_exeext
9719if { (ac_try="$ac_link"
9720case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723esac
9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext &&
9735 $as_test_x conftest$ac_exeext; then
9736 ac_cv_lib_nsl_yp_match=yes
9737else
9738 echo "$as_me: failed program was:" >&5
9739sed 's/^/| /' conftest.$ac_ext >&5
9740
9741 ac_cv_lib_nsl_yp_match=no
9742fi
9743
9744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745 conftest$ac_exeext conftest.$ac_ext
9746LIBS=$ac_check_lib_save_LIBS
9747fi
9748{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9749echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9750if test $ac_cv_lib_nsl_yp_match = yes; then
9751 cat >>confdefs.h <<_ACEOF
9752#define HAVE_LIBNSL 1
9753_ACEOF
9754
9755 LIBS="-lnsl $LIBS"
9756
9757fi
9758
9759fi
9760
9761{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9762echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9763if test "${ac_cv_func_setsockopt+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765else
9766 cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9774#define setsockopt innocuous_setsockopt
9775
9776/* System header to define __stub macros and hopefully few prototypes,
9777 which can conflict with char setsockopt (); below.
9778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9779 <limits.h> exists even on freestanding compilers. */
9780
9781#ifdef __STDC__
9782# include <limits.h>
9783#else
9784# include <assert.h>
9785#endif
9786
9787#undef setsockopt
9788
9789/* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9792#ifdef __cplusplus
9793extern "C"
9794#endif
9795char setsockopt ();
9796/* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799#if defined __stub_setsockopt || defined __stub___setsockopt
9800choke me
9801#endif
9802
9803int
9804main ()
9805{
9806return setsockopt ();
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext conftest$ac_exeext
9812if { (ac_try="$ac_link"
9813case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816esac
9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest$ac_exeext &&
9828 $as_test_x conftest$ac_exeext; then
9829 ac_cv_func_setsockopt=yes
9830else
9831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_func_setsockopt=no
9835fi
9836
9837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9838 conftest$ac_exeext conftest.$ac_ext
9839fi
9840{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9841echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9842if test $ac_cv_func_setsockopt = yes; then
9843 :
9844else
9845
9846{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9847echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9848if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851 ac_check_lib_save_LIBS=$LIBS
9852LIBS="-lsocket $LIBS"
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h. */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h. */
9859
9860/* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9863#ifdef __cplusplus
9864extern "C"
9865#endif
9866char setsockopt ();
9867int
9868main ()
9869{
9870return setsockopt ();
9871 ;
9872 return 0;
9873}
9874_ACEOF
9875rm -f conftest.$ac_objext conftest$ac_exeext
9876if { (ac_try="$ac_link"
9877case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext &&
9892 $as_test_x conftest$ac_exeext; then
9893 ac_cv_lib_socket_setsockopt=yes
9894else
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_lib_socket_setsockopt=no
9899fi
9900
9901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902 conftest$ac_exeext conftest.$ac_ext
9903LIBS=$ac_check_lib_save_LIBS
9904fi
9905{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9906echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9907if test $ac_cv_lib_socket_setsockopt = yes; then
9908 cat >>confdefs.h <<_ACEOF
9909#define HAVE_LIBSOCKET 1
9910_ACEOF
9911
9912 LIBS="-lsocket $LIBS"
9913
9914fi
9915
9916fi
9917
9918
9919
9920for ac_func in dirname
9921do
9922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9923{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9925if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928 cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h. */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h. */
9934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9936#define $ac_func innocuous_$ac_func
9937
9938/* System header to define __stub macros and hopefully few prototypes,
9939 which can conflict with char $ac_func (); below.
9940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9941 <limits.h> exists even on freestanding compilers. */
9942
9943#ifdef __STDC__
9944# include <limits.h>
9945#else
9946# include <assert.h>
9947#endif
9948
9949#undef $ac_func
9950
9951/* Override any GCC internal prototype to avoid an error.
9952 Use char because int might match the return type of a GCC
9953 builtin and then its argument prototype would still apply. */
9954#ifdef __cplusplus
9955extern "C"
9956#endif
9957char $ac_func ();
9958/* The GNU C library defines this for functions which it implements
9959 to always fail with ENOSYS. Some functions are actually named
9960 something starting with __ and the normal name is an alias. */
9961#if defined __stub_$ac_func || defined __stub___$ac_func
9962choke me
9963#endif
9964
9965int
9966main ()
9967{
9968return $ac_func ();
9969 ;
9970 return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (ac_try="$ac_link"
9975case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest$ac_exeext &&
9990 $as_test_x conftest$ac_exeext; then
9991 eval "$as_ac_var=yes"
9992else
9993 echo "$as_me: failed program was:" >&5
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 eval "$as_ac_var=no"
9997fi
9998
9999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10000 conftest$ac_exeext conftest.$ac_ext
10001fi
10002ac_res=`eval echo '${'$as_ac_var'}'`
10003 { echo "$as_me:$LINENO: result: $ac_res" >&5
10004echo "${ECHO_T}$ac_res" >&6; }
10005if test `eval echo '${'$as_ac_var'}'` = yes; then
10006 cat >>confdefs.h <<_ACEOF
10007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10008_ACEOF
10009
10010for ac_header in libgen.h
10011do
10012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018fi
10019ac_res=`eval echo '${'$as_ac_Header'}'`
10020 { echo "$as_me:$LINENO: result: $ac_res" >&5
10021echo "${ECHO_T}$ac_res" >&6; }
10022else
10023 # Is the header compilable?
10024{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10026cat >conftest.$ac_ext <<_ACEOF
10027/* confdefs.h. */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h. */
10032$ac_includes_default
10033#include <$ac_header>
10034_ACEOF
10035rm -f conftest.$ac_objext
10036if { (ac_try="$ac_compile"
10037case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_compile") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest.$ac_objext; then
10052 ac_header_compiler=yes
10053else
10054 echo "$as_me: failed program was:" >&5
10055sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_header_compiler=no
10058fi
10059
10060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10062echo "${ECHO_T}$ac_header_compiler" >&6; }
10063
10064# Is the header present?
10065{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10067cat >conftest.$ac_ext <<_ACEOF
10068/* confdefs.h. */
10069_ACEOF
10070cat confdefs.h >>conftest.$ac_ext
10071cat >>conftest.$ac_ext <<_ACEOF
10072/* end confdefs.h. */
10073#include <$ac_header>
10074_ACEOF
10075if { (ac_try="$ac_cpp conftest.$ac_ext"
10076case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } >/dev/null && {
10088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10090 }; then
10091 ac_header_preproc=yes
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_header_preproc=no
10097fi
10098
10099rm -f conftest.err conftest.$ac_ext
10100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10101echo "${ECHO_T}$ac_header_preproc" >&6; }
10102
10103# So? What about this header?
10104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10105 yes:no: )
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10110 ac_header_preproc=yes
10111 ;;
10112 no:yes:* )
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10125 ( cat <<\_ASBOX
10126## ------------------------------------------- ##
10127## Report this to openssh-unix-dev@mindrot.org ##
10128## ------------------------------------------- ##
10129_ASBOX
10130 ) | sed "s/^/$as_me: WARNING: /" >&2
10131 ;;
10132esac
10133{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137else
10138 eval "$as_ac_Header=\$ac_header_preproc"
10139fi
10140ac_res=`eval echo '${'$as_ac_Header'}'`
10141 { echo "$as_me:$LINENO: result: $ac_res" >&5
10142echo "${ECHO_T}$ac_res" >&6; }
10143
10144fi
10145if test `eval echo '${'$as_ac_Header'}'` = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10148_ACEOF
10149
10150fi
10151
10152done
10153
10154else
10155
10156 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10157echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10158if test "${ac_cv_lib_gen_dirname+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161 ac_check_lib_save_LIBS=$LIBS
10162LIBS="-lgen $LIBS"
10163cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h. */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h. */
10169
10170/* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10173#ifdef __cplusplus
10174extern "C"
10175#endif
10176char dirname ();
10177int
10178main ()
10179{
10180return dirname ();
10181 ;
10182 return 0;
10183}
10184_ACEOF
10185rm -f conftest.$ac_objext conftest$ac_exeext
10186if { (ac_try="$ac_link"
10187case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_link") 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } && {
10199 test -z "$ac_c_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest$ac_exeext &&
10202 $as_test_x conftest$ac_exeext; then
10203 ac_cv_lib_gen_dirname=yes
10204else
10205 echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 ac_cv_lib_gen_dirname=no
10209fi
10210
10211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212 conftest$ac_exeext conftest.$ac_ext
10213LIBS=$ac_check_lib_save_LIBS
10214fi
10215{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10216echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10217if test $ac_cv_lib_gen_dirname = yes; then
10218
10219 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10220echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10221if test "${ac_cv_have_broken_dirname+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224
10225 save_LIBS="$LIBS"
10226 LIBS="$LIBS -lgen"
10227 if test "$cross_compiling" = yes; then
10228 ac_cv_have_broken_dirname="no"
10229else
10230 cat >conftest.$ac_ext <<_ACEOF
10231/* confdefs.h. */
10232_ACEOF
10233cat confdefs.h >>conftest.$ac_ext
10234cat >>conftest.$ac_ext <<_ACEOF
10235/* end confdefs.h. */
10236
10237#include <libgen.h>
10238#include <string.h>
10239
10240int main(int argc, char **argv) {
10241 char *s, buf[32];
10242
10243 strncpy(buf,"/etc", 32);
10244 s = dirname(buf);
10245 if (!s || strncmp(s, "/", 32) != 0) {
10246 exit(1);
10247 } else {
10248 exit(0);
10249 }
10250}
10251
10252_ACEOF
10253rm -f conftest$ac_exeext
10254if { (ac_try="$ac_link"
10255case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267esac
10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_have_broken_dirname="no"
10274else
10275 echo "$as_me: program exited with status $ac_status" >&5
10276echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279( exit $ac_status )
10280 ac_cv_have_broken_dirname="yes"
10281fi
10282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10283fi
10284
10285
10286 LIBS="$save_LIBS"
10287
10288fi
10289{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10290echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10291 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10292 LIBS="$LIBS -lgen"
10293 cat >>confdefs.h <<\_ACEOF
10294#define HAVE_DIRNAME 1
10295_ACEOF
10296
10297
10298for ac_header in libgen.h
10299do
10300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306fi
10307ac_res=`eval echo '${'$as_ac_Header'}'`
10308 { echo "$as_me:$LINENO: result: $ac_res" >&5
10309echo "${ECHO_T}$ac_res" >&6; }
10310else
10311 # Is the header compilable?
10312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10314cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320$ac_includes_default
10321#include <$ac_header>
10322_ACEOF
10323rm -f conftest.$ac_objext
10324if { (ac_try="$ac_compile"
10325case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_header_compiler=yes
10341else
10342 echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_header_compiler=no
10346fi
10347
10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10350echo "${ECHO_T}$ac_header_compiler" >&6; }
10351
10352# Is the header present?
10353{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10355cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361#include <$ac_header>
10362_ACEOF
10363if { (ac_try="$ac_cpp conftest.$ac_ext"
10364case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367esac
10368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } >/dev/null && {
10376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 }; then
10379 ac_header_preproc=yes
10380else
10381 echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
10384 ac_header_preproc=no
10385fi
10386
10387rm -f conftest.err conftest.$ac_ext
10388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10389echo "${ECHO_T}$ac_header_preproc" >&6; }
10390
10391# So? What about this header?
10392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10393 yes:no: )
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10398 ac_header_preproc=yes
10399 ;;
10400 no:yes:* )
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10413 ( cat <<\_ASBOX
10414## ------------------------------------------- ##
10415## Report this to openssh-unix-dev@mindrot.org ##
10416## ------------------------------------------- ##
10417_ASBOX
10418 ) | sed "s/^/$as_me: WARNING: /" >&2
10419 ;;
10420esac
10421{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 eval "$as_ac_Header=\$ac_header_preproc"
10427fi
10428ac_res=`eval echo '${'$as_ac_Header'}'`
10429 { echo "$as_me:$LINENO: result: $ac_res" >&5
10430echo "${ECHO_T}$ac_res" >&6; }
10431
10432fi
10433if test `eval echo '${'$as_ac_Header'}'` = yes; then
10434 cat >>confdefs.h <<_ACEOF
10435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436_ACEOF
10437
10438fi
10439
10440done
10441
10442 fi
10443
10444fi
10445
10446
10447fi
10448done
10449
10450
10451{ echo "$as_me:$LINENO: checking for getspnam" >&5
10452echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10453if test "${ac_cv_func_getspnam+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456 cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h. */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h. */
10462/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10464#define getspnam innocuous_getspnam
10465
10466/* System header to define __stub macros and hopefully few prototypes,
10467 which can conflict with char getspnam (); below.
10468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10469 <limits.h> exists even on freestanding compilers. */
10470
10471#ifdef __STDC__
10472# include <limits.h>
10473#else
10474# include <assert.h>
10475#endif
10476
10477#undef getspnam
10478
10479/* Override any GCC internal prototype to avoid an error.
10480 Use char because int might match the return type of a GCC
10481 builtin and then its argument prototype would still apply. */
10482#ifdef __cplusplus
10483extern "C"
10484#endif
10485char getspnam ();
10486/* The GNU C library defines this for functions which it implements
10487 to always fail with ENOSYS. Some functions are actually named
10488 something starting with __ and the normal name is an alias. */
10489#if defined __stub_getspnam || defined __stub___getspnam
10490choke me
10491#endif
10492
10493int
10494main ()
10495{
10496return getspnam ();
10497 ;
10498 return 0;
10499}
10500_ACEOF
10501rm -f conftest.$ac_objext conftest$ac_exeext
10502if { (ac_try="$ac_link"
10503case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506esac
10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_link") 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && {
10515 test -z "$ac_c_werror_flag" ||
10516 test ! -s conftest.err
10517 } && test -s conftest$ac_exeext &&
10518 $as_test_x conftest$ac_exeext; then
10519 ac_cv_func_getspnam=yes
10520else
10521 echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
10524 ac_cv_func_getspnam=no
10525fi
10526
10527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528 conftest$ac_exeext conftest.$ac_ext
10529fi
10530{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10531echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10532if test $ac_cv_func_getspnam = yes; then
10533 :
10534else
10535 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10536echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10537if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540 ac_check_lib_save_LIBS=$LIBS
10541LIBS="-lgen $LIBS"
10542cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h. */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h. */
10548
10549/* Override any GCC internal prototype to avoid an error.
10550 Use char because int might match the return type of a GCC
10551 builtin and then its argument prototype would still apply. */
10552#ifdef __cplusplus
10553extern "C"
10554#endif
10555char getspnam ();
10556int
10557main ()
10558{
10559return getspnam ();
10560 ;
10561 return 0;
10562}
10563_ACEOF
10564rm -f conftest.$ac_objext conftest$ac_exeext
10565if { (ac_try="$ac_link"
10566case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569esac
10570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
10582 ac_cv_lib_gen_getspnam=yes
10583else
10584 echo "$as_me: failed program was:" >&5
10585sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 ac_cv_lib_gen_getspnam=no
10588fi
10589
10590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext conftest.$ac_ext
10592LIBS=$ac_check_lib_save_LIBS
10593fi
10594{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10595echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10596if test $ac_cv_lib_gen_getspnam = yes; then
10597 LIBS="$LIBS -lgen"
10598fi
10599
10600fi
10601
10602{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10603echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10604if test "${ac_cv_search_basename+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606else
10607 ac_func_search_save_LIBS=$LIBS
10608cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
10614
10615/* Override any GCC internal prototype to avoid an error.
10616 Use char because int might match the return type of a GCC
10617 builtin and then its argument prototype would still apply. */
10618#ifdef __cplusplus
10619extern "C"
10620#endif
10621char basename ();
10622int
10623main ()
10624{
10625return basename ();
10626 ;
10627 return 0;
10628}
10629_ACEOF
10630for ac_lib in '' gen; do
10631 if test -z "$ac_lib"; then
10632 ac_res="none required"
10633 else
10634 ac_res=-l$ac_lib
10635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10636 fi
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638if { (ac_try="$ac_link"
10639case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642esac
10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_link") 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest$ac_exeext &&
10654 $as_test_x conftest$ac_exeext; then
10655 ac_cv_search_basename=$ac_res
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660
10661fi
10662
10663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10664 conftest$ac_exeext
10665 if test "${ac_cv_search_basename+set}" = set; then
10666 break
10667fi
10668done
10669if test "${ac_cv_search_basename+set}" = set; then
10670 :
10671else
10672 ac_cv_search_basename=no
10673fi
10674rm conftest.$ac_ext
10675LIBS=$ac_func_search_save_LIBS
10676fi
10677{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10678echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10679ac_res=$ac_cv_search_basename
10680if test "$ac_res" != no; then
10681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10682
10683cat >>confdefs.h <<\_ACEOF
10684#define HAVE_BASENAME 1
10685_ACEOF
10686
10687fi
10688
10689
10690
10691# Check whether --with-zlib was given.
10692if test "${with_zlib+set}" = set; then
10693 withval=$with_zlib; if test "x$withval" = "xno" ; then
10694 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10695echo "$as_me: error: *** zlib is required ***" >&2;}
10696 { (exit 1); exit 1; }; }
10697 elif test "x$withval" != "xyes"; then
10698 if test -d "$withval/lib"; then
10699 if test -n "${need_dash_r}"; then
10700 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10701 else
10702 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10703 fi
10704 else
10705 if test -n "${need_dash_r}"; then
10706 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10707 else
10708 LDFLAGS="-L${withval} ${LDFLAGS}"
10709 fi
10710 fi
10711 if test -d "$withval/include"; then
10712 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10713 else
10714 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10715 fi
10716 fi
10717
10718fi
10719
10720
10721if test "${ac_cv_header_zlib_h+set}" = set; then
10722 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10723echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10724if test "${ac_cv_header_zlib_h+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726fi
10727{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10728echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10729else
10730 # Is the header compilable?
10731{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10732echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10733cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h. */
10739$ac_includes_default
10740#include <zlib.h>
10741_ACEOF
10742rm -f conftest.$ac_objext
10743if { (ac_try="$ac_compile"
10744case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747esac
10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_compile") 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest.$ac_objext; then
10759 ac_header_compiler=yes
10760else
10761 echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_header_compiler=no
10765fi
10766
10767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10769echo "${ECHO_T}$ac_header_compiler" >&6; }
10770
10771# Is the header present?
10772{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10773echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10774cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h. */
10780#include <zlib.h>
10781_ACEOF
10782if { (ac_try="$ac_cpp conftest.$ac_ext"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } >/dev/null && {
10795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 }; then
10798 ac_header_preproc=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_header_preproc=no
10804fi
10805
10806rm -f conftest.err conftest.$ac_ext
10807{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808echo "${ECHO_T}$ac_header_preproc" >&6; }
10809
10810# So? What about this header?
10811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812 yes:no: )
10813 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10814echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10816echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10818 ;;
10819 no:yes:* )
10820 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10821echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10823echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10825echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10827echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10829echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10831echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10832 ( cat <<\_ASBOX
10833## ------------------------------------------- ##
10834## Report this to openssh-unix-dev@mindrot.org ##
10835## ------------------------------------------- ##
10836_ASBOX
10837 ) | sed "s/^/$as_me: WARNING: /" >&2
10838 ;;
10839esac
10840{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10841echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10842if test "${ac_cv_header_zlib_h+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844else
10845 ac_cv_header_zlib_h=$ac_header_preproc
10846fi
10847{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10848echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10849
10850fi
10851if test $ac_cv_header_zlib_h = yes; then
10852 :
10853else
10854 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10855echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10856 { (exit 1); exit 1; }; }
10857fi
10858
10859
10860
10861{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10862echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10863if test "${ac_cv_lib_z_deflate+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865else
10866 ac_check_lib_save_LIBS=$LIBS
10867LIBS="-lz $LIBS"
10868cat >conftest.$ac_ext <<_ACEOF
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874
10875/* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878#ifdef __cplusplus
10879extern "C"
10880#endif
10881char deflate ();
10882int
10883main ()
10884{
10885return deflate ();
10886 ;
10887 return 0;
10888}
10889_ACEOF
10890rm -f conftest.$ac_objext conftest$ac_exeext
10891if { (ac_try="$ac_link"
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 ac_cv_lib_z_deflate=yes
10909else
10910 echo "$as_me: failed program was:" >&5
10911sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_cv_lib_z_deflate=no
10914fi
10915
10916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918LIBS=$ac_check_lib_save_LIBS
10919fi
10920{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10921echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10922if test $ac_cv_lib_z_deflate = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924#define HAVE_LIBZ 1
10925_ACEOF
10926
10927 LIBS="-lz $LIBS"
10928
10929else
10930
10931 saved_CPPFLAGS="$CPPFLAGS"
10932 saved_LDFLAGS="$LDFLAGS"
10933 save_LIBS="$LIBS"
10934 if test -n "${need_dash_r}"; then
10935 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10936 else
10937 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10938 fi
10939 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10940 LIBS="$LIBS -lz"
10941 cat >conftest.$ac_ext <<_ACEOF
10942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947
10948/* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951#ifdef __cplusplus
10952extern "C"
10953#endif
10954char deflate ();
10955int
10956main ()
10957{
10958return deflate ();
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext conftest$ac_exeext
10964if { (ac_try="$ac_link"
10965case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
10969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext &&
10980 $as_test_x conftest$ac_exeext; then
10981 cat >>confdefs.h <<\_ACEOF
10982#define HAVE_LIBZ 1
10983_ACEOF
10984
10985else
10986 echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
10989
10990 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10991echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10992 { (exit 1); exit 1; }; }
10993
10994
10995fi
10996
10997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10998 conftest$ac_exeext conftest.$ac_ext
10999
11000
11001fi
11002
11003
11004
11005# Check whether --with-zlib-version-check was given.
11006if test "${with_zlib_version_check+set}" = set; then
11007 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
11008 zlib_check_nonfatal=1
11009 fi
11010
11011
11012fi
11013
11014
11015{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11016echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
11017if test "$cross_compiling" = yes; then
11018 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11019echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11020
11021else
11022 cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
11028
11029#include <stdio.h>
11030#include <zlib.h>
11031int main()
11032{
11033 int a=0, b=0, c=0, d=0, n, v;
11034 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11035 if (n != 3 && n != 4)
11036 exit(1);
11037 v = a*1000000 + b*10000 + c*100 + d;
11038 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11039
11040 /* 1.1.4 is OK */
11041 if (a == 1 && b == 1 && c >= 4)
11042 exit(0);
11043
11044 /* 1.2.3 and up are OK */
11045 if (v >= 1020300)
11046 exit(0);
11047
11048 exit(2);
11049}
11050
11051_ACEOF
11052rm -f conftest$ac_exeext
11053if { (ac_try="$ac_link"
11054case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_link") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 { echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6; }
11074else
11075 echo "$as_me: program exited with status $ac_status" >&5
11076echo "$as_me: failed program was:" >&5
11077sed 's/^/| /' conftest.$ac_ext >&5
11078
11079( exit $ac_status )
11080 { echo "$as_me:$LINENO: result: yes" >&5
11081echo "${ECHO_T}yes" >&6; }
11082 if test -z "$zlib_check_nonfatal" ; then
11083 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11084Your reported zlib version has known security problems. It's possible your
11085vendor has fixed these problems without changing the version number. If you
11086are sure this is the case, you can disable the check by running
11087\"./configure --without-zlib-version-check\".
11088If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11089See http://www.gzip.org/zlib/ for details." >&5
11090echo "$as_me: error: *** zlib too old - check config.log ***
11091Your reported zlib version has known security problems. It's possible your
11092vendor has fixed these problems without changing the version number. If you
11093are sure this is the case, you can disable the check by running
11094\"./configure --without-zlib-version-check\".
11095If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11096See http://www.gzip.org/zlib/ for details." >&2;}
11097 { (exit 1); exit 1; }; }
11098 else
11099 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11100echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11101 fi
11102
11103fi
11104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11105fi
11106
11107
11108
11109{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
11110echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11111if test "${ac_cv_func_strcasecmp+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114 cat >conftest.$ac_ext <<_ACEOF
11115/* confdefs.h. */
11116_ACEOF
11117cat confdefs.h >>conftest.$ac_ext
11118cat >>conftest.$ac_ext <<_ACEOF
11119/* end confdefs.h. */
11120/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11122#define strcasecmp innocuous_strcasecmp
11123
11124/* System header to define __stub macros and hopefully few prototypes,
11125 which can conflict with char strcasecmp (); below.
11126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11127 <limits.h> exists even on freestanding compilers. */
11128
11129#ifdef __STDC__
11130# include <limits.h>
11131#else
11132# include <assert.h>
11133#endif
11134
11135#undef strcasecmp
11136
11137/* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11140#ifdef __cplusplus
11141extern "C"
11142#endif
11143char strcasecmp ();
11144/* The GNU C library defines this for functions which it implements
11145 to always fail with ENOSYS. Some functions are actually named
11146 something starting with __ and the normal name is an alias. */
11147#if defined __stub_strcasecmp || defined __stub___strcasecmp
11148choke me
11149#endif
11150
11151int
11152main ()
11153{
11154return strcasecmp ();
11155 ;
11156 return 0;
11157}
11158_ACEOF
11159rm -f conftest.$ac_objext conftest$ac_exeext
11160if { (ac_try="$ac_link"
11161case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11164esac
11165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_link") 2>conftest.er1
11167 ac_status=$?
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && {
11173 test -z "$ac_c_werror_flag" ||
11174 test ! -s conftest.err
11175 } && test -s conftest$ac_exeext &&
11176 $as_test_x conftest$ac_exeext; then
11177 ac_cv_func_strcasecmp=yes
11178else
11179 echo "$as_me: failed program was:" >&5
11180sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ac_cv_func_strcasecmp=no
11183fi
11184
11185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11186 conftest$ac_exeext conftest.$ac_ext
11187fi
11188{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11189echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11190if test $ac_cv_func_strcasecmp = yes; then
11191 :
11192else
11193 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11194echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11195if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198 ac_check_lib_save_LIBS=$LIBS
11199LIBS="-lresolv $LIBS"
11200cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206
11207/* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210#ifdef __cplusplus
11211extern "C"
11212#endif
11213char strcasecmp ();
11214int
11215main ()
11216{
11217return strcasecmp ();
11218 ;
11219 return 0;
11220}
11221_ACEOF
11222rm -f conftest.$ac_objext conftest$ac_exeext
11223if { (ac_try="$ac_link"
11224case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227esac
11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest$ac_exeext &&
11239 $as_test_x conftest$ac_exeext; then
11240 ac_cv_lib_resolv_strcasecmp=yes
11241else
11242 echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_cv_lib_resolv_strcasecmp=no
11246fi
11247
11248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11249 conftest$ac_exeext conftest.$ac_ext
11250LIBS=$ac_check_lib_save_LIBS
11251fi
11252{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11253echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11254if test $ac_cv_lib_resolv_strcasecmp = yes; then
11255 LIBS="$LIBS -lresolv"
11256fi
11257
11258
11259fi
11260
11261
11262for ac_func in utimes
11263do
11264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11265{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11267if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270 cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11278#define $ac_func innocuous_$ac_func
11279
11280/* System header to define __stub macros and hopefully few prototypes,
11281 which can conflict with char $ac_func (); below.
11282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11283 <limits.h> exists even on freestanding compilers. */
11284
11285#ifdef __STDC__
11286# include <limits.h>
11287#else
11288# include <assert.h>
11289#endif
11290
11291#undef $ac_func
11292
11293/* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296#ifdef __cplusplus
11297extern "C"
11298#endif
11299char $ac_func ();
11300/* The GNU C library defines this for functions which it implements
11301 to always fail with ENOSYS. Some functions are actually named
11302 something starting with __ and the normal name is an alias. */
11303#if defined __stub_$ac_func || defined __stub___$ac_func
11304choke me
11305#endif
11306
11307int
11308main ()
11309{
11310return $ac_func ();
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext conftest$ac_exeext
11316if { (ac_try="$ac_link"
11317case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320esac
11321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_link") 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } && {
11329 test -z "$ac_c_werror_flag" ||
11330 test ! -s conftest.err
11331 } && test -s conftest$ac_exeext &&
11332 $as_test_x conftest$ac_exeext; then
11333 eval "$as_ac_var=yes"
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 eval "$as_ac_var=no"
11339fi
11340
11341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11342 conftest$ac_exeext conftest.$ac_ext
11343fi
11344ac_res=`eval echo '${'$as_ac_var'}'`
11345 { echo "$as_me:$LINENO: result: $ac_res" >&5
11346echo "${ECHO_T}$ac_res" >&6; }
11347if test `eval echo '${'$as_ac_var'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11350_ACEOF
11351
11352else
11353 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11354echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11355if test "${ac_cv_lib_c89_utimes+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358 ac_check_lib_save_LIBS=$LIBS
11359LIBS="-lc89 $LIBS"
11360cat >conftest.$ac_ext <<_ACEOF
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366
11367/* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370#ifdef __cplusplus
11371extern "C"
11372#endif
11373char utimes ();
11374int
11375main ()
11376{
11377return utimes ();
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext conftest$ac_exeext
11383if { (ac_try="$ac_link"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_link") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext &&
11399 $as_test_x conftest$ac_exeext; then
11400 ac_cv_lib_c89_utimes=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_cv_lib_c89_utimes=no
11406fi
11407
11408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11409 conftest$ac_exeext conftest.$ac_ext
11410LIBS=$ac_check_lib_save_LIBS
11411fi
11412{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11413echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11414if test $ac_cv_lib_c89_utimes = yes; then
11415 cat >>confdefs.h <<\_ACEOF
11416#define HAVE_UTIMES 1
11417_ACEOF
11418
11419 LIBS="$LIBS -lc89"
11420fi
11421
11422
11423fi
11424done
11425
11426
11427
11428for ac_header in libutil.h
11429do
11430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436fi
11437ac_res=`eval echo '${'$as_ac_Header'}'`
11438 { echo "$as_me:$LINENO: result: $ac_res" >&5
11439echo "${ECHO_T}$ac_res" >&6; }
11440else
11441 # Is the header compilable?
11442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11444cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450$ac_includes_default
11451#include <$ac_header>
11452_ACEOF
11453rm -f conftest.$ac_objext
11454if { (ac_try="$ac_compile"
11455case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458esac
11459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.$ac_objext; then
11470 ac_header_compiler=yes
11471else
11472 echo "$as_me: failed program was:" >&5
11473sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_header_compiler=no
11476fi
11477
11478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11480echo "${ECHO_T}$ac_header_compiler" >&6; }
11481
11482# Is the header present?
11483{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11485cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h. */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h. */
11491#include <$ac_header>
11492_ACEOF
11493if { (ac_try="$ac_cpp conftest.$ac_ext"
11494case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497esac
11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null && {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 }; then
11509 ac_header_preproc=yes
11510else
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_header_preproc=no
11515fi
11516
11517rm -f conftest.err conftest.$ac_ext
11518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519echo "${ECHO_T}$ac_header_preproc" >&6; }
11520
11521# So? What about this header?
11522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11529 ;;
11530 no:yes:* )
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543 ( cat <<\_ASBOX
11544## ------------------------------------------- ##
11545## Report this to openssh-unix-dev@mindrot.org ##
11546## ------------------------------------------- ##
11547_ASBOX
11548 ) | sed "s/^/$as_me: WARNING: /" >&2
11549 ;;
11550esac
11551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555else
11556 eval "$as_ac_Header=\$ac_header_preproc"
11557fi
11558ac_res=`eval echo '${'$as_ac_Header'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560echo "${ECHO_T}$ac_res" >&6; }
11561
11562fi
11563if test `eval echo '${'$as_ac_Header'}'` = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566_ACEOF
11567
11568fi
11569
11570done
11571
11572{ echo "$as_me:$LINENO: checking for library containing login" >&5
11573echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
11574if test "${ac_cv_search_login+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576else
11577 ac_func_search_save_LIBS=$LIBS
11578cat >conftest.$ac_ext <<_ACEOF
11579/* confdefs.h. */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h. */
11584
11585/* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588#ifdef __cplusplus
11589extern "C"
11590#endif
11591char login ();
11592int
11593main ()
11594{
11595return login ();
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600for ac_lib in '' util bsd; do
11601 if test -z "$ac_lib"; then
11602 ac_res="none required"
11603 else
11604 ac_res=-l$ac_lib
11605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11606 fi
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608if { (ac_try="$ac_link"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_link") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest$ac_exeext &&
11624 $as_test_x conftest$ac_exeext; then
11625 ac_cv_search_login=$ac_res
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630
11631fi
11632
11633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11634 conftest$ac_exeext
11635 if test "${ac_cv_search_login+set}" = set; then
11636 break
11637fi
11638done
11639if test "${ac_cv_search_login+set}" = set; then
11640 :
11641else
11642 ac_cv_search_login=no
11643fi
11644rm conftest.$ac_ext
11645LIBS=$ac_func_search_save_LIBS
11646fi
11647{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11648echo "${ECHO_T}$ac_cv_search_login" >&6; }
11649ac_res=$ac_cv_search_login
11650if test "$ac_res" != no; then
11651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11652
11653cat >>confdefs.h <<\_ACEOF
11654#define HAVE_LOGIN 1
11655_ACEOF
11656
11657fi
11658
11659
11660
11661
11662
11663for ac_func in fmt_scaled logout updwtmp logwtmp
11664do
11665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11666{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11668if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670else
11671 cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h. */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h. */
11677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11679#define $ac_func innocuous_$ac_func
11680
11681/* System header to define __stub macros and hopefully few prototypes,
11682 which can conflict with char $ac_func (); below.
11683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 <limits.h> exists even on freestanding compilers. */
11685
11686#ifdef __STDC__
11687# include <limits.h>
11688#else
11689# include <assert.h>
11690#endif
11691
11692#undef $ac_func
11693
11694/* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11697#ifdef __cplusplus
11698extern "C"
11699#endif
11700char $ac_func ();
11701/* The GNU C library defines this for functions which it implements
11702 to always fail with ENOSYS. Some functions are actually named
11703 something starting with __ and the normal name is an alias. */
11704#if defined __stub_$ac_func || defined __stub___$ac_func
11705choke me
11706#endif
11707
11708int
11709main ()
11710{
11711return $ac_func ();
11712 ;
11713 return 0;
11714}
11715_ACEOF
11716rm -f conftest.$ac_objext conftest$ac_exeext
11717if { (ac_try="$ac_link"
11718case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_link") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext &&
11733 $as_test_x conftest$ac_exeext; then
11734 eval "$as_ac_var=yes"
11735else
11736 echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 eval "$as_ac_var=no"
11740fi
11741
11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
11744fi
11745ac_res=`eval echo '${'$as_ac_var'}'`
11746 { echo "$as_me:$LINENO: result: $ac_res" >&5
11747echo "${ECHO_T}$ac_res" >&6; }
11748if test `eval echo '${'$as_ac_var'}'` = yes; then
11749 cat >>confdefs.h <<_ACEOF
11750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11751_ACEOF
11752
11753fi
11754done
11755
11756
11757
11758for ac_func in strftime
11759do
11760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11761{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11763if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765else
11766 cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11774#define $ac_func innocuous_$ac_func
11775
11776/* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char $ac_func (); below.
11778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11779 <limits.h> exists even on freestanding compilers. */
11780
11781#ifdef __STDC__
11782# include <limits.h>
11783#else
11784# include <assert.h>
11785#endif
11786
11787#undef $ac_func
11788
11789/* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11792#ifdef __cplusplus
11793extern "C"
11794#endif
11795char $ac_func ();
11796/* The GNU C library defines this for functions which it implements
11797 to always fail with ENOSYS. Some functions are actually named
11798 something starting with __ and the normal name is an alias. */
11799#if defined __stub_$ac_func || defined __stub___$ac_func
11800choke me
11801#endif
11802
11803int
11804main ()
11805{
11806return $ac_func ();
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext conftest$ac_exeext
11812if { (ac_try="$ac_link"
11813case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_link") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && {
11825 test -z "$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 } && test -s conftest$ac_exeext &&
11828 $as_test_x conftest$ac_exeext; then
11829 eval "$as_ac_var=yes"
11830else
11831 echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 eval "$as_ac_var=no"
11835fi
11836
11837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11838 conftest$ac_exeext conftest.$ac_ext
11839fi
11840ac_res=`eval echo '${'$as_ac_var'}'`
11841 { echo "$as_me:$LINENO: result: $ac_res" >&5
11842echo "${ECHO_T}$ac_res" >&6; }
11843if test `eval echo '${'$as_ac_var'}'` = yes; then
11844 cat >>confdefs.h <<_ACEOF
11845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846_ACEOF
11847
11848else
11849 # strftime is in -lintl on SCO UNIX.
11850{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11851echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11852if test "${ac_cv_lib_intl_strftime+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855 ac_check_lib_save_LIBS=$LIBS
11856LIBS="-lintl $LIBS"
11857cat >conftest.$ac_ext <<_ACEOF
11858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
11863
11864/* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867#ifdef __cplusplus
11868extern "C"
11869#endif
11870char strftime ();
11871int
11872main ()
11873{
11874return strftime ();
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext conftest$ac_exeext
11880if { (ac_try="$ac_link"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext &&
11896 $as_test_x conftest$ac_exeext; then
11897 ac_cv_lib_intl_strftime=yes
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_lib_intl_strftime=no
11903fi
11904
11905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907LIBS=$ac_check_lib_save_LIBS
11908fi
11909{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11910echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11911if test $ac_cv_lib_intl_strftime = yes; then
11912 cat >>confdefs.h <<\_ACEOF
11913#define HAVE_STRFTIME 1
11914_ACEOF
11915
11916LIBS="-lintl $LIBS"
11917fi
11918
11919fi
11920done
11921
11922
11923# Check for ALTDIRFUNC glob() extension
11924{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11925echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11926cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932
11933 #include <glob.h>
11934 #ifdef GLOB_ALTDIRFUNC
11935 FOUNDIT
11936 #endif
11937
11938_ACEOF
11939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11940 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11941
11942
11943cat >>confdefs.h <<\_ACEOF
11944#define GLOB_HAS_ALTDIRFUNC 1
11945_ACEOF
11946
11947 { echo "$as_me:$LINENO: result: yes" >&5
11948echo "${ECHO_T}yes" >&6; }
11949
11950else
11951
11952 { echo "$as_me:$LINENO: result: no" >&5
11953echo "${ECHO_T}no" >&6; }
11954
11955
11956fi
11957rm -f conftest*
11958
11959
11960# Check for g.gl_matchc glob() extension
11961{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11962echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11963cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
11969 #include <glob.h>
11970int
11971main ()
11972{
11973glob_t g; g.gl_matchc = 1;
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext
11979if { (ac_try="$ac_compile"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11995
11996
11997cat >>confdefs.h <<\_ACEOF
11998#define GLOB_HAS_GL_MATCHC 1
11999_ACEOF
12000
12001 { echo "$as_me:$LINENO: result: yes" >&5
12002echo "${ECHO_T}yes" >&6; }
12003
12004else
12005 echo "$as_me: failed program was:" >&5
12006sed 's/^/| /' conftest.$ac_ext >&5
12007
12008
12009 { echo "$as_me:$LINENO: result: no" >&5
12010echo "${ECHO_T}no" >&6; }
12011
12012
12013fi
12014
12015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016
12017{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12018echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
12019if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022 cat >conftest.$ac_ext <<_ACEOF
12023/* confdefs.h. */
12024_ACEOF
12025cat confdefs.h >>conftest.$ac_ext
12026cat >>conftest.$ac_ext <<_ACEOF
12027/* end confdefs.h. */
12028#include <glob.h>
12029
12030int
12031main ()
12032{
12033#ifndef GLOB_NOMATCH
12034 (void) GLOB_NOMATCH;
12035#endif
12036
12037 ;
12038 return 0;
12039}
12040_ACEOF
12041rm -f conftest.$ac_objext
12042if { (ac_try="$ac_compile"
12043case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_compile") 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest.$ac_objext; then
12058 ac_cv_have_decl_GLOB_NOMATCH=yes
12059else
12060 echo "$as_me: failed program was:" >&5
12061sed 's/^/| /' conftest.$ac_ext >&5
12062
12063 ac_cv_have_decl_GLOB_NOMATCH=no
12064fi
12065
12066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067fi
12068{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12069echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12070if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12071
12072cat >>confdefs.h <<_ACEOF
12073#define HAVE_DECL_GLOB_NOMATCH 1
12074_ACEOF
12075
12076
12077else
12078 cat >>confdefs.h <<_ACEOF
12079#define HAVE_DECL_GLOB_NOMATCH 0
12080_ACEOF
12081
12082
12083fi
12084
12085
12086
12087{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12088echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12089if test "$cross_compiling" = yes; then
12090
12091 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12092echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12093 cat >>confdefs.h <<\_ACEOF
12094#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12095_ACEOF
12096
12097
12098
12099else
12100 cat >conftest.$ac_ext <<_ACEOF
12101/* confdefs.h. */
12102_ACEOF
12103cat confdefs.h >>conftest.$ac_ext
12104cat >>conftest.$ac_ext <<_ACEOF
12105/* end confdefs.h. */
12106
12107#include <sys/types.h>
12108#include <dirent.h>
12109int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12110
12111_ACEOF
12112rm -f conftest$ac_exeext
12113if { (ac_try="$ac_link"
12114case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 { echo "$as_me:$LINENO: result: yes" >&5
12133echo "${ECHO_T}yes" >&6; }
12134else
12135 echo "$as_me: program exited with status $ac_status" >&5
12136echo "$as_me: failed program was:" >&5
12137sed 's/^/| /' conftest.$ac_ext >&5
12138
12139( exit $ac_status )
12140
12141 { echo "$as_me:$LINENO: result: no" >&5
12142echo "${ECHO_T}no" >&6; }
12143
12144cat >>confdefs.h <<\_ACEOF
12145#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12146_ACEOF
12147
12148
12149fi
12150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12151fi
12152
12153
12154
12155{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12156echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12157if test -d "/proc/$$/fd" ; then
12158
12159cat >>confdefs.h <<\_ACEOF
12160#define HAVE_PROC_PID 1
12161_ACEOF
12162
12163 { echo "$as_me:$LINENO: result: yes" >&5
12164echo "${ECHO_T}yes" >&6; }
12165else
12166 { echo "$as_me:$LINENO: result: no" >&5
12167echo "${ECHO_T}no" >&6; }
12168fi
12169
12170# Check whether user wants S/Key support
12171SKEY_MSG="no"
12172
12173# Check whether --with-skey was given.
12174if test "${with_skey+set}" = set; then
12175 withval=$with_skey;
12176 if test "x$withval" != "xno" ; then
12177
12178 if test "x$withval" != "xyes" ; then
12179 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12180 LDFLAGS="$LDFLAGS -L${withval}/lib"
12181 fi
12182
12183
12184cat >>confdefs.h <<\_ACEOF
12185#define SKEY 1
12186_ACEOF
12187
12188 LIBS="-lskey $LIBS"
12189 SKEY_MSG="yes"
12190
12191 { echo "$as_me:$LINENO: checking for s/key support" >&5
12192echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199
12200#include <stdio.h>
12201#include <skey.h>
12202int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12203
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
12206if { (ac_try="$ac_link"
12207case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_link") 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } && {
12219 test -z "$ac_c_werror_flag" ||
12220 test ! -s conftest.err
12221 } && test -s conftest$ac_exeext &&
12222 $as_test_x conftest$ac_exeext; then
12223 { echo "$as_me:$LINENO: result: yes" >&5
12224echo "${ECHO_T}yes" >&6; }
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229
12230 { echo "$as_me:$LINENO: result: no" >&5
12231echo "${ECHO_T}no" >&6; }
12232 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12233echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12234 { (exit 1); exit 1; }; }
12235
12236fi
12237
12238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12240 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12241echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12242 cat >conftest.$ac_ext <<_ACEOF
12243/* confdefs.h. */
12244_ACEOF
12245cat confdefs.h >>conftest.$ac_ext
12246cat >>conftest.$ac_ext <<_ACEOF
12247/* end confdefs.h. */
12248#include <stdio.h>
12249 #include <skey.h>
12250int
12251main ()
12252{
12253(void)skeychallenge(NULL,"name","",0);
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext
12259if { (ac_try="$ac_compile"
12260case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_compile") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest.$ac_objext; then
12275 { echo "$as_me:$LINENO: result: yes" >&5
12276echo "${ECHO_T}yes" >&6; }
12277
12278cat >>confdefs.h <<\_ACEOF
12279#define SKEYCHALLENGE_4ARG 1
12280_ACEOF
12281
12282else
12283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
12286 { echo "$as_me:$LINENO: result: no" >&5
12287echo "${ECHO_T}no" >&6; }
12288
12289fi
12290
12291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 fi
12293
12294
12295fi
12296
12297
12298# Check whether user wants TCP wrappers support
12299TCPW_MSG="no"
12300
12301# Check whether --with-tcp-wrappers was given.
12302if test "${with_tcp_wrappers+set}" = set; then
12303 withval=$with_tcp_wrappers;
12304 if test "x$withval" != "xno" ; then
12305 saved_LIBS="$LIBS"
12306 saved_LDFLAGS="$LDFLAGS"
12307 saved_CPPFLAGS="$CPPFLAGS"
12308 if test -n "${withval}" && \
12309 test "x${withval}" != "xyes"; then
12310 if test -d "${withval}/lib"; then
12311 if test -n "${need_dash_r}"; then
12312 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12313 else
12314 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12315 fi
12316 else
12317 if test -n "${need_dash_r}"; then
12318 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12319 else
12320 LDFLAGS="-L${withval} ${LDFLAGS}"
12321 fi
12322 fi
12323 if test -d "${withval}/include"; then
12324 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12325 else
12326 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12327 fi
12328 fi
12329 LIBS="-lwrap $LIBS"
12330 { echo "$as_me:$LINENO: checking for libwrap" >&5
12331echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12332 cat >conftest.$ac_ext <<_ACEOF
12333/* confdefs.h. */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h. */
12338
12339#include <sys/types.h>
12340#include <sys/socket.h>
12341#include <netinet/in.h>
12342#include <tcpd.h>
12343 int deny_severity = 0, allow_severity = 0;
12344
12345int
12346main ()
12347{
12348hosts_access(0);
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext conftest$ac_exeext
12354if { (ac_try="$ac_link"
12355case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358esac
12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_link") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest$ac_exeext &&
12370 $as_test_x conftest$ac_exeext; then
12371
12372 { echo "$as_me:$LINENO: result: yes" >&5
12373echo "${ECHO_T}yes" >&6; }
12374
12375cat >>confdefs.h <<\_ACEOF
12376#define LIBWRAP 1
12377_ACEOF
12378
12379 SSHDLIBS="$SSHDLIBS -lwrap"
12380 TCPW_MSG="yes"
12381
12382else
12383 echo "$as_me: failed program was:" >&5
12384sed 's/^/| /' conftest.$ac_ext >&5
12385
12386
12387 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12388echo "$as_me: error: *** libwrap missing" >&2;}
12389 { (exit 1); exit 1; }; }
12390
12391
12392fi
12393
12394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS="$saved_LIBS"
12397 fi
12398
12399
12400fi
12401
12402
12403# Check whether user wants libedit support
12404LIBEDIT_MSG="no"
12405
12406# Check whether --with-libedit was given.
12407if test "${with_libedit+set}" = set; then
12408 withval=$with_libedit; if test "x$withval" != "xno" ; then
12409 if test "x$withval" = "xyes" ; then
12410 # Extract the first word of "pkg-config", so it can be a program name with args.
12411set dummy pkg-config; ac_word=$2
12412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12414if test "${ac_cv_path_PKGCONFIG+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 case $PKGCONFIG in
12418 [\\/]* | ?:[\\/]*)
12419 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
12420 ;;
12421 *)
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423for as_dir in $PATH
12424do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12429 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
12430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12432 fi
12433done
12434done
12435IFS=$as_save_IFS
12436
12437 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
12438 ;;
12439esac
12440fi
12441PKGCONFIG=$ac_cv_path_PKGCONFIG
12442if test -n "$PKGCONFIG"; then
12443 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
12444echo "${ECHO_T}$PKGCONFIG" >&6; }
12445else
12446 { echo "$as_me:$LINENO: result: no" >&5
12447echo "${ECHO_T}no" >&6; }
12448fi
12449
12450
12451 if test "x$PKGCONFIG" != "xno"; then
12452 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
12453echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
12454 if "$PKGCONFIG" libedit; then
12455 { echo "$as_me:$LINENO: result: yes" >&5
12456echo "${ECHO_T}yes" >&6; }
12457 use_pkgconfig_for_libedit=yes
12458 else
12459 { echo "$as_me:$LINENO: result: no" >&5
12460echo "${ECHO_T}no" >&6; }
12461 fi
12462 fi
12463 else
12464 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12465 if test -n "${need_dash_r}"; then
12466 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12467 else
12468 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12469 fi
12470 fi
12471 if test "x$use_pkgconfig_for_libedit" == "xyes"; then
12472 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
12473 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
12474 else
12475 LIBEDIT="-ledit -lcurses"
12476 fi
12477 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
12478 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12479echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12480if test "${ac_cv_lib_edit_el_init+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 ac_check_lib_save_LIBS=$LIBS
12484LIBS="-ledit $OTHERLIBS
12485 $LIBS"
12486cat >conftest.$ac_ext <<_ACEOF
12487/* confdefs.h. */
12488_ACEOF
12489cat confdefs.h >>conftest.$ac_ext
12490cat >>conftest.$ac_ext <<_ACEOF
12491/* end confdefs.h. */
12492
12493/* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496#ifdef __cplusplus
12497extern "C"
12498#endif
12499char el_init ();
12500int
12501main ()
12502{
12503return el_init ();
12504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext conftest$ac_exeext
12509if { (ac_try="$ac_link"
12510case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513esac
12514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest$ac_exeext &&
12525 $as_test_x conftest$ac_exeext; then
12526 ac_cv_lib_edit_el_init=yes
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ac_cv_lib_edit_el_init=no
12532fi
12533
12534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12536LIBS=$ac_check_lib_save_LIBS
12537fi
12538{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12539echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
12540if test $ac_cv_lib_edit_el_init = yes; then
12541
12542cat >>confdefs.h <<\_ACEOF
12543#define USE_LIBEDIT 1
12544_ACEOF
12545
12546 LIBEDIT_MSG="yes"
12547
12548
12549else
12550 { { echo "$as_me:$LINENO: error: libedit not found" >&5
12551echo "$as_me: error: libedit not found" >&2;}
12552 { (exit 1); exit 1; }; }
12553fi
12554
12555 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12556echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
12557 cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563
12564#include <histedit.h>
12565int main(void)
12566{
12567 int i = H_SETSIZE;
12568 el_init("", NULL, NULL, NULL);
12569 exit(0);
12570}
12571
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (ac_try="$ac_compile"
12575case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && {
12587 test -z "$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12589 } && test -s conftest.$ac_objext; then
12590 { echo "$as_me:$LINENO: result: yes" >&5
12591echo "${ECHO_T}yes" >&6; }
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 { echo "$as_me:$LINENO: result: no" >&5
12597echo "${ECHO_T}no" >&6; }
12598 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
12599echo "$as_me: error: libedit version is not compatible" >&2;}
12600 { (exit 1); exit 1; }; }
12601
12602fi
12603
12604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606
12607fi
12608
12609
12610AUDIT_MODULE=none
12611
12612# Check whether --with-audit was given.
12613if test "${with_audit+set}" = set; then
12614 withval=$with_audit;
12615 { echo "$as_me:$LINENO: checking for supported audit module" >&5
12616echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
12617 case "$withval" in
12618 bsm)
12619 { echo "$as_me:$LINENO: result: bsm" >&5
12620echo "${ECHO_T}bsm" >&6; }
12621 AUDIT_MODULE=bsm
12622
12623for ac_header in bsm/audit.h
12624do
12625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12630else
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637
12638#ifdef HAVE_TIME_H
12639# include <time.h>
12640#endif
12641
12642
12643
12644#include <$ac_header>
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (ac_try="$ac_compile"
12648case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651esac
12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_compile") 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
12663 eval "$as_ac_Header=yes"
12664else
12665 echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 eval "$as_ac_Header=no"
12669fi
12670
12671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672fi
12673ac_res=`eval echo '${'$as_ac_Header'}'`
12674 { echo "$as_me:$LINENO: result: $ac_res" >&5
12675echo "${ECHO_T}$ac_res" >&6; }
12676if test `eval echo '${'$as_ac_Header'}'` = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12679_ACEOF
12680
12681else
12682 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12683echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12684 { (exit 1); exit 1; }; }
12685fi
12686
12687done
12688
12689
12690{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12691echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12692if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695 ac_check_lib_save_LIBS=$LIBS
12696LIBS="-lbsm $LIBS"
12697cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703
12704/* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12707#ifdef __cplusplus
12708extern "C"
12709#endif
12710char getaudit ();
12711int
12712main ()
12713{
12714return getaudit ();
12715 ;
12716 return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext conftest$ac_exeext
12720if { (ac_try="$ac_link"
12721case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724esac
12725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_link") 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest$ac_exeext &&
12736 $as_test_x conftest$ac_exeext; then
12737 ac_cv_lib_bsm_getaudit=yes
12738else
12739 echo "$as_me: failed program was:" >&5
12740sed 's/^/| /' conftest.$ac_ext >&5
12741
12742 ac_cv_lib_bsm_getaudit=no
12743fi
12744
12745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12746 conftest$ac_exeext conftest.$ac_ext
12747LIBS=$ac_check_lib_save_LIBS
12748fi
12749{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12750echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12751if test $ac_cv_lib_bsm_getaudit = yes; then
12752 cat >>confdefs.h <<_ACEOF
12753#define HAVE_LIBBSM 1
12754_ACEOF
12755
12756 LIBS="-lbsm $LIBS"
12757
12758else
12759 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12760echo "$as_me: error: BSM enabled and required library not found" >&2;}
12761 { (exit 1); exit 1; }; }
12762fi
12763
12764
12765for ac_func in getaudit
12766do
12767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12768{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772else
12773 cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12781#define $ac_func innocuous_$ac_func
12782
12783/* System header to define __stub macros and hopefully few prototypes,
12784 which can conflict with char $ac_func (); below.
12785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786 <limits.h> exists even on freestanding compilers. */
12787
12788#ifdef __STDC__
12789# include <limits.h>
12790#else
12791# include <assert.h>
12792#endif
12793
12794#undef $ac_func
12795
12796/* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12799#ifdef __cplusplus
12800extern "C"
12801#endif
12802char $ac_func ();
12803/* The GNU C library defines this for functions which it implements
12804 to always fail with ENOSYS. Some functions are actually named
12805 something starting with __ and the normal name is an alias. */
12806#if defined __stub_$ac_func || defined __stub___$ac_func
12807choke me
12808#endif
12809
12810int
12811main ()
12812{
12813return $ac_func ();
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext conftest$ac_exeext
12819if { (ac_try="$ac_link"
12820case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823esac
12824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && {
12832 test -z "$ac_c_werror_flag" ||
12833 test ! -s conftest.err
12834 } && test -s conftest$ac_exeext &&
12835 $as_test_x conftest$ac_exeext; then
12836 eval "$as_ac_var=yes"
12837else
12838 echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 eval "$as_ac_var=no"
12842fi
12843
12844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12845 conftest$ac_exeext conftest.$ac_ext
12846fi
12847ac_res=`eval echo '${'$as_ac_var'}'`
12848 { echo "$as_me:$LINENO: result: $ac_res" >&5
12849echo "${ECHO_T}$ac_res" >&6; }
12850if test `eval echo '${'$as_ac_var'}'` = yes; then
12851 cat >>confdefs.h <<_ACEOF
12852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12853_ACEOF
12854
12855else
12856 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12857echo "$as_me: error: BSM enabled and required function not found" >&2;}
12858 { (exit 1); exit 1; }; }
12859fi
12860done
12861
12862 # These are optional
12863
12864
12865for ac_func in getaudit_addr aug_get_machine
12866do
12867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */
12879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12881#define $ac_func innocuous_$ac_func
12882
12883/* System header to define __stub macros and hopefully few prototypes,
12884 which can conflict with char $ac_func (); below.
12885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12886 <limits.h> exists even on freestanding compilers. */
12887
12888#ifdef __STDC__
12889# include <limits.h>
12890#else
12891# include <assert.h>
12892#endif
12893
12894#undef $ac_func
12895
12896/* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12899#ifdef __cplusplus
12900extern "C"
12901#endif
12902char $ac_func ();
12903/* The GNU C library defines this for functions which it implements
12904 to always fail with ENOSYS. Some functions are actually named
12905 something starting with __ and the normal name is an alias. */
12906#if defined __stub_$ac_func || defined __stub___$ac_func
12907choke me
12908#endif
12909
12910int
12911main ()
12912{
12913return $ac_func ();
12914 ;
12915 return 0;
12916}
12917_ACEOF
12918rm -f conftest.$ac_objext conftest$ac_exeext
12919if { (ac_try="$ac_link"
12920case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923esac
12924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_link") 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } && {
12932 test -z "$ac_c_werror_flag" ||
12933 test ! -s conftest.err
12934 } && test -s conftest$ac_exeext &&
12935 $as_test_x conftest$ac_exeext; then
12936 eval "$as_ac_var=yes"
12937else
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 eval "$as_ac_var=no"
12942fi
12943
12944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12945 conftest$ac_exeext conftest.$ac_ext
12946fi
12947ac_res=`eval echo '${'$as_ac_var'}'`
12948 { echo "$as_me:$LINENO: result: $ac_res" >&5
12949echo "${ECHO_T}$ac_res" >&6; }
12950if test `eval echo '${'$as_ac_var'}'` = yes; then
12951 cat >>confdefs.h <<_ACEOF
12952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12953_ACEOF
12954
12955fi
12956done
12957
12958
12959cat >>confdefs.h <<\_ACEOF
12960#define USE_BSM_AUDIT 1
12961_ACEOF
12962
12963 ;;
12964 debug)
12965 AUDIT_MODULE=debug
12966 { echo "$as_me:$LINENO: result: debug" >&5
12967echo "${ECHO_T}debug" >&6; }
12968
12969cat >>confdefs.h <<\_ACEOF
12970#define SSH_AUDIT_EVENTS 1
12971_ACEOF
12972
12973 ;;
12974 no)
12975 { echo "$as_me:$LINENO: result: no" >&5
12976echo "${ECHO_T}no" >&6; }
12977 ;;
12978 *)
12979 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12980echo "$as_me: error: Unknown audit module $withval" >&2;}
12981 { (exit 1); exit 1; }; }
12982 ;;
12983 esac
12984
12985fi
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082for ac_func in \
13083 arc4random \
13084 arc4random_buf \
13085 arc4random_uniform \
13086 asprintf \
13087 b64_ntop \
13088 __b64_ntop \
13089 b64_pton \
13090 __b64_pton \
13091 bcopy \
13092 bindresvport_sa \
13093 clock \
13094 closefrom \
13095 dirfd \
13096 fchmod \
13097 fchown \
13098 freeaddrinfo \
13099 fstatvfs \
13100 futimes \
13101 getaddrinfo \
13102 getcwd \
13103 getgrouplist \
13104 getnameinfo \
13105 getopt \
13106 getpeereid \
13107 getpeerucred \
13108 _getpty \
13109 getrlimit \
13110 getttyent \
13111 glob \
13112 group_from_gid \
13113 inet_aton \
13114 inet_ntoa \
13115 inet_ntop \
13116 innetgr \
13117 login_getcapbool \
13118 md5_crypt \
13119 memmove \
13120 mkdtemp \
13121 mmap \
13122 ngetaddrinfo \
13123 nsleep \
13124 ogetaddrinfo \
13125 openlog_r \
13126 openpty \
13127 poll \
13128 prctl \
13129 pstat \
13130 readpassphrase \
13131 realpath \
13132 recvmsg \
13133 rresvport_af \
13134 sendmsg \
13135 setdtablesize \
13136 setegid \
13137 setenv \
13138 seteuid \
13139 setgroupent \
13140 setgroups \
13141 setlogin \
13142 setpassent\
13143 setpcred \
13144 setproctitle \
13145 setregid \
13146 setreuid \
13147 setrlimit \
13148 setsid \
13149 setvbuf \
13150 sigaction \
13151 sigvec \
13152 snprintf \
13153 socketpair \
13154 statfs \
13155 statvfs \
13156 strdup \
13157 strerror \
13158 strlcat \
13159 strlcpy \
13160 strmode \
13161 strnvis \
13162 strptime \
13163 strtonum \
13164 strtoll \
13165 strtoul \
13166 swap32 \
13167 sysconf \
13168 tcgetpgrp \
13169 truncate \
13170 unsetenv \
13171 updwtmpx \
13172 user_from_uid \
13173 vasprintf \
13174 vhangup \
13175 vsnprintf \
13176 waitpid \
13177
13178do
13179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13180{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13182if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185 cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
13191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13193#define $ac_func innocuous_$ac_func
13194
13195/* System header to define __stub macros and hopefully few prototypes,
13196 which can conflict with char $ac_func (); below.
13197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13198 <limits.h> exists even on freestanding compilers. */
13199
13200#ifdef __STDC__
13201# include <limits.h>
13202#else
13203# include <assert.h>
13204#endif
13205
13206#undef $ac_func
13207
13208/* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211#ifdef __cplusplus
13212extern "C"
13213#endif
13214char $ac_func ();
13215/* The GNU C library defines this for functions which it implements
13216 to always fail with ENOSYS. Some functions are actually named
13217 something starting with __ and the normal name is an alias. */
13218#if defined __stub_$ac_func || defined __stub___$ac_func
13219choke me
13220#endif
13221
13222int
13223main ()
13224{
13225return $ac_func ();
13226 ;
13227 return 0;
13228}
13229_ACEOF
13230rm -f conftest.$ac_objext conftest$ac_exeext
13231if { (ac_try="$ac_link"
13232case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_link") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest$ac_exeext &&
13247 $as_test_x conftest$ac_exeext; then
13248 eval "$as_ac_var=yes"
13249else
13250 echo "$as_me: failed program was:" >&5
13251sed 's/^/| /' conftest.$ac_ext >&5
13252
13253 eval "$as_ac_var=no"
13254fi
13255
13256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13257 conftest$ac_exeext conftest.$ac_ext
13258fi
13259ac_res=`eval echo '${'$as_ac_var'}'`
13260 { echo "$as_me:$LINENO: result: $ac_res" >&5
13261echo "${ECHO_T}$ac_res" >&6; }
13262if test `eval echo '${'$as_ac_var'}'` = yes; then
13263 cat >>confdefs.h <<_ACEOF
13264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13265_ACEOF
13266
13267fi
13268done
13269
13270
13271# PKCS#11 support requires dlopen() and co
13272{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13273echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13274if test "${ac_cv_search_dlopen+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276else
13277 ac_func_search_save_LIBS=$LIBS
13278cat >conftest.$ac_ext <<_ACEOF
13279/* confdefs.h. */
13280_ACEOF
13281cat confdefs.h >>conftest.$ac_ext
13282cat >>conftest.$ac_ext <<_ACEOF
13283/* end confdefs.h. */
13284
13285/* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
13288#ifdef __cplusplus
13289extern "C"
13290#endif
13291char dlopen ();
13292int
13293main ()
13294{
13295return dlopen ();
13296 ;
13297 return 0;
13298}
13299_ACEOF
13300for ac_lib in '' dl; do
13301 if test -z "$ac_lib"; then
13302 ac_res="none required"
13303 else
13304 ac_res=-l$ac_lib
13305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13306 fi
13307 rm -f conftest.$ac_objext conftest$ac_exeext
13308if { (ac_try="$ac_link"
13309case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13312esac
13313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_link") 2>conftest.er1
13315 ac_status=$?
13316 grep -v '^ *+' conftest.er1 >conftest.err
13317 rm -f conftest.er1
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && {
13321 test -z "$ac_c_werror_flag" ||
13322 test ! -s conftest.err
13323 } && test -s conftest$ac_exeext &&
13324 $as_test_x conftest$ac_exeext; then
13325 ac_cv_search_dlopen=$ac_res
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330
13331fi
13332
13333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13334 conftest$ac_exeext
13335 if test "${ac_cv_search_dlopen+set}" = set; then
13336 break
13337fi
13338done
13339if test "${ac_cv_search_dlopen+set}" = set; then
13340 :
13341else
13342 ac_cv_search_dlopen=no
13343fi
13344rm conftest.$ac_ext
13345LIBS=$ac_func_search_save_LIBS
13346fi
13347{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13348echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13349ac_res=$ac_cv_search_dlopen
13350if test "$ac_res" != no; then
13351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13352
13353cat >>confdefs.h <<\_ACEOF
13354#define ENABLE_PKCS11
13355_ACEOF
13356
13357
13358fi
13359
13360
13361# IRIX has a const char return value for gai_strerror()
13362
13363for ac_func in gai_strerror
13364do
13365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13366{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370else
13371 cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13379#define $ac_func innocuous_$ac_func
13380
13381/* System header to define __stub macros and hopefully few prototypes,
13382 which can conflict with char $ac_func (); below.
13383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13384 <limits.h> exists even on freestanding compilers. */
13385
13386#ifdef __STDC__
13387# include <limits.h>
13388#else
13389# include <assert.h>
13390#endif
13391
13392#undef $ac_func
13393
13394/* Override any GCC internal prototype to avoid an error.
13395 Use char because int might match the return type of a GCC
13396 builtin and then its argument prototype would still apply. */
13397#ifdef __cplusplus
13398extern "C"
13399#endif
13400char $ac_func ();
13401/* The GNU C library defines this for functions which it implements
13402 to always fail with ENOSYS. Some functions are actually named
13403 something starting with __ and the normal name is an alias. */
13404#if defined __stub_$ac_func || defined __stub___$ac_func
13405choke me
13406#endif
13407
13408int
13409main ()
13410{
13411return $ac_func ();
13412 ;
13413 return 0;
13414}
13415_ACEOF
13416rm -f conftest.$ac_objext conftest$ac_exeext
13417if { (ac_try="$ac_link"
13418case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421esac
13422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_link") 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest$ac_exeext &&
13433 $as_test_x conftest$ac_exeext; then
13434 eval "$as_ac_var=yes"
13435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 eval "$as_ac_var=no"
13440fi
13441
13442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13443 conftest$ac_exeext conftest.$ac_ext
13444fi
13445ac_res=`eval echo '${'$as_ac_var'}'`
13446 { echo "$as_me:$LINENO: result: $ac_res" >&5
13447echo "${ECHO_T}$ac_res" >&6; }
13448if test `eval echo '${'$as_ac_var'}'` = yes; then
13449 cat >>confdefs.h <<_ACEOF
13450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13451_ACEOF
13452
13453 cat >>confdefs.h <<\_ACEOF
13454#define HAVE_GAI_STRERROR 1
13455_ACEOF
13456
13457 cat >conftest.$ac_ext <<_ACEOF
13458/* confdefs.h. */
13459_ACEOF
13460cat confdefs.h >>conftest.$ac_ext
13461cat >>conftest.$ac_ext <<_ACEOF
13462/* end confdefs.h. */
13463
13464#include <sys/types.h>
13465#include <sys/socket.h>
13466#include <netdb.h>
13467
13468const char *gai_strerror(int);
13469int
13470main ()
13471{
13472
13473char *str;
13474
13475str = gai_strerror(0);
13476 ;
13477 return 0;
13478}
13479_ACEOF
13480rm -f conftest.$ac_objext
13481if { (ac_try="$ac_compile"
13482case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_compile") 2>conftest.er1
13488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && {
13494 test -z "$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13496 } && test -s conftest.$ac_objext; then
13497
13498
13499cat >>confdefs.h <<\_ACEOF
13500#define HAVE_CONST_GAI_STRERROR_PROTO 1
13501_ACEOF
13502
13503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507
13508fi
13509
13510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511fi
13512done
13513
13514
13515{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
13516echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
13517if test "${ac_cv_search_nanosleep+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520 ac_func_search_save_LIBS=$LIBS
13521cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
13527
13528/* Override any GCC internal prototype to avoid an error.
13529 Use char because int might match the return type of a GCC
13530 builtin and then its argument prototype would still apply. */
13531#ifdef __cplusplus
13532extern "C"
13533#endif
13534char nanosleep ();
13535int
13536main ()
13537{
13538return nanosleep ();
13539 ;
13540 return 0;
13541}
13542_ACEOF
13543for ac_lib in '' rt posix4; do
13544 if test -z "$ac_lib"; then
13545 ac_res="none required"
13546 else
13547 ac_res=-l$ac_lib
13548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13549 fi
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (ac_try="$ac_link"
13552case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && {
13564 test -z "$ac_c_werror_flag" ||
13565 test ! -s conftest.err
13566 } && test -s conftest$ac_exeext &&
13567 $as_test_x conftest$ac_exeext; then
13568 ac_cv_search_nanosleep=$ac_res
13569else
13570 echo "$as_me: failed program was:" >&5
13571sed 's/^/| /' conftest.$ac_ext >&5
13572
13573
13574fi
13575
13576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13577 conftest$ac_exeext
13578 if test "${ac_cv_search_nanosleep+set}" = set; then
13579 break
13580fi
13581done
13582if test "${ac_cv_search_nanosleep+set}" = set; then
13583 :
13584else
13585 ac_cv_search_nanosleep=no
13586fi
13587rm conftest.$ac_ext
13588LIBS=$ac_func_search_save_LIBS
13589fi
13590{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13591echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
13592ac_res=$ac_cv_search_nanosleep
13593if test "$ac_res" != no; then
13594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13595
13596cat >>confdefs.h <<\_ACEOF
13597#define HAVE_NANOSLEEP 1
13598_ACEOF
13599
13600fi
13601
13602
13603{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13604echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
13605if test "${ac_cv_have_decl_getrusage+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607else
13608 cat >conftest.$ac_ext <<_ACEOF
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614$ac_includes_default
13615int
13616main ()
13617{
13618#ifndef getrusage
13619 (void) getrusage;
13620#endif
13621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626rm -f conftest.$ac_objext
13627if { (ac_try="$ac_compile"
13628case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631esac
13632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_compile") 2>conftest.er1
13634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && {
13640 test -z "$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13642 } && test -s conftest.$ac_objext; then
13643 ac_cv_have_decl_getrusage=yes
13644else
13645 echo "$as_me: failed program was:" >&5
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
13648 ac_cv_have_decl_getrusage=no
13649fi
13650
13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652fi
13653{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13654echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
13655if test $ac_cv_have_decl_getrusage = yes; then
13656
13657for ac_func in getrusage
13658do
13659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13660{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13662if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664else
13665 cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13673#define $ac_func innocuous_$ac_func
13674
13675/* System header to define __stub macros and hopefully few prototypes,
13676 which can conflict with char $ac_func (); below.
13677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13678 <limits.h> exists even on freestanding compilers. */
13679
13680#ifdef __STDC__
13681# include <limits.h>
13682#else
13683# include <assert.h>
13684#endif
13685
13686#undef $ac_func
13687
13688/* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13691#ifdef __cplusplus
13692extern "C"
13693#endif
13694char $ac_func ();
13695/* The GNU C library defines this for functions which it implements
13696 to always fail with ENOSYS. Some functions are actually named
13697 something starting with __ and the normal name is an alias. */
13698#if defined __stub_$ac_func || defined __stub___$ac_func
13699choke me
13700#endif
13701
13702int
13703main ()
13704{
13705return $ac_func ();
13706 ;
13707 return 0;
13708}
13709_ACEOF
13710rm -f conftest.$ac_objext conftest$ac_exeext
13711if { (ac_try="$ac_link"
13712case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_link") 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } && {
13724 test -z "$ac_c_werror_flag" ||
13725 test ! -s conftest.err
13726 } && test -s conftest$ac_exeext &&
13727 $as_test_x conftest$ac_exeext; then
13728 eval "$as_ac_var=yes"
13729else
13730 echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
13733 eval "$as_ac_var=no"
13734fi
13735
13736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13737 conftest$ac_exeext conftest.$ac_ext
13738fi
13739ac_res=`eval echo '${'$as_ac_var'}'`
13740 { echo "$as_me:$LINENO: result: $ac_res" >&5
13741echo "${ECHO_T}$ac_res" >&6; }
13742if test `eval echo '${'$as_ac_var'}'` = yes; then
13743 cat >>confdefs.h <<_ACEOF
13744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13745_ACEOF
13746
13747fi
13748done
13749
13750fi
13751
13752{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
13753echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
13754if test "${ac_cv_have_decl_strsep+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756else
13757 cat >conftest.$ac_ext <<_ACEOF
13758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
13763
13764#ifdef HAVE_STRING_H
13765# include <string.h>
13766#endif
13767
13768
13769int
13770main ()
13771{
13772#ifndef strsep
13773 (void) strsep;
13774#endif
13775
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780rm -f conftest.$ac_objext
13781if { (ac_try="$ac_compile"
13782case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785esac
13786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_compile") 2>conftest.er1
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } && {
13794 test -z "$ac_c_werror_flag" ||
13795 test ! -s conftest.err
13796 } && test -s conftest.$ac_objext; then
13797 ac_cv_have_decl_strsep=yes
13798else
13799 echo "$as_me: failed program was:" >&5
13800sed 's/^/| /' conftest.$ac_ext >&5
13801
13802 ac_cv_have_decl_strsep=no
13803fi
13804
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806fi
13807{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13808echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13809if test $ac_cv_have_decl_strsep = yes; then
13810
13811for ac_func in strsep
13812do
13813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818else
13819 cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
13825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13827#define $ac_func innocuous_$ac_func
13828
13829/* System header to define __stub macros and hopefully few prototypes,
13830 which can conflict with char $ac_func (); below.
13831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13832 <limits.h> exists even on freestanding compilers. */
13833
13834#ifdef __STDC__
13835# include <limits.h>
13836#else
13837# include <assert.h>
13838#endif
13839
13840#undef $ac_func
13841
13842/* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845#ifdef __cplusplus
13846extern "C"
13847#endif
13848char $ac_func ();
13849/* The GNU C library defines this for functions which it implements
13850 to always fail with ENOSYS. Some functions are actually named
13851 something starting with __ and the normal name is an alias. */
13852#if defined __stub_$ac_func || defined __stub___$ac_func
13853choke me
13854#endif
13855
13856int
13857main ()
13858{
13859return $ac_func ();
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864rm -f conftest.$ac_objext conftest$ac_exeext
13865if { (ac_try="$ac_link"
13866case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13882 eval "$as_ac_var=yes"
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 eval "$as_ac_var=no"
13888fi
13889
13890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13892fi
13893ac_res=`eval echo '${'$as_ac_var'}'`
13894 { echo "$as_me:$LINENO: result: $ac_res" >&5
13895echo "${ECHO_T}$ac_res" >&6; }
13896if test `eval echo '${'$as_ac_var'}'` = yes; then
13897 cat >>confdefs.h <<_ACEOF
13898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13899_ACEOF
13900
13901fi
13902done
13903
13904fi
13905
13906
13907{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13908echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13909if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13911else
13912 cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h. */
13918#include <termios.h>
13919
13920
13921int
13922main ()
13923{
13924#ifndef tcsendbreak
13925 (void) tcsendbreak;
13926#endif
13927
13928 ;
13929 return 0;
13930}
13931_ACEOF
13932rm -f conftest.$ac_objext
13933if { (ac_try="$ac_compile"
13934case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937esac
13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_cv_have_decl_tcsendbreak=yes
13950else
13951 echo "$as_me: failed program was:" >&5
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 ac_cv_have_decl_tcsendbreak=no
13955fi
13956
13957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958fi
13959{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13960echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13961if test $ac_cv_have_decl_tcsendbreak = yes; then
13962 cat >>confdefs.h <<\_ACEOF
13963#define HAVE_TCSENDBREAK 1
13964_ACEOF
13965
13966else
13967
13968for ac_func in tcsendbreak
13969do
13970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13971{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13973if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975else
13976 cat >conftest.$ac_ext <<_ACEOF
13977/* confdefs.h. */
13978_ACEOF
13979cat confdefs.h >>conftest.$ac_ext
13980cat >>conftest.$ac_ext <<_ACEOF
13981/* end confdefs.h. */
13982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13984#define $ac_func innocuous_$ac_func
13985
13986/* System header to define __stub macros and hopefully few prototypes,
13987 which can conflict with char $ac_func (); below.
13988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13989 <limits.h> exists even on freestanding compilers. */
13990
13991#ifdef __STDC__
13992# include <limits.h>
13993#else
13994# include <assert.h>
13995#endif
13996
13997#undef $ac_func
13998
13999/* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14002#ifdef __cplusplus
14003extern "C"
14004#endif
14005char $ac_func ();
14006/* The GNU C library defines this for functions which it implements
14007 to always fail with ENOSYS. Some functions are actually named
14008 something starting with __ and the normal name is an alias. */
14009#if defined __stub_$ac_func || defined __stub___$ac_func
14010choke me
14011#endif
14012
14013int
14014main ()
14015{
14016return $ac_func ();
14017 ;
14018 return 0;
14019}
14020_ACEOF
14021rm -f conftest.$ac_objext conftest$ac_exeext
14022if { (ac_try="$ac_link"
14023case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026esac
14027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_link") 2>conftest.er1
14029 ac_status=$?
14030 grep -v '^ *+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && {
14035 test -z "$ac_c_werror_flag" ||
14036 test ! -s conftest.err
14037 } && test -s conftest$ac_exeext &&
14038 $as_test_x conftest$ac_exeext; then
14039 eval "$as_ac_var=yes"
14040else
14041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 eval "$as_ac_var=no"
14045fi
14046
14047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14048 conftest$ac_exeext conftest.$ac_ext
14049fi
14050ac_res=`eval echo '${'$as_ac_var'}'`
14051 { echo "$as_me:$LINENO: result: $ac_res" >&5
14052echo "${ECHO_T}$ac_res" >&6; }
14053if test `eval echo '${'$as_ac_var'}'` = yes; then
14054 cat >>confdefs.h <<_ACEOF
14055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14056_ACEOF
14057
14058fi
14059done
14060
14061fi
14062
14063
14064{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14065echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
14066if test "${ac_cv_have_decl_h_errno+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068else
14069 cat >conftest.$ac_ext <<_ACEOF
14070/* confdefs.h. */
14071_ACEOF
14072cat confdefs.h >>conftest.$ac_ext
14073cat >>conftest.$ac_ext <<_ACEOF
14074/* end confdefs.h. */
14075#include <netdb.h>
14076
14077int
14078main ()
14079{
14080#ifndef h_errno
14081 (void) h_errno;
14082#endif
14083
14084 ;
14085 return 0;
14086}
14087_ACEOF
14088rm -f conftest.$ac_objext
14089if { (ac_try="$ac_compile"
14090case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14093esac
14094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_compile") 2>conftest.er1
14096 ac_status=$?
14097 grep -v '^ *+' conftest.er1 >conftest.err
14098 rm -f conftest.er1
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && {
14102 test -z "$ac_c_werror_flag" ||
14103 test ! -s conftest.err
14104 } && test -s conftest.$ac_objext; then
14105 ac_cv_have_decl_h_errno=yes
14106else
14107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_cv_have_decl_h_errno=no
14111fi
14112
14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114fi
14115{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14116echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
14117if test $ac_cv_have_decl_h_errno = yes; then
14118
14119cat >>confdefs.h <<_ACEOF
14120#define HAVE_DECL_H_ERRNO 1
14121_ACEOF
14122
14123
14124else
14125 cat >>confdefs.h <<_ACEOF
14126#define HAVE_DECL_H_ERRNO 0
14127_ACEOF
14128
14129
14130fi
14131
14132
14133
14134{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14135echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
14136if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 cat >conftest.$ac_ext <<_ACEOF
14140/* confdefs.h. */
14141_ACEOF
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
14144/* end confdefs.h. */
14145
14146#include <sys/types.h>
14147#include <sys/socket.h>
14148
14149
14150int
14151main ()
14152{
14153#ifndef SHUT_RD
14154 (void) SHUT_RD;
14155#endif
14156
14157 ;
14158 return 0;
14159}
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (ac_try="$ac_compile"
14163case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_compile") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } && {
14175 test -z "$ac_c_werror_flag" ||
14176 test ! -s conftest.err
14177 } && test -s conftest.$ac_objext; then
14178 ac_cv_have_decl_SHUT_RD=yes
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ac_cv_have_decl_SHUT_RD=no
14184fi
14185
14186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187fi
14188{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14189echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14190if test $ac_cv_have_decl_SHUT_RD = yes; then
14191
14192cat >>confdefs.h <<_ACEOF
14193#define HAVE_DECL_SHUT_RD 1
14194_ACEOF
14195
14196
14197else
14198 cat >>confdefs.h <<_ACEOF
14199#define HAVE_DECL_SHUT_RD 0
14200_ACEOF
14201
14202
14203fi
14204
14205
14206
14207{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
14208echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
14209if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
14212 cat >conftest.$ac_ext <<_ACEOF
14213/* confdefs.h. */
14214_ACEOF
14215cat confdefs.h >>conftest.$ac_ext
14216cat >>conftest.$ac_ext <<_ACEOF
14217/* end confdefs.h. */
14218
14219#include <sys/types.h>
14220#ifdef HAVE_SYS_STAT_H
14221# include <sys/stat.h>
14222#endif
14223#ifdef HAVE_FCNTL_H
14224# include <fcntl.h>
14225#endif
14226
14227
14228int
14229main ()
14230{
14231#ifndef O_NONBLOCK
14232 (void) O_NONBLOCK;
14233#endif
14234
14235 ;
14236 return 0;
14237}
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (ac_try="$ac_compile"
14241case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244esac
14245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_compile") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest.$ac_objext; then
14256 ac_cv_have_decl_O_NONBLOCK=yes
14257else
14258 echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 ac_cv_have_decl_O_NONBLOCK=no
14262fi
14263
14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265fi
14266{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
14267echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
14268if test $ac_cv_have_decl_O_NONBLOCK = yes; then
14269
14270cat >>confdefs.h <<_ACEOF
14271#define HAVE_DECL_O_NONBLOCK 1
14272_ACEOF
14273
14274
14275else
14276 cat >>confdefs.h <<_ACEOF
14277#define HAVE_DECL_O_NONBLOCK 0
14278_ACEOF
14279
14280
14281fi
14282
14283
14284
14285{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
14286echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
14287if test "${ac_cv_have_decl_writev+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289else
14290 cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
14296
14297#include <sys/types.h>
14298#include <sys/uio.h>
14299#include <unistd.h>
14300
14301
14302int
14303main ()
14304{
14305#ifndef writev
14306 (void) writev;
14307#endif
14308
14309 ;
14310 return 0;
14311}
14312_ACEOF
14313rm -f conftest.$ac_objext
14314if { (ac_try="$ac_compile"
14315case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318esac
14319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_compile") 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest.$ac_objext; then
14330 ac_cv_have_decl_writev=yes
14331else
14332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 ac_cv_have_decl_writev=no
14336fi
14337
14338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339fi
14340{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
14341echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
14342if test $ac_cv_have_decl_writev = yes; then
14343
14344cat >>confdefs.h <<_ACEOF
14345#define HAVE_DECL_WRITEV 1
14346_ACEOF
14347
14348
14349else
14350 cat >>confdefs.h <<_ACEOF
14351#define HAVE_DECL_WRITEV 0
14352_ACEOF
14353
14354
14355fi
14356
14357
14358
14359{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
14360echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
14361if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 cat >conftest.$ac_ext <<_ACEOF
14365/* confdefs.h. */
14366_ACEOF
14367cat confdefs.h >>conftest.$ac_ext
14368cat >>conftest.$ac_ext <<_ACEOF
14369/* end confdefs.h. */
14370
14371#include <sys/param.h>
14372
14373
14374int
14375main ()
14376{
14377#ifndef MAXSYMLINKS
14378 (void) MAXSYMLINKS;
14379#endif
14380
14381 ;
14382 return 0;
14383}
14384_ACEOF
14385rm -f conftest.$ac_objext
14386if { (ac_try="$ac_compile"
14387case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14390esac
14391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_compile") 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && {
14399 test -z "$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 } && test -s conftest.$ac_objext; then
14402 ac_cv_have_decl_MAXSYMLINKS=yes
14403else
14404 echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 ac_cv_have_decl_MAXSYMLINKS=no
14408fi
14409
14410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411fi
14412{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
14413echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
14414if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
14415
14416cat >>confdefs.h <<_ACEOF
14417#define HAVE_DECL_MAXSYMLINKS 1
14418_ACEOF
14419
14420
14421else
14422 cat >>confdefs.h <<_ACEOF
14423#define HAVE_DECL_MAXSYMLINKS 0
14424_ACEOF
14425
14426
14427fi
14428
14429
14430
14431{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
14432echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
14433if test "${ac_cv_have_decl_offsetof+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435else
14436 cat >conftest.$ac_ext <<_ACEOF
14437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442
14443#include <stddef.h>
14444
14445
14446int
14447main ()
14448{
14449#ifndef offsetof
14450 (void) offsetof;
14451#endif
14452
14453 ;
14454 return 0;
14455}
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (ac_try="$ac_compile"
14459case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462esac
14463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_compile") 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && {
14471 test -z "$ac_c_werror_flag" ||
14472 test ! -s conftest.err
14473 } && test -s conftest.$ac_objext; then
14474 ac_cv_have_decl_offsetof=yes
14475else
14476 echo "$as_me: failed program was:" >&5
14477sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ac_cv_have_decl_offsetof=no
14480fi
14481
14482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483fi
14484{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
14485echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
14486if test $ac_cv_have_decl_offsetof = yes; then
14487
14488cat >>confdefs.h <<_ACEOF
14489#define HAVE_DECL_OFFSETOF 1
14490_ACEOF
14491
14492
14493else
14494 cat >>confdefs.h <<_ACEOF
14495#define HAVE_DECL_OFFSETOF 0
14496_ACEOF
14497
14498
14499fi
14500
14501
14502
14503
14504for ac_func in setresuid
14505do
14506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14507{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14509if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511else
14512 cat >conftest.$ac_ext <<_ACEOF
14513/* confdefs.h. */
14514_ACEOF
14515cat confdefs.h >>conftest.$ac_ext
14516cat >>conftest.$ac_ext <<_ACEOF
14517/* end confdefs.h. */
14518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14520#define $ac_func innocuous_$ac_func
14521
14522/* System header to define __stub macros and hopefully few prototypes,
14523 which can conflict with char $ac_func (); below.
14524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14525 <limits.h> exists even on freestanding compilers. */
14526
14527#ifdef __STDC__
14528# include <limits.h>
14529#else
14530# include <assert.h>
14531#endif
14532
14533#undef $ac_func
14534
14535/* Override any GCC internal prototype to avoid an error.
14536 Use char because int might match the return type of a GCC
14537 builtin and then its argument prototype would still apply. */
14538#ifdef __cplusplus
14539extern "C"
14540#endif
14541char $ac_func ();
14542/* The GNU C library defines this for functions which it implements
14543 to always fail with ENOSYS. Some functions are actually named
14544 something starting with __ and the normal name is an alias. */
14545#if defined __stub_$ac_func || defined __stub___$ac_func
14546choke me
14547#endif
14548
14549int
14550main ()
14551{
14552return $ac_func ();
14553 ;
14554 return 0;
14555}
14556_ACEOF
14557rm -f conftest.$ac_objext conftest$ac_exeext
14558if { (ac_try="$ac_link"
14559case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562esac
14563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_link") 2>conftest.er1
14565 ac_status=$?
14566 grep -v '^ *+' conftest.er1 >conftest.err
14567 rm -f conftest.er1
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } && {
14571 test -z "$ac_c_werror_flag" ||
14572 test ! -s conftest.err
14573 } && test -s conftest$ac_exeext &&
14574 $as_test_x conftest$ac_exeext; then
14575 eval "$as_ac_var=yes"
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580 eval "$as_ac_var=no"
14581fi
14582
14583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14584 conftest$ac_exeext conftest.$ac_ext
14585fi
14586ac_res=`eval echo '${'$as_ac_var'}'`
14587 { echo "$as_me:$LINENO: result: $ac_res" >&5
14588echo "${ECHO_T}$ac_res" >&6; }
14589if test `eval echo '${'$as_ac_var'}'` = yes; then
14590 cat >>confdefs.h <<_ACEOF
14591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14592_ACEOF
14593
14594 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14595echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
14596 if test "$cross_compiling" = yes; then
14597 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14598echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14599
14600else
14601 cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607
14608#include <stdlib.h>
14609#include <errno.h>
14610int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14611
14612_ACEOF
14613rm -f conftest$ac_exeext
14614if { (ac_try="$ac_link"
14615case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618esac
14619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14624 { (case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14627esac
14628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 { echo "$as_me:$LINENO: result: yes" >&5
14634echo "${ECHO_T}yes" >&6; }
14635else
14636 echo "$as_me: program exited with status $ac_status" >&5
14637echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
14640( exit $ac_status )
14641
14642cat >>confdefs.h <<\_ACEOF
14643#define BROKEN_SETRESUID 1
14644_ACEOF
14645
14646 { echo "$as_me:$LINENO: result: not implemented" >&5
14647echo "${ECHO_T}not implemented" >&6; }
14648fi
14649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14650fi
14651
14652
14653
14654fi
14655done
14656
14657
14658
14659for ac_func in setresgid
14660do
14661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14662{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14664if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666else
14667 cat >conftest.$ac_ext <<_ACEOF
14668/* confdefs.h. */
14669_ACEOF
14670cat confdefs.h >>conftest.$ac_ext
14671cat >>conftest.$ac_ext <<_ACEOF
14672/* end confdefs.h. */
14673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14675#define $ac_func innocuous_$ac_func
14676
14677/* System header to define __stub macros and hopefully few prototypes,
14678 which can conflict with char $ac_func (); below.
14679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14680 <limits.h> exists even on freestanding compilers. */
14681
14682#ifdef __STDC__
14683# include <limits.h>
14684#else
14685# include <assert.h>
14686#endif
14687
14688#undef $ac_func
14689
14690/* Override any GCC internal prototype to avoid an error.
14691 Use char because int might match the return type of a GCC
14692 builtin and then its argument prototype would still apply. */
14693#ifdef __cplusplus
14694extern "C"
14695#endif
14696char $ac_func ();
14697/* The GNU C library defines this for functions which it implements
14698 to always fail with ENOSYS. Some functions are actually named
14699 something starting with __ and the normal name is an alias. */
14700#if defined __stub_$ac_func || defined __stub___$ac_func
14701choke me
14702#endif
14703
14704int
14705main ()
14706{
14707return $ac_func ();
14708 ;
14709 return 0;
14710}
14711_ACEOF
14712rm -f conftest.$ac_objext conftest$ac_exeext
14713if { (ac_try="$ac_link"
14714case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717esac
14718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_link") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest$ac_exeext &&
14729 $as_test_x conftest$ac_exeext; then
14730 eval "$as_ac_var=yes"
14731else
14732 echo "$as_me: failed program was:" >&5
14733sed 's/^/| /' conftest.$ac_ext >&5
14734
14735 eval "$as_ac_var=no"
14736fi
14737
14738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14739 conftest$ac_exeext conftest.$ac_ext
14740fi
14741ac_res=`eval echo '${'$as_ac_var'}'`
14742 { echo "$as_me:$LINENO: result: $ac_res" >&5
14743echo "${ECHO_T}$ac_res" >&6; }
14744if test `eval echo '${'$as_ac_var'}'` = yes; then
14745 cat >>confdefs.h <<_ACEOF
14746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14747_ACEOF
14748
14749 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
14750echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
14751 if test "$cross_compiling" = yes; then
14752 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14753echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14754
14755else
14756 cat >conftest.$ac_ext <<_ACEOF
14757/* confdefs.h. */
14758_ACEOF
14759cat confdefs.h >>conftest.$ac_ext
14760cat >>conftest.$ac_ext <<_ACEOF
14761/* end confdefs.h. */
14762
14763#include <stdlib.h>
14764#include <errno.h>
14765int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14766
14767_ACEOF
14768rm -f conftest$ac_exeext
14769if { (ac_try="$ac_link"
14770case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773esac
14774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_link") 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 { echo "$as_me:$LINENO: result: yes" >&5
14789echo "${ECHO_T}yes" >&6; }
14790else
14791 echo "$as_me: program exited with status $ac_status" >&5
14792echo "$as_me: failed program was:" >&5
14793sed 's/^/| /' conftest.$ac_ext >&5
14794
14795( exit $ac_status )
14796
14797cat >>confdefs.h <<\_ACEOF
14798#define BROKEN_SETRESGID 1
14799_ACEOF
14800
14801 { echo "$as_me:$LINENO: result: not implemented" >&5
14802echo "${ECHO_T}not implemented" >&6; }
14803fi
14804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14805fi
14806
14807
14808
14809fi
14810done
14811
14812
14813
14814
14815for ac_func in gettimeofday time
14816do
14817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14818{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822else
14823 cat >conftest.$ac_ext <<_ACEOF
14824/* confdefs.h. */
14825_ACEOF
14826cat confdefs.h >>conftest.$ac_ext
14827cat >>conftest.$ac_ext <<_ACEOF
14828/* end confdefs.h. */
14829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14831#define $ac_func innocuous_$ac_func
14832
14833/* System header to define __stub macros and hopefully few prototypes,
14834 which can conflict with char $ac_func (); below.
14835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14836 <limits.h> exists even on freestanding compilers. */
14837
14838#ifdef __STDC__
14839# include <limits.h>
14840#else
14841# include <assert.h>
14842#endif
14843
14844#undef $ac_func
14845
14846/* Override any GCC internal prototype to avoid an error.
14847 Use char because int might match the return type of a GCC
14848 builtin and then its argument prototype would still apply. */
14849#ifdef __cplusplus
14850extern "C"
14851#endif
14852char $ac_func ();
14853/* The GNU C library defines this for functions which it implements
14854 to always fail with ENOSYS. Some functions are actually named
14855 something starting with __ and the normal name is an alias. */
14856#if defined __stub_$ac_func || defined __stub___$ac_func
14857choke me
14858#endif
14859
14860int
14861main ()
14862{
14863return $ac_func ();
14864 ;
14865 return 0;
14866}
14867_ACEOF
14868rm -f conftest.$ac_objext conftest$ac_exeext
14869if { (ac_try="$ac_link"
14870case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873esac
14874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_link") 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest$ac_exeext &&
14885 $as_test_x conftest$ac_exeext; then
14886 eval "$as_ac_var=yes"
14887else
14888 echo "$as_me: failed program was:" >&5
14889sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 eval "$as_ac_var=no"
14892fi
14893
14894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14895 conftest$ac_exeext conftest.$ac_ext
14896fi
14897ac_res=`eval echo '${'$as_ac_var'}'`
14898 { echo "$as_me:$LINENO: result: $ac_res" >&5
14899echo "${ECHO_T}$ac_res" >&6; }
14900if test `eval echo '${'$as_ac_var'}'` = yes; then
14901 cat >>confdefs.h <<_ACEOF
14902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14903_ACEOF
14904
14905fi
14906done
14907
14908
14909
14910
14911
14912
14913
14914for ac_func in endutent getutent getutid getutline pututline setutent
14915do
14916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14921else
14922 cat >conftest.$ac_ext <<_ACEOF
14923/* confdefs.h. */
14924_ACEOF
14925cat confdefs.h >>conftest.$ac_ext
14926cat >>conftest.$ac_ext <<_ACEOF
14927/* end confdefs.h. */
14928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14930#define $ac_func innocuous_$ac_func
14931
14932/* System header to define __stub macros and hopefully few prototypes,
14933 which can conflict with char $ac_func (); below.
14934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14935 <limits.h> exists even on freestanding compilers. */
14936
14937#ifdef __STDC__
14938# include <limits.h>
14939#else
14940# include <assert.h>
14941#endif
14942
14943#undef $ac_func
14944
14945/* Override any GCC internal prototype to avoid an error.
14946 Use char because int might match the return type of a GCC
14947 builtin and then its argument prototype would still apply. */
14948#ifdef __cplusplus
14949extern "C"
14950#endif
14951char $ac_func ();
14952/* The GNU C library defines this for functions which it implements
14953 to always fail with ENOSYS. Some functions are actually named
14954 something starting with __ and the normal name is an alias. */
14955#if defined __stub_$ac_func || defined __stub___$ac_func
14956choke me
14957#endif
14958
14959int
14960main ()
14961{
14962return $ac_func ();
14963 ;
14964 return 0;
14965}
14966_ACEOF
14967rm -f conftest.$ac_objext conftest$ac_exeext
14968if { (ac_try="$ac_link"
14969case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972esac
14973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_link") 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext &&
14984 $as_test_x conftest$ac_exeext; then
14985 eval "$as_ac_var=yes"
14986else
14987 echo "$as_me: failed program was:" >&5
14988sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 eval "$as_ac_var=no"
14991fi
14992
14993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14994 conftest$ac_exeext conftest.$ac_ext
14995fi
14996ac_res=`eval echo '${'$as_ac_var'}'`
14997 { echo "$as_me:$LINENO: result: $ac_res" >&5
14998echo "${ECHO_T}$ac_res" >&6; }
14999if test `eval echo '${'$as_ac_var'}'` = yes; then
15000 cat >>confdefs.h <<_ACEOF
15001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15002_ACEOF
15003
15004fi
15005done
15006
15007
15008for ac_func in utmpname
15009do
15010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016 cat >conftest.$ac_ext <<_ACEOF
15017/* confdefs.h. */
15018_ACEOF
15019cat confdefs.h >>conftest.$ac_ext
15020cat >>conftest.$ac_ext <<_ACEOF
15021/* end confdefs.h. */
15022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15024#define $ac_func innocuous_$ac_func
15025
15026/* System header to define __stub macros and hopefully few prototypes,
15027 which can conflict with char $ac_func (); below.
15028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15029 <limits.h> exists even on freestanding compilers. */
15030
15031#ifdef __STDC__
15032# include <limits.h>
15033#else
15034# include <assert.h>
15035#endif
15036
15037#undef $ac_func
15038
15039/* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15042#ifdef __cplusplus
15043extern "C"
15044#endif
15045char $ac_func ();
15046/* The GNU C library defines this for functions which it implements
15047 to always fail with ENOSYS. Some functions are actually named
15048 something starting with __ and the normal name is an alias. */
15049#if defined __stub_$ac_func || defined __stub___$ac_func
15050choke me
15051#endif
15052
15053int
15054main ()
15055{
15056return $ac_func ();
15057 ;
15058 return 0;
15059}
15060_ACEOF
15061rm -f conftest.$ac_objext conftest$ac_exeext
15062if { (ac_try="$ac_link"
15063case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
15067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
15079 eval "$as_ac_var=yes"
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084 eval "$as_ac_var=no"
15085fi
15086
15087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15089fi
15090ac_res=`eval echo '${'$as_ac_var'}'`
15091 { echo "$as_me:$LINENO: result: $ac_res" >&5
15092echo "${ECHO_T}$ac_res" >&6; }
15093if test `eval echo '${'$as_ac_var'}'` = yes; then
15094 cat >>confdefs.h <<_ACEOF
15095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15096_ACEOF
15097
15098fi
15099done
15100
15101
15102
15103
15104
15105
15106
15107for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
15108do
15109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114else
15115 cat >conftest.$ac_ext <<_ACEOF
15116/* confdefs.h. */
15117_ACEOF
15118cat confdefs.h >>conftest.$ac_ext
15119cat >>conftest.$ac_ext <<_ACEOF
15120/* end confdefs.h. */
15121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15123#define $ac_func innocuous_$ac_func
15124
15125/* System header to define __stub macros and hopefully few prototypes,
15126 which can conflict with char $ac_func (); below.
15127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15128 <limits.h> exists even on freestanding compilers. */
15129
15130#ifdef __STDC__
15131# include <limits.h>
15132#else
15133# include <assert.h>
15134#endif
15135
15136#undef $ac_func
15137
15138/* Override any GCC internal prototype to avoid an error.
15139 Use char because int might match the return type of a GCC
15140 builtin and then its argument prototype would still apply. */
15141#ifdef __cplusplus
15142extern "C"
15143#endif
15144char $ac_func ();
15145/* The GNU C library defines this for functions which it implements
15146 to always fail with ENOSYS. Some functions are actually named
15147 something starting with __ and the normal name is an alias. */
15148#if defined __stub_$ac_func || defined __stub___$ac_func
15149choke me
15150#endif
15151
15152int
15153main ()
15154{
15155return $ac_func ();
15156 ;
15157 return 0;
15158}
15159_ACEOF
15160rm -f conftest.$ac_objext conftest$ac_exeext
15161if { (ac_try="$ac_link"
15162case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165esac
15166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_link") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest$ac_exeext &&
15177 $as_test_x conftest$ac_exeext; then
15178 eval "$as_ac_var=yes"
15179else
15180 echo "$as_me: failed program was:" >&5
15181sed 's/^/| /' conftest.$ac_ext >&5
15182
15183 eval "$as_ac_var=no"
15184fi
15185
15186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15187 conftest$ac_exeext conftest.$ac_ext
15188fi
15189ac_res=`eval echo '${'$as_ac_var'}'`
15190 { echo "$as_me:$LINENO: result: $ac_res" >&5
15191echo "${ECHO_T}$ac_res" >&6; }
15192if test `eval echo '${'$as_ac_var'}'` = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15195_ACEOF
15196
15197fi
15198done
15199
15200
15201
15202
15203for ac_func in setutxdb setutxent utmpxname
15204do
15205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210else
15211 cat >conftest.$ac_ext <<_ACEOF
15212/* confdefs.h. */
15213_ACEOF
15214cat confdefs.h >>conftest.$ac_ext
15215cat >>conftest.$ac_ext <<_ACEOF
15216/* end confdefs.h. */
15217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15219#define $ac_func innocuous_$ac_func
15220
15221/* System header to define __stub macros and hopefully few prototypes,
15222 which can conflict with char $ac_func (); below.
15223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15224 <limits.h> exists even on freestanding compilers. */
15225
15226#ifdef __STDC__
15227# include <limits.h>
15228#else
15229# include <assert.h>
15230#endif
15231
15232#undef $ac_func
15233
15234/* Override any GCC internal prototype to avoid an error.
15235 Use char because int might match the return type of a GCC
15236 builtin and then its argument prototype would still apply. */
15237#ifdef __cplusplus
15238extern "C"
15239#endif
15240char $ac_func ();
15241/* The GNU C library defines this for functions which it implements
15242 to always fail with ENOSYS. Some functions are actually named
15243 something starting with __ and the normal name is an alias. */
15244#if defined __stub_$ac_func || defined __stub___$ac_func
15245choke me
15246#endif
15247
15248int
15249main ()
15250{
15251return $ac_func ();
15252 ;
15253 return 0;
15254}
15255_ACEOF
15256rm -f conftest.$ac_objext conftest$ac_exeext
15257if { (ac_try="$ac_link"
15258case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
15262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_link") 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 } && test -s conftest$ac_exeext &&
15273 $as_test_x conftest$ac_exeext; then
15274 eval "$as_ac_var=yes"
15275else
15276 echo "$as_me: failed program was:" >&5
15277sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 eval "$as_ac_var=no"
15280fi
15281
15282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15283 conftest$ac_exeext conftest.$ac_ext
15284fi
15285ac_res=`eval echo '${'$as_ac_var'}'`
15286 { echo "$as_me:$LINENO: result: $ac_res" >&5
15287echo "${ECHO_T}$ac_res" >&6; }
15288if test `eval echo '${'$as_ac_var'}'` = yes; then
15289 cat >>confdefs.h <<_ACEOF
15290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15291_ACEOF
15292
15293fi
15294done
15295
15296
15297for ac_func in getlastlogxbyname
15298do
15299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15300{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15302if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15304else
15305 cat >conftest.$ac_ext <<_ACEOF
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
15311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15313#define $ac_func innocuous_$ac_func
15314
15315/* System header to define __stub macros and hopefully few prototypes,
15316 which can conflict with char $ac_func (); below.
15317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15318 <limits.h> exists even on freestanding compilers. */
15319
15320#ifdef __STDC__
15321# include <limits.h>
15322#else
15323# include <assert.h>
15324#endif
15325
15326#undef $ac_func
15327
15328/* Override any GCC internal prototype to avoid an error.
15329 Use char because int might match the return type of a GCC
15330 builtin and then its argument prototype would still apply. */
15331#ifdef __cplusplus
15332extern "C"
15333#endif
15334char $ac_func ();
15335/* The GNU C library defines this for functions which it implements
15336 to always fail with ENOSYS. Some functions are actually named
15337 something starting with __ and the normal name is an alias. */
15338#if defined __stub_$ac_func || defined __stub___$ac_func
15339choke me
15340#endif
15341
15342int
15343main ()
15344{
15345return $ac_func ();
15346 ;
15347 return 0;
15348}
15349_ACEOF
15350rm -f conftest.$ac_objext conftest$ac_exeext
15351if { (ac_try="$ac_link"
15352case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } && {
15364 test -z "$ac_c_werror_flag" ||
15365 test ! -s conftest.err
15366 } && test -s conftest$ac_exeext &&
15367 $as_test_x conftest$ac_exeext; then
15368 eval "$as_ac_var=yes"
15369else
15370 echo "$as_me: failed program was:" >&5
15371sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 eval "$as_ac_var=no"
15374fi
15375
15376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15377 conftest$ac_exeext conftest.$ac_ext
15378fi
15379ac_res=`eval echo '${'$as_ac_var'}'`
15380 { echo "$as_me:$LINENO: result: $ac_res" >&5
15381echo "${ECHO_T}$ac_res" >&6; }
15382if test `eval echo '${'$as_ac_var'}'` = yes; then
15383 cat >>confdefs.h <<_ACEOF
15384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15385_ACEOF
15386
15387fi
15388done
15389
15390
15391{ echo "$as_me:$LINENO: checking for daemon" >&5
15392echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
15393if test "${ac_cv_func_daemon+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395else
15396 cat >conftest.$ac_ext <<_ACEOF
15397/* confdefs.h. */
15398_ACEOF
15399cat confdefs.h >>conftest.$ac_ext
15400cat >>conftest.$ac_ext <<_ACEOF
15401/* end confdefs.h. */
15402/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
15403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15404#define daemon innocuous_daemon
15405
15406/* System header to define __stub macros and hopefully few prototypes,
15407 which can conflict with char daemon (); below.
15408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409 <limits.h> exists even on freestanding compilers. */
15410
15411#ifdef __STDC__
15412# include <limits.h>
15413#else
15414# include <assert.h>
15415#endif
15416
15417#undef daemon
15418
15419/* Override any GCC internal prototype to avoid an error.
15420 Use char because int might match the return type of a GCC
15421 builtin and then its argument prototype would still apply. */
15422#ifdef __cplusplus
15423extern "C"
15424#endif
15425char daemon ();
15426/* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429#if defined __stub_daemon || defined __stub___daemon
15430choke me
15431#endif
15432
15433int
15434main ()
15435{
15436return daemon ();
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext conftest$ac_exeext
15442if { (ac_try="$ac_link"
15443case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446esac
15447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_c_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext &&
15458 $as_test_x conftest$ac_exeext; then
15459 ac_cv_func_daemon=yes
15460else
15461 echo "$as_me: failed program was:" >&5
15462sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 ac_cv_func_daemon=no
15465fi
15466
15467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15468 conftest$ac_exeext conftest.$ac_ext
15469fi
15470{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
15471echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
15472if test $ac_cv_func_daemon = yes; then
15473
15474cat >>confdefs.h <<\_ACEOF
15475#define HAVE_DAEMON 1
15476_ACEOF
15477
15478else
15479 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
15480echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
15481if test "${ac_cv_lib_bsd_daemon+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483else
15484 ac_check_lib_save_LIBS=$LIBS
15485LIBS="-lbsd $LIBS"
15486cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */
15488_ACEOF
15489cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF
15491/* end confdefs.h. */
15492
15493/* Override any GCC internal prototype to avoid an error.
15494 Use char because int might match the return type of a GCC
15495 builtin and then its argument prototype would still apply. */
15496#ifdef __cplusplus
15497extern "C"
15498#endif
15499char daemon ();
15500int
15501main ()
15502{
15503return daemon ();
15504 ;
15505 return 0;
15506}
15507_ACEOF
15508rm -f conftest.$ac_objext conftest$ac_exeext
15509if { (ac_try="$ac_link"
15510case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15513esac
15514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_link") 2>conftest.er1
15516 ac_status=$?
15517 grep -v '^ *+' conftest.er1 >conftest.err
15518 rm -f conftest.er1
15519 cat conftest.err >&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } && {
15522 test -z "$ac_c_werror_flag" ||
15523 test ! -s conftest.err
15524 } && test -s conftest$ac_exeext &&
15525 $as_test_x conftest$ac_exeext; then
15526 ac_cv_lib_bsd_daemon=yes
15527else
15528 echo "$as_me: failed program was:" >&5
15529sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 ac_cv_lib_bsd_daemon=no
15532fi
15533
15534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15535 conftest$ac_exeext conftest.$ac_ext
15536LIBS=$ac_check_lib_save_LIBS
15537fi
15538{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
15539echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
15540if test $ac_cv_lib_bsd_daemon = yes; then
15541 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
15542#define HAVE_DAEMON 1
15543_ACEOF
15544
15545fi
15546
15547
15548fi
15549
15550
15551{ echo "$as_me:$LINENO: checking for getpagesize" >&5
15552echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15553if test "${ac_cv_func_getpagesize+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else
15556 cat >conftest.$ac_ext <<_ACEOF
15557/* confdefs.h. */
15558_ACEOF
15559cat confdefs.h >>conftest.$ac_ext
15560cat >>conftest.$ac_ext <<_ACEOF
15561/* end confdefs.h. */
15562/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
15563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15564#define getpagesize innocuous_getpagesize
15565
15566/* System header to define __stub macros and hopefully few prototypes,
15567 which can conflict with char getpagesize (); below.
15568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15569 <limits.h> exists even on freestanding compilers. */
15570
15571#ifdef __STDC__
15572# include <limits.h>
15573#else
15574# include <assert.h>
15575#endif
15576
15577#undef getpagesize
15578
15579/* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15582#ifdef __cplusplus
15583extern "C"
15584#endif
15585char getpagesize ();
15586/* The GNU C library defines this for functions which it implements
15587 to always fail with ENOSYS. Some functions are actually named
15588 something starting with __ and the normal name is an alias. */
15589#if defined __stub_getpagesize || defined __stub___getpagesize
15590choke me
15591#endif
15592
15593int
15594main ()
15595{
15596return getpagesize ();
15597 ;
15598 return 0;
15599}
15600_ACEOF
15601rm -f conftest.$ac_objext conftest$ac_exeext
15602if { (ac_try="$ac_link"
15603case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_link") 2>conftest.er1
15609 ac_status=$?
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } && {
15615 test -z "$ac_c_werror_flag" ||
15616 test ! -s conftest.err
15617 } && test -s conftest$ac_exeext &&
15618 $as_test_x conftest$ac_exeext; then
15619 ac_cv_func_getpagesize=yes
15620else
15621 echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 ac_cv_func_getpagesize=no
15625fi
15626
15627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15628 conftest$ac_exeext conftest.$ac_ext
15629fi
15630{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
15631echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
15632if test $ac_cv_func_getpagesize = yes; then
15633
15634cat >>confdefs.h <<\_ACEOF
15635#define HAVE_GETPAGESIZE 1
15636_ACEOF
15637
15638else
15639 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
15640echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
15641if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643else
15644 ac_check_lib_save_LIBS=$LIBS
15645LIBS="-lucb $LIBS"
15646cat >conftest.$ac_ext <<_ACEOF
15647/* confdefs.h. */
15648_ACEOF
15649cat confdefs.h >>conftest.$ac_ext
15650cat >>conftest.$ac_ext <<_ACEOF
15651/* end confdefs.h. */
15652
15653/* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15656#ifdef __cplusplus
15657extern "C"
15658#endif
15659char getpagesize ();
15660int
15661main ()
15662{
15663return getpagesize ();
15664 ;
15665 return 0;
15666}
15667_ACEOF
15668rm -f conftest.$ac_objext conftest$ac_exeext
15669if { (ac_try="$ac_link"
15670case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_link") 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } && {
15682 test -z "$ac_c_werror_flag" ||
15683 test ! -s conftest.err
15684 } && test -s conftest$ac_exeext &&
15685 $as_test_x conftest$ac_exeext; then
15686 ac_cv_lib_ucb_getpagesize=yes
15687else
15688 echo "$as_me: failed program was:" >&5
15689sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_cv_lib_ucb_getpagesize=no
15692fi
15693
15694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15695 conftest$ac_exeext conftest.$ac_ext
15696LIBS=$ac_check_lib_save_LIBS
15697fi
15698{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
15699echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
15700if test $ac_cv_lib_ucb_getpagesize = yes; then
15701 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
15702#define HAVE_GETPAGESIZE 1
15703_ACEOF
15704
15705fi
15706
15707
15708fi
15709
15710
15711# Check for broken snprintf
15712if test "x$ac_cv_func_snprintf" = "xyes" ; then
15713 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
15714echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
15715 if test "$cross_compiling" = yes; then
15716 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
15717echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15718
15719else
15720 cat >conftest.$ac_ext <<_ACEOF
15721/* confdefs.h. */
15722_ACEOF
15723cat confdefs.h >>conftest.$ac_ext
15724cat >>conftest.$ac_ext <<_ACEOF
15725/* end confdefs.h. */
15726
15727#include <stdio.h>
15728int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
15729
15730_ACEOF
15731rm -f conftest$ac_exeext
15732if { (ac_try="$ac_link"
15733case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736esac
15737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_link") 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745esac
15746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 { echo "$as_me:$LINENO: result: yes" >&5
15752echo "${ECHO_T}yes" >&6; }
15753else
15754 echo "$as_me: program exited with status $ac_status" >&5
15755echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758( exit $ac_status )
15759
15760 { echo "$as_me:$LINENO: result: no" >&5
15761echo "${ECHO_T}no" >&6; }
15762
15763cat >>confdefs.h <<\_ACEOF
15764#define BROKEN_SNPRINTF 1
15765_ACEOF
15766
15767 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
15768echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
15769
15770fi
15771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15772fi
15773
15774
15775fi
15776
15777# If we don't have a working asprintf, then we strongly depend on vsnprintf
15778# returning the right thing on overflow: the number of characters it tried to
15779# create (as per SUSv3)
15780if test "x$ac_cv_func_asprintf" != "xyes" && \
15781 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
15782 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
15783echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
15784 if test "$cross_compiling" = yes; then
15785 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
15786echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
15787
15788else
15789 cat >conftest.$ac_ext <<_ACEOF
15790/* confdefs.h. */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h. */
15795
15796#include <sys/types.h>
15797#include <stdio.h>
15798#include <stdarg.h>
15799
15800int x_snprintf(char *str,size_t count,const char *fmt,...)
15801{
15802 size_t ret; va_list ap;
15803 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
15804 return ret;
15805}
15806int main(void)
15807{
15808 char x[1];
15809 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
15810}
15811_ACEOF
15812rm -f conftest$ac_exeext
15813if { (ac_try="$ac_link"
15814case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_link") 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15823 { (case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_try") 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 { echo "$as_me:$LINENO: result: yes" >&5
15833echo "${ECHO_T}yes" >&6; }
15834else
15835 echo "$as_me: program exited with status $ac_status" >&5
15836echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839( exit $ac_status )
15840
15841 { echo "$as_me:$LINENO: result: no" >&5
15842echo "${ECHO_T}no" >&6; }
15843
15844cat >>confdefs.h <<\_ACEOF
15845#define BROKEN_SNPRINTF 1
15846_ACEOF
15847
15848 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
15849echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
15850
15851fi
15852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15853fi
15854
15855
15856fi
15857
15858# On systems where [v]snprintf is broken, but is declared in stdio,
15859# check that the fmt argument is const char * or just char *.
15860# This is only useful for when BROKEN_SNPRINTF
15861{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
15862echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
15863cat >conftest.$ac_ext <<_ACEOF
15864/* confdefs.h. */
15865_ACEOF
15866cat confdefs.h >>conftest.$ac_ext
15867cat >>conftest.$ac_ext <<_ACEOF
15868/* end confdefs.h. */
15869#include <stdio.h>
15870 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
15871 int main(void) { snprintf(0, 0, 0); }
15872
15873_ACEOF
15874rm -f conftest.$ac_objext
15875if { (ac_try="$ac_compile"
15876case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879esac
15880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_compile") 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && {
15888 test -z "$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 } && test -s conftest.$ac_objext; then
15891 { echo "$as_me:$LINENO: result: yes" >&5
15892echo "${ECHO_T}yes" >&6; }
15893
15894cat >>confdefs.h <<\_ACEOF
15895#define SNPRINTF_CONST const
15896_ACEOF
15897
15898else
15899 echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 { echo "$as_me:$LINENO: result: no" >&5
15903echo "${ECHO_T}no" >&6; }
15904 cat >>confdefs.h <<\_ACEOF
15905#define SNPRINTF_CONST /* not const */
15906_ACEOF
15907
15908fi
15909
15910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911
15912# Check for missing getpeereid (or equiv) support
15913NO_PEERCHECK=""
15914if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15915 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15916echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15917 cat >conftest.$ac_ext <<_ACEOF
15918/* confdefs.h. */
15919_ACEOF
15920cat confdefs.h >>conftest.$ac_ext
15921cat >>conftest.$ac_ext <<_ACEOF
15922/* end confdefs.h. */
15923#include <sys/types.h>
15924 #include <sys/socket.h>
15925int
15926main ()
15927{
15928int i = SO_PEERCRED;
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext
15934if { (ac_try="$ac_compile"
15935case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15938esac
15939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_compile") 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } && {
15947 test -z "$ac_c_werror_flag" ||
15948 test ! -s conftest.err
15949 } && test -s conftest.$ac_objext; then
15950 { echo "$as_me:$LINENO: result: yes" >&5
15951echo "${ECHO_T}yes" >&6; }
15952
15953cat >>confdefs.h <<\_ACEOF
15954#define HAVE_SO_PEERCRED 1
15955_ACEOF
15956
15957
15958else
15959 echo "$as_me: failed program was:" >&5
15960sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 { echo "$as_me:$LINENO: result: no" >&5
15963echo "${ECHO_T}no" >&6; }
15964 NO_PEERCHECK=1
15965
15966fi
15967
15968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969fi
15970
15971if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15972{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15973echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15974if test "$cross_compiling" = yes; then
15975
15976 { echo "$as_me:$LINENO: result: yes" >&5
15977echo "${ECHO_T}yes" >&6; }
15978 cat >>confdefs.h <<\_ACEOF
15979#define HAVE_STRICT_MKSTEMP 1
15980_ACEOF
15981
15982
15983
15984else
15985 cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991
15992#include <stdlib.h>
15993main() { char template[]="conftest.mkstemp-test";
15994if (mkstemp(template) == -1)
15995 exit(1);
15996unlink(template); exit(0);
15997}
15998
15999_ACEOF
16000rm -f conftest$ac_exeext
16001if { (ac_try="$ac_link"
16002case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_link") 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16011 { (case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16014esac
16015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_try") 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020
16021 { echo "$as_me:$LINENO: result: no" >&5
16022echo "${ECHO_T}no" >&6; }
16023
16024else
16025 echo "$as_me: program exited with status $ac_status" >&5
16026echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029( exit $ac_status )
16030
16031 { echo "$as_me:$LINENO: result: yes" >&5
16032echo "${ECHO_T}yes" >&6; }
16033
16034cat >>confdefs.h <<\_ACEOF
16035#define HAVE_STRICT_MKSTEMP 1
16036_ACEOF
16037
16038
16039fi
16040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16041fi
16042
16043
16044fi
16045
16046if test ! -z "$check_for_openpty_ctty_bug"; then
16047 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16048echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
16049 if test "$cross_compiling" = yes; then
16050
16051 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16052echo "${ECHO_T}cross-compiling" >&6; }
16053
16054
16055else
16056 cat >conftest.$ac_ext <<_ACEOF
16057/* confdefs.h. */
16058_ACEOF
16059cat confdefs.h >>conftest.$ac_ext
16060cat >>conftest.$ac_ext <<_ACEOF
16061/* end confdefs.h. */
16062
16063#include <stdio.h>
16064#include <sys/fcntl.h>
16065#include <sys/types.h>
16066#include <sys/wait.h>
16067
16068int
16069main()
16070{
16071 pid_t pid;
16072 int fd, ptyfd, ttyfd, status;
16073
16074 pid = fork();
16075 if (pid < 0) { /* failed */
16076 exit(1);
16077 } else if (pid > 0) { /* parent */
16078 waitpid(pid, &status, 0);
16079 if (WIFEXITED(status))
16080 exit(WEXITSTATUS(status));
16081 else
16082 exit(2);
16083 } else { /* child */
16084 close(0); close(1); close(2);
16085 setsid();
16086 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16087 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16088 if (fd >= 0)
16089 exit(3); /* Acquired ctty: broken */
16090 else
16091 exit(0); /* Did not acquire ctty: OK */
16092 }
16093}
16094
16095_ACEOF
16096rm -f conftest$ac_exeext
16097if { (ac_try="$ac_link"
16098case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101esac
16102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_link") 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16110esac
16111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116
16117 { echo "$as_me:$LINENO: result: yes" >&5
16118echo "${ECHO_T}yes" >&6; }
16119
16120else
16121 echo "$as_me: program exited with status $ac_status" >&5
16122echo "$as_me: failed program was:" >&5
16123sed 's/^/| /' conftest.$ac_ext >&5
16124
16125( exit $ac_status )
16126
16127 { echo "$as_me:$LINENO: result: no" >&5
16128echo "${ECHO_T}no" >&6; }
16129 cat >>confdefs.h <<\_ACEOF
16130#define SSHD_ACQUIRES_CTTY 1
16131_ACEOF
16132
16133
16134fi
16135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16136fi
16137
16138
16139fi
16140
16141if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16142 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16143 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16144echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16145 if test "$cross_compiling" = yes; then
16146
16147 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16148echo "${ECHO_T}cross-compiling" >&6; }
16149
16150
16151else
16152 cat >conftest.$ac_ext <<_ACEOF
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
16158
16159#include <stdio.h>
16160#include <sys/socket.h>
16161#include <netdb.h>
16162#include <errno.h>
16163#include <netinet/in.h>
16164
16165#define TEST_PORT "2222"
16166
16167int
16168main(void)
16169{
16170 int err, sock;
16171 struct addrinfo *gai_ai, *ai, hints;
16172 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16173
16174 memset(&hints, 0, sizeof(hints));
16175 hints.ai_family = PF_UNSPEC;
16176 hints.ai_socktype = SOCK_STREAM;
16177 hints.ai_flags = AI_PASSIVE;
16178
16179 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16180 if (err != 0) {
16181 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16182 exit(1);
16183 }
16184
16185 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16186 if (ai->ai_family != AF_INET6)
16187 continue;
16188
16189 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16190 sizeof(ntop), strport, sizeof(strport),
16191 NI_NUMERICHOST|NI_NUMERICSERV);
16192
16193 if (err != 0) {
16194 if (err == EAI_SYSTEM)
16195 perror("getnameinfo EAI_SYSTEM");
16196 else
16197 fprintf(stderr, "getnameinfo failed: %s\n",
16198 gai_strerror(err));
16199 exit(2);
16200 }
16201
16202 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
16203 if (sock < 0)
16204 perror("socket");
16205 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
16206 if (errno == EBADF)
16207 exit(3);
16208 }
16209 }
16210 exit(0);
16211}
16212
16213_ACEOF
16214rm -f conftest$ac_exeext
16215if { (ac_try="$ac_link"
16216case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219esac
16220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_link") 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16225 { (case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228esac
16229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_try") 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234
16235 { echo "$as_me:$LINENO: result: yes" >&5
16236echo "${ECHO_T}yes" >&6; }
16237
16238else
16239 echo "$as_me: program exited with status $ac_status" >&5
16240echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243( exit $ac_status )
16244
16245 { echo "$as_me:$LINENO: result: no" >&5
16246echo "${ECHO_T}no" >&6; }
16247 cat >>confdefs.h <<\_ACEOF
16248#define BROKEN_GETADDRINFO 1
16249_ACEOF
16250
16251
16252fi
16253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16254fi
16255
16256
16257fi
16258
16259if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16260 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
16261 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16262echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16263 if test "$cross_compiling" = yes; then
16264
16265 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16266echo "${ECHO_T}cross-compiling" >&6; }
16267
16268
16269else
16270 cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276
16277#include <stdio.h>
16278#include <sys/socket.h>
16279#include <netdb.h>
16280#include <errno.h>
16281#include <netinet/in.h>
16282
16283#define TEST_PORT "2222"
16284
16285int
16286main(void)
16287{
16288 int err, sock;
16289 struct addrinfo *gai_ai, *ai, hints;
16290 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16291
16292 memset(&hints, 0, sizeof(hints));
16293 hints.ai_family = PF_UNSPEC;
16294 hints.ai_socktype = SOCK_STREAM;
16295 hints.ai_flags = AI_PASSIVE;
16296
16297 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16298 if (err != 0) {
16299 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16300 exit(1);
16301 }
16302
16303 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16304 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
16305 continue;
16306
16307 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16308 sizeof(ntop), strport, sizeof(strport),
16309 NI_NUMERICHOST|NI_NUMERICSERV);
16310
16311 if (ai->ai_family == AF_INET && err != 0) {
16312 perror("getnameinfo");
16313 exit(2);
16314 }
16315 }
16316 exit(0);
16317}
16318
16319_ACEOF
16320rm -f conftest$ac_exeext
16321if { (ac_try="$ac_link"
16322case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325esac
16326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_link") 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16331 { (case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334esac
16335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_try") 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340
16341 { echo "$as_me:$LINENO: result: yes" >&5
16342echo "${ECHO_T}yes" >&6; }
16343
16344cat >>confdefs.h <<\_ACEOF
16345#define AIX_GETNAMEINFO_HACK 1
16346_ACEOF
16347
16348
16349else
16350 echo "$as_me: program exited with status $ac_status" >&5
16351echo "$as_me: failed program was:" >&5
16352sed 's/^/| /' conftest.$ac_ext >&5
16353
16354( exit $ac_status )
16355
16356 { echo "$as_me:$LINENO: result: no" >&5
16357echo "${ECHO_T}no" >&6; }
16358 cat >>confdefs.h <<\_ACEOF
16359#define BROKEN_GETADDRINFO 1
16360_ACEOF
16361
16362
16363fi
16364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16365fi
16366
16367
16368fi
16369
16370if test "x$check_for_conflicting_getspnam" = "x1"; then
16371 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
16372echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
16373 cat >conftest.$ac_ext <<_ACEOF
16374
16375#include <shadow.h>
16376int main(void) {exit(0);}
16377
16378_ACEOF
16379rm -f conftest.$ac_objext
16380if { (ac_try="$ac_compile"
16381case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396
16397 { echo "$as_me:$LINENO: result: no" >&5
16398echo "${ECHO_T}no" >&6; }
16399
16400else
16401 echo "$as_me: failed program was:" >&5
16402sed 's/^/| /' conftest.$ac_ext >&5
16403
16404
16405 { echo "$as_me:$LINENO: result: yes" >&5
16406echo "${ECHO_T}yes" >&6; }
16407
16408cat >>confdefs.h <<\_ACEOF
16409#define GETSPNAM_CONFLICTING_DEFS 1
16410_ACEOF
16411
16412
16413
16414fi
16415
16416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417fi
16418
16419{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16420echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
16421if test "${ac_cv_func_getpgrp_void+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16423else
16424 # Use it with a single arg.
16425cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431$ac_includes_default
16432int
16433main ()
16434{
16435getpgrp (0);
16436 ;
16437 return 0;
16438}
16439_ACEOF
16440rm -f conftest.$ac_objext
16441if { (ac_try="$ac_compile"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_compile") 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && {
16454 test -z "$ac_c_werror_flag" ||
16455 test ! -s conftest.err
16456 } && test -s conftest.$ac_objext; then
16457 ac_cv_func_getpgrp_void=no
16458else
16459 echo "$as_me: failed program was:" >&5
16460sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 ac_cv_func_getpgrp_void=yes
16463fi
16464
16465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466
16467fi
16468{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16469echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
16470if test $ac_cv_func_getpgrp_void = yes; then
16471
16472cat >>confdefs.h <<\_ACEOF
16473#define GETPGRP_VOID 1
16474_ACEOF
16475
16476fi
16477
16478
16479# Search for OpenSSL
16480saved_CPPFLAGS="$CPPFLAGS"
16481saved_LDFLAGS="$LDFLAGS"
16482
16483# Check whether --with-ssl-dir was given.
16484if test "${with_ssl_dir+set}" = set; then
16485 withval=$with_ssl_dir;
16486 if test "x$withval" != "xno" ; then
16487 case "$withval" in
16488 # Relative paths
16489 ./*|../*) withval="`pwd`/$withval"
16490 esac
16491 if test -d "$withval/lib"; then
16492 if test -n "${need_dash_r}"; then
16493 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
16494 else
16495 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
16496 fi
16497 elif test -d "$withval/lib64"; then
16498 if test -n "${need_dash_r}"; then
16499 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
16500 else
16501 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
16502 fi
16503 else
16504 if test -n "${need_dash_r}"; then
16505 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
16506 else
16507 LDFLAGS="-L${withval} ${LDFLAGS}"
16508 fi
16509 fi
16510 if test -d "$withval/include"; then
16511 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
16512 else
16513 CPPFLAGS="-I${withval} ${CPPFLAGS}"
16514 fi
16515 fi
16516
16517
16518fi
16519
16520LIBS="-lcrypto $LIBS"
16521cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h. */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h. */
16527
16528/* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16531#ifdef __cplusplus
16532extern "C"
16533#endif
16534char RAND_add ();
16535int
16536main ()
16537{
16538return RAND_add ();
16539 ;
16540 return 0;
16541}
16542_ACEOF
16543rm -f conftest.$ac_objext conftest$ac_exeext
16544if { (ac_try="$ac_link"
16545case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_link") 2>conftest.er1
16551 ac_status=$?
16552 grep -v '^ *+' conftest.er1 >conftest.err
16553 rm -f conftest.er1
16554 cat conftest.err >&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && {
16557 test -z "$ac_c_werror_flag" ||
16558 test ! -s conftest.err
16559 } && test -s conftest$ac_exeext &&
16560 $as_test_x conftest$ac_exeext; then
16561
16562cat >>confdefs.h <<\_ACEOF
16563#define HAVE_OPENSSL 1
16564_ACEOF
16565
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570
16571 if test -n "${need_dash_r}"; then
16572 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
16573 else
16574 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
16575 fi
16576 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
16577 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16578 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
16579echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
16580if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582fi
16583{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
16584echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
16585else
16586 # Is the header compilable?
16587{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
16588echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
16589cat >conftest.$ac_ext <<_ACEOF
16590/* confdefs.h. */
16591_ACEOF
16592cat confdefs.h >>conftest.$ac_ext
16593cat >>conftest.$ac_ext <<_ACEOF
16594/* end confdefs.h. */
16595$ac_includes_default
16596#include <openssl/opensslv.h>
16597_ACEOF
16598rm -f conftest.$ac_objext
16599if { (ac_try="$ac_compile"
16600case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16603esac
16604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 (eval "$ac_compile") 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } && {
16612 test -z "$ac_c_werror_flag" ||
16613 test ! -s conftest.err
16614 } && test -s conftest.$ac_objext; then
16615 ac_header_compiler=yes
16616else
16617 echo "$as_me: failed program was:" >&5
16618sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 ac_header_compiler=no
16621fi
16622
16623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16625echo "${ECHO_T}$ac_header_compiler" >&6; }
16626
16627# Is the header present?
16628{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
16629echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
16630cat >conftest.$ac_ext <<_ACEOF
16631/* confdefs.h. */
16632_ACEOF
16633cat confdefs.h >>conftest.$ac_ext
16634cat >>conftest.$ac_ext <<_ACEOF
16635/* end confdefs.h. */
16636#include <openssl/opensslv.h>
16637_ACEOF
16638if { (ac_try="$ac_cpp conftest.$ac_ext"
16639case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } >/dev/null && {
16651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16652 test ! -s conftest.err
16653 }; then
16654 ac_header_preproc=yes
16655else
16656 echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
16659 ac_header_preproc=no
16660fi
16661
16662rm -f conftest.err conftest.$ac_ext
16663{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16664echo "${ECHO_T}$ac_header_preproc" >&6; }
16665
16666# So? What about this header?
16667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16668 yes:no: )
16669 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
16670echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
16672echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
16673 ac_header_preproc=yes
16674 ;;
16675 no:yes:* )
16676 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
16677echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
16679echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
16681echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
16683echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
16685echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
16687echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
16688 ( cat <<\_ASBOX
16689## ------------------------------------------- ##
16690## Report this to openssh-unix-dev@mindrot.org ##
16691## ------------------------------------------- ##
16692_ASBOX
16693 ) | sed "s/^/$as_me: WARNING: /" >&2
16694 ;;
16695esac
16696{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
16697echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
16698if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700else
16701 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
16702fi
16703{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
16704echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
16705
16706fi
16707if test $ac_cv_header_openssl_opensslv_h = yes; then
16708 :
16709else
16710 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
16711echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
16712 { (exit 1); exit 1; }; }
16713fi
16714
16715
16716 cat >conftest.$ac_ext <<_ACEOF
16717/* confdefs.h. */
16718_ACEOF
16719cat confdefs.h >>conftest.$ac_ext
16720cat >>conftest.$ac_ext <<_ACEOF
16721/* end confdefs.h. */
16722
16723/* Override any GCC internal prototype to avoid an error.
16724 Use char because int might match the return type of a GCC
16725 builtin and then its argument prototype would still apply. */
16726#ifdef __cplusplus
16727extern "C"
16728#endif
16729char RAND_add ();
16730int
16731main ()
16732{
16733return RAND_add ();
16734 ;
16735 return 0;
16736}
16737_ACEOF
16738rm -f conftest.$ac_objext conftest$ac_exeext
16739if { (ac_try="$ac_link"
16740case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_link") 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } && {
16752 test -z "$ac_c_werror_flag" ||
16753 test ! -s conftest.err
16754 } && test -s conftest$ac_exeext &&
16755 $as_test_x conftest$ac_exeext; then
16756 cat >>confdefs.h <<\_ACEOF
16757#define HAVE_OPENSSL 1
16758_ACEOF
16759
16760else
16761 echo "$as_me: failed program was:" >&5
16762sed 's/^/| /' conftest.$ac_ext >&5
16763
16764
16765 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
16766echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
16767 { (exit 1); exit 1; }; }
16768
16769
16770fi
16771
16772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773 conftest$ac_exeext conftest.$ac_ext
16774
16775
16776fi
16777
16778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16779 conftest$ac_exeext conftest.$ac_ext
16780
16781# Determine OpenSSL header version
16782{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
16783echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
16784if test "$cross_compiling" = yes; then
16785
16786 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16787echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16788
16789
16790else
16791 cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
16797
16798#include <stdio.h>
16799#include <string.h>
16800#include <openssl/opensslv.h>
16801#define DATA "conftest.sslincver"
16802int main(void) {
16803 FILE *fd;
16804 int rc;
16805
16806 fd = fopen(DATA,"w");
16807 if(fd == NULL)
16808 exit(1);
16809
16810 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
16811 exit(1);
16812
16813 exit(0);
16814}
16815
16816_ACEOF
16817rm -f conftest$ac_exeext
16818if { (ac_try="$ac_link"
16819case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822esac
16823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_link") 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831esac
16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837
16838 ssl_header_ver=`cat conftest.sslincver`
16839 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
16840echo "${ECHO_T}$ssl_header_ver" >&6; }
16841
16842else
16843 echo "$as_me: program exited with status $ac_status" >&5
16844echo "$as_me: failed program was:" >&5
16845sed 's/^/| /' conftest.$ac_ext >&5
16846
16847( exit $ac_status )
16848
16849 { echo "$as_me:$LINENO: result: not found" >&5
16850echo "${ECHO_T}not found" >&6; }
16851 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
16852echo "$as_me: error: OpenSSL version header not found." >&2;}
16853 { (exit 1); exit 1; }; }
16854
16855fi
16856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16857fi
16858
16859
16860
16861# Determine OpenSSL library version
16862{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
16863echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
16864if test "$cross_compiling" = yes; then
16865
16866 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16867echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16868
16869
16870else
16871 cat >conftest.$ac_ext <<_ACEOF
16872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
16877
16878#include <stdio.h>
16879#include <string.h>
16880#include <openssl/opensslv.h>
16881#include <openssl/crypto.h>
16882#define DATA "conftest.ssllibver"
16883int main(void) {
16884 FILE *fd;
16885 int rc;
16886
16887 fd = fopen(DATA,"w");
16888 if(fd == NULL)
16889 exit(1);
16890
16891 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
16892 exit(1);
16893
16894 exit(0);
16895}
16896
16897_ACEOF
16898rm -f conftest$ac_exeext
16899if { (ac_try="$ac_link"
16900case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903esac
16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_link") 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918
16919 ssl_library_ver=`cat conftest.ssllibver`
16920 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
16921echo "${ECHO_T}$ssl_library_ver" >&6; }
16922
16923else
16924 echo "$as_me: program exited with status $ac_status" >&5
16925echo "$as_me: failed program was:" >&5
16926sed 's/^/| /' conftest.$ac_ext >&5
16927
16928( exit $ac_status )
16929
16930 { echo "$as_me:$LINENO: result: not found" >&5
16931echo "${ECHO_T}not found" >&6; }
16932 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
16933echo "$as_me: error: OpenSSL library not found." >&2;}
16934 { (exit 1); exit 1; }; }
16935
16936fi
16937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16938fi
16939
16940
16941
16942
16943# Check whether --with-openssl-header-check was given.
16944if test "${with_openssl_header_check+set}" = set; then
16945 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
16946 openssl_check_nonfatal=1
16947 fi
16948
16949
16950fi
16951
16952
16953# Sanity check OpenSSL headers
16954{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
16955echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
16956if test "$cross_compiling" = yes; then
16957
16958 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16959echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16960
16961
16962else
16963 cat >conftest.$ac_ext <<_ACEOF
16964/* confdefs.h. */
16965_ACEOF
16966cat confdefs.h >>conftest.$ac_ext
16967cat >>conftest.$ac_ext <<_ACEOF
16968/* end confdefs.h. */
16969
16970#include <string.h>
16971#include <openssl/opensslv.h>
16972int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
16973
16974_ACEOF
16975rm -f conftest$ac_exeext
16976if { (ac_try="$ac_link"
16977case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980esac
16981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995
16996 { echo "$as_me:$LINENO: result: yes" >&5
16997echo "${ECHO_T}yes" >&6; }
16998
16999else
17000 echo "$as_me: program exited with status $ac_status" >&5
17001echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004( exit $ac_status )
17005
17006 { echo "$as_me:$LINENO: result: no" >&5
17007echo "${ECHO_T}no" >&6; }
17008 if test "x$openssl_check_nonfatal" = "x"; then
17009 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
17010library. Check config.log for details.
17011If you are sure your installation is consistent, you can disable the check
17012by running \"./configure --without-openssl-header-check\".
17013Also see contrib/findssl.sh for help identifying header/library mismatches.
17014" >&5
17015echo "$as_me: error: Your OpenSSL headers do not match your
17016library. Check config.log for details.
17017If you are sure your installation is consistent, you can disable the check
17018by running \"./configure --without-openssl-header-check\".
17019Also see contrib/findssl.sh for help identifying header/library mismatches.
17020" >&2;}
17021 { (exit 1); exit 1; }; }
17022 else
17023 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
17024library. Check config.log for details.
17025Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17026echo "$as_me: WARNING: Your OpenSSL headers do not match your
17027library. Check config.log for details.
17028Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17029 fi
17030
17031fi
17032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17033fi
17034
17035
17036
17037{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17038echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
17039cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045
17046#include <openssl/evp.h>
17047int main(void) { SSLeay_add_all_algorithms(); }
17048
17049_ACEOF
17050rm -f conftest.$ac_objext conftest$ac_exeext
17051if { (ac_try="$ac_link"
17052case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055esac
17056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_link") 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } && {
17064 test -z "$ac_c_werror_flag" ||
17065 test ! -s conftest.err
17066 } && test -s conftest$ac_exeext &&
17067 $as_test_x conftest$ac_exeext; then
17068
17069 { echo "$as_me:$LINENO: result: yes" >&5
17070echo "${ECHO_T}yes" >&6; }
17071
17072else
17073 echo "$as_me: failed program was:" >&5
17074sed 's/^/| /' conftest.$ac_ext >&5
17075
17076
17077 { echo "$as_me:$LINENO: result: no" >&5
17078echo "${ECHO_T}no" >&6; }
17079 saved_LIBS="$LIBS"
17080 LIBS="$LIBS -ldl"
17081 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17082echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
17083 cat >conftest.$ac_ext <<_ACEOF
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089
17090#include <openssl/evp.h>
17091int main(void) { SSLeay_add_all_algorithms(); }
17092
17093_ACEOF
17094rm -f conftest.$ac_objext conftest$ac_exeext
17095if { (ac_try="$ac_link"
17096case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_link") 2>conftest.er1
17102 ac_status=$?
17103 grep -v '^ *+' conftest.er1 >conftest.err
17104 rm -f conftest.er1
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } && {
17108 test -z "$ac_c_werror_flag" ||
17109 test ! -s conftest.err
17110 } && test -s conftest$ac_exeext &&
17111 $as_test_x conftest$ac_exeext; then
17112
17113 { echo "$as_me:$LINENO: result: yes" >&5
17114echo "${ECHO_T}yes" >&6; }
17115
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120
17121 { echo "$as_me:$LINENO: result: no" >&5
17122echo "${ECHO_T}no" >&6; }
17123 LIBS="$saved_LIBS"
17124
17125
17126fi
17127
17128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129 conftest$ac_exeext conftest.$ac_ext
17130
17131
17132fi
17133
17134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17135 conftest$ac_exeext conftest.$ac_ext
17136
17137
17138# Check whether --with-ssl-engine was given.
17139if test "${with_ssl_engine+set}" = set; then
17140 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
17141 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
17142echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
17143 cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149 #include <openssl/engine.h>
17150int
17151main ()
17152{
17153
17154ENGINE_load_builtin_engines();ENGINE_register_all_complete();
17155
17156 ;
17157 return 0;
17158}
17159_ACEOF
17160rm -f conftest.$ac_objext
17161if { (ac_try="$ac_compile"
17162case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165esac
17166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_compile") 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest.$ac_objext; then
17177 { echo "$as_me:$LINENO: result: yes" >&5
17178echo "${ECHO_T}yes" >&6; }
17179
17180cat >>confdefs.h <<\_ACEOF
17181#define USE_OPENSSL_ENGINE 1
17182_ACEOF
17183
17184
17185else
17186 echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
17188
17189 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
17190echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
17191 { (exit 1); exit 1; }; }
17192
17193fi
17194
17195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 fi
17197
17198fi
17199
17200
17201# Check for OpenSSL without EVP_aes_{192,256}_cbc
17202{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
17203echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
17204cat >conftest.$ac_ext <<_ACEOF
17205/* confdefs.h. */
17206_ACEOF
17207cat confdefs.h >>conftest.$ac_ext
17208cat >>conftest.$ac_ext <<_ACEOF
17209/* end confdefs.h. */
17210
17211#include <string.h>
17212#include <openssl/evp.h>
17213int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
17214
17215_ACEOF
17216rm -f conftest.$ac_objext conftest$ac_exeext
17217if { (ac_try="$ac_link"
17218case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_link") 2>conftest.er1
17224 ac_status=$?
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } && {
17230 test -z "$ac_c_werror_flag" ||
17231 test ! -s conftest.err
17232 } && test -s conftest$ac_exeext &&
17233 $as_test_x conftest$ac_exeext; then
17234
17235 { echo "$as_me:$LINENO: result: no" >&5
17236echo "${ECHO_T}no" >&6; }
17237
17238else
17239 echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242
17243 { echo "$as_me:$LINENO: result: yes" >&5
17244echo "${ECHO_T}yes" >&6; }
17245
17246cat >>confdefs.h <<\_ACEOF
17247#define OPENSSL_LOBOTOMISED_AES 1
17248_ACEOF
17249
17250
17251
17252fi
17253
17254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17255 conftest$ac_exeext conftest.$ac_ext
17256
17257{ echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
17258echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
17259cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265
17266#include <string.h>
17267#include <openssl/evp.h>
17268int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
17269
17270_ACEOF
17271rm -f conftest.$ac_objext conftest$ac_exeext
17272if { (ac_try="$ac_link"
17273case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest$ac_exeext &&
17288 $as_test_x conftest$ac_exeext; then
17289
17290 { echo "$as_me:$LINENO: result: yes" >&5
17291echo "${ECHO_T}yes" >&6; }
17292
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297
17298 { echo "$as_me:$LINENO: result: no" >&5
17299echo "${ECHO_T}no" >&6; }
17300
17301cat >>confdefs.h <<\_ACEOF
17302#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
17303_ACEOF
17304
17305
17306
17307fi
17308
17309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17310 conftest$ac_exeext conftest.$ac_ext
17311
17312# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
17313# because the system crypt() is more featureful.
17314if test "x$check_for_libcrypt_before" = "x1"; then
17315
17316{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17317echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17318if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17320else
17321 ac_check_lib_save_LIBS=$LIBS
17322LIBS="-lcrypt $LIBS"
17323cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h. */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h. */
17329
17330/* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336char crypt ();
17337int
17338main ()
17339{
17340return crypt ();
17341 ;
17342 return 0;
17343}
17344_ACEOF
17345rm -f conftest.$ac_objext conftest$ac_exeext
17346if { (ac_try="$ac_link"
17347case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350esac
17351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_link") 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest$ac_exeext &&
17362 $as_test_x conftest$ac_exeext; then
17363 ac_cv_lib_crypt_crypt=yes
17364else
17365 echo "$as_me: failed program was:" >&5
17366sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 ac_cv_lib_crypt_crypt=no
17369fi
17370
17371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17372 conftest$ac_exeext conftest.$ac_ext
17373LIBS=$ac_check_lib_save_LIBS
17374fi
17375{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17376echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17377if test $ac_cv_lib_crypt_crypt = yes; then
17378 cat >>confdefs.h <<_ACEOF
17379#define HAVE_LIBCRYPT 1
17380_ACEOF
17381
17382 LIBS="-lcrypt $LIBS"
17383
17384fi
17385
17386fi
17387
17388# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
17389# version in OpenSSL.
17390if test "x$check_for_libcrypt_later" = "x1"; then
17391 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17392echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17393if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395else
17396 ac_check_lib_save_LIBS=$LIBS
17397LIBS="-lcrypt $LIBS"
17398cat >conftest.$ac_ext <<_ACEOF
17399/* confdefs.h. */
17400_ACEOF
17401cat confdefs.h >>conftest.$ac_ext
17402cat >>conftest.$ac_ext <<_ACEOF
17403/* end confdefs.h. */
17404
17405/* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408#ifdef __cplusplus
17409extern "C"
17410#endif
17411char crypt ();
17412int
17413main ()
17414{
17415return crypt ();
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext conftest$ac_exeext
17421if { (ac_try="$ac_link"
17422case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425esac
17426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest$ac_exeext &&
17437 $as_test_x conftest$ac_exeext; then
17438 ac_cv_lib_crypt_crypt=yes
17439else
17440 echo "$as_me: failed program was:" >&5
17441sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ac_cv_lib_crypt_crypt=no
17444fi
17445
17446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447 conftest$ac_exeext conftest.$ac_ext
17448LIBS=$ac_check_lib_save_LIBS
17449fi
17450{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17451echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17452if test $ac_cv_lib_crypt_crypt = yes; then
17453 LIBS="$LIBS -lcrypt"
17454fi
17455
17456fi
17457
17458# Search for SHA256 support in libc and/or OpenSSL
17459
17460
17461for ac_func in SHA256_Update EVP_sha256
17462do
17463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17468else
17469 cat >conftest.$ac_ext <<_ACEOF
17470/* confdefs.h. */
17471_ACEOF
17472cat confdefs.h >>conftest.$ac_ext
17473cat >>conftest.$ac_ext <<_ACEOF
17474/* end confdefs.h. */
17475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17477#define $ac_func innocuous_$ac_func
17478
17479/* System header to define __stub macros and hopefully few prototypes,
17480 which can conflict with char $ac_func (); below.
17481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17482 <limits.h> exists even on freestanding compilers. */
17483
17484#ifdef __STDC__
17485# include <limits.h>
17486#else
17487# include <assert.h>
17488#endif
17489
17490#undef $ac_func
17491
17492/* Override any GCC internal prototype to avoid an error.
17493 Use char because int might match the return type of a GCC
17494 builtin and then its argument prototype would still apply. */
17495#ifdef __cplusplus
17496extern "C"
17497#endif
17498char $ac_func ();
17499/* The GNU C library defines this for functions which it implements
17500 to always fail with ENOSYS. Some functions are actually named
17501 something starting with __ and the normal name is an alias. */
17502#if defined __stub_$ac_func || defined __stub___$ac_func
17503choke me
17504#endif
17505
17506int
17507main ()
17508{
17509return $ac_func ();
17510 ;
17511 return 0;
17512}
17513_ACEOF
17514rm -f conftest.$ac_objext conftest$ac_exeext
17515if { (ac_try="$ac_link"
17516case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519esac
17520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_link") 2>conftest.er1
17522 ac_status=$?
17523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } && {
17528 test -z "$ac_c_werror_flag" ||
17529 test ! -s conftest.err
17530 } && test -s conftest$ac_exeext &&
17531 $as_test_x conftest$ac_exeext; then
17532 eval "$as_ac_var=yes"
17533else
17534 echo "$as_me: failed program was:" >&5
17535sed 's/^/| /' conftest.$ac_ext >&5
17536
17537 eval "$as_ac_var=no"
17538fi
17539
17540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541 conftest$ac_exeext conftest.$ac_ext
17542fi
17543ac_res=`eval echo '${'$as_ac_var'}'`
17544 { echo "$as_me:$LINENO: result: $ac_res" >&5
17545echo "${ECHO_T}$ac_res" >&6; }
17546if test `eval echo '${'$as_ac_var'}'` = yes; then
17547 cat >>confdefs.h <<_ACEOF
17548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17549_ACEOF
17550
17551fi
17552done
17553
17554
17555saved_LIBS="$LIBS"
17556{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
17557echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
17558if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 ac_check_lib_save_LIBS=$LIBS
17562LIBS="-liaf $LIBS"
17563cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
17569
17570/* Override any GCC internal prototype to avoid an error.
17571 Use char because int might match the return type of a GCC
17572 builtin and then its argument prototype would still apply. */
17573#ifdef __cplusplus
17574extern "C"
17575#endif
17576char ia_openinfo ();
17577int
17578main ()
17579{
17580return ia_openinfo ();
17581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext conftest$ac_exeext
17586if { (ac_try="$ac_link"
17587case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>conftest.er1
17593 ac_status=$?
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } && {
17599 test -z "$ac_c_werror_flag" ||
17600 test ! -s conftest.err
17601 } && test -s conftest$ac_exeext &&
17602 $as_test_x conftest$ac_exeext; then
17603 ac_cv_lib_iaf_ia_openinfo=yes
17604else
17605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608 ac_cv_lib_iaf_ia_openinfo=no
17609fi
17610
17611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17612 conftest$ac_exeext conftest.$ac_ext
17613LIBS=$ac_check_lib_save_LIBS
17614fi
17615{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
17616echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
17617if test $ac_cv_lib_iaf_ia_openinfo = yes; then
17618
17619 LIBS="$LIBS -liaf"
17620
17621for ac_func in set_id
17622do
17623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17624{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629 cat >conftest.$ac_ext <<_ACEOF
17630/* confdefs.h. */
17631_ACEOF
17632cat confdefs.h >>conftest.$ac_ext
17633cat >>conftest.$ac_ext <<_ACEOF
17634/* end confdefs.h. */
17635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17637#define $ac_func innocuous_$ac_func
17638
17639/* System header to define __stub macros and hopefully few prototypes,
17640 which can conflict with char $ac_func (); below.
17641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17642 <limits.h> exists even on freestanding compilers. */
17643
17644#ifdef __STDC__
17645# include <limits.h>
17646#else
17647# include <assert.h>
17648#endif
17649
17650#undef $ac_func
17651
17652/* Override any GCC internal prototype to avoid an error.
17653 Use char because int might match the return type of a GCC
17654 builtin and then its argument prototype would still apply. */
17655#ifdef __cplusplus
17656extern "C"
17657#endif
17658char $ac_func ();
17659/* The GNU C library defines this for functions which it implements
17660 to always fail with ENOSYS. Some functions are actually named
17661 something starting with __ and the normal name is an alias. */
17662#if defined __stub_$ac_func || defined __stub___$ac_func
17663choke me
17664#endif
17665
17666int
17667main ()
17668{
17669return $ac_func ();
17670 ;
17671 return 0;
17672}
17673_ACEOF
17674rm -f conftest.$ac_objext conftest$ac_exeext
17675if { (ac_try="$ac_link"
17676case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_link") 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest$ac_exeext &&
17691 $as_test_x conftest$ac_exeext; then
17692 eval "$as_ac_var=yes"
17693else
17694 echo "$as_me: failed program was:" >&5
17695sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 eval "$as_ac_var=no"
17698fi
17699
17700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17701 conftest$ac_exeext conftest.$ac_ext
17702fi
17703ac_res=`eval echo '${'$as_ac_var'}'`
17704 { echo "$as_me:$LINENO: result: $ac_res" >&5
17705echo "${ECHO_T}$ac_res" >&6; }
17706if test `eval echo '${'$as_ac_var'}'` = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17709_ACEOF
17710 SSHDLIBS="$SSHDLIBS -liaf"
17711
17712cat >>confdefs.h <<\_ACEOF
17713#define HAVE_LIBIAF 1
17714_ACEOF
17715
17716
17717fi
17718done
17719
17720
17721fi
17722
17723LIBS="$saved_LIBS"
17724
17725### Configure cryptographic random number support
17726
17727# Check wheter OpenSSL seeds itself
17728{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
17729echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
17730if test "$cross_compiling" = yes; then
17731
17732 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
17733echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
17734 # This is safe, since all recent OpenSSL versions will
17735 # complain at runtime if not seeded correctly.
17736 OPENSSL_SEEDS_ITSELF=yes
17737
17738
17739else
17740 cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746
17747#include <string.h>
17748#include <openssl/rand.h>
17749int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
17750
17751_ACEOF
17752rm -f conftest$ac_exeext
17753if { (ac_try="$ac_link"
17754case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17757esac
17758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_link") 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772
17773 OPENSSL_SEEDS_ITSELF=yes
17774 { echo "$as_me:$LINENO: result: yes" >&5
17775echo "${ECHO_T}yes" >&6; }
17776
17777else
17778 echo "$as_me: program exited with status $ac_status" >&5
17779echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782( exit $ac_status )
17783
17784 { echo "$as_me:$LINENO: result: no" >&5
17785echo "${ECHO_T}no" >&6; }
17786 # Default to use of the rand helper if OpenSSL doesn't
17787 # seed itself
17788 USE_RAND_HELPER=yes
17789
17790fi
17791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17792fi
17793
17794
17795
17796# Check for PAM libs
17797PAM_MSG="no"
17798
17799# Check whether --with-pam was given.
17800if test "${with_pam+set}" = set; then
17801 withval=$with_pam;
17802 if test "x$withval" != "xno" ; then
17803 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
17804 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
17805 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
17806echo "$as_me: error: PAM headers not found" >&2;}
17807 { (exit 1); exit 1; }; }
17808 fi
17809
17810 saved_LIBS="$LIBS"
17811
17812{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17813echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17814if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816else
17817 ac_check_lib_save_LIBS=$LIBS
17818LIBS="-ldl $LIBS"
17819cat >conftest.$ac_ext <<_ACEOF
17820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
17824/* end confdefs.h. */
17825
17826/* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17829#ifdef __cplusplus
17830extern "C"
17831#endif
17832char dlopen ();
17833int
17834main ()
17835{
17836return dlopen ();
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
17842if { (ac_try="$ac_link"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest$ac_exeext &&
17858 $as_test_x conftest$ac_exeext; then
17859 ac_cv_lib_dl_dlopen=yes
17860else
17861 echo "$as_me: failed program was:" >&5
17862sed 's/^/| /' conftest.$ac_ext >&5
17863
17864 ac_cv_lib_dl_dlopen=no
17865fi
17866
17867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868 conftest$ac_exeext conftest.$ac_ext
17869LIBS=$ac_check_lib_save_LIBS
17870fi
17871{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17872echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17873if test $ac_cv_lib_dl_dlopen = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875#define HAVE_LIBDL 1
17876_ACEOF
17877
17878 LIBS="-ldl $LIBS"
17879
17880fi
17881
17882
17883{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
17884echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
17885if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17887else
17888 ac_check_lib_save_LIBS=$LIBS
17889LIBS="-lpam $LIBS"
17890cat >conftest.$ac_ext <<_ACEOF
17891/* confdefs.h. */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h. */
17896
17897/* Override any GCC internal prototype to avoid an error.
17898 Use char because int might match the return type of a GCC
17899 builtin and then its argument prototype would still apply. */
17900#ifdef __cplusplus
17901extern "C"
17902#endif
17903char pam_set_item ();
17904int
17905main ()
17906{
17907return pam_set_item ();
17908 ;
17909 return 0;
17910}
17911_ACEOF
17912rm -f conftest.$ac_objext conftest$ac_exeext
17913if { (ac_try="$ac_link"
17914case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17917esac
17918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_link") 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && {
17926 test -z "$ac_c_werror_flag" ||
17927 test ! -s conftest.err
17928 } && test -s conftest$ac_exeext &&
17929 $as_test_x conftest$ac_exeext; then
17930 ac_cv_lib_pam_pam_set_item=yes
17931else
17932 echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_cv_lib_pam_pam_set_item=no
17936fi
17937
17938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17939 conftest$ac_exeext conftest.$ac_ext
17940LIBS=$ac_check_lib_save_LIBS
17941fi
17942{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
17943echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
17944if test $ac_cv_lib_pam_pam_set_item = yes; then
17945 cat >>confdefs.h <<_ACEOF
17946#define HAVE_LIBPAM 1
17947_ACEOF
17948
17949 LIBS="-lpam $LIBS"
17950
17951else
17952 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
17953echo "$as_me: error: *** libpam missing" >&2;}
17954 { (exit 1); exit 1; }; }
17955fi
17956
17957
17958for ac_func in pam_getenvlist
17959do
17960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965else
17966 cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17974#define $ac_func innocuous_$ac_func
17975
17976/* System header to define __stub macros and hopefully few prototypes,
17977 which can conflict with char $ac_func (); below.
17978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17979 <limits.h> exists even on freestanding compilers. */
17980
17981#ifdef __STDC__
17982# include <limits.h>
17983#else
17984# include <assert.h>
17985#endif
17986
17987#undef $ac_func
17988
17989/* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17992#ifdef __cplusplus
17993extern "C"
17994#endif
17995char $ac_func ();
17996/* The GNU C library defines this for functions which it implements
17997 to always fail with ENOSYS. Some functions are actually named
17998 something starting with __ and the normal name is an alias. */
17999#if defined __stub_$ac_func || defined __stub___$ac_func
18000choke me
18001#endif
18002
18003int
18004main ()
18005{
18006return $ac_func ();
18007 ;
18008 return 0;
18009}
18010_ACEOF
18011rm -f conftest.$ac_objext conftest$ac_exeext
18012if { (ac_try="$ac_link"
18013case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016esac
18017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_link") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest$ac_exeext &&
18028 $as_test_x conftest$ac_exeext; then
18029 eval "$as_ac_var=yes"
18030else
18031 echo "$as_me: failed program was:" >&5
18032sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 eval "$as_ac_var=no"
18035fi
18036
18037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18038 conftest$ac_exeext conftest.$ac_ext
18039fi
18040ac_res=`eval echo '${'$as_ac_var'}'`
18041 { echo "$as_me:$LINENO: result: $ac_res" >&5
18042echo "${ECHO_T}$ac_res" >&6; }
18043if test `eval echo '${'$as_ac_var'}'` = yes; then
18044 cat >>confdefs.h <<_ACEOF
18045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18046_ACEOF
18047
18048fi
18049done
18050
18051
18052for ac_func in pam_putenv
18053do
18054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18059else
18060 cat >conftest.$ac_ext <<_ACEOF
18061/* confdefs.h. */
18062_ACEOF
18063cat confdefs.h >>conftest.$ac_ext
18064cat >>conftest.$ac_ext <<_ACEOF
18065/* end confdefs.h. */
18066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18068#define $ac_func innocuous_$ac_func
18069
18070/* System header to define __stub macros and hopefully few prototypes,
18071 which can conflict with char $ac_func (); below.
18072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18073 <limits.h> exists even on freestanding compilers. */
18074
18075#ifdef __STDC__
18076# include <limits.h>
18077#else
18078# include <assert.h>
18079#endif
18080
18081#undef $ac_func
18082
18083/* Override any GCC internal prototype to avoid an error.
18084 Use char because int might match the return type of a GCC
18085 builtin and then its argument prototype would still apply. */
18086#ifdef __cplusplus
18087extern "C"
18088#endif
18089char $ac_func ();
18090/* The GNU C library defines this for functions which it implements
18091 to always fail with ENOSYS. Some functions are actually named
18092 something starting with __ and the normal name is an alias. */
18093#if defined __stub_$ac_func || defined __stub___$ac_func
18094choke me
18095#endif
18096
18097int
18098main ()
18099{
18100return $ac_func ();
18101 ;
18102 return 0;
18103}
18104_ACEOF
18105rm -f conftest.$ac_objext conftest$ac_exeext
18106if { (ac_try="$ac_link"
18107case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_link") 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } && {
18119 test -z "$ac_c_werror_flag" ||
18120 test ! -s conftest.err
18121 } && test -s conftest$ac_exeext &&
18122 $as_test_x conftest$ac_exeext; then
18123 eval "$as_ac_var=yes"
18124else
18125 echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
18128 eval "$as_ac_var=no"
18129fi
18130
18131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18132 conftest$ac_exeext conftest.$ac_ext
18133fi
18134ac_res=`eval echo '${'$as_ac_var'}'`
18135 { echo "$as_me:$LINENO: result: $ac_res" >&5
18136echo "${ECHO_T}$ac_res" >&6; }
18137if test `eval echo '${'$as_ac_var'}'` = yes; then
18138 cat >>confdefs.h <<_ACEOF
18139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18140_ACEOF
18141
18142fi
18143done
18144
18145 LIBS="$saved_LIBS"
18146
18147 PAM_MSG="yes"
18148
18149 SSHDLIBS="$SSHDLIBS -lpam"
18150
18151cat >>confdefs.h <<\_ACEOF
18152#define USE_PAM 1
18153_ACEOF
18154
18155
18156 if test $ac_cv_lib_dl_dlopen = yes; then
18157 case "$LIBS" in
18158 *-ldl*)
18159 # libdl already in LIBS
18160 ;;
18161 *)
18162 SSHDLIBS="$SSHDLIBS -ldl"
18163 ;;
18164 esac
18165 fi
18166 fi
18167
18168
18169fi
18170
18171
18172# Check for older PAM
18173if test "x$PAM_MSG" = "xyes" ; then
18174 # Check PAM strerror arguments (old PAM)
18175 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
18176echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
18177 cat >conftest.$ac_ext <<_ACEOF
18178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
18183
18184#include <stdlib.h>
18185#if defined(HAVE_SECURITY_PAM_APPL_H)
18186#include <security/pam_appl.h>
18187#elif defined (HAVE_PAM_PAM_APPL_H)
18188#include <pam/pam_appl.h>
18189#endif
18190
18191int
18192main ()
18193{
18194(void)pam_strerror((pam_handle_t *)NULL, -1);
18195 ;
18196 return 0;
18197}
18198_ACEOF
18199rm -f conftest.$ac_objext
18200if { (ac_try="$ac_compile"
18201case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204esac
18205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_compile") 2>conftest.er1
18207 ac_status=$?
18208 grep -v '^ *+' conftest.er1 >conftest.err
18209 rm -f conftest.er1
18210 cat conftest.err >&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } && {
18213 test -z "$ac_c_werror_flag" ||
18214 test ! -s conftest.err
18215 } && test -s conftest.$ac_objext; then
18216 { echo "$as_me:$LINENO: result: no" >&5
18217echo "${ECHO_T}no" >&6; }
18218else
18219 echo "$as_me: failed program was:" >&5
18220sed 's/^/| /' conftest.$ac_ext >&5
18221
18222
18223
18224cat >>confdefs.h <<\_ACEOF
18225#define HAVE_OLD_PAM 1
18226_ACEOF
18227
18228 { echo "$as_me:$LINENO: result: yes" >&5
18229echo "${ECHO_T}yes" >&6; }
18230 PAM_MSG="yes (old library)"
18231
18232
18233fi
18234
18235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236fi
18237
18238# Do we want to force the use of the rand helper?
18239
18240# Check whether --with-rand-helper was given.
18241if test "${with_rand_helper+set}" = set; then
18242 withval=$with_rand_helper;
18243 if test "x$withval" = "xno" ; then
18244 # Force use of OpenSSL's internal RNG, even if
18245 # the previous test showed it to be unseeded.
18246 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
18247 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
18248echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
18249 OPENSSL_SEEDS_ITSELF=yes
18250 USE_RAND_HELPER=""
18251 fi
18252 else
18253 USE_RAND_HELPER=yes
18254 fi
18255
18256fi
18257
18258
18259# Which randomness source do we use?
18260if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
18261 # OpenSSL only
18262
18263cat >>confdefs.h <<\_ACEOF
18264#define OPENSSL_PRNG_ONLY 1
18265_ACEOF
18266
18267 RAND_MSG="OpenSSL internal ONLY"
18268 INSTALL_SSH_RAND_HELPER=""
18269elif test ! -z "$USE_RAND_HELPER" ; then
18270 # install rand helper
18271 RAND_MSG="ssh-rand-helper"
18272 INSTALL_SSH_RAND_HELPER="yes"
18273fi
18274
18275
18276### Configuration of ssh-rand-helper
18277
18278# PRNGD TCP socket
18279
18280# Check whether --with-prngd-port was given.
18281if test "${with_prngd_port+set}" = set; then
18282 withval=$with_prngd_port;
18283 case "$withval" in
18284 no)
18285 withval=""
18286 ;;
18287 [0-9]*)
18288 ;;
18289 *)
18290 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
18291echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
18292 { (exit 1); exit 1; }; }
18293 ;;
18294 esac
18295 if test ! -z "$withval" ; then
18296 PRNGD_PORT="$withval"
18297
18298cat >>confdefs.h <<_ACEOF
18299#define PRNGD_PORT $PRNGD_PORT
18300_ACEOF
18301
18302 fi
18303
18304
18305fi
18306
18307
18308# PRNGD Unix domain socket
18309
18310# Check whether --with-prngd-socket was given.
18311if test "${with_prngd_socket+set}" = set; then
18312 withval=$with_prngd_socket;
18313 case "$withval" in
18314 yes)
18315 withval="/var/run/egd-pool"
18316 ;;
18317 no)
18318 withval=""
18319 ;;
18320 /*)
18321 ;;
18322 *)
18323 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
18324echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
18325 { (exit 1); exit 1; }; }
18326 ;;
18327 esac
18328
18329 if test ! -z "$withval" ; then
18330 if test ! -z "$PRNGD_PORT" ; then
18331 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
18332echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
18333 { (exit 1); exit 1; }; }
18334 fi
18335 if test ! -r "$withval" ; then
18336 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
18337echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
18338 fi
18339 PRNGD_SOCKET="$withval"
18340
18341cat >>confdefs.h <<_ACEOF
18342#define PRNGD_SOCKET "$PRNGD_SOCKET"
18343_ACEOF
18344
18345 fi
18346
18347else
18348
18349 # Check for existing socket only if we don't have a random device already
18350 if test "$USE_RAND_HELPER" = yes ; then
18351 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
18352echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
18353 # Insert other locations here
18354 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
18355 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
18356 PRNGD_SOCKET="$sock"
18357 cat >>confdefs.h <<_ACEOF
18358#define PRNGD_SOCKET "$PRNGD_SOCKET"
18359_ACEOF
18360
18361 break;
18362 fi
18363 done
18364 if test ! -z "$PRNGD_SOCKET" ; then
18365 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
18366echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
18367 else
18368 { echo "$as_me:$LINENO: result: not found" >&5
18369echo "${ECHO_T}not found" >&6; }
18370 fi
18371 fi
18372
18373
18374fi
18375
18376
18377# Change default command timeout for hashing entropy source
18378entropy_timeout=200
18379
18380# Check whether --with-entropy-timeout was given.
18381if test "${with_entropy_timeout+set}" = set; then
18382 withval=$with_entropy_timeout;
18383 if test -n "$withval" && test "x$withval" != "xno" && \
18384 test "x${withval}" != "xyes"; then
18385 entropy_timeout=$withval
18386 fi
18387
18388
18389fi
18390
18391
18392cat >>confdefs.h <<_ACEOF
18393#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
18394_ACEOF
18395
18396
18397SSH_PRIVSEP_USER=sshd
18398
18399# Check whether --with-privsep-user was given.
18400if test "${with_privsep_user+set}" = set; then
18401 withval=$with_privsep_user;
18402 if test -n "$withval" && test "x$withval" != "xno" && \
18403 test "x${withval}" != "xyes"; then
18404 SSH_PRIVSEP_USER=$withval
18405 fi
18406
18407
18408fi
18409
18410
18411cat >>confdefs.h <<_ACEOF
18412#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
18413_ACEOF
18414
18415
18416
18417# We do this little dance with the search path to insure
18418# that programs that we select for use by installed programs
18419# (which may be run by the super-user) come from trusted
18420# locations before they come from the user's private area.
18421# This should help avoid accidentally configuring some
18422# random version of a program in someone's personal bin.
18423
18424OPATH=$PATH
18425PATH=/bin:/usr/bin
18426test -h /bin 2> /dev/null && PATH=/usr/bin
18427test -d /sbin && PATH=$PATH:/sbin
18428test -d /usr/sbin && PATH=$PATH:/usr/sbin
18429PATH=$PATH:/etc:$OPATH
18430
18431# These programs are used by the command hashing source to gather entropy
18432
18433 # Extract the first word of "ls", so it can be a program name with args.
18434set dummy ls; ac_word=$2
18435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18437if test "${ac_cv_path_PROG_LS+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439else
18440 case $PROG_LS in
18441 [\\/]* | ?:[\\/]*)
18442 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
18443 ;;
18444 *)
18445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18446for as_dir in $PATH
18447do
18448 IFS=$as_save_IFS
18449 test -z "$as_dir" && as_dir=.
18450 for ac_exec_ext in '' $ac_executable_extensions; do
18451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18452 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
18453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18454 break 2
18455 fi
18456done
18457done
18458IFS=$as_save_IFS
18459
18460 ;;
18461esac
18462fi
18463PROG_LS=$ac_cv_path_PROG_LS
18464if test -n "$PROG_LS"; then
18465 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
18466echo "${ECHO_T}$PROG_LS" >&6; }
18467else
18468 { echo "$as_me:$LINENO: result: no" >&5
18469echo "${ECHO_T}no" >&6; }
18470fi
18471
18472
18473 if test -z "$PROG_LS" ; then
18474 PROG_LS="undef"
18475 fi
18476
18477
18478
18479 # Extract the first word of "netstat", so it can be a program name with args.
18480set dummy netstat; ac_word=$2
18481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18483if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18485else
18486 case $PROG_NETSTAT in
18487 [\\/]* | ?:[\\/]*)
18488 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
18489 ;;
18490 *)
18491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18492for as_dir in $PATH
18493do
18494 IFS=$as_save_IFS
18495 test -z "$as_dir" && as_dir=.
18496 for ac_exec_ext in '' $ac_executable_extensions; do
18497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18498 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
18499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18500 break 2
18501 fi
18502done
18503done
18504IFS=$as_save_IFS
18505
18506 ;;
18507esac
18508fi
18509PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
18510if test -n "$PROG_NETSTAT"; then
18511 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
18512echo "${ECHO_T}$PROG_NETSTAT" >&6; }
18513else
18514 { echo "$as_me:$LINENO: result: no" >&5
18515echo "${ECHO_T}no" >&6; }
18516fi
18517
18518
18519 if test -z "$PROG_NETSTAT" ; then
18520 PROG_NETSTAT="undef"
18521 fi
18522
18523
18524
18525 # Extract the first word of "arp", so it can be a program name with args.
18526set dummy arp; ac_word=$2
18527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18529if test "${ac_cv_path_PROG_ARP+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531else
18532 case $PROG_ARP in
18533 [\\/]* | ?:[\\/]*)
18534 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
18535 ;;
18536 *)
18537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538for as_dir in $PATH
18539do
18540 IFS=$as_save_IFS
18541 test -z "$as_dir" && as_dir=.
18542 for ac_exec_ext in '' $ac_executable_extensions; do
18543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18544 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
18545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18546 break 2
18547 fi
18548done
18549done
18550IFS=$as_save_IFS
18551
18552 ;;
18553esac
18554fi
18555PROG_ARP=$ac_cv_path_PROG_ARP
18556if test -n "$PROG_ARP"; then
18557 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
18558echo "${ECHO_T}$PROG_ARP" >&6; }
18559else
18560 { echo "$as_me:$LINENO: result: no" >&5
18561echo "${ECHO_T}no" >&6; }
18562fi
18563
18564
18565 if test -z "$PROG_ARP" ; then
18566 PROG_ARP="undef"
18567 fi
18568
18569
18570
18571 # Extract the first word of "ifconfig", so it can be a program name with args.
18572set dummy ifconfig; ac_word=$2
18573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18575if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577else
18578 case $PROG_IFCONFIG in
18579 [\\/]* | ?:[\\/]*)
18580 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
18581 ;;
18582 *)
18583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584for as_dir in $PATH
18585do
18586 IFS=$as_save_IFS
18587 test -z "$as_dir" && as_dir=.
18588 for ac_exec_ext in '' $ac_executable_extensions; do
18589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18590 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
18591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18592 break 2
18593 fi
18594done
18595done
18596IFS=$as_save_IFS
18597
18598 ;;
18599esac
18600fi
18601PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
18602if test -n "$PROG_IFCONFIG"; then
18603 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
18604echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
18605else
18606 { echo "$as_me:$LINENO: result: no" >&5
18607echo "${ECHO_T}no" >&6; }
18608fi
18609
18610
18611 if test -z "$PROG_IFCONFIG" ; then
18612 PROG_IFCONFIG="undef"
18613 fi
18614
18615
18616
18617 # Extract the first word of "jstat", so it can be a program name with args.
18618set dummy jstat; ac_word=$2
18619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18621if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18623else
18624 case $PROG_JSTAT in
18625 [\\/]* | ?:[\\/]*)
18626 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
18627 ;;
18628 *)
18629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18630for as_dir in $PATH
18631do
18632 IFS=$as_save_IFS
18633 test -z "$as_dir" && as_dir=.
18634 for ac_exec_ext in '' $ac_executable_extensions; do
18635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18636 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
18637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18638 break 2
18639 fi
18640done
18641done
18642IFS=$as_save_IFS
18643
18644 ;;
18645esac
18646fi
18647PROG_JSTAT=$ac_cv_path_PROG_JSTAT
18648if test -n "$PROG_JSTAT"; then
18649 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
18650echo "${ECHO_T}$PROG_JSTAT" >&6; }
18651else
18652 { echo "$as_me:$LINENO: result: no" >&5
18653echo "${ECHO_T}no" >&6; }
18654fi
18655
18656
18657 if test -z "$PROG_JSTAT" ; then
18658 PROG_JSTAT="undef"
18659 fi
18660
18661
18662
18663 # Extract the first word of "ps", so it can be a program name with args.
18664set dummy ps; ac_word=$2
18665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18667if test "${ac_cv_path_PROG_PS+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670 case $PROG_PS in
18671 [\\/]* | ?:[\\/]*)
18672 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
18673 ;;
18674 *)
18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676for as_dir in $PATH
18677do
18678 IFS=$as_save_IFS
18679 test -z "$as_dir" && as_dir=.
18680 for ac_exec_ext in '' $ac_executable_extensions; do
18681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18682 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
18683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18684 break 2
18685 fi
18686done
18687done
18688IFS=$as_save_IFS
18689
18690 ;;
18691esac
18692fi
18693PROG_PS=$ac_cv_path_PROG_PS
18694if test -n "$PROG_PS"; then
18695 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
18696echo "${ECHO_T}$PROG_PS" >&6; }
18697else
18698 { echo "$as_me:$LINENO: result: no" >&5
18699echo "${ECHO_T}no" >&6; }
18700fi
18701
18702
18703 if test -z "$PROG_PS" ; then
18704 PROG_PS="undef"
18705 fi
18706
18707
18708
18709 # Extract the first word of "sar", so it can be a program name with args.
18710set dummy sar; ac_word=$2
18711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18713if test "${ac_cv_path_PROG_SAR+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715else
18716 case $PROG_SAR in
18717 [\\/]* | ?:[\\/]*)
18718 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
18719 ;;
18720 *)
18721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18722for as_dir in $PATH
18723do
18724 IFS=$as_save_IFS
18725 test -z "$as_dir" && as_dir=.
18726 for ac_exec_ext in '' $ac_executable_extensions; do
18727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18728 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
18729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18730 break 2
18731 fi
18732done
18733done
18734IFS=$as_save_IFS
18735
18736 ;;
18737esac
18738fi
18739PROG_SAR=$ac_cv_path_PROG_SAR
18740if test -n "$PROG_SAR"; then
18741 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
18742echo "${ECHO_T}$PROG_SAR" >&6; }
18743else
18744 { echo "$as_me:$LINENO: result: no" >&5
18745echo "${ECHO_T}no" >&6; }
18746fi
18747
18748
18749 if test -z "$PROG_SAR" ; then
18750 PROG_SAR="undef"
18751 fi
18752
18753
18754
18755 # Extract the first word of "w", so it can be a program name with args.
18756set dummy w; ac_word=$2
18757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18759if test "${ac_cv_path_PROG_W+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761else
18762 case $PROG_W in
18763 [\\/]* | ?:[\\/]*)
18764 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
18765 ;;
18766 *)
18767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18768for as_dir in $PATH
18769do
18770 IFS=$as_save_IFS
18771 test -z "$as_dir" && as_dir=.
18772 for ac_exec_ext in '' $ac_executable_extensions; do
18773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18774 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
18775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18776 break 2
18777 fi
18778done
18779done
18780IFS=$as_save_IFS
18781
18782 ;;
18783esac
18784fi
18785PROG_W=$ac_cv_path_PROG_W
18786if test -n "$PROG_W"; then
18787 { echo "$as_me:$LINENO: result: $PROG_W" >&5
18788echo "${ECHO_T}$PROG_W" >&6; }
18789else
18790 { echo "$as_me:$LINENO: result: no" >&5
18791echo "${ECHO_T}no" >&6; }
18792fi
18793
18794
18795 if test -z "$PROG_W" ; then
18796 PROG_W="undef"
18797 fi
18798
18799
18800
18801 # Extract the first word of "who", so it can be a program name with args.
18802set dummy who; ac_word=$2
18803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18805if test "${ac_cv_path_PROG_WHO+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807else
18808 case $PROG_WHO in
18809 [\\/]* | ?:[\\/]*)
18810 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
18811 ;;
18812 *)
18813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18814for as_dir in $PATH
18815do
18816 IFS=$as_save_IFS
18817 test -z "$as_dir" && as_dir=.
18818 for ac_exec_ext in '' $ac_executable_extensions; do
18819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18820 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
18821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18822 break 2
18823 fi
18824done
18825done
18826IFS=$as_save_IFS
18827
18828 ;;
18829esac
18830fi
18831PROG_WHO=$ac_cv_path_PROG_WHO
18832if test -n "$PROG_WHO"; then
18833 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
18834echo "${ECHO_T}$PROG_WHO" >&6; }
18835else
18836 { echo "$as_me:$LINENO: result: no" >&5
18837echo "${ECHO_T}no" >&6; }
18838fi
18839
18840
18841 if test -z "$PROG_WHO" ; then
18842 PROG_WHO="undef"
18843 fi
18844
18845
18846
18847 # Extract the first word of "last", so it can be a program name with args.
18848set dummy last; ac_word=$2
18849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18851if test "${ac_cv_path_PROG_LAST+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853else
18854 case $PROG_LAST in
18855 [\\/]* | ?:[\\/]*)
18856 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
18857 ;;
18858 *)
18859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860for as_dir in $PATH
18861do
18862 IFS=$as_save_IFS
18863 test -z "$as_dir" && as_dir=.
18864 for ac_exec_ext in '' $ac_executable_extensions; do
18865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18866 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
18867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18868 break 2
18869 fi
18870done
18871done
18872IFS=$as_save_IFS
18873
18874 ;;
18875esac
18876fi
18877PROG_LAST=$ac_cv_path_PROG_LAST
18878if test -n "$PROG_LAST"; then
18879 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
18880echo "${ECHO_T}$PROG_LAST" >&6; }
18881else
18882 { echo "$as_me:$LINENO: result: no" >&5
18883echo "${ECHO_T}no" >&6; }
18884fi
18885
18886
18887 if test -z "$PROG_LAST" ; then
18888 PROG_LAST="undef"
18889 fi
18890
18891
18892
18893 # Extract the first word of "lastlog", so it can be a program name with args.
18894set dummy lastlog; ac_word=$2
18895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18897if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18899else
18900 case $PROG_LASTLOG in
18901 [\\/]* | ?:[\\/]*)
18902 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
18903 ;;
18904 *)
18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18906for as_dir in $PATH
18907do
18908 IFS=$as_save_IFS
18909 test -z "$as_dir" && as_dir=.
18910 for ac_exec_ext in '' $ac_executable_extensions; do
18911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18912 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
18913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18914 break 2
18915 fi
18916done
18917done
18918IFS=$as_save_IFS
18919
18920 ;;
18921esac
18922fi
18923PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
18924if test -n "$PROG_LASTLOG"; then
18925 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
18926echo "${ECHO_T}$PROG_LASTLOG" >&6; }
18927else
18928 { echo "$as_me:$LINENO: result: no" >&5
18929echo "${ECHO_T}no" >&6; }
18930fi
18931
18932
18933 if test -z "$PROG_LASTLOG" ; then
18934 PROG_LASTLOG="undef"
18935 fi
18936
18937
18938
18939 # Extract the first word of "df", so it can be a program name with args.
18940set dummy df; ac_word=$2
18941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18943if test "${ac_cv_path_PROG_DF+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945else
18946 case $PROG_DF in
18947 [\\/]* | ?:[\\/]*)
18948 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
18949 ;;
18950 *)
18951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18952for as_dir in $PATH
18953do
18954 IFS=$as_save_IFS
18955 test -z "$as_dir" && as_dir=.
18956 for ac_exec_ext in '' $ac_executable_extensions; do
18957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18958 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
18959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18960 break 2
18961 fi
18962done
18963done
18964IFS=$as_save_IFS
18965
18966 ;;
18967esac
18968fi
18969PROG_DF=$ac_cv_path_PROG_DF
18970if test -n "$PROG_DF"; then
18971 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
18972echo "${ECHO_T}$PROG_DF" >&6; }
18973else
18974 { echo "$as_me:$LINENO: result: no" >&5
18975echo "${ECHO_T}no" >&6; }
18976fi
18977
18978
18979 if test -z "$PROG_DF" ; then
18980 PROG_DF="undef"
18981 fi
18982
18983
18984
18985 # Extract the first word of "vmstat", so it can be a program name with args.
18986set dummy vmstat; ac_word=$2
18987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18989if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18991else
18992 case $PROG_VMSTAT in
18993 [\\/]* | ?:[\\/]*)
18994 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
18995 ;;
18996 *)
18997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18998for as_dir in $PATH
18999do
19000 IFS=$as_save_IFS
19001 test -z "$as_dir" && as_dir=.
19002 for ac_exec_ext in '' $ac_executable_extensions; do
19003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19004 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
19005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19006 break 2
19007 fi
19008done
19009done
19010IFS=$as_save_IFS
19011
19012 ;;
19013esac
19014fi
19015PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19016if test -n "$PROG_VMSTAT"; then
19017 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19018echo "${ECHO_T}$PROG_VMSTAT" >&6; }
19019else
19020 { echo "$as_me:$LINENO: result: no" >&5
19021echo "${ECHO_T}no" >&6; }
19022fi
19023
19024
19025 if test -z "$PROG_VMSTAT" ; then
19026 PROG_VMSTAT="undef"
19027 fi
19028
19029
19030
19031 # Extract the first word of "uptime", so it can be a program name with args.
19032set dummy uptime; ac_word=$2
19033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19035if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037else
19038 case $PROG_UPTIME in
19039 [\\/]* | ?:[\\/]*)
19040 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
19041 ;;
19042 *)
19043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19044for as_dir in $PATH
19045do
19046 IFS=$as_save_IFS
19047 test -z "$as_dir" && as_dir=.
19048 for ac_exec_ext in '' $ac_executable_extensions; do
19049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19050 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
19051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19052 break 2
19053 fi
19054done
19055done
19056IFS=$as_save_IFS
19057
19058 ;;
19059esac
19060fi
19061PROG_UPTIME=$ac_cv_path_PROG_UPTIME
19062if test -n "$PROG_UPTIME"; then
19063 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
19064echo "${ECHO_T}$PROG_UPTIME" >&6; }
19065else
19066 { echo "$as_me:$LINENO: result: no" >&5
19067echo "${ECHO_T}no" >&6; }
19068fi
19069
19070
19071 if test -z "$PROG_UPTIME" ; then
19072 PROG_UPTIME="undef"
19073 fi
19074
19075
19076
19077 # Extract the first word of "ipcs", so it can be a program name with args.
19078set dummy ipcs; ac_word=$2
19079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19081if test "${ac_cv_path_PROG_IPCS+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084 case $PROG_IPCS in
19085 [\\/]* | ?:[\\/]*)
19086 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
19087 ;;
19088 *)
19089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19090for as_dir in $PATH
19091do
19092 IFS=$as_save_IFS
19093 test -z "$as_dir" && as_dir=.
19094 for ac_exec_ext in '' $ac_executable_extensions; do
19095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19096 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
19097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19098 break 2
19099 fi
19100done
19101done
19102IFS=$as_save_IFS
19103
19104 ;;
19105esac
19106fi
19107PROG_IPCS=$ac_cv_path_PROG_IPCS
19108if test -n "$PROG_IPCS"; then
19109 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
19110echo "${ECHO_T}$PROG_IPCS" >&6; }
19111else
19112 { echo "$as_me:$LINENO: result: no" >&5
19113echo "${ECHO_T}no" >&6; }
19114fi
19115
19116
19117 if test -z "$PROG_IPCS" ; then
19118 PROG_IPCS="undef"
19119 fi
19120
19121
19122
19123 # Extract the first word of "tail", so it can be a program name with args.
19124set dummy tail; ac_word=$2
19125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19127if test "${ac_cv_path_PROG_TAIL+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19129else
19130 case $PROG_TAIL in
19131 [\\/]* | ?:[\\/]*)
19132 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
19133 ;;
19134 *)
19135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19136for as_dir in $PATH
19137do
19138 IFS=$as_save_IFS
19139 test -z "$as_dir" && as_dir=.
19140 for ac_exec_ext in '' $ac_executable_extensions; do
19141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19142 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
19143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19144 break 2
19145 fi
19146done
19147done
19148IFS=$as_save_IFS
19149
19150 ;;
19151esac
19152fi
19153PROG_TAIL=$ac_cv_path_PROG_TAIL
19154if test -n "$PROG_TAIL"; then
19155 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
19156echo "${ECHO_T}$PROG_TAIL" >&6; }
19157else
19158 { echo "$as_me:$LINENO: result: no" >&5
19159echo "${ECHO_T}no" >&6; }
19160fi
19161
19162
19163 if test -z "$PROG_TAIL" ; then
19164 PROG_TAIL="undef"
19165 fi
19166
19167
19168# restore PATH
19169PATH=$OPATH
19170
19171# Where does ssh-rand-helper get its randomness from?
19172INSTALL_SSH_PRNG_CMDS=""
19173if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
19174 if test ! -z "$PRNGD_PORT" ; then
19175 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
19176 elif test ! -z "$PRNGD_SOCKET" ; then
19177 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
19178 else
19179 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
19180 RAND_HELPER_CMDHASH=yes
19181 INSTALL_SSH_PRNG_CMDS="yes"
19182 fi
19183fi
19184
19185
19186
19187# Cheap hack to ensure NEWS-OS libraries are arranged right.
19188if test ! -z "$SONY" ; then
19189 LIBS="$LIBS -liberty";
19190fi
19191
19192# Check for long long datatypes
19193{ echo "$as_me:$LINENO: checking for long long" >&5
19194echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19195if test "${ac_cv_type_long_long+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197else
19198 cat >conftest.$ac_ext <<_ACEOF
19199/* confdefs.h. */
19200_ACEOF
19201cat confdefs.h >>conftest.$ac_ext
19202cat >>conftest.$ac_ext <<_ACEOF
19203/* end confdefs.h. */
19204$ac_includes_default
19205typedef long long ac__type_new_;
19206int
19207main ()
19208{
19209if ((ac__type_new_ *) 0)
19210 return 0;
19211if (sizeof (ac__type_new_))
19212 return 0;
19213 ;
19214 return 0;
19215}
19216_ACEOF
19217rm -f conftest.$ac_objext
19218if { (ac_try="$ac_compile"
19219case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222esac
19223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_compile") 2>conftest.er1
19225 ac_status=$?
19226 grep -v '^ *+' conftest.er1 >conftest.err
19227 rm -f conftest.er1
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
19233 } && test -s conftest.$ac_objext; then
19234 ac_cv_type_long_long=yes
19235else
19236 echo "$as_me: failed program was:" >&5
19237sed 's/^/| /' conftest.$ac_ext >&5
19238
19239 ac_cv_type_long_long=no
19240fi
19241
19242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243fi
19244{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19245echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19246if test $ac_cv_type_long_long = yes; then
19247
19248cat >>confdefs.h <<_ACEOF
19249#define HAVE_LONG_LONG 1
19250_ACEOF
19251
19252
19253fi
19254{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
19255echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
19256if test "${ac_cv_type_unsigned_long_long+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258else
19259 cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
19265$ac_includes_default
19266typedef unsigned long long ac__type_new_;
19267int
19268main ()
19269{
19270if ((ac__type_new_ *) 0)
19271 return 0;
19272if (sizeof (ac__type_new_))
19273 return 0;
19274 ;
19275 return 0;
19276}
19277_ACEOF
19278rm -f conftest.$ac_objext
19279if { (ac_try="$ac_compile"
19280case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && {
19292 test -z "$ac_c_werror_flag" ||
19293 test ! -s conftest.err
19294 } && test -s conftest.$ac_objext; then
19295 ac_cv_type_unsigned_long_long=yes
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 ac_cv_type_unsigned_long_long=no
19301fi
19302
19303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304fi
19305{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
19306echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
19307if test $ac_cv_type_unsigned_long_long = yes; then
19308
19309cat >>confdefs.h <<_ACEOF
19310#define HAVE_UNSIGNED_LONG_LONG 1
19311_ACEOF
19312
19313
19314fi
19315{ echo "$as_me:$LINENO: checking for long double" >&5
19316echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19317if test "${ac_cv_type_long_double+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19319else
19320 cat >conftest.$ac_ext <<_ACEOF
19321/* confdefs.h. */
19322_ACEOF
19323cat confdefs.h >>conftest.$ac_ext
19324cat >>conftest.$ac_ext <<_ACEOF
19325/* end confdefs.h. */
19326$ac_includes_default
19327typedef long double ac__type_new_;
19328int
19329main ()
19330{
19331if ((ac__type_new_ *) 0)
19332 return 0;
19333if (sizeof (ac__type_new_))
19334 return 0;
19335 ;
19336 return 0;
19337}
19338_ACEOF
19339rm -f conftest.$ac_objext
19340if { (ac_try="$ac_compile"
19341case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344esac
19345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_compile") 2>conftest.er1
19347 ac_status=$?
19348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest.$ac_objext; then
19356 ac_cv_type_long_double=yes
19357else
19358 echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 ac_cv_type_long_double=no
19362fi
19363
19364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365fi
19366{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
19367echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
19368if test $ac_cv_type_long_double = yes; then
19369
19370cat >>confdefs.h <<_ACEOF
19371#define HAVE_LONG_DOUBLE 1
19372_ACEOF
19373
19374
19375fi
19376
19377
19378# Check datatype sizes
19379{ echo "$as_me:$LINENO: checking for char" >&5
19380echo $ECHO_N "checking for char... $ECHO_C" >&6; }
19381if test "${ac_cv_type_char+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383else
19384 cat >conftest.$ac_ext <<_ACEOF
19385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
19390$ac_includes_default
19391typedef char ac__type_new_;
19392int
19393main ()
19394{
19395if ((ac__type_new_ *) 0)
19396 return 0;
19397if (sizeof (ac__type_new_))
19398 return 0;
19399 ;
19400 return 0;
19401}
19402_ACEOF
19403rm -f conftest.$ac_objext
19404if { (ac_try="$ac_compile"
19405case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408esac
19409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_cv_type_char=yes
19421else
19422 echo "$as_me: failed program was:" >&5
19423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 ac_cv_type_char=no
19426fi
19427
19428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429fi
19430{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19431echo "${ECHO_T}$ac_cv_type_char" >&6; }
19432
19433# The cast to long int works around a bug in the HP C Compiler
19434# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19435# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19436# This bug is HP SR number 8606223364.
19437{ echo "$as_me:$LINENO: checking size of char" >&5
19438echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
19439if test "${ac_cv_sizeof_char+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441else
19442 if test "$cross_compiling" = yes; then
19443 # Depending upon the size, compute the lo and hi bounds.
19444cat >conftest.$ac_ext <<_ACEOF
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
19450$ac_includes_default
19451 typedef char ac__type_sizeof_;
19452int
19453main ()
19454{
19455static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19456test_array [0] = 0
19457
19458 ;
19459 return 0;
19460}
19461_ACEOF
19462rm -f conftest.$ac_objext
19463if { (ac_try="$ac_compile"
19464case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_compile") 2>conftest.er1
19470 ac_status=$?
19471 grep -v '^ *+' conftest.er1 >conftest.err
19472 rm -f conftest.er1
19473 cat conftest.err >&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } && {
19476 test -z "$ac_c_werror_flag" ||
19477 test ! -s conftest.err
19478 } && test -s conftest.$ac_objext; then
19479 ac_lo=0 ac_mid=0
19480 while :; do
19481 cat >conftest.$ac_ext <<_ACEOF
19482/* confdefs.h. */
19483_ACEOF
19484cat confdefs.h >>conftest.$ac_ext
19485cat >>conftest.$ac_ext <<_ACEOF
19486/* end confdefs.h. */
19487$ac_includes_default
19488 typedef char ac__type_sizeof_;
19489int
19490main ()
19491{
19492static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19493test_array [0] = 0
19494
19495 ;
19496 return 0;
19497}
19498_ACEOF
19499rm -f conftest.$ac_objext
19500if { (ac_try="$ac_compile"
19501case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504esac
19505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_compile") 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest.$ac_objext; then
19516 ac_hi=$ac_mid; break
19517else
19518 echo "$as_me: failed program was:" >&5
19519sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ac_lo=`expr $ac_mid + 1`
19522 if test $ac_lo -le $ac_mid; then
19523 ac_lo= ac_hi=
19524 break
19525 fi
19526 ac_mid=`expr 2 '*' $ac_mid + 1`
19527fi
19528
19529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 done
19531else
19532 echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
19535 cat >conftest.$ac_ext <<_ACEOF
19536/* confdefs.h. */
19537_ACEOF
19538cat confdefs.h >>conftest.$ac_ext
19539cat >>conftest.$ac_ext <<_ACEOF
19540/* end confdefs.h. */
19541$ac_includes_default
19542 typedef char ac__type_sizeof_;
19543int
19544main ()
19545{
19546static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19547test_array [0] = 0
19548
19549 ;
19550 return 0;
19551}
19552_ACEOF
19553rm -f conftest.$ac_objext
19554if { (ac_try="$ac_compile"
19555case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19558esac
19559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_compile") 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest.$ac_objext; then
19570 ac_hi=-1 ac_mid=-1
19571 while :; do
19572 cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h. */
19578$ac_includes_default
19579 typedef char ac__type_sizeof_;
19580int
19581main ()
19582{
19583static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19584test_array [0] = 0
19585
19586 ;
19587 return 0;
19588}
19589_ACEOF
19590rm -f conftest.$ac_objext
19591if { (ac_try="$ac_compile"
19592case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19595esac
19596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_compile") 2>conftest.er1
19598 ac_status=$?
19599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } && {
19604 test -z "$ac_c_werror_flag" ||
19605 test ! -s conftest.err
19606 } && test -s conftest.$ac_objext; then
19607 ac_lo=$ac_mid; break
19608else
19609 echo "$as_me: failed program was:" >&5
19610sed 's/^/| /' conftest.$ac_ext >&5
19611
19612 ac_hi=`expr '(' $ac_mid ')' - 1`
19613 if test $ac_mid -le $ac_hi; then
19614 ac_lo= ac_hi=
19615 break
19616 fi
19617 ac_mid=`expr 2 '*' $ac_mid`
19618fi
19619
19620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 done
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_lo= ac_hi=
19627fi
19628
19629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630fi
19631
19632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19633# Binary search between lo and hi bounds.
19634while test "x$ac_lo" != "x$ac_hi"; do
19635 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19636 cat >conftest.$ac_ext <<_ACEOF
19637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
19642$ac_includes_default
19643 typedef char ac__type_sizeof_;
19644int
19645main ()
19646{
19647static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19648test_array [0] = 0
19649
19650 ;
19651 return 0;
19652}
19653_ACEOF
19654rm -f conftest.$ac_objext
19655if { (ac_try="$ac_compile"
19656case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659esac
19660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_compile") 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest.$ac_objext; then
19671 ac_hi=$ac_mid
19672else
19673 echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 ac_lo=`expr '(' $ac_mid ')' + 1`
19677fi
19678
19679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680done
19681case $ac_lo in
19682?*) ac_cv_sizeof_char=$ac_lo;;
19683'') if test "$ac_cv_type_char" = yes; then
19684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19685See \`config.log' for more details." >&5
19686echo "$as_me: error: cannot compute sizeof (char)
19687See \`config.log' for more details." >&2;}
19688 { (exit 77); exit 77; }; }
19689 else
19690 ac_cv_sizeof_char=0
19691 fi ;;
19692esac
19693else
19694 cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h. */
19700$ac_includes_default
19701 typedef char ac__type_sizeof_;
19702static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19703static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19704#include <stdio.h>
19705#include <stdlib.h>
19706int
19707main ()
19708{
19709
19710 FILE *f = fopen ("conftest.val", "w");
19711 if (! f)
19712 return 1;
19713 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19714 {
19715 long int i = longval ();
19716 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19717 return 1;
19718 fprintf (f, "%ld\n", i);
19719 }
19720 else
19721 {
19722 unsigned long int i = ulongval ();
19723 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19724 return 1;
19725 fprintf (f, "%lu\n", i);
19726 }
19727 return ferror (f) || fclose (f) != 0;
19728
19729 ;
19730 return 0;
19731}
19732_ACEOF
19733rm -f conftest$ac_exeext
19734if { (ac_try="$ac_link"
19735case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738esac
19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_link") 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19744 { (case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747esac
19748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 ac_cv_sizeof_char=`cat conftest.val`
19754else
19755 echo "$as_me: program exited with status $ac_status" >&5
19756echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759( exit $ac_status )
19760if test "$ac_cv_type_char" = yes; then
19761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19762See \`config.log' for more details." >&5
19763echo "$as_me: error: cannot compute sizeof (char)
19764See \`config.log' for more details." >&2;}
19765 { (exit 77); exit 77; }; }
19766 else
19767 ac_cv_sizeof_char=0
19768 fi
19769fi
19770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19771fi
19772rm -f conftest.val
19773fi
19774{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
19775echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
19776
19777
19778
19779cat >>confdefs.h <<_ACEOF
19780#define SIZEOF_CHAR $ac_cv_sizeof_char
19781_ACEOF
19782
19783
19784{ echo "$as_me:$LINENO: checking for short int" >&5
19785echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
19786if test "${ac_cv_type_short_int+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788else
19789 cat >conftest.$ac_ext <<_ACEOF
19790/* confdefs.h. */
19791_ACEOF
19792cat confdefs.h >>conftest.$ac_ext
19793cat >>conftest.$ac_ext <<_ACEOF
19794/* end confdefs.h. */
19795$ac_includes_default
19796typedef short int ac__type_new_;
19797int
19798main ()
19799{
19800if ((ac__type_new_ *) 0)
19801 return 0;
19802if (sizeof (ac__type_new_))
19803 return 0;
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (ac_try="$ac_compile"
19810case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_compile") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest.$ac_objext; then
19825 ac_cv_type_short_int=yes
19826else
19827 echo "$as_me: failed program was:" >&5
19828sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ac_cv_type_short_int=no
19831fi
19832
19833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19834fi
19835{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
19836echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
19837
19838# The cast to long int works around a bug in the HP C Compiler
19839# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19840# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19841# This bug is HP SR number 8606223364.
19842{ echo "$as_me:$LINENO: checking size of short int" >&5
19843echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
19844if test "${ac_cv_sizeof_short_int+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846else
19847 if test "$cross_compiling" = yes; then
19848 # Depending upon the size, compute the lo and hi bounds.
19849cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h. */
19855$ac_includes_default
19856 typedef short int ac__type_sizeof_;
19857int
19858main ()
19859{
19860static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19861test_array [0] = 0
19862
19863 ;
19864 return 0;
19865}
19866_ACEOF
19867rm -f conftest.$ac_objext
19868if { (ac_try="$ac_compile"
19869case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872esac
19873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_compile") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest.$ac_objext; then
19884 ac_lo=0 ac_mid=0
19885 while :; do
19886 cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892$ac_includes_default
19893 typedef short int ac__type_sizeof_;
19894int
19895main ()
19896{
19897static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19898test_array [0] = 0
19899
19900 ;
19901 return 0;
19902}
19903_ACEOF
19904rm -f conftest.$ac_objext
19905if { (ac_try="$ac_compile"
19906case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909esac
19910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_compile") 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest.$ac_objext; then
19921 ac_hi=$ac_mid; break
19922else
19923 echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926 ac_lo=`expr $ac_mid + 1`
19927 if test $ac_lo -le $ac_mid; then
19928 ac_lo= ac_hi=
19929 break
19930 fi
19931 ac_mid=`expr 2 '*' $ac_mid + 1`
19932fi
19933
19934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935 done
19936else
19937 echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 cat >conftest.$ac_ext <<_ACEOF
19941/* confdefs.h. */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h. */
19946$ac_includes_default
19947 typedef short int ac__type_sizeof_;
19948int
19949main ()
19950{
19951static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19952test_array [0] = 0
19953
19954 ;
19955 return 0;
19956}
19957_ACEOF
19958rm -f conftest.$ac_objext
19959if { (ac_try="$ac_compile"
19960case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19963esac
19964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_compile") 2>conftest.er1
19966 ac_status=$?
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.$ac_objext; then
19975 ac_hi=-1 ac_mid=-1
19976 while :; do
19977 cat >conftest.$ac_ext <<_ACEOF
19978/* confdefs.h. */
19979_ACEOF
19980cat confdefs.h >>conftest.$ac_ext
19981cat >>conftest.$ac_ext <<_ACEOF
19982/* end confdefs.h. */
19983$ac_includes_default
19984 typedef short int ac__type_sizeof_;
19985int
19986main ()
19987{
19988static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19989test_array [0] = 0
19990
19991 ;
19992 return 0;
19993}
19994_ACEOF
19995rm -f conftest.$ac_objext
19996if { (ac_try="$ac_compile"
19997case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000esac
20001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_compile") 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest.$ac_objext; then
20012 ac_lo=$ac_mid; break
20013else
20014 echo "$as_me: failed program was:" >&5
20015sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_hi=`expr '(' $ac_mid ')' - 1`
20018 if test $ac_mid -le $ac_hi; then
20019 ac_lo= ac_hi=
20020 break
20021 fi
20022 ac_mid=`expr 2 '*' $ac_mid`
20023fi
20024
20025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026 done
20027else
20028 echo "$as_me: failed program was:" >&5
20029sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 ac_lo= ac_hi=
20032fi
20033
20034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035fi
20036
20037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038# Binary search between lo and hi bounds.
20039while test "x$ac_lo" != "x$ac_hi"; do
20040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20041 cat >conftest.$ac_ext <<_ACEOF
20042/* confdefs.h. */
20043_ACEOF
20044cat confdefs.h >>conftest.$ac_ext
20045cat >>conftest.$ac_ext <<_ACEOF
20046/* end confdefs.h. */
20047$ac_includes_default
20048 typedef short int ac__type_sizeof_;
20049int
20050main ()
20051{
20052static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20053test_array [0] = 0
20054
20055 ;
20056 return 0;
20057}
20058_ACEOF
20059rm -f conftest.$ac_objext
20060if { (ac_try="$ac_compile"
20061case "(($ac_try" in
20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20064esac
20065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_compile") 2>conftest.er1
20067 ac_status=$?
20068 grep -v '^ *+' conftest.er1 >conftest.err
20069 rm -f conftest.er1
20070 cat conftest.err >&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } && {
20073 test -z "$ac_c_werror_flag" ||
20074 test ! -s conftest.err
20075 } && test -s conftest.$ac_objext; then
20076 ac_hi=$ac_mid
20077else
20078 echo "$as_me: failed program was:" >&5
20079sed 's/^/| /' conftest.$ac_ext >&5
20080
20081 ac_lo=`expr '(' $ac_mid ')' + 1`
20082fi
20083
20084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20085done
20086case $ac_lo in
20087?*) ac_cv_sizeof_short_int=$ac_lo;;
20088'') if test "$ac_cv_type_short_int" = yes; then
20089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
20090See \`config.log' for more details." >&5
20091echo "$as_me: error: cannot compute sizeof (short int)
20092See \`config.log' for more details." >&2;}
20093 { (exit 77); exit 77; }; }
20094 else
20095 ac_cv_sizeof_short_int=0
20096 fi ;;
20097esac
20098else
20099 cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h. */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */
20105$ac_includes_default
20106 typedef short int ac__type_sizeof_;
20107static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20108static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20109#include <stdio.h>
20110#include <stdlib.h>
20111int
20112main ()
20113{
20114
20115 FILE *f = fopen ("conftest.val", "w");
20116 if (! f)
20117 return 1;
20118 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20119 {
20120 long int i = longval ();
20121 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20122 return 1;
20123 fprintf (f, "%ld\n", i);
20124 }
20125 else
20126 {
20127 unsigned long int i = ulongval ();
20128 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20129 return 1;
20130 fprintf (f, "%lu\n", i);
20131 }
20132 return ferror (f) || fclose (f) != 0;
20133
20134 ;
20135 return 0;
20136}
20137_ACEOF
20138rm -f conftest$ac_exeext
20139if { (ac_try="$ac_link"
20140case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152esac
20153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_sizeof_short_int=`cat conftest.val`
20159else
20160 echo "$as_me: program exited with status $ac_status" >&5
20161echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164( exit $ac_status )
20165if test "$ac_cv_type_short_int" = yes; then
20166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
20167See \`config.log' for more details." >&5
20168echo "$as_me: error: cannot compute sizeof (short int)
20169See \`config.log' for more details." >&2;}
20170 { (exit 77); exit 77; }; }
20171 else
20172 ac_cv_sizeof_short_int=0
20173 fi
20174fi
20175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20176fi
20177rm -f conftest.val
20178fi
20179{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
20180echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
20181
20182
20183
20184cat >>confdefs.h <<_ACEOF
20185#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
20186_ACEOF
20187
20188
20189{ echo "$as_me:$LINENO: checking for int" >&5
20190echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20191if test "${ac_cv_type_int+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194 cat >conftest.$ac_ext <<_ACEOF
20195/* confdefs.h. */
20196_ACEOF
20197cat confdefs.h >>conftest.$ac_ext
20198cat >>conftest.$ac_ext <<_ACEOF
20199/* end confdefs.h. */
20200$ac_includes_default
20201typedef int ac__type_new_;
20202int
20203main ()
20204{
20205if ((ac__type_new_ *) 0)
20206 return 0;
20207if (sizeof (ac__type_new_))
20208 return 0;
20209 ;
20210 return 0;
20211}
20212_ACEOF
20213rm -f conftest.$ac_objext
20214if { (ac_try="$ac_compile"
20215case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218esac
20219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_compile") 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest.$ac_objext; then
20230 ac_cv_type_int=yes
20231else
20232 echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 ac_cv_type_int=no
20236fi
20237
20238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20239fi
20240{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20241echo "${ECHO_T}$ac_cv_type_int" >&6; }
20242
20243# The cast to long int works around a bug in the HP C Compiler
20244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20246# This bug is HP SR number 8606223364.
20247{ echo "$as_me:$LINENO: checking size of int" >&5
20248echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20249if test "${ac_cv_sizeof_int+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251else
20252 if test "$cross_compiling" = yes; then
20253 # Depending upon the size, compute the lo and hi bounds.
20254cat >conftest.$ac_ext <<_ACEOF
20255/* confdefs.h. */
20256_ACEOF
20257cat confdefs.h >>conftest.$ac_ext
20258cat >>conftest.$ac_ext <<_ACEOF
20259/* end confdefs.h. */
20260$ac_includes_default
20261 typedef int ac__type_sizeof_;
20262int
20263main ()
20264{
20265static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20266test_array [0] = 0
20267
20268 ;
20269 return 0;
20270}
20271_ACEOF
20272rm -f conftest.$ac_objext
20273if { (ac_try="$ac_compile"
20274case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277esac
20278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_compile") 2>conftest.er1
20280 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest.$ac_objext; then
20289 ac_lo=0 ac_mid=0
20290 while :; do
20291 cat >conftest.$ac_ext <<_ACEOF
20292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h. */
20297$ac_includes_default
20298 typedef int ac__type_sizeof_;
20299int
20300main ()
20301{
20302static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20303test_array [0] = 0
20304
20305 ;
20306 return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext
20310if { (ac_try="$ac_compile"
20311case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20314esac
20315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_compile") 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } && {
20323 test -z "$ac_c_werror_flag" ||
20324 test ! -s conftest.err
20325 } && test -s conftest.$ac_objext; then
20326 ac_hi=$ac_mid; break
20327else
20328 echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331 ac_lo=`expr $ac_mid + 1`
20332 if test $ac_lo -le $ac_mid; then
20333 ac_lo= ac_hi=
20334 break
20335 fi
20336 ac_mid=`expr 2 '*' $ac_mid + 1`
20337fi
20338
20339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340 done
20341else
20342 echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 cat >conftest.$ac_ext <<_ACEOF
20346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
20351$ac_includes_default
20352 typedef int ac__type_sizeof_;
20353int
20354main ()
20355{
20356static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20357test_array [0] = 0
20358
20359 ;
20360 return 0;
20361}
20362_ACEOF
20363rm -f conftest.$ac_objext
20364if { (ac_try="$ac_compile"
20365case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest.$ac_objext; then
20380 ac_hi=-1 ac_mid=-1
20381 while :; do
20382 cat >conftest.$ac_ext <<_ACEOF
20383/* confdefs.h. */
20384_ACEOF
20385cat confdefs.h >>conftest.$ac_ext
20386cat >>conftest.$ac_ext <<_ACEOF
20387/* end confdefs.h. */
20388$ac_includes_default
20389 typedef int ac__type_sizeof_;
20390int
20391main ()
20392{
20393static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20394test_array [0] = 0
20395
20396 ;
20397 return 0;
20398}
20399_ACEOF
20400rm -f conftest.$ac_objext
20401if { (ac_try="$ac_compile"
20402case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405esac
20406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_compile") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest.$ac_objext; then
20417 ac_lo=$ac_mid; break
20418else
20419 echo "$as_me: failed program was:" >&5
20420sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 ac_hi=`expr '(' $ac_mid ')' - 1`
20423 if test $ac_mid -le $ac_hi; then
20424 ac_lo= ac_hi=
20425 break
20426 fi
20427 ac_mid=`expr 2 '*' $ac_mid`
20428fi
20429
20430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 done
20432else
20433 echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 ac_lo= ac_hi=
20437fi
20438
20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440fi
20441
20442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443# Binary search between lo and hi bounds.
20444while test "x$ac_lo" != "x$ac_hi"; do
20445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20446 cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h. */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h. */
20452$ac_includes_default
20453 typedef int ac__type_sizeof_;
20454int
20455main ()
20456{
20457static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20458test_array [0] = 0
20459
20460 ;
20461 return 0;
20462}
20463_ACEOF
20464rm -f conftest.$ac_objext
20465if { (ac_try="$ac_compile"
20466case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469esac
20470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_compile") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest.$ac_objext; then
20481 ac_hi=$ac_mid
20482else
20483 echo "$as_me: failed program was:" >&5
20484sed 's/^/| /' conftest.$ac_ext >&5
20485
20486 ac_lo=`expr '(' $ac_mid ')' + 1`
20487fi
20488
20489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490done
20491case $ac_lo in
20492?*) ac_cv_sizeof_int=$ac_lo;;
20493'') if test "$ac_cv_type_int" = yes; then
20494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20495See \`config.log' for more details." >&5
20496echo "$as_me: error: cannot compute sizeof (int)
20497See \`config.log' for more details." >&2;}
20498 { (exit 77); exit 77; }; }
20499 else
20500 ac_cv_sizeof_int=0
20501 fi ;;
20502esac
20503else
20504 cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510$ac_includes_default
20511 typedef int ac__type_sizeof_;
20512static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20513static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20514#include <stdio.h>
20515#include <stdlib.h>
20516int
20517main ()
20518{
20519
20520 FILE *f = fopen ("conftest.val", "w");
20521 if (! f)
20522 return 1;
20523 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20524 {
20525 long int i = longval ();
20526 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20527 return 1;
20528 fprintf (f, "%ld\n", i);
20529 }
20530 else
20531 {
20532 unsigned long int i = ulongval ();
20533 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20534 return 1;
20535 fprintf (f, "%lu\n", i);
20536 }
20537 return ferror (f) || fclose (f) != 0;
20538
20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest$ac_exeext
20544if { (ac_try="$ac_link"
20545case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_link") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20554 { (case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557esac
20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_try") 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_cv_sizeof_int=`cat conftest.val`
20564else
20565 echo "$as_me: program exited with status $ac_status" >&5
20566echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
20569( exit $ac_status )
20570if test "$ac_cv_type_int" = yes; then
20571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20572See \`config.log' for more details." >&5
20573echo "$as_me: error: cannot compute sizeof (int)
20574See \`config.log' for more details." >&2;}
20575 { (exit 77); exit 77; }; }
20576 else
20577 ac_cv_sizeof_int=0
20578 fi
20579fi
20580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20581fi
20582rm -f conftest.val
20583fi
20584{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20585echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20586
20587
20588
20589cat >>confdefs.h <<_ACEOF
20590#define SIZEOF_INT $ac_cv_sizeof_int
20591_ACEOF
20592
20593
20594{ echo "$as_me:$LINENO: checking for long int" >&5
20595echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
20596if test "${ac_cv_type_long_int+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20598else
20599 cat >conftest.$ac_ext <<_ACEOF
20600/* confdefs.h. */
20601_ACEOF
20602cat confdefs.h >>conftest.$ac_ext
20603cat >>conftest.$ac_ext <<_ACEOF
20604/* end confdefs.h. */
20605$ac_includes_default
20606typedef long int ac__type_new_;
20607int
20608main ()
20609{
20610if ((ac__type_new_ *) 0)
20611 return 0;
20612if (sizeof (ac__type_new_))
20613 return 0;
20614 ;
20615 return 0;
20616}
20617_ACEOF
20618rm -f conftest.$ac_objext
20619if { (ac_try="$ac_compile"
20620case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20623esac
20624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_compile") 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest.$ac_objext; then
20635 ac_cv_type_long_int=yes
20636else
20637 echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640 ac_cv_type_long_int=no
20641fi
20642
20643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644fi
20645{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
20646echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
20647
20648# The cast to long int works around a bug in the HP C Compiler
20649# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20650# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20651# This bug is HP SR number 8606223364.
20652{ echo "$as_me:$LINENO: checking size of long int" >&5
20653echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
20654if test "${ac_cv_sizeof_long_int+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20656else
20657 if test "$cross_compiling" = yes; then
20658 # Depending upon the size, compute the lo and hi bounds.
20659cat >conftest.$ac_ext <<_ACEOF
20660/* confdefs.h. */
20661_ACEOF
20662cat confdefs.h >>conftest.$ac_ext
20663cat >>conftest.$ac_ext <<_ACEOF
20664/* end confdefs.h. */
20665$ac_includes_default
20666 typedef long int ac__type_sizeof_;
20667int
20668main ()
20669{
20670static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20671test_array [0] = 0
20672
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest.$ac_objext
20678if { (ac_try="$ac_compile"
20679case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682esac
20683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_compile") 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest.$ac_objext; then
20694 ac_lo=0 ac_mid=0
20695 while :; do
20696 cat >conftest.$ac_ext <<_ACEOF
20697/* confdefs.h. */
20698_ACEOF
20699cat confdefs.h >>conftest.$ac_ext
20700cat >>conftest.$ac_ext <<_ACEOF
20701/* end confdefs.h. */
20702$ac_includes_default
20703 typedef long int ac__type_sizeof_;
20704int
20705main ()
20706{
20707static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20708test_array [0] = 0
20709
20710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext
20715if { (ac_try="$ac_compile"
20716case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719esac
20720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_compile") 2>conftest.er1
20722 ac_status=$?
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } && {
20728 test -z "$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20730 } && test -s conftest.$ac_objext; then
20731 ac_hi=$ac_mid; break
20732else
20733 echo "$as_me: failed program was:" >&5
20734sed 's/^/| /' conftest.$ac_ext >&5
20735
20736 ac_lo=`expr $ac_mid + 1`
20737 if test $ac_lo -le $ac_mid; then
20738 ac_lo= ac_hi=
20739 break
20740 fi
20741 ac_mid=`expr 2 '*' $ac_mid + 1`
20742fi
20743
20744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20745 done
20746else
20747 echo "$as_me: failed program was:" >&5
20748sed 's/^/| /' conftest.$ac_ext >&5
20749
20750 cat >conftest.$ac_ext <<_ACEOF
20751/* confdefs.h. */
20752_ACEOF
20753cat confdefs.h >>conftest.$ac_ext
20754cat >>conftest.$ac_ext <<_ACEOF
20755/* end confdefs.h. */
20756$ac_includes_default
20757 typedef long int ac__type_sizeof_;
20758int
20759main ()
20760{
20761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20762test_array [0] = 0
20763
20764 ;
20765 return 0;
20766}
20767_ACEOF
20768rm -f conftest.$ac_objext
20769if { (ac_try="$ac_compile"
20770case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773esac
20774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_compile") 2>conftest.er1
20776 ac_status=$?
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && {
20782 test -z "$ac_c_werror_flag" ||
20783 test ! -s conftest.err
20784 } && test -s conftest.$ac_objext; then
20785 ac_hi=-1 ac_mid=-1
20786 while :; do
20787 cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h. */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h. */
20793$ac_includes_default
20794 typedef long int ac__type_sizeof_;
20795int
20796main ()
20797{
20798static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20799test_array [0] = 0
20800
20801 ;
20802 return 0;
20803}
20804_ACEOF
20805rm -f conftest.$ac_objext
20806if { (ac_try="$ac_compile"
20807case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810esac
20811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_compile") 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } && {
20819 test -z "$ac_c_werror_flag" ||
20820 test ! -s conftest.err
20821 } && test -s conftest.$ac_objext; then
20822 ac_lo=$ac_mid; break
20823else
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_hi=`expr '(' $ac_mid ')' - 1`
20828 if test $ac_mid -le $ac_hi; then
20829 ac_lo= ac_hi=
20830 break
20831 fi
20832 ac_mid=`expr 2 '*' $ac_mid`
20833fi
20834
20835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 done
20837else
20838 echo "$as_me: failed program was:" >&5
20839sed 's/^/| /' conftest.$ac_ext >&5
20840
20841 ac_lo= ac_hi=
20842fi
20843
20844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845fi
20846
20847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848# Binary search between lo and hi bounds.
20849while test "x$ac_lo" != "x$ac_hi"; do
20850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20851 cat >conftest.$ac_ext <<_ACEOF
20852/* confdefs.h. */
20853_ACEOF
20854cat confdefs.h >>conftest.$ac_ext
20855cat >>conftest.$ac_ext <<_ACEOF
20856/* end confdefs.h. */
20857$ac_includes_default
20858 typedef long int ac__type_sizeof_;
20859int
20860main ()
20861{
20862static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20863test_array [0] = 0
20864
20865 ;
20866 return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext
20870if { (ac_try="$ac_compile"
20871case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874esac
20875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest.$ac_objext; then
20886 ac_hi=$ac_mid
20887else
20888 echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 ac_lo=`expr '(' $ac_mid ')' + 1`
20892fi
20893
20894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895done
20896case $ac_lo in
20897?*) ac_cv_sizeof_long_int=$ac_lo;;
20898'') if test "$ac_cv_type_long_int" = yes; then
20899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20900See \`config.log' for more details." >&5
20901echo "$as_me: error: cannot compute sizeof (long int)
20902See \`config.log' for more details." >&2;}
20903 { (exit 77); exit 77; }; }
20904 else
20905 ac_cv_sizeof_long_int=0
20906 fi ;;
20907esac
20908else
20909 cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
20915$ac_includes_default
20916 typedef long int ac__type_sizeof_;
20917static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20918static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20919#include <stdio.h>
20920#include <stdlib.h>
20921int
20922main ()
20923{
20924
20925 FILE *f = fopen ("conftest.val", "w");
20926 if (! f)
20927 return 1;
20928 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20929 {
20930 long int i = longval ();
20931 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20932 return 1;
20933 fprintf (f, "%ld\n", i);
20934 }
20935 else
20936 {
20937 unsigned long int i = ulongval ();
20938 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20939 return 1;
20940 fprintf (f, "%lu\n", i);
20941 }
20942 return ferror (f) || fclose (f) != 0;
20943
20944 ;
20945 return 0;
20946}
20947_ACEOF
20948rm -f conftest$ac_exeext
20949if { (ac_try="$ac_link"
20950case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953esac
20954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_link") 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20959 { (case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_try") 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; }; then
20968 ac_cv_sizeof_long_int=`cat conftest.val`
20969else
20970 echo "$as_me: program exited with status $ac_status" >&5
20971echo "$as_me: failed program was:" >&5
20972sed 's/^/| /' conftest.$ac_ext >&5
20973
20974( exit $ac_status )
20975if test "$ac_cv_type_long_int" = yes; then
20976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20977See \`config.log' for more details." >&5
20978echo "$as_me: error: cannot compute sizeof (long int)
20979See \`config.log' for more details." >&2;}
20980 { (exit 77); exit 77; }; }
20981 else
20982 ac_cv_sizeof_long_int=0
20983 fi
20984fi
20985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20986fi
20987rm -f conftest.val
20988fi
20989{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
20990echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
20991
20992
20993
20994cat >>confdefs.h <<_ACEOF
20995#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20996_ACEOF
20997
20998
20999{ echo "$as_me:$LINENO: checking for long long int" >&5
21000echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
21001if test "${ac_cv_type_long_long_int+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21003else
21004 cat >conftest.$ac_ext <<_ACEOF
21005/* confdefs.h. */
21006_ACEOF
21007cat confdefs.h >>conftest.$ac_ext
21008cat >>conftest.$ac_ext <<_ACEOF
21009/* end confdefs.h. */
21010$ac_includes_default
21011typedef long long int ac__type_new_;
21012int
21013main ()
21014{
21015if ((ac__type_new_ *) 0)
21016 return 0;
21017if (sizeof (ac__type_new_))
21018 return 0;
21019 ;
21020 return 0;
21021}
21022_ACEOF
21023rm -f conftest.$ac_objext
21024if { (ac_try="$ac_compile"
21025case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028esac
21029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_compile") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest.$ac_objext; then
21040 ac_cv_type_long_long_int=yes
21041else
21042 echo "$as_me: failed program was:" >&5
21043sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 ac_cv_type_long_long_int=no
21046fi
21047
21048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049fi
21050{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21051echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
21052
21053# The cast to long int works around a bug in the HP C Compiler
21054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21056# This bug is HP SR number 8606223364.
21057{ echo "$as_me:$LINENO: checking size of long long int" >&5
21058echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
21059if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21061else
21062 if test "$cross_compiling" = yes; then
21063 # Depending upon the size, compute the lo and hi bounds.
21064cat >conftest.$ac_ext <<_ACEOF
21065/* confdefs.h. */
21066_ACEOF
21067cat confdefs.h >>conftest.$ac_ext
21068cat >>conftest.$ac_ext <<_ACEOF
21069/* end confdefs.h. */
21070$ac_includes_default
21071 typedef long long int ac__type_sizeof_;
21072int
21073main ()
21074{
21075static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21076test_array [0] = 0
21077
21078 ;
21079 return 0;
21080}
21081_ACEOF
21082rm -f conftest.$ac_objext
21083if { (ac_try="$ac_compile"
21084case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21087esac
21088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && {
21096 test -z "$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 } && test -s conftest.$ac_objext; then
21099 ac_lo=0 ac_mid=0
21100 while :; do
21101 cat >conftest.$ac_ext <<_ACEOF
21102/* confdefs.h. */
21103_ACEOF
21104cat confdefs.h >>conftest.$ac_ext
21105cat >>conftest.$ac_ext <<_ACEOF
21106/* end confdefs.h. */
21107$ac_includes_default
21108 typedef long long int ac__type_sizeof_;
21109int
21110main ()
21111{
21112static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21113test_array [0] = 0
21114
21115 ;
21116 return 0;
21117}
21118_ACEOF
21119rm -f conftest.$ac_objext
21120if { (ac_try="$ac_compile"
21121case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124esac
21125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_compile") 2>conftest.er1
21127 ac_status=$?
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest.$ac_objext; then
21136 ac_hi=$ac_mid; break
21137else
21138 echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 ac_lo=`expr $ac_mid + 1`
21142 if test $ac_lo -le $ac_mid; then
21143 ac_lo= ac_hi=
21144 break
21145 fi
21146 ac_mid=`expr 2 '*' $ac_mid + 1`
21147fi
21148
21149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 done
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 cat >conftest.$ac_ext <<_ACEOF
21156/* confdefs.h. */
21157_ACEOF
21158cat confdefs.h >>conftest.$ac_ext
21159cat >>conftest.$ac_ext <<_ACEOF
21160/* end confdefs.h. */
21161$ac_includes_default
21162 typedef long long int ac__type_sizeof_;
21163int
21164main ()
21165{
21166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21167test_array [0] = 0
21168
21169 ;
21170 return 0;
21171}
21172_ACEOF
21173rm -f conftest.$ac_objext
21174if { (ac_try="$ac_compile"
21175case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21178esac
21179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_compile") 2>conftest.er1
21181 ac_status=$?
21182 grep -v '^ *+' conftest.er1 >conftest.err
21183 rm -f conftest.er1
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest.$ac_objext; then
21190 ac_hi=-1 ac_mid=-1
21191 while :; do
21192 cat >conftest.$ac_ext <<_ACEOF
21193/* confdefs.h. */
21194_ACEOF
21195cat confdefs.h >>conftest.$ac_ext
21196cat >>conftest.$ac_ext <<_ACEOF
21197/* end confdefs.h. */
21198$ac_includes_default
21199 typedef long long int ac__type_sizeof_;
21200int
21201main ()
21202{
21203static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21204test_array [0] = 0
21205
21206 ;
21207 return 0;
21208}
21209_ACEOF
21210rm -f conftest.$ac_objext
21211if { (ac_try="$ac_compile"
21212case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215esac
21216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && {
21224 test -z "$ac_c_werror_flag" ||
21225 test ! -s conftest.err
21226 } && test -s conftest.$ac_objext; then
21227 ac_lo=$ac_mid; break
21228else
21229 echo "$as_me: failed program was:" >&5
21230sed 's/^/| /' conftest.$ac_ext >&5
21231
21232 ac_hi=`expr '(' $ac_mid ')' - 1`
21233 if test $ac_mid -le $ac_hi; then
21234 ac_lo= ac_hi=
21235 break
21236 fi
21237 ac_mid=`expr 2 '*' $ac_mid`
21238fi
21239
21240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241 done
21242else
21243 echo "$as_me: failed program was:" >&5
21244sed 's/^/| /' conftest.$ac_ext >&5
21245
21246 ac_lo= ac_hi=
21247fi
21248
21249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250fi
21251
21252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253# Binary search between lo and hi bounds.
21254while test "x$ac_lo" != "x$ac_hi"; do
21255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21256 cat >conftest.$ac_ext <<_ACEOF
21257/* confdefs.h. */
21258_ACEOF
21259cat confdefs.h >>conftest.$ac_ext
21260cat >>conftest.$ac_ext <<_ACEOF
21261/* end confdefs.h. */
21262$ac_includes_default
21263 typedef long long int ac__type_sizeof_;
21264int
21265main ()
21266{
21267static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21268test_array [0] = 0
21269
21270 ;
21271 return 0;
21272}
21273_ACEOF
21274rm -f conftest.$ac_objext
21275if { (ac_try="$ac_compile"
21276case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21279esac
21280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_compile") 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } && {
21288 test -z "$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21290 } && test -s conftest.$ac_objext; then
21291 ac_hi=$ac_mid
21292else
21293 echo "$as_me: failed program was:" >&5
21294sed 's/^/| /' conftest.$ac_ext >&5
21295
21296 ac_lo=`expr '(' $ac_mid ')' + 1`
21297fi
21298
21299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21300done
21301case $ac_lo in
21302?*) ac_cv_sizeof_long_long_int=$ac_lo;;
21303'') if test "$ac_cv_type_long_long_int" = yes; then
21304 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21305See \`config.log' for more details." >&5
21306echo "$as_me: error: cannot compute sizeof (long long int)
21307See \`config.log' for more details." >&2;}
21308 { (exit 77); exit 77; }; }
21309 else
21310 ac_cv_sizeof_long_long_int=0
21311 fi ;;
21312esac
21313else
21314 cat >conftest.$ac_ext <<_ACEOF
21315/* confdefs.h. */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h. */
21320$ac_includes_default
21321 typedef long long int ac__type_sizeof_;
21322static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21323static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21324#include <stdio.h>
21325#include <stdlib.h>
21326int
21327main ()
21328{
21329
21330 FILE *f = fopen ("conftest.val", "w");
21331 if (! f)
21332 return 1;
21333 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21334 {
21335 long int i = longval ();
21336 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21337 return 1;
21338 fprintf (f, "%ld\n", i);
21339 }
21340 else
21341 {
21342 unsigned long int i = ulongval ();
21343 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21344 return 1;
21345 fprintf (f, "%lu\n", i);
21346 }
21347 return ferror (f) || fclose (f) != 0;
21348
21349 ;
21350 return 0;
21351}
21352_ACEOF
21353rm -f conftest$ac_exeext
21354if { (ac_try="$ac_link"
21355case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358esac
21359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_link") 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21364 { (case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21367esac
21368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_try") 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; }; then
21373 ac_cv_sizeof_long_long_int=`cat conftest.val`
21374else
21375 echo "$as_me: program exited with status $ac_status" >&5
21376echo "$as_me: failed program was:" >&5
21377sed 's/^/| /' conftest.$ac_ext >&5
21378
21379( exit $ac_status )
21380if test "$ac_cv_type_long_long_int" = yes; then
21381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21382See \`config.log' for more details." >&5
21383echo "$as_me: error: cannot compute sizeof (long long int)
21384See \`config.log' for more details." >&2;}
21385 { (exit 77); exit 77; }; }
21386 else
21387 ac_cv_sizeof_long_long_int=0
21388 fi
21389fi
21390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21391fi
21392rm -f conftest.val
21393fi
21394{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
21395echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
21396
21397
21398
21399cat >>confdefs.h <<_ACEOF
21400#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
21401_ACEOF
21402
21403
21404
21405# Sanity check long long for some platforms (AIX)
21406if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
21407 ac_cv_sizeof_long_long_int=0
21408fi
21409
21410# compute LLONG_MIN and LLONG_MAX if we don't know them.
21411if test -z "$have_llong_max"; then
21412 { echo "$as_me:$LINENO: checking for max value of long long" >&5
21413echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
21414 if test "$cross_compiling" = yes; then
21415
21416 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21417echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21418
21419
21420else
21421 cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427
21428#include <stdio.h>
21429/* Why is this so damn hard? */
21430#ifdef __GNUC__
21431# undef __GNUC__
21432#endif
21433#define __USE_ISOC99
21434#include <limits.h>
21435#define DATA "conftest.llminmax"
21436#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
21437
21438/*
21439 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
21440 * we do this the hard way.
21441 */
21442static int
21443fprint_ll(FILE *f, long long n)
21444{
21445 unsigned int i;
21446 int l[sizeof(long long) * 8];
21447
21448 if (n < 0)
21449 if (fprintf(f, "-") < 0)
21450 return -1;
21451 for (i = 0; n != 0; i++) {
21452 l[i] = my_abs(n % 10);
21453 n /= 10;
21454 }
21455 do {
21456 if (fprintf(f, "%d", l[--i]) < 0)
21457 return -1;
21458 } while (i != 0);
21459 if (fprintf(f, " ") < 0)
21460 return -1;
21461 return 0;
21462}
21463
21464int main(void) {
21465 FILE *f;
21466 long long i, llmin, llmax = 0;
21467
21468 if((f = fopen(DATA,"w")) == NULL)
21469 exit(1);
21470
21471#if defined(LLONG_MIN) && defined(LLONG_MAX)
21472 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
21473 llmin = LLONG_MIN;
21474 llmax = LLONG_MAX;
21475#else
21476 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
21477 /* This will work on one's complement and two's complement */
21478 for (i = 1; i > llmax; i <<= 1, i++)
21479 llmax = i;
21480 llmin = llmax + 1LL; /* wrap */
21481#endif
21482
21483 /* Sanity check */
21484 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
21485 || llmax - 1 > llmax || llmin == llmax || llmin == 0
21486 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
21487 fprintf(f, "unknown unknown\n");
21488 exit(2);
21489 }
21490
21491 if (fprint_ll(f, llmin) < 0)
21492 exit(3);
21493 if (fprint_ll(f, llmax) < 0)
21494 exit(4);
21495 if (fclose(f) < 0)
21496 exit(5);
21497 exit(0);
21498}
21499
21500_ACEOF
21501rm -f conftest$ac_exeext
21502if { (ac_try="$ac_link"
21503case "(($ac_try" in
21504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505 *) ac_try_echo=$ac_try;;
21506esac
21507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508 (eval "$ac_link") 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21512 { (case "(($ac_try" in
21513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514 *) ac_try_echo=$ac_try;;
21515esac
21516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21517 (eval "$ac_try") 2>&5
21518 ac_status=$?
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); }; }; then
21521
21522 llong_min=`$AWK '{print $1}' conftest.llminmax`
21523 llong_max=`$AWK '{print $2}' conftest.llminmax`
21524
21525 { echo "$as_me:$LINENO: result: $llong_max" >&5
21526echo "${ECHO_T}$llong_max" >&6; }
21527
21528cat >>confdefs.h <<_ACEOF
21529#define LLONG_MAX ${llong_max}LL
21530_ACEOF
21531
21532 { echo "$as_me:$LINENO: checking for min value of long long" >&5
21533echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
21534 { echo "$as_me:$LINENO: result: $llong_min" >&5
21535echo "${ECHO_T}$llong_min" >&6; }
21536
21537cat >>confdefs.h <<_ACEOF
21538#define LLONG_MIN ${llong_min}LL
21539_ACEOF
21540
21541
21542else
21543 echo "$as_me: program exited with status $ac_status" >&5
21544echo "$as_me: failed program was:" >&5
21545sed 's/^/| /' conftest.$ac_ext >&5
21546
21547( exit $ac_status )
21548
21549 { echo "$as_me:$LINENO: result: not found" >&5
21550echo "${ECHO_T}not found" >&6; }
21551
21552fi
21553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21554fi
21555
21556
21557fi
21558
21559
21560# More checks for data types
21561{ echo "$as_me:$LINENO: checking for u_int type" >&5
21562echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
21563if test "${ac_cv_have_u_int+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565else
21566
21567 cat >conftest.$ac_ext <<_ACEOF
21568/* confdefs.h. */
21569_ACEOF
21570cat confdefs.h >>conftest.$ac_ext
21571cat >>conftest.$ac_ext <<_ACEOF
21572/* end confdefs.h. */
21573 #include <sys/types.h>
21574int
21575main ()
21576{
21577 u_int a; a = 1;
21578 ;
21579 return 0;
21580}
21581_ACEOF
21582rm -f conftest.$ac_objext
21583if { (ac_try="$ac_compile"
21584case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587esac
21588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_compile") 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } && {
21596 test -z "$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21598 } && test -s conftest.$ac_objext; then
21599 ac_cv_have_u_int="yes"
21600else
21601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604 ac_cv_have_u_int="no"
21605
21606fi
21607
21608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609
21610fi
21611{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
21612echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
21613if test "x$ac_cv_have_u_int" = "xyes" ; then
21614
21615cat >>confdefs.h <<\_ACEOF
21616#define HAVE_U_INT 1
21617_ACEOF
21618
21619 have_u_int=1
21620fi
21621
21622{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
21623echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
21624if test "${ac_cv_have_intxx_t+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626else
21627
21628 cat >conftest.$ac_ext <<_ACEOF
21629/* confdefs.h. */
21630_ACEOF
21631cat confdefs.h >>conftest.$ac_ext
21632cat >>conftest.$ac_ext <<_ACEOF
21633/* end confdefs.h. */
21634 #include <sys/types.h>
21635int
21636main ()
21637{
21638 int8_t a; int16_t b; int32_t c; a = b = c = 1;
21639 ;
21640 return 0;
21641}
21642_ACEOF
21643rm -f conftest.$ac_objext
21644if { (ac_try="$ac_compile"
21645case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21648esac
21649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650 (eval "$ac_compile") 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && {
21657 test -z "$ac_c_werror_flag" ||
21658 test ! -s conftest.err
21659 } && test -s conftest.$ac_objext; then
21660 ac_cv_have_intxx_t="yes"
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665 ac_cv_have_intxx_t="no"
21666
21667fi
21668
21669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21670
21671fi
21672{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
21673echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
21674if test "x$ac_cv_have_intxx_t" = "xyes" ; then
21675
21676cat >>confdefs.h <<\_ACEOF
21677#define HAVE_INTXX_T 1
21678_ACEOF
21679
21680 have_intxx_t=1
21681fi
21682
21683if (test -z "$have_intxx_t" && \
21684 test "x$ac_cv_header_stdint_h" = "xyes")
21685then
21686 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
21687echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
21688 cat >conftest.$ac_ext <<_ACEOF
21689/* confdefs.h. */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h. */
21694 #include <stdint.h>
21695int
21696main ()
21697{
21698 int8_t a; int16_t b; int32_t c; a = b = c = 1;
21699 ;
21700 return 0;
21701}
21702_ACEOF
21703rm -f conftest.$ac_objext
21704if { (ac_try="$ac_compile"
21705case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708esac
21709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_compile") 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } && {
21717 test -z "$ac_c_werror_flag" ||
21718 test ! -s conftest.err
21719 } && test -s conftest.$ac_objext; then
21720
21721 cat >>confdefs.h <<\_ACEOF
21722#define HAVE_INTXX_T 1
21723_ACEOF
21724
21725 { echo "$as_me:$LINENO: result: yes" >&5
21726echo "${ECHO_T}yes" >&6; }
21727
21728else
21729 echo "$as_me: failed program was:" >&5
21730sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 { echo "$as_me:$LINENO: result: no" >&5
21733echo "${ECHO_T}no" >&6; }
21734
21735fi
21736
21737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738fi
21739
21740{ echo "$as_me:$LINENO: checking for int64_t type" >&5
21741echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
21742if test "${ac_cv_have_int64_t+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21744else
21745
21746 cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
21752
21753#include <sys/types.h>
21754#ifdef HAVE_STDINT_H
21755# include <stdint.h>
21756#endif
21757#include <sys/socket.h>
21758#ifdef HAVE_SYS_BITYPES_H
21759# include <sys/bitypes.h>
21760#endif
21761
21762int
21763main ()
21764{
21765 int64_t a; a = 1;
21766 ;
21767 return 0;
21768}
21769_ACEOF
21770rm -f conftest.$ac_objext
21771if { (ac_try="$ac_compile"
21772case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21775esac
21776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_compile") 2>conftest.er1
21778 ac_status=$?
21779 grep -v '^ *+' conftest.er1 >conftest.err
21780 rm -f conftest.er1
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } && {
21784 test -z "$ac_c_werror_flag" ||
21785 test ! -s conftest.err
21786 } && test -s conftest.$ac_objext; then
21787 ac_cv_have_int64_t="yes"
21788else
21789 echo "$as_me: failed program was:" >&5
21790sed 's/^/| /' conftest.$ac_ext >&5
21791
21792 ac_cv_have_int64_t="no"
21793
21794fi
21795
21796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797
21798fi
21799{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
21800echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
21801if test "x$ac_cv_have_int64_t" = "xyes" ; then
21802
21803cat >>confdefs.h <<\_ACEOF
21804#define HAVE_INT64_T 1
21805_ACEOF
21806
21807fi
21808
21809{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
21810echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
21811if test "${ac_cv_have_u_intxx_t+set}" = set; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21813else
21814
21815 cat >conftest.$ac_ext <<_ACEOF
21816/* confdefs.h. */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h. */
21821 #include <sys/types.h>
21822int
21823main ()
21824{
21825 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21826 ;
21827 return 0;
21828}
21829_ACEOF
21830rm -f conftest.$ac_objext
21831if { (ac_try="$ac_compile"
21832case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835esac
21836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.$ac_objext; then
21847 ac_cv_have_u_intxx_t="yes"
21848else
21849 echo "$as_me: failed program was:" >&5
21850sed 's/^/| /' conftest.$ac_ext >&5
21851
21852 ac_cv_have_u_intxx_t="no"
21853
21854fi
21855
21856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21857
21858fi
21859{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
21860echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
21861if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
21862
21863cat >>confdefs.h <<\_ACEOF
21864#define HAVE_U_INTXX_T 1
21865_ACEOF
21866
21867 have_u_intxx_t=1
21868fi
21869
21870if test -z "$have_u_intxx_t" ; then
21871 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
21872echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
21873 cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
21879 #include <sys/socket.h>
21880int
21881main ()
21882{
21883 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21884 ;
21885 return 0;
21886}
21887_ACEOF
21888rm -f conftest.$ac_objext
21889if { (ac_try="$ac_compile"
21890case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21893esac
21894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_compile") 2>conftest.er1
21896 ac_status=$?
21897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && {
21902 test -z "$ac_c_werror_flag" ||
21903 test ! -s conftest.err
21904 } && test -s conftest.$ac_objext; then
21905
21906 cat >>confdefs.h <<\_ACEOF
21907#define HAVE_U_INTXX_T 1
21908_ACEOF
21909
21910 { echo "$as_me:$LINENO: result: yes" >&5
21911echo "${ECHO_T}yes" >&6; }
21912
21913else
21914 echo "$as_me: failed program was:" >&5
21915sed 's/^/| /' conftest.$ac_ext >&5
21916
21917 { echo "$as_me:$LINENO: result: no" >&5
21918echo "${ECHO_T}no" >&6; }
21919
21920fi
21921
21922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923fi
21924
21925{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
21926echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
21927if test "${ac_cv_have_u_int64_t+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929else
21930
21931 cat >conftest.$ac_ext <<_ACEOF
21932/* confdefs.h. */
21933_ACEOF
21934cat confdefs.h >>conftest.$ac_ext
21935cat >>conftest.$ac_ext <<_ACEOF
21936/* end confdefs.h. */
21937 #include <sys/types.h>
21938int
21939main ()
21940{
21941 u_int64_t a; a = 1;
21942 ;
21943 return 0;
21944}
21945_ACEOF
21946rm -f conftest.$ac_objext
21947if { (ac_try="$ac_compile"
21948case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21951esac
21952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21953 (eval "$ac_compile") 2>conftest.er1
21954 ac_status=$?
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && {
21960 test -z "$ac_c_werror_flag" ||
21961 test ! -s conftest.err
21962 } && test -s conftest.$ac_objext; then
21963 ac_cv_have_u_int64_t="yes"
21964else
21965 echo "$as_me: failed program was:" >&5
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
21968 ac_cv_have_u_int64_t="no"
21969
21970fi
21971
21972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973
21974fi
21975{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
21976echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
21977if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
21978
21979cat >>confdefs.h <<\_ACEOF
21980#define HAVE_U_INT64_T 1
21981_ACEOF
21982
21983 have_u_int64_t=1
21984fi
21985
21986if test -z "$have_u_int64_t" ; then
21987 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
21988echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
21989 cat >conftest.$ac_ext <<_ACEOF
21990/* confdefs.h. */
21991_ACEOF
21992cat confdefs.h >>conftest.$ac_ext
21993cat >>conftest.$ac_ext <<_ACEOF
21994/* end confdefs.h. */
21995 #include <sys/bitypes.h>
21996int
21997main ()
21998{
21999 u_int64_t a; a = 1
22000 ;
22001 return 0;
22002}
22003_ACEOF
22004rm -f conftest.$ac_objext
22005if { (ac_try="$ac_compile"
22006case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009esac
22010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
22021
22022 cat >>confdefs.h <<\_ACEOF
22023#define HAVE_U_INT64_T 1
22024_ACEOF
22025
22026 { echo "$as_me:$LINENO: result: yes" >&5
22027echo "${ECHO_T}yes" >&6; }
22028
22029else
22030 echo "$as_me: failed program was:" >&5
22031sed 's/^/| /' conftest.$ac_ext >&5
22032
22033 { echo "$as_me:$LINENO: result: no" >&5
22034echo "${ECHO_T}no" >&6; }
22035
22036fi
22037
22038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039fi
22040
22041if test -z "$have_u_intxx_t" ; then
22042 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
22043echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
22044if test "${ac_cv_have_uintxx_t+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22046else
22047
22048 cat >conftest.$ac_ext <<_ACEOF
22049/* confdefs.h. */
22050_ACEOF
22051cat confdefs.h >>conftest.$ac_ext
22052cat >>conftest.$ac_ext <<_ACEOF
22053/* end confdefs.h. */
22054
22055#include <sys/types.h>
22056
22057int
22058main ()
22059{
22060 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
22061 ;
22062 return 0;
22063}
22064_ACEOF
22065rm -f conftest.$ac_objext
22066if { (ac_try="$ac_compile"
22067case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22070esac
22071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_compile") 2>conftest.er1
22073 ac_status=$?
22074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && {
22079 test -z "$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22081 } && test -s conftest.$ac_objext; then
22082 ac_cv_have_uintxx_t="yes"
22083else
22084 echo "$as_me: failed program was:" >&5
22085sed 's/^/| /' conftest.$ac_ext >&5
22086
22087 ac_cv_have_uintxx_t="no"
22088
22089fi
22090
22091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092
22093fi
22094{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
22095echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
22096 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
22097
22098cat >>confdefs.h <<\_ACEOF
22099#define HAVE_UINTXX_T 1
22100_ACEOF
22101
22102 fi
22103fi
22104
22105if test -z "$have_uintxx_t" ; then
22106 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
22107echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
22108 cat >conftest.$ac_ext <<_ACEOF
22109/* confdefs.h. */
22110_ACEOF
22111cat confdefs.h >>conftest.$ac_ext
22112cat >>conftest.$ac_ext <<_ACEOF
22113/* end confdefs.h. */
22114 #include <stdint.h>
22115int
22116main ()
22117{
22118 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
22119 ;
22120 return 0;
22121}
22122_ACEOF
22123rm -f conftest.$ac_objext
22124if { (ac_try="$ac_compile"
22125case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128esac
22129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_compile") 2>conftest.er1
22131 ac_status=$?
22132 grep -v '^ *+' conftest.er1 >conftest.err
22133 rm -f conftest.er1
22134 cat conftest.err >&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } && {
22137 test -z "$ac_c_werror_flag" ||
22138 test ! -s conftest.err
22139 } && test -s conftest.$ac_objext; then
22140
22141 cat >>confdefs.h <<\_ACEOF
22142#define HAVE_UINTXX_T 1
22143_ACEOF
22144
22145 { echo "$as_me:$LINENO: result: yes" >&5
22146echo "${ECHO_T}yes" >&6; }
22147
22148else
22149 echo "$as_me: failed program was:" >&5
22150sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 { echo "$as_me:$LINENO: result: no" >&5
22153echo "${ECHO_T}no" >&6; }
22154
22155fi
22156
22157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158fi
22159
22160if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
22161 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
22162then
22163 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
22164echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
22165 cat >conftest.$ac_ext <<_ACEOF
22166/* confdefs.h. */
22167_ACEOF
22168cat confdefs.h >>conftest.$ac_ext
22169cat >>conftest.$ac_ext <<_ACEOF
22170/* end confdefs.h. */
22171
22172#include <sys/bitypes.h>
22173
22174int
22175main ()
22176{
22177
22178 int8_t a; int16_t b; int32_t c;
22179 u_int8_t e; u_int16_t f; u_int32_t g;
22180 a = b = c = e = f = g = 1;
22181
22182 ;
22183 return 0;
22184}
22185_ACEOF
22186rm -f conftest.$ac_objext
22187if { (ac_try="$ac_compile"
22188case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22191esac
22192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_compile") 2>conftest.er1
22194 ac_status=$?
22195 grep -v '^ *+' conftest.er1 >conftest.err
22196 rm -f conftest.er1
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && {
22200 test -z "$ac_c_werror_flag" ||
22201 test ! -s conftest.err
22202 } && test -s conftest.$ac_objext; then
22203
22204 cat >>confdefs.h <<\_ACEOF
22205#define HAVE_U_INTXX_T 1
22206_ACEOF
22207
22208 cat >>confdefs.h <<\_ACEOF
22209#define HAVE_INTXX_T 1
22210_ACEOF
22211
22212 { echo "$as_me:$LINENO: result: yes" >&5
22213echo "${ECHO_T}yes" >&6; }
22214
22215else
22216 echo "$as_me: failed program was:" >&5
22217sed 's/^/| /' conftest.$ac_ext >&5
22218
22219 { echo "$as_me:$LINENO: result: no" >&5
22220echo "${ECHO_T}no" >&6; }
22221
22222fi
22223
22224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225fi
22226
22227
22228{ echo "$as_me:$LINENO: checking for u_char" >&5
22229echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
22230if test "${ac_cv_have_u_char+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22232else
22233
22234 cat >conftest.$ac_ext <<_ACEOF
22235/* confdefs.h. */
22236_ACEOF
22237cat confdefs.h >>conftest.$ac_ext
22238cat >>conftest.$ac_ext <<_ACEOF
22239/* end confdefs.h. */
22240
22241#include <sys/types.h>
22242
22243int
22244main ()
22245{
22246 u_char foo; foo = 125;
22247 ;
22248 return 0;
22249}
22250_ACEOF
22251rm -f conftest.$ac_objext
22252if { (ac_try="$ac_compile"
22253case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22256esac
22257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_compile") 2>conftest.er1
22259 ac_status=$?
22260 grep -v '^ *+' conftest.er1 >conftest.err
22261 rm -f conftest.er1
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest.$ac_objext; then
22268 ac_cv_have_u_char="yes"
22269else
22270 echo "$as_me: failed program was:" >&5
22271sed 's/^/| /' conftest.$ac_ext >&5
22272
22273 ac_cv_have_u_char="no"
22274
22275fi
22276
22277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278
22279fi
22280{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
22281echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
22282if test "x$ac_cv_have_u_char" = "xyes" ; then
22283
22284cat >>confdefs.h <<\_ACEOF
22285#define HAVE_U_CHAR 1
22286_ACEOF
22287
22288fi
22289
22290
22291 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22292echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22293if test "${ac_cv_type_socklen_t+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22295else
22296 cat >conftest.$ac_ext <<_ACEOF
22297/* confdefs.h. */
22298_ACEOF
22299cat confdefs.h >>conftest.$ac_ext
22300cat >>conftest.$ac_ext <<_ACEOF
22301/* end confdefs.h. */
22302#include <sys/types.h>
22303#include <sys/socket.h>
22304
22305typedef socklen_t ac__type_new_;
22306int
22307main ()
22308{
22309if ((ac__type_new_ *) 0)
22310 return 0;
22311if (sizeof (ac__type_new_))
22312 return 0;
22313 ;
22314 return 0;
22315}
22316_ACEOF
22317rm -f conftest.$ac_objext
22318if { (ac_try="$ac_compile"
22319case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22322esac
22323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_compile") 2>conftest.er1
22325 ac_status=$?
22326 grep -v '^ *+' conftest.er1 >conftest.err
22327 rm -f conftest.er1
22328 cat conftest.err >&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } && {
22331 test -z "$ac_c_werror_flag" ||
22332 test ! -s conftest.err
22333 } && test -s conftest.$ac_objext; then
22334 ac_cv_type_socklen_t=yes
22335else
22336 echo "$as_me: failed program was:" >&5
22337sed 's/^/| /' conftest.$ac_ext >&5
22338
22339 ac_cv_type_socklen_t=no
22340fi
22341
22342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343fi
22344{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22345echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22346if test $ac_cv_type_socklen_t = yes; then
22347 :
22348else
22349
22350 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22351echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
22352 if test "${curl_cv_socklen_t_equiv+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354else
22355
22356 # Systems have either "struct sockaddr *" or
22357 # "void *" as the second argument to getpeername
22358 curl_cv_socklen_t_equiv=
22359 for arg2 in "struct sockaddr" void; do
22360 for t in int size_t unsigned long "unsigned long"; do
22361 cat >conftest.$ac_ext <<_ACEOF
22362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
22367
22368 #include <sys/types.h>
22369 #include <sys/socket.h>
22370
22371 int getpeername (int, $arg2 *, $t *);
22372
22373int
22374main ()
22375{
22376
22377 $t len;
22378 getpeername(0,0,&len);
22379
22380 ;
22381 return 0;
22382}
22383_ACEOF
22384rm -f conftest.$ac_objext
22385if { (ac_try="$ac_compile"
22386case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389esac
22390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_compile") 2>conftest.er1
22392 ac_status=$?
22393 grep -v '^ *+' conftest.er1 >conftest.err
22394 rm -f conftest.er1
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && {
22398 test -z "$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22400 } && test -s conftest.$ac_objext; then
22401
22402 curl_cv_socklen_t_equiv="$t"
22403 break
22404
22405else
22406 echo "$as_me: failed program was:" >&5
22407sed 's/^/| /' conftest.$ac_ext >&5
22408
22409
22410fi
22411
22412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 done
22414 done
22415
22416 if test "x$curl_cv_socklen_t_equiv" = x; then
22417 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
22418echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
22419 { (exit 1); exit 1; }; }
22420 fi
22421
22422fi
22423
22424 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
22425echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
22426
22427cat >>confdefs.h <<_ACEOF
22428#define socklen_t $curl_cv_socklen_t_equiv
22429_ACEOF
22430
22431fi
22432
22433
22434
22435{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22436echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
22437if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22439else
22440 cat >conftest.$ac_ext <<_ACEOF
22441/* confdefs.h. */
22442_ACEOF
22443cat confdefs.h >>conftest.$ac_ext
22444cat >>conftest.$ac_ext <<_ACEOF
22445/* end confdefs.h. */
22446#include <signal.h>
22447
22448typedef sig_atomic_t ac__type_new_;
22449int
22450main ()
22451{
22452if ((ac__type_new_ *) 0)
22453 return 0;
22454if (sizeof (ac__type_new_))
22455 return 0;
22456 ;
22457 return 0;
22458}
22459_ACEOF
22460rm -f conftest.$ac_objext
22461if { (ac_try="$ac_compile"
22462case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465esac
22466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_compile") 2>conftest.er1
22468 ac_status=$?
22469 grep -v '^ *+' conftest.er1 >conftest.err
22470 rm -f conftest.er1
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } && {
22474 test -z "$ac_c_werror_flag" ||
22475 test ! -s conftest.err
22476 } && test -s conftest.$ac_objext; then
22477 ac_cv_type_sig_atomic_t=yes
22478else
22479 echo "$as_me: failed program was:" >&5
22480sed 's/^/| /' conftest.$ac_ext >&5
22481
22482 ac_cv_type_sig_atomic_t=no
22483fi
22484
22485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486fi
22487{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22488echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
22489if test $ac_cv_type_sig_atomic_t = yes; then
22490
22491cat >>confdefs.h <<_ACEOF
22492#define HAVE_SIG_ATOMIC_T 1
22493_ACEOF
22494
22495
22496fi
22497
22498{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
22499echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
22500if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22502else
22503 cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
22508/* end confdefs.h. */
22509
22510#include <sys/types.h>
22511#ifdef HAVE_SYS_BITYPES_H
22512#include <sys/bitypes.h>
22513#endif
22514#ifdef HAVE_SYS_STATFS_H
22515#include <sys/statfs.h>
22516#endif
22517#ifdef HAVE_SYS_STATVFS_H
22518#include <sys/statvfs.h>
22519#endif
22520
22521
22522typedef fsblkcnt_t ac__type_new_;
22523int
22524main ()
22525{
22526if ((ac__type_new_ *) 0)
22527 return 0;
22528if (sizeof (ac__type_new_))
22529 return 0;
22530 ;
22531 return 0;
22532}
22533_ACEOF
22534rm -f conftest.$ac_objext
22535if { (ac_try="$ac_compile"
22536case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539esac
22540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_compile") 2>conftest.er1
22542 ac_status=$?
22543 grep -v '^ *+' conftest.er1 >conftest.err
22544 rm -f conftest.er1
22545 cat conftest.err >&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest.$ac_objext; then
22551 ac_cv_type_fsblkcnt_t=yes
22552else
22553 echo "$as_me: failed program was:" >&5
22554sed 's/^/| /' conftest.$ac_ext >&5
22555
22556 ac_cv_type_fsblkcnt_t=no
22557fi
22558
22559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560fi
22561{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
22562echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
22563if test $ac_cv_type_fsblkcnt_t = yes; then
22564
22565cat >>confdefs.h <<_ACEOF
22566#define HAVE_FSBLKCNT_T 1
22567_ACEOF
22568
22569
22570fi
22571{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
22572echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
22573if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22575else
22576 cat >conftest.$ac_ext <<_ACEOF
22577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
22582
22583#include <sys/types.h>
22584#ifdef HAVE_SYS_BITYPES_H
22585#include <sys/bitypes.h>
22586#endif
22587#ifdef HAVE_SYS_STATFS_H
22588#include <sys/statfs.h>
22589#endif
22590#ifdef HAVE_SYS_STATVFS_H
22591#include <sys/statvfs.h>
22592#endif
22593
22594
22595typedef fsfilcnt_t ac__type_new_;
22596int
22597main ()
22598{
22599if ((ac__type_new_ *) 0)
22600 return 0;
22601if (sizeof (ac__type_new_))
22602 return 0;
22603 ;
22604 return 0;
22605}
22606_ACEOF
22607rm -f conftest.$ac_objext
22608if { (ac_try="$ac_compile"
22609case "(($ac_try" in
22610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611 *) ac_try_echo=$ac_try;;
22612esac
22613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22614 (eval "$ac_compile") 2>conftest.er1
22615 ac_status=$?
22616 grep -v '^ *+' conftest.er1 >conftest.err
22617 rm -f conftest.er1
22618 cat conftest.err >&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } && {
22621 test -z "$ac_c_werror_flag" ||
22622 test ! -s conftest.err
22623 } && test -s conftest.$ac_objext; then
22624 ac_cv_type_fsfilcnt_t=yes
22625else
22626 echo "$as_me: failed program was:" >&5
22627sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ac_cv_type_fsfilcnt_t=no
22630fi
22631
22632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633fi
22634{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
22635echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
22636if test $ac_cv_type_fsfilcnt_t = yes; then
22637
22638cat >>confdefs.h <<_ACEOF
22639#define HAVE_FSFILCNT_T 1
22640_ACEOF
22641
22642
22643fi
22644
22645
22646{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
22647echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
22648if test "${ac_cv_type_in_addr_t+set}" = set; then
22649 echo $ECHO_N "(cached) $ECHO_C" >&6
22650else
22651 cat >conftest.$ac_ext <<_ACEOF
22652/* confdefs.h. */
22653_ACEOF
22654cat confdefs.h >>conftest.$ac_ext
22655cat >>conftest.$ac_ext <<_ACEOF
22656/* end confdefs.h. */
22657#include <sys/types.h>
22658#include <netinet/in.h>
22659
22660typedef in_addr_t ac__type_new_;
22661int
22662main ()
22663{
22664if ((ac__type_new_ *) 0)
22665 return 0;
22666if (sizeof (ac__type_new_))
22667 return 0;
22668 ;
22669 return 0;
22670}
22671_ACEOF
22672rm -f conftest.$ac_objext
22673if { (ac_try="$ac_compile"
22674case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677esac
22678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22689 ac_cv_type_in_addr_t=yes
22690else
22691 echo "$as_me: failed program was:" >&5
22692sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 ac_cv_type_in_addr_t=no
22695fi
22696
22697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698fi
22699{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
22700echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
22701if test $ac_cv_type_in_addr_t = yes; then
22702
22703cat >>confdefs.h <<_ACEOF
22704#define HAVE_IN_ADDR_T 1
22705_ACEOF
22706
22707
22708fi
22709{ echo "$as_me:$LINENO: checking for in_port_t" >&5
22710echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
22711if test "${ac_cv_type_in_port_t+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22713else
22714 cat >conftest.$ac_ext <<_ACEOF
22715/* confdefs.h. */
22716_ACEOF
22717cat confdefs.h >>conftest.$ac_ext
22718cat >>conftest.$ac_ext <<_ACEOF
22719/* end confdefs.h. */
22720#include <sys/types.h>
22721#include <netinet/in.h>
22722
22723typedef in_port_t ac__type_new_;
22724int
22725main ()
22726{
22727if ((ac__type_new_ *) 0)
22728 return 0;
22729if (sizeof (ac__type_new_))
22730 return 0;
22731 ;
22732 return 0;
22733}
22734_ACEOF
22735rm -f conftest.$ac_objext
22736if { (ac_try="$ac_compile"
22737case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740esac
22741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 ac_cv_type_in_port_t=yes
22753else
22754 echo "$as_me: failed program was:" >&5
22755sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 ac_cv_type_in_port_t=no
22758fi
22759
22760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761fi
22762{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
22763echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
22764if test $ac_cv_type_in_port_t = yes; then
22765
22766cat >>confdefs.h <<_ACEOF
22767#define HAVE_IN_PORT_T 1
22768_ACEOF
22769
22770
22771fi
22772
22773
22774{ echo "$as_me:$LINENO: checking for size_t" >&5
22775echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22776if test "${ac_cv_have_size_t+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22778else
22779
22780 cat >conftest.$ac_ext <<_ACEOF
22781/* confdefs.h. */
22782_ACEOF
22783cat confdefs.h >>conftest.$ac_ext
22784cat >>conftest.$ac_ext <<_ACEOF
22785/* end confdefs.h. */
22786
22787#include <sys/types.h>
22788
22789int
22790main ()
22791{
22792 size_t foo; foo = 1235;
22793 ;
22794 return 0;
22795}
22796_ACEOF
22797rm -f conftest.$ac_objext
22798if { (ac_try="$ac_compile"
22799case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802esac
22803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_compile") 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } && {
22811 test -z "$ac_c_werror_flag" ||
22812 test ! -s conftest.err
22813 } && test -s conftest.$ac_objext; then
22814 ac_cv_have_size_t="yes"
22815else
22816 echo "$as_me: failed program was:" >&5
22817sed 's/^/| /' conftest.$ac_ext >&5
22818
22819 ac_cv_have_size_t="no"
22820
22821fi
22822
22823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22824
22825fi
22826{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
22827echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
22828if test "x$ac_cv_have_size_t" = "xyes" ; then
22829
22830cat >>confdefs.h <<\_ACEOF
22831#define HAVE_SIZE_T 1
22832_ACEOF
22833
22834fi
22835
22836{ echo "$as_me:$LINENO: checking for ssize_t" >&5
22837echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22838if test "${ac_cv_have_ssize_t+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22840else
22841
22842 cat >conftest.$ac_ext <<_ACEOF
22843/* confdefs.h. */
22844_ACEOF
22845cat confdefs.h >>conftest.$ac_ext
22846cat >>conftest.$ac_ext <<_ACEOF
22847/* end confdefs.h. */
22848
22849#include <sys/types.h>
22850
22851int
22852main ()
22853{
22854 ssize_t foo; foo = 1235;
22855 ;
22856 return 0;
22857}
22858_ACEOF
22859rm -f conftest.$ac_objext
22860if { (ac_try="$ac_compile"
22861case "(($ac_try" in
22862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863 *) ac_try_echo=$ac_try;;
22864esac
22865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866 (eval "$ac_compile") 2>conftest.er1
22867 ac_status=$?
22868 grep -v '^ *+' conftest.er1 >conftest.err
22869 rm -f conftest.er1
22870 cat conftest.err >&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } && {
22873 test -z "$ac_c_werror_flag" ||
22874 test ! -s conftest.err
22875 } && test -s conftest.$ac_objext; then
22876 ac_cv_have_ssize_t="yes"
22877else
22878 echo "$as_me: failed program was:" >&5
22879sed 's/^/| /' conftest.$ac_ext >&5
22880
22881 ac_cv_have_ssize_t="no"
22882
22883fi
22884
22885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886
22887fi
22888{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
22889echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
22890if test "x$ac_cv_have_ssize_t" = "xyes" ; then
22891
22892cat >>confdefs.h <<\_ACEOF
22893#define HAVE_SSIZE_T 1
22894_ACEOF
22895
22896fi
22897
22898{ echo "$as_me:$LINENO: checking for clock_t" >&5
22899echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
22900if test "${ac_cv_have_clock_t+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22902else
22903
22904 cat >conftest.$ac_ext <<_ACEOF
22905/* confdefs.h. */
22906_ACEOF
22907cat confdefs.h >>conftest.$ac_ext
22908cat >>conftest.$ac_ext <<_ACEOF
22909/* end confdefs.h. */
22910
22911#include <time.h>
22912
22913int
22914main ()
22915{
22916 clock_t foo; foo = 1235;
22917 ;
22918 return 0;
22919}
22920_ACEOF
22921rm -f conftest.$ac_objext
22922if { (ac_try="$ac_compile"
22923case "(($ac_try" in
22924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925 *) ac_try_echo=$ac_try;;
22926esac
22927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928 (eval "$ac_compile") 2>conftest.er1
22929 ac_status=$?
22930 grep -v '^ *+' conftest.er1 >conftest.err
22931 rm -f conftest.er1
22932 cat conftest.err >&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && {
22935 test -z "$ac_c_werror_flag" ||
22936 test ! -s conftest.err
22937 } && test -s conftest.$ac_objext; then
22938 ac_cv_have_clock_t="yes"
22939else
22940 echo "$as_me: failed program was:" >&5
22941sed 's/^/| /' conftest.$ac_ext >&5
22942
22943 ac_cv_have_clock_t="no"
22944
22945fi
22946
22947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22948
22949fi
22950{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
22951echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
22952if test "x$ac_cv_have_clock_t" = "xyes" ; then
22953
22954cat >>confdefs.h <<\_ACEOF
22955#define HAVE_CLOCK_T 1
22956_ACEOF
22957
22958fi
22959
22960{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
22961echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22962if test "${ac_cv_have_sa_family_t+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22964else
22965
22966 cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972
22973#include <sys/types.h>
22974#include <sys/socket.h>
22975
22976int
22977main ()
22978{
22979 sa_family_t foo; foo = 1235;
22980 ;
22981 return 0;
22982}
22983_ACEOF
22984rm -f conftest.$ac_objext
22985if { (ac_try="$ac_compile"
22986case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22989esac
22990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_compile") 2>conftest.er1
22992 ac_status=$?
22993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && {
22998 test -z "$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 } && test -s conftest.$ac_objext; then
23001 ac_cv_have_sa_family_t="yes"
23002else
23003 echo "$as_me: failed program was:" >&5
23004sed 's/^/| /' conftest.$ac_ext >&5
23005
23006 cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
23012
23013#include <sys/types.h>
23014#include <sys/socket.h>
23015#include <netinet/in.h>
23016
23017int
23018main ()
23019{
23020 sa_family_t foo; foo = 1235;
23021 ;
23022 return 0;
23023}
23024_ACEOF
23025rm -f conftest.$ac_objext
23026if { (ac_try="$ac_compile"
23027case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23030esac
23031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_compile") 2>conftest.er1
23033 ac_status=$?
23034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } && {
23039 test -z "$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23041 } && test -s conftest.$ac_objext; then
23042 ac_cv_have_sa_family_t="yes"
23043else
23044 echo "$as_me: failed program was:" >&5
23045sed 's/^/| /' conftest.$ac_ext >&5
23046
23047 ac_cv_have_sa_family_t="no"
23048
23049fi
23050
23051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23052
23053fi
23054
23055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056
23057fi
23058{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
23059echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
23060if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
23061
23062cat >>confdefs.h <<\_ACEOF
23063#define HAVE_SA_FAMILY_T 1
23064_ACEOF
23065
23066fi
23067
23068{ echo "$as_me:$LINENO: checking for pid_t" >&5
23069echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23070if test "${ac_cv_have_pid_t+set}" = set; then
23071 echo $ECHO_N "(cached) $ECHO_C" >&6
23072else
23073
23074 cat >conftest.$ac_ext <<_ACEOF
23075/* confdefs.h. */
23076_ACEOF
23077cat confdefs.h >>conftest.$ac_ext
23078cat >>conftest.$ac_ext <<_ACEOF
23079/* end confdefs.h. */
23080
23081#include <sys/types.h>
23082
23083int
23084main ()
23085{
23086 pid_t foo; foo = 1235;
23087 ;
23088 return 0;
23089}
23090_ACEOF
23091rm -f conftest.$ac_objext
23092if { (ac_try="$ac_compile"
23093case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096esac
23097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23108 ac_cv_have_pid_t="yes"
23109else
23110 echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_cv_have_pid_t="no"
23114
23115fi
23116
23117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23118
23119fi
23120{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
23121echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
23122if test "x$ac_cv_have_pid_t" = "xyes" ; then
23123
23124cat >>confdefs.h <<\_ACEOF
23125#define HAVE_PID_T 1
23126_ACEOF
23127
23128fi
23129
23130{ echo "$as_me:$LINENO: checking for mode_t" >&5
23131echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
23132if test "${ac_cv_have_mode_t+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134else
23135
23136 cat >conftest.$ac_ext <<_ACEOF
23137/* confdefs.h. */
23138_ACEOF
23139cat confdefs.h >>conftest.$ac_ext
23140cat >>conftest.$ac_ext <<_ACEOF
23141/* end confdefs.h. */
23142
23143#include <sys/types.h>
23144
23145int
23146main ()
23147{
23148 mode_t foo; foo = 1235;
23149 ;
23150 return 0;
23151}
23152_ACEOF
23153rm -f conftest.$ac_objext
23154if { (ac_try="$ac_compile"
23155case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158esac
23159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_compile") 2>conftest.er1
23161 ac_status=$?
23162 grep -v '^ *+' conftest.er1 >conftest.err
23163 rm -f conftest.er1
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } && {
23167 test -z "$ac_c_werror_flag" ||
23168 test ! -s conftest.err
23169 } && test -s conftest.$ac_objext; then
23170 ac_cv_have_mode_t="yes"
23171else
23172 echo "$as_me: failed program was:" >&5
23173sed 's/^/| /' conftest.$ac_ext >&5
23174
23175 ac_cv_have_mode_t="no"
23176
23177fi
23178
23179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180
23181fi
23182{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
23183echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
23184if test "x$ac_cv_have_mode_t" = "xyes" ; then
23185
23186cat >>confdefs.h <<\_ACEOF
23187#define HAVE_MODE_T 1
23188_ACEOF
23189
23190fi
23191
23192
23193{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23194echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23195if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23197else
23198
23199 cat >conftest.$ac_ext <<_ACEOF
23200/* confdefs.h. */
23201_ACEOF
23202cat confdefs.h >>conftest.$ac_ext
23203cat >>conftest.$ac_ext <<_ACEOF
23204/* end confdefs.h. */
23205
23206#include <sys/types.h>
23207#include <sys/socket.h>
23208
23209int
23210main ()
23211{
23212 struct sockaddr_storage s;
23213 ;
23214 return 0;
23215}
23216_ACEOF
23217rm -f conftest.$ac_objext
23218if { (ac_try="$ac_compile"
23219case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23222esac
23223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23225 ac_status=$?
23226 grep -v '^ *+' conftest.er1 >conftest.err
23227 rm -f conftest.er1
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 ac_cv_have_struct_sockaddr_storage="yes"
23235else
23236 echo "$as_me: failed program was:" >&5
23237sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 ac_cv_have_struct_sockaddr_storage="no"
23240
23241fi
23242
23243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244
23245fi
23246{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
23247echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
23248if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
23249
23250cat >>confdefs.h <<\_ACEOF
23251#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23252_ACEOF
23253
23254fi
23255
23256{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23257echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23258if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260else
23261
23262 cat >conftest.$ac_ext <<_ACEOF
23263/* confdefs.h. */
23264_ACEOF
23265cat confdefs.h >>conftest.$ac_ext
23266cat >>conftest.$ac_ext <<_ACEOF
23267/* end confdefs.h. */
23268
23269#include <sys/types.h>
23270#include <netinet/in.h>
23271
23272int
23273main ()
23274{
23275 struct sockaddr_in6 s; s.sin6_family = 0;
23276 ;
23277 return 0;
23278}
23279_ACEOF
23280rm -f conftest.$ac_objext
23281if { (ac_try="$ac_compile"
23282case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23285esac
23286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_compile") 2>conftest.er1
23288 ac_status=$?
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest.$ac_objext; then
23297 ac_cv_have_struct_sockaddr_in6="yes"
23298else
23299 echo "$as_me: failed program was:" >&5
23300sed 's/^/| /' conftest.$ac_ext >&5
23301
23302 ac_cv_have_struct_sockaddr_in6="no"
23303
23304fi
23305
23306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307
23308fi
23309{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
23310echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
23311if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
23312
23313cat >>confdefs.h <<\_ACEOF
23314#define HAVE_STRUCT_SOCKADDR_IN6 1
23315_ACEOF
23316
23317fi
23318
23319{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23320echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
23321if test "${ac_cv_have_struct_in6_addr+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23323else
23324
23325 cat >conftest.$ac_ext <<_ACEOF
23326/* confdefs.h. */
23327_ACEOF
23328cat confdefs.h >>conftest.$ac_ext
23329cat >>conftest.$ac_ext <<_ACEOF
23330/* end confdefs.h. */
23331
23332#include <sys/types.h>
23333#include <netinet/in.h>
23334
23335int
23336main ()
23337{
23338 struct in6_addr s; s.s6_addr[0] = 0;
23339 ;
23340 return 0;
23341}
23342_ACEOF
23343rm -f conftest.$ac_objext
23344if { (ac_try="$ac_compile"
23345case "(($ac_try" in
23346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347 *) ac_try_echo=$ac_try;;
23348esac
23349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_compile") 2>conftest.er1
23351 ac_status=$?
23352 grep -v '^ *+' conftest.er1 >conftest.err
23353 rm -f conftest.er1
23354 cat conftest.err >&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } && {
23357 test -z "$ac_c_werror_flag" ||
23358 test ! -s conftest.err
23359 } && test -s conftest.$ac_objext; then
23360 ac_cv_have_struct_in6_addr="yes"
23361else
23362 echo "$as_me: failed program was:" >&5
23363sed 's/^/| /' conftest.$ac_ext >&5
23364
23365 ac_cv_have_struct_in6_addr="no"
23366
23367fi
23368
23369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23370
23371fi
23372{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
23373echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
23374if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
23375
23376cat >>confdefs.h <<\_ACEOF
23377#define HAVE_STRUCT_IN6_ADDR 1
23378_ACEOF
23379
23380
23381 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23382echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23383if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23385else
23386 cat >conftest.$ac_ext <<_ACEOF
23387/* confdefs.h. */
23388_ACEOF
23389cat confdefs.h >>conftest.$ac_ext
23390cat >>conftest.$ac_ext <<_ACEOF
23391/* end confdefs.h. */
23392
23393#ifdef HAVE_SYS_TYPES_H
23394#include <sys/types.h>
23395#endif
23396#include <netinet/in.h>
23397
23398
23399int
23400main ()
23401{
23402static struct sockaddr_in6 ac_aggr;
23403if (ac_aggr.sin6_scope_id)
23404return 0;
23405 ;
23406 return 0;
23407}
23408_ACEOF
23409rm -f conftest.$ac_objext
23410if { (ac_try="$ac_compile"
23411case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23414esac
23415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_compile") 2>conftest.er1
23417 ac_status=$?
23418 grep -v '^ *+' conftest.er1 >conftest.err
23419 rm -f conftest.er1
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest.$ac_objext; then
23426 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23427else
23428 echo "$as_me: failed program was:" >&5
23429sed 's/^/| /' conftest.$ac_ext >&5
23430
23431 cat >conftest.$ac_ext <<_ACEOF
23432/* confdefs.h. */
23433_ACEOF
23434cat confdefs.h >>conftest.$ac_ext
23435cat >>conftest.$ac_ext <<_ACEOF
23436/* end confdefs.h. */
23437
23438#ifdef HAVE_SYS_TYPES_H
23439#include <sys/types.h>
23440#endif
23441#include <netinet/in.h>
23442
23443
23444int
23445main ()
23446{
23447static struct sockaddr_in6 ac_aggr;
23448if (sizeof ac_aggr.sin6_scope_id)
23449return 0;
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext
23455if { (ac_try="$ac_compile"
23456case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459esac
23460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_compile") 2>conftest.er1
23462 ac_status=$?
23463 grep -v '^ *+' conftest.er1 >conftest.err
23464 rm -f conftest.er1
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } && {
23468 test -z "$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 } && test -s conftest.$ac_objext; then
23471 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23472else
23473 echo "$as_me: failed program was:" >&5
23474sed 's/^/| /' conftest.$ac_ext >&5
23475
23476 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23477fi
23478
23479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480fi
23481
23482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483fi
23484{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23485echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23486if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23487
23488cat >>confdefs.h <<_ACEOF
23489#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23490_ACEOF
23491
23492
23493fi
23494
23495fi
23496
23497{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23498echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23499if test "${ac_cv_have_struct_addrinfo+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
23501else
23502
23503 cat >conftest.$ac_ext <<_ACEOF
23504/* confdefs.h. */
23505_ACEOF
23506cat confdefs.h >>conftest.$ac_ext
23507cat >>conftest.$ac_ext <<_ACEOF
23508/* end confdefs.h. */
23509
23510#include <sys/types.h>
23511#include <sys/socket.h>
23512#include <netdb.h>
23513
23514int
23515main ()
23516{
23517 struct addrinfo s; s.ai_flags = AI_PASSIVE;
23518 ;
23519 return 0;
23520}
23521_ACEOF
23522rm -f conftest.$ac_objext
23523if { (ac_try="$ac_compile"
23524case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23527esac
23528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529 (eval "$ac_compile") 2>conftest.er1
23530 ac_status=$?
23531 grep -v '^ *+' conftest.er1 >conftest.err
23532 rm -f conftest.er1
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } && {
23536 test -z "$ac_c_werror_flag" ||
23537 test ! -s conftest.err
23538 } && test -s conftest.$ac_objext; then
23539 ac_cv_have_struct_addrinfo="yes"
23540else
23541 echo "$as_me: failed program was:" >&5
23542sed 's/^/| /' conftest.$ac_ext >&5
23543
23544 ac_cv_have_struct_addrinfo="no"
23545
23546fi
23547
23548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549
23550fi
23551{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
23552echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
23553if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
23554
23555cat >>confdefs.h <<\_ACEOF
23556#define HAVE_STRUCT_ADDRINFO 1
23557_ACEOF
23558
23559fi
23560
23561{ echo "$as_me:$LINENO: checking for struct timeval" >&5
23562echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
23563if test "${ac_cv_have_struct_timeval+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23565else
23566
23567 cat >conftest.$ac_ext <<_ACEOF
23568/* confdefs.h. */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h. */
23573 #include <sys/time.h>
23574int
23575main ()
23576{
23577 struct timeval tv; tv.tv_sec = 1;
23578 ;
23579 return 0;
23580}
23581_ACEOF
23582rm -f conftest.$ac_objext
23583if { (ac_try="$ac_compile"
23584case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23587esac
23588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23589 (eval "$ac_compile") 2>conftest.er1
23590 ac_status=$?
23591 grep -v '^ *+' conftest.er1 >conftest.err
23592 rm -f conftest.er1
23593 cat conftest.err >&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } && {
23596 test -z "$ac_c_werror_flag" ||
23597 test ! -s conftest.err
23598 } && test -s conftest.$ac_objext; then
23599 ac_cv_have_struct_timeval="yes"
23600else
23601 echo "$as_me: failed program was:" >&5
23602sed 's/^/| /' conftest.$ac_ext >&5
23603
23604 ac_cv_have_struct_timeval="no"
23605
23606fi
23607
23608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23609
23610fi
23611{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
23612echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
23613if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
23614
23615cat >>confdefs.h <<\_ACEOF
23616#define HAVE_STRUCT_TIMEVAL 1
23617_ACEOF
23618
23619 have_struct_timeval=1
23620fi
23621
23622{ echo "$as_me:$LINENO: checking for struct timespec" >&5
23623echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
23624if test "${ac_cv_type_struct_timespec+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626else
23627 cat >conftest.$ac_ext <<_ACEOF
23628/* confdefs.h. */
23629_ACEOF
23630cat confdefs.h >>conftest.$ac_ext
23631cat >>conftest.$ac_ext <<_ACEOF
23632/* end confdefs.h. */
23633$ac_includes_default
23634typedef struct timespec ac__type_new_;
23635int
23636main ()
23637{
23638if ((ac__type_new_ *) 0)
23639 return 0;
23640if (sizeof (ac__type_new_))
23641 return 0;
23642 ;
23643 return 0;
23644}
23645_ACEOF
23646rm -f conftest.$ac_objext
23647if { (ac_try="$ac_compile"
23648case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23651esac
23652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_compile") 2>conftest.er1
23654 ac_status=$?
23655 grep -v '^ *+' conftest.er1 >conftest.err
23656 rm -f conftest.er1
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && {
23660 test -z "$ac_c_werror_flag" ||
23661 test ! -s conftest.err
23662 } && test -s conftest.$ac_objext; then
23663 ac_cv_type_struct_timespec=yes
23664else
23665 echo "$as_me: failed program was:" >&5
23666sed 's/^/| /' conftest.$ac_ext >&5
23667
23668 ac_cv_type_struct_timespec=no
23669fi
23670
23671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23672fi
23673{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
23674echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
23675if test $ac_cv_type_struct_timespec = yes; then
23676
23677cat >>confdefs.h <<_ACEOF
23678#define HAVE_STRUCT_TIMESPEC 1
23679_ACEOF
23680
23681
23682fi
23683
23684
23685# We need int64_t or else certian parts of the compile will fail.
23686if test "x$ac_cv_have_int64_t" = "xno" && \
23687 test "x$ac_cv_sizeof_long_int" != "x8" && \
23688 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
23689 echo "OpenSSH requires int64_t support. Contact your vendor or install"
23690 echo "an alternative compiler (I.E., GCC) before continuing."
23691 echo ""
23692 exit 1;
23693else
23694 if test "$cross_compiling" = yes; then
23695 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
23696echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
23697
23698else
23699 cat >conftest.$ac_ext <<_ACEOF
23700/* confdefs.h. */
23701_ACEOF
23702cat confdefs.h >>conftest.$ac_ext
23703cat >>conftest.$ac_ext <<_ACEOF
23704/* end confdefs.h. */
23705
23706#include <stdio.h>
23707#include <string.h>
23708#ifdef HAVE_SNPRINTF
23709main()
23710{
23711 char buf[50];
23712 char expected_out[50];
23713 int mazsize = 50 ;
23714#if (SIZEOF_LONG_INT == 8)
23715 long int num = 0x7fffffffffffffff;
23716#else
23717 long long num = 0x7fffffffffffffffll;
23718#endif
23719 strcpy(expected_out, "9223372036854775807");
23720 snprintf(buf, mazsize, "%lld", num);
23721 if(strcmp(buf, expected_out) != 0)
23722 exit(1);
23723 exit(0);
23724}
23725#else
23726main() { exit(0); }
23727#endif
23728
23729_ACEOF
23730rm -f conftest$ac_exeext
23731if { (ac_try="$ac_link"
23732case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23735esac
23736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_link") 2>&5
23738 ac_status=$?
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23741 { (case "(($ac_try" in
23742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23743 *) ac_try_echo=$ac_try;;
23744esac
23745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23746 (eval "$ac_try") 2>&5
23747 ac_status=$?
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 true
23751else
23752 echo "$as_me: program exited with status $ac_status" >&5
23753echo "$as_me: failed program was:" >&5
23754sed 's/^/| /' conftest.$ac_ext >&5
23755
23756( exit $ac_status )
23757 cat >>confdefs.h <<\_ACEOF
23758#define BROKEN_SNPRINTF 1
23759_ACEOF
23760
23761fi
23762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23763fi
23764
23765
23766fi
23767
23768
23769# look for field 'ut_host' in header 'utmp.h'
23770 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23771 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
23772 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
23773echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
23774 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23776else
23777
23778 cat >conftest.$ac_ext <<_ACEOF
23779/* confdefs.h. */
23780_ACEOF
23781cat confdefs.h >>conftest.$ac_ext
23782cat >>conftest.$ac_ext <<_ACEOF
23783/* end confdefs.h. */
23784#include <utmp.h>
23785
23786_ACEOF
23787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23788 $EGREP "ut_host" >/dev/null 2>&1; then
23789 eval "$ossh_varname=yes"
23790else
23791 eval "$ossh_varname=no"
23792fi
23793rm -f conftest*
23794
23795fi
23796
23797 ossh_result=`eval 'echo $'"$ossh_varname"`
23798 if test -n "`echo $ossh_varname`"; then
23799 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23800echo "${ECHO_T}$ossh_result" >&6; }
23801 if test "x$ossh_result" = "xyes"; then
23802
23803cat >>confdefs.h <<\_ACEOF
23804#define HAVE_HOST_IN_UTMP 1
23805_ACEOF
23806
23807 fi
23808 else
23809 { echo "$as_me:$LINENO: result: no" >&5
23810echo "${ECHO_T}no" >&6; }
23811 fi
23812
23813
23814# look for field 'ut_host' in header 'utmpx.h'
23815 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23816 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
23817 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
23818echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
23819 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23821else
23822
23823 cat >conftest.$ac_ext <<_ACEOF
23824/* confdefs.h. */
23825_ACEOF
23826cat confdefs.h >>conftest.$ac_ext
23827cat >>conftest.$ac_ext <<_ACEOF
23828/* end confdefs.h. */
23829#include <utmpx.h>
23830
23831_ACEOF
23832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23833 $EGREP "ut_host" >/dev/null 2>&1; then
23834 eval "$ossh_varname=yes"
23835else
23836 eval "$ossh_varname=no"
23837fi
23838rm -f conftest*
23839
23840fi
23841
23842 ossh_result=`eval 'echo $'"$ossh_varname"`
23843 if test -n "`echo $ossh_varname`"; then
23844 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23845echo "${ECHO_T}$ossh_result" >&6; }
23846 if test "x$ossh_result" = "xyes"; then
23847
23848cat >>confdefs.h <<\_ACEOF
23849#define HAVE_HOST_IN_UTMPX 1
23850_ACEOF
23851
23852 fi
23853 else
23854 { echo "$as_me:$LINENO: result: no" >&5
23855echo "${ECHO_T}no" >&6; }
23856 fi
23857
23858
23859# look for field 'syslen' in header 'utmpx.h'
23860 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23861 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
23862 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
23863echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
23864 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23866else
23867
23868 cat >conftest.$ac_ext <<_ACEOF
23869/* confdefs.h. */
23870_ACEOF
23871cat confdefs.h >>conftest.$ac_ext
23872cat >>conftest.$ac_ext <<_ACEOF
23873/* end confdefs.h. */
23874#include <utmpx.h>
23875
23876_ACEOF
23877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23878 $EGREP "syslen" >/dev/null 2>&1; then
23879 eval "$ossh_varname=yes"
23880else
23881 eval "$ossh_varname=no"
23882fi
23883rm -f conftest*
23884
23885fi
23886
23887 ossh_result=`eval 'echo $'"$ossh_varname"`
23888 if test -n "`echo $ossh_varname`"; then
23889 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23890echo "${ECHO_T}$ossh_result" >&6; }
23891 if test "x$ossh_result" = "xyes"; then
23892
23893cat >>confdefs.h <<\_ACEOF
23894#define HAVE_SYSLEN_IN_UTMPX 1
23895_ACEOF
23896
23897 fi
23898 else
23899 { echo "$as_me:$LINENO: result: no" >&5
23900echo "${ECHO_T}no" >&6; }
23901 fi
23902
23903
23904# look for field 'ut_pid' in header 'utmp.h'
23905 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23906 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
23907 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
23908echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
23909 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23910 echo $ECHO_N "(cached) $ECHO_C" >&6
23911else
23912
23913 cat >conftest.$ac_ext <<_ACEOF
23914/* confdefs.h. */
23915_ACEOF
23916cat confdefs.h >>conftest.$ac_ext
23917cat >>conftest.$ac_ext <<_ACEOF
23918/* end confdefs.h. */
23919#include <utmp.h>
23920
23921_ACEOF
23922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23923 $EGREP "ut_pid" >/dev/null 2>&1; then
23924 eval "$ossh_varname=yes"
23925else
23926 eval "$ossh_varname=no"
23927fi
23928rm -f conftest*
23929
23930fi
23931
23932 ossh_result=`eval 'echo $'"$ossh_varname"`
23933 if test -n "`echo $ossh_varname`"; then
23934 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23935echo "${ECHO_T}$ossh_result" >&6; }
23936 if test "x$ossh_result" = "xyes"; then
23937
23938cat >>confdefs.h <<\_ACEOF
23939#define HAVE_PID_IN_UTMP 1
23940_ACEOF
23941
23942 fi
23943 else
23944 { echo "$as_me:$LINENO: result: no" >&5
23945echo "${ECHO_T}no" >&6; }
23946 fi
23947
23948
23949# look for field 'ut_type' in header 'utmp.h'
23950 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23951 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23952 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
23953echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
23954 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23956else
23957
23958 cat >conftest.$ac_ext <<_ACEOF
23959/* confdefs.h. */
23960_ACEOF
23961cat confdefs.h >>conftest.$ac_ext
23962cat >>conftest.$ac_ext <<_ACEOF
23963/* end confdefs.h. */
23964#include <utmp.h>
23965
23966_ACEOF
23967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23968 $EGREP "ut_type" >/dev/null 2>&1; then
23969 eval "$ossh_varname=yes"
23970else
23971 eval "$ossh_varname=no"
23972fi
23973rm -f conftest*
23974
23975fi
23976
23977 ossh_result=`eval 'echo $'"$ossh_varname"`
23978 if test -n "`echo $ossh_varname`"; then
23979 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23980echo "${ECHO_T}$ossh_result" >&6; }
23981 if test "x$ossh_result" = "xyes"; then
23982
23983cat >>confdefs.h <<\_ACEOF
23984#define HAVE_TYPE_IN_UTMP 1
23985_ACEOF
23986
23987 fi
23988 else
23989 { echo "$as_me:$LINENO: result: no" >&5
23990echo "${ECHO_T}no" >&6; }
23991 fi
23992
23993
23994# look for field 'ut_type' in header 'utmpx.h'
23995 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23996 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23997 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
23998echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
23999 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24000 echo $ECHO_N "(cached) $ECHO_C" >&6
24001else
24002
24003 cat >conftest.$ac_ext <<_ACEOF
24004/* confdefs.h. */
24005_ACEOF
24006cat confdefs.h >>conftest.$ac_ext
24007cat >>conftest.$ac_ext <<_ACEOF
24008/* end confdefs.h. */
24009#include <utmpx.h>
24010
24011_ACEOF
24012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24013 $EGREP "ut_type" >/dev/null 2>&1; then
24014 eval "$ossh_varname=yes"
24015else
24016 eval "$ossh_varname=no"
24017fi
24018rm -f conftest*
24019
24020fi
24021
24022 ossh_result=`eval 'echo $'"$ossh_varname"`
24023 if test -n "`echo $ossh_varname`"; then
24024 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24025echo "${ECHO_T}$ossh_result" >&6; }
24026 if test "x$ossh_result" = "xyes"; then
24027
24028cat >>confdefs.h <<\_ACEOF
24029#define HAVE_TYPE_IN_UTMPX 1
24030_ACEOF
24031
24032 fi
24033 else
24034 { echo "$as_me:$LINENO: result: no" >&5
24035echo "${ECHO_T}no" >&6; }
24036 fi
24037
24038
24039# look for field 'ut_tv' in header 'utmp.h'
24040 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24041 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
24042 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
24043echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
24044 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24045 echo $ECHO_N "(cached) $ECHO_C" >&6
24046else
24047
24048 cat >conftest.$ac_ext <<_ACEOF
24049/* confdefs.h. */
24050_ACEOF
24051cat confdefs.h >>conftest.$ac_ext
24052cat >>conftest.$ac_ext <<_ACEOF
24053/* end confdefs.h. */
24054#include <utmp.h>
24055
24056_ACEOF
24057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24058 $EGREP "ut_tv" >/dev/null 2>&1; then
24059 eval "$ossh_varname=yes"
24060else
24061 eval "$ossh_varname=no"
24062fi
24063rm -f conftest*
24064
24065fi
24066
24067 ossh_result=`eval 'echo $'"$ossh_varname"`
24068 if test -n "`echo $ossh_varname`"; then
24069 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24070echo "${ECHO_T}$ossh_result" >&6; }
24071 if test "x$ossh_result" = "xyes"; then
24072
24073cat >>confdefs.h <<\_ACEOF
24074#define HAVE_TV_IN_UTMP 1
24075_ACEOF
24076
24077 fi
24078 else
24079 { echo "$as_me:$LINENO: result: no" >&5
24080echo "${ECHO_T}no" >&6; }
24081 fi
24082
24083
24084# look for field 'ut_id' in header 'utmp.h'
24085 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24086 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
24087 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
24088echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
24089 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24090 echo $ECHO_N "(cached) $ECHO_C" >&6
24091else
24092
24093 cat >conftest.$ac_ext <<_ACEOF
24094/* confdefs.h. */
24095_ACEOF
24096cat confdefs.h >>conftest.$ac_ext
24097cat >>conftest.$ac_ext <<_ACEOF
24098/* end confdefs.h. */
24099#include <utmp.h>
24100
24101_ACEOF
24102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24103 $EGREP "ut_id" >/dev/null 2>&1; then
24104 eval "$ossh_varname=yes"
24105else
24106 eval "$ossh_varname=no"
24107fi
24108rm -f conftest*
24109
24110fi
24111
24112 ossh_result=`eval 'echo $'"$ossh_varname"`
24113 if test -n "`echo $ossh_varname`"; then
24114 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24115echo "${ECHO_T}$ossh_result" >&6; }
24116 if test "x$ossh_result" = "xyes"; then
24117
24118cat >>confdefs.h <<\_ACEOF
24119#define HAVE_ID_IN_UTMP 1
24120_ACEOF
24121
24122 fi
24123 else
24124 { echo "$as_me:$LINENO: result: no" >&5
24125echo "${ECHO_T}no" >&6; }
24126 fi
24127
24128
24129# look for field 'ut_id' in header 'utmpx.h'
24130 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24131 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
24132 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
24133echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
24134 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24135 echo $ECHO_N "(cached) $ECHO_C" >&6
24136else
24137
24138 cat >conftest.$ac_ext <<_ACEOF
24139/* confdefs.h. */
24140_ACEOF
24141cat confdefs.h >>conftest.$ac_ext
24142cat >>conftest.$ac_ext <<_ACEOF
24143/* end confdefs.h. */
24144#include <utmpx.h>
24145
24146_ACEOF
24147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24148 $EGREP "ut_id" >/dev/null 2>&1; then
24149 eval "$ossh_varname=yes"
24150else
24151 eval "$ossh_varname=no"
24152fi
24153rm -f conftest*
24154
24155fi
24156
24157 ossh_result=`eval 'echo $'"$ossh_varname"`
24158 if test -n "`echo $ossh_varname`"; then
24159 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24160echo "${ECHO_T}$ossh_result" >&6; }
24161 if test "x$ossh_result" = "xyes"; then
24162
24163cat >>confdefs.h <<\_ACEOF
24164#define HAVE_ID_IN_UTMPX 1
24165_ACEOF
24166
24167 fi
24168 else
24169 { echo "$as_me:$LINENO: result: no" >&5
24170echo "${ECHO_T}no" >&6; }
24171 fi
24172
24173
24174# look for field 'ut_addr' in header 'utmp.h'
24175 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24176 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24177 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
24178echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
24179 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24181else
24182
24183 cat >conftest.$ac_ext <<_ACEOF
24184/* confdefs.h. */
24185_ACEOF
24186cat confdefs.h >>conftest.$ac_ext
24187cat >>conftest.$ac_ext <<_ACEOF
24188/* end confdefs.h. */
24189#include <utmp.h>
24190
24191_ACEOF
24192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24193 $EGREP "ut_addr" >/dev/null 2>&1; then
24194 eval "$ossh_varname=yes"
24195else
24196 eval "$ossh_varname=no"
24197fi
24198rm -f conftest*
24199
24200fi
24201
24202 ossh_result=`eval 'echo $'"$ossh_varname"`
24203 if test -n "`echo $ossh_varname`"; then
24204 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24205echo "${ECHO_T}$ossh_result" >&6; }
24206 if test "x$ossh_result" = "xyes"; then
24207
24208cat >>confdefs.h <<\_ACEOF
24209#define HAVE_ADDR_IN_UTMP 1
24210_ACEOF
24211
24212 fi
24213 else
24214 { echo "$as_me:$LINENO: result: no" >&5
24215echo "${ECHO_T}no" >&6; }
24216 fi
24217
24218
24219# look for field 'ut_addr' in header 'utmpx.h'
24220 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24221 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24222 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
24223echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
24224 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24226else
24227
24228 cat >conftest.$ac_ext <<_ACEOF
24229/* confdefs.h. */
24230_ACEOF
24231cat confdefs.h >>conftest.$ac_ext
24232cat >>conftest.$ac_ext <<_ACEOF
24233/* end confdefs.h. */
24234#include <utmpx.h>
24235
24236_ACEOF
24237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24238 $EGREP "ut_addr" >/dev/null 2>&1; then
24239 eval "$ossh_varname=yes"
24240else
24241 eval "$ossh_varname=no"
24242fi
24243rm -f conftest*
24244
24245fi
24246
24247 ossh_result=`eval 'echo $'"$ossh_varname"`
24248 if test -n "`echo $ossh_varname`"; then
24249 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24250echo "${ECHO_T}$ossh_result" >&6; }
24251 if test "x$ossh_result" = "xyes"; then
24252
24253cat >>confdefs.h <<\_ACEOF
24254#define HAVE_ADDR_IN_UTMPX 1
24255_ACEOF
24256
24257 fi
24258 else
24259 { echo "$as_me:$LINENO: result: no" >&5
24260echo "${ECHO_T}no" >&6; }
24261 fi
24262
24263
24264# look for field 'ut_addr_v6' in header 'utmp.h'
24265 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24266 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
24267 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
24268echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
24269 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24271else
24272
24273 cat >conftest.$ac_ext <<_ACEOF
24274/* confdefs.h. */
24275_ACEOF
24276cat confdefs.h >>conftest.$ac_ext
24277cat >>conftest.$ac_ext <<_ACEOF
24278/* end confdefs.h. */
24279#include <utmp.h>
24280
24281_ACEOF
24282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24283 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
24284 eval "$ossh_varname=yes"
24285else
24286 eval "$ossh_varname=no"
24287fi
24288rm -f conftest*
24289
24290fi
24291
24292 ossh_result=`eval 'echo $'"$ossh_varname"`
24293 if test -n "`echo $ossh_varname`"; then
24294 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24295echo "${ECHO_T}$ossh_result" >&6; }
24296 if test "x$ossh_result" = "xyes"; then
24297
24298cat >>confdefs.h <<\_ACEOF
24299#define HAVE_ADDR_V6_IN_UTMP 1
24300_ACEOF
24301
24302 fi
24303 else
24304 { echo "$as_me:$LINENO: result: no" >&5
24305echo "${ECHO_T}no" >&6; }
24306 fi
24307
24308
24309# look for field 'ut_addr_v6' in header 'utmpx.h'
24310 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24311 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
24312 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
24313echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
24314 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24315 echo $ECHO_N "(cached) $ECHO_C" >&6
24316else
24317
24318 cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
24324#include <utmpx.h>
24325
24326_ACEOF
24327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24328 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
24329 eval "$ossh_varname=yes"
24330else
24331 eval "$ossh_varname=no"
24332fi
24333rm -f conftest*
24334
24335fi
24336
24337 ossh_result=`eval 'echo $'"$ossh_varname"`
24338 if test -n "`echo $ossh_varname`"; then
24339 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24340echo "${ECHO_T}$ossh_result" >&6; }
24341 if test "x$ossh_result" = "xyes"; then
24342
24343cat >>confdefs.h <<\_ACEOF
24344#define HAVE_ADDR_V6_IN_UTMPX 1
24345_ACEOF
24346
24347 fi
24348 else
24349 { echo "$as_me:$LINENO: result: no" >&5
24350echo "${ECHO_T}no" >&6; }
24351 fi
24352
24353
24354# look for field 'ut_exit' in header 'utmp.h'
24355 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24356 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
24357 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
24358echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
24359 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24360 echo $ECHO_N "(cached) $ECHO_C" >&6
24361else
24362
24363 cat >conftest.$ac_ext <<_ACEOF
24364/* confdefs.h. */
24365_ACEOF
24366cat confdefs.h >>conftest.$ac_ext
24367cat >>conftest.$ac_ext <<_ACEOF
24368/* end confdefs.h. */
24369#include <utmp.h>
24370
24371_ACEOF
24372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24373 $EGREP "ut_exit" >/dev/null 2>&1; then
24374 eval "$ossh_varname=yes"
24375else
24376 eval "$ossh_varname=no"
24377fi
24378rm -f conftest*
24379
24380fi
24381
24382 ossh_result=`eval 'echo $'"$ossh_varname"`
24383 if test -n "`echo $ossh_varname`"; then
24384 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24385echo "${ECHO_T}$ossh_result" >&6; }
24386 if test "x$ossh_result" = "xyes"; then
24387
24388cat >>confdefs.h <<\_ACEOF
24389#define HAVE_EXIT_IN_UTMP 1
24390_ACEOF
24391
24392 fi
24393 else
24394 { echo "$as_me:$LINENO: result: no" >&5
24395echo "${ECHO_T}no" >&6; }
24396 fi
24397
24398
24399# look for field 'ut_time' in header 'utmp.h'
24400 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24401 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
24402 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
24403echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
24404 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24405 echo $ECHO_N "(cached) $ECHO_C" >&6
24406else
24407
24408 cat >conftest.$ac_ext <<_ACEOF
24409/* confdefs.h. */
24410_ACEOF
24411cat confdefs.h >>conftest.$ac_ext
24412cat >>conftest.$ac_ext <<_ACEOF
24413/* end confdefs.h. */
24414#include <utmp.h>
24415
24416_ACEOF
24417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24418 $EGREP "ut_time" >/dev/null 2>&1; then
24419 eval "$ossh_varname=yes"
24420else
24421 eval "$ossh_varname=no"
24422fi
24423rm -f conftest*
24424
24425fi
24426
24427 ossh_result=`eval 'echo $'"$ossh_varname"`
24428 if test -n "`echo $ossh_varname`"; then
24429 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24430echo "${ECHO_T}$ossh_result" >&6; }
24431 if test "x$ossh_result" = "xyes"; then
24432
24433cat >>confdefs.h <<\_ACEOF
24434#define HAVE_TIME_IN_UTMP 1
24435_ACEOF
24436
24437 fi
24438 else
24439 { echo "$as_me:$LINENO: result: no" >&5
24440echo "${ECHO_T}no" >&6; }
24441 fi
24442
24443
24444# look for field 'ut_time' in header 'utmpx.h'
24445 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24446 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
24447 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
24448echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
24449 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
24451else
24452
24453 cat >conftest.$ac_ext <<_ACEOF
24454/* confdefs.h. */
24455_ACEOF
24456cat confdefs.h >>conftest.$ac_ext
24457cat >>conftest.$ac_ext <<_ACEOF
24458/* end confdefs.h. */
24459#include <utmpx.h>
24460
24461_ACEOF
24462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24463 $EGREP "ut_time" >/dev/null 2>&1; then
24464 eval "$ossh_varname=yes"
24465else
24466 eval "$ossh_varname=no"
24467fi
24468rm -f conftest*
24469
24470fi
24471
24472 ossh_result=`eval 'echo $'"$ossh_varname"`
24473 if test -n "`echo $ossh_varname`"; then
24474 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24475echo "${ECHO_T}$ossh_result" >&6; }
24476 if test "x$ossh_result" = "xyes"; then
24477
24478cat >>confdefs.h <<\_ACEOF
24479#define HAVE_TIME_IN_UTMPX 1
24480_ACEOF
24481
24482 fi
24483 else
24484 { echo "$as_me:$LINENO: result: no" >&5
24485echo "${ECHO_T}no" >&6; }
24486 fi
24487
24488
24489# look for field 'ut_tv' in header 'utmpx.h'
24490 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24491 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
24492 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
24493echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
24494 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24496else
24497
24498 cat >conftest.$ac_ext <<_ACEOF
24499/* confdefs.h. */
24500_ACEOF
24501cat confdefs.h >>conftest.$ac_ext
24502cat >>conftest.$ac_ext <<_ACEOF
24503/* end confdefs.h. */
24504#include <utmpx.h>
24505
24506_ACEOF
24507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24508 $EGREP "ut_tv" >/dev/null 2>&1; then
24509 eval "$ossh_varname=yes"
24510else
24511 eval "$ossh_varname=no"
24512fi
24513rm -f conftest*
24514
24515fi
24516
24517 ossh_result=`eval 'echo $'"$ossh_varname"`
24518 if test -n "`echo $ossh_varname`"; then
24519 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24520echo "${ECHO_T}$ossh_result" >&6; }
24521 if test "x$ossh_result" = "xyes"; then
24522
24523cat >>confdefs.h <<\_ACEOF
24524#define HAVE_TV_IN_UTMPX 1
24525_ACEOF
24526
24527 fi
24528 else
24529 { echo "$as_me:$LINENO: result: no" >&5
24530echo "${ECHO_T}no" >&6; }
24531 fi
24532
24533
24534{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
24535echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
24536if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24538else
24539 cat >conftest.$ac_ext <<_ACEOF
24540/* confdefs.h. */
24541_ACEOF
24542cat confdefs.h >>conftest.$ac_ext
24543cat >>conftest.$ac_ext <<_ACEOF
24544/* end confdefs.h. */
24545$ac_includes_default
24546int
24547main ()
24548{
24549static struct stat ac_aggr;
24550if (ac_aggr.st_blksize)
24551return 0;
24552 ;
24553 return 0;
24554}
24555_ACEOF
24556rm -f conftest.$ac_objext
24557if { (ac_try="$ac_compile"
24558case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561esac
24562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24573 ac_cv_member_struct_stat_st_blksize=yes
24574else
24575 echo "$as_me: failed program was:" >&5
24576sed 's/^/| /' conftest.$ac_ext >&5
24577
24578 cat >conftest.$ac_ext <<_ACEOF
24579/* confdefs.h. */
24580_ACEOF
24581cat confdefs.h >>conftest.$ac_ext
24582cat >>conftest.$ac_ext <<_ACEOF
24583/* end confdefs.h. */
24584$ac_includes_default
24585int
24586main ()
24587{
24588static struct stat ac_aggr;
24589if (sizeof ac_aggr.st_blksize)
24590return 0;
24591 ;
24592 return 0;
24593}
24594_ACEOF
24595rm -f conftest.$ac_objext
24596if { (ac_try="$ac_compile"
24597case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24600esac
24601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_compile") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest.$ac_objext; then
24612 ac_cv_member_struct_stat_st_blksize=yes
24613else
24614 echo "$as_me: failed program was:" >&5
24615sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ac_cv_member_struct_stat_st_blksize=no
24618fi
24619
24620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24621fi
24622
24623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624fi
24625{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
24626echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
24627if test $ac_cv_member_struct_stat_st_blksize = yes; then
24628
24629cat >>confdefs.h <<_ACEOF
24630#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24631_ACEOF
24632
24633
24634fi
24635
24636{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
24637echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
24638if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24640else
24641 cat >conftest.$ac_ext <<_ACEOF
24642/* confdefs.h. */
24643_ACEOF
24644cat confdefs.h >>conftest.$ac_ext
24645cat >>conftest.$ac_ext <<_ACEOF
24646/* end confdefs.h. */
24647
24648#include <stdio.h>
24649#if HAVE_SYS_TYPES_H
24650# include <sys/types.h>
24651#endif
24652#include <netinet/in.h>
24653#include <arpa/nameser.h>
24654#include <resolv.h>
24655
24656
24657int
24658main ()
24659{
24660static struct __res_state ac_aggr;
24661if (ac_aggr.retrans)
24662return 0;
24663 ;
24664 return 0;
24665}
24666_ACEOF
24667rm -f conftest.$ac_objext
24668if { (ac_try="$ac_compile"
24669case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24672esac
24673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_compile") 2>conftest.er1
24675 ac_status=$?
24676 grep -v '^ *+' conftest.er1 >conftest.err
24677 rm -f conftest.er1
24678 cat conftest.err >&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } && {
24681 test -z "$ac_c_werror_flag" ||
24682 test ! -s conftest.err
24683 } && test -s conftest.$ac_objext; then
24684 ac_cv_member_struct___res_state_retrans=yes
24685else
24686 echo "$as_me: failed program was:" >&5
24687sed 's/^/| /' conftest.$ac_ext >&5
24688
24689 cat >conftest.$ac_ext <<_ACEOF
24690/* confdefs.h. */
24691_ACEOF
24692cat confdefs.h >>conftest.$ac_ext
24693cat >>conftest.$ac_ext <<_ACEOF
24694/* end confdefs.h. */
24695
24696#include <stdio.h>
24697#if HAVE_SYS_TYPES_H
24698# include <sys/types.h>
24699#endif
24700#include <netinet/in.h>
24701#include <arpa/nameser.h>
24702#include <resolv.h>
24703
24704
24705int
24706main ()
24707{
24708static struct __res_state ac_aggr;
24709if (sizeof ac_aggr.retrans)
24710return 0;
24711 ;
24712 return 0;
24713}
24714_ACEOF
24715rm -f conftest.$ac_objext
24716if { (ac_try="$ac_compile"
24717case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24720esac
24721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_compile") 2>conftest.er1
24723 ac_status=$?
24724 grep -v '^ *+' conftest.er1 >conftest.err
24725 rm -f conftest.er1
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } && {
24729 test -z "$ac_c_werror_flag" ||
24730 test ! -s conftest.err
24731 } && test -s conftest.$ac_objext; then
24732 ac_cv_member_struct___res_state_retrans=yes
24733else
24734 echo "$as_me: failed program was:" >&5
24735sed 's/^/| /' conftest.$ac_ext >&5
24736
24737 ac_cv_member_struct___res_state_retrans=no
24738fi
24739
24740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24741fi
24742
24743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24744fi
24745{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
24746echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
24747if test $ac_cv_member_struct___res_state_retrans = yes; then
24748 :
24749else
24750
24751cat >>confdefs.h <<\_ACEOF
24752#define __res_state state
24753_ACEOF
24754
24755fi
24756
24757
24758{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
24759echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
24760if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24762else
24763
24764 cat >conftest.$ac_ext <<_ACEOF
24765/* confdefs.h. */
24766_ACEOF
24767cat confdefs.h >>conftest.$ac_ext
24768cat >>conftest.$ac_ext <<_ACEOF
24769/* end confdefs.h. */
24770
24771#include <sys/types.h>
24772#include <sys/socket.h>
24773
24774int
24775main ()
24776{
24777 struct sockaddr_storage s; s.ss_family = 1;
24778 ;
24779 return 0;
24780}
24781_ACEOF
24782rm -f conftest.$ac_objext
24783if { (ac_try="$ac_compile"
24784case "(($ac_try" in
24785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24786 *) ac_try_echo=$ac_try;;
24787esac
24788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789 (eval "$ac_compile") 2>conftest.er1
24790 ac_status=$?
24791 grep -v '^ *+' conftest.er1 >conftest.err
24792 rm -f conftest.er1
24793 cat conftest.err >&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } && {
24796 test -z "$ac_c_werror_flag" ||
24797 test ! -s conftest.err
24798 } && test -s conftest.$ac_objext; then
24799 ac_cv_have_ss_family_in_struct_ss="yes"
24800else
24801 echo "$as_me: failed program was:" >&5
24802sed 's/^/| /' conftest.$ac_ext >&5
24803
24804 ac_cv_have_ss_family_in_struct_ss="no"
24805fi
24806
24807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24808
24809fi
24810{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
24811echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
24812if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
24813
24814cat >>confdefs.h <<\_ACEOF
24815#define HAVE_SS_FAMILY_IN_SS 1
24816_ACEOF
24817
24818fi
24819
24820{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
24821echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
24822if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24824else
24825
24826 cat >conftest.$ac_ext <<_ACEOF
24827/* confdefs.h. */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h. */
24832
24833#include <sys/types.h>
24834#include <sys/socket.h>
24835
24836int
24837main ()
24838{
24839 struct sockaddr_storage s; s.__ss_family = 1;
24840 ;
24841 return 0;
24842}
24843_ACEOF
24844rm -f conftest.$ac_objext
24845if { (ac_try="$ac_compile"
24846case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24849esac
24850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_compile") 2>conftest.er1
24852 ac_status=$?
24853 grep -v '^ *+' conftest.er1 >conftest.err
24854 rm -f conftest.er1
24855 cat conftest.err >&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest.$ac_objext; then
24861 ac_cv_have___ss_family_in_struct_ss="yes"
24862else
24863 echo "$as_me: failed program was:" >&5
24864sed 's/^/| /' conftest.$ac_ext >&5
24865
24866 ac_cv_have___ss_family_in_struct_ss="no"
24867
24868fi
24869
24870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871
24872fi
24873{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
24874echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
24875if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
24876
24877cat >>confdefs.h <<\_ACEOF
24878#define HAVE___SS_FAMILY_IN_SS 1
24879_ACEOF
24880
24881fi
24882
24883{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
24884echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
24885if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
24886 echo $ECHO_N "(cached) $ECHO_C" >&6
24887else
24888
24889 cat >conftest.$ac_ext <<_ACEOF
24890/* confdefs.h. */
24891_ACEOF
24892cat confdefs.h >>conftest.$ac_ext
24893cat >>conftest.$ac_ext <<_ACEOF
24894/* end confdefs.h. */
24895
24896#include <pwd.h>
24897
24898int
24899main ()
24900{
24901 struct passwd p; p.pw_class = 0;
24902 ;
24903 return 0;
24904}
24905_ACEOF
24906rm -f conftest.$ac_objext
24907if { (ac_try="$ac_compile"
24908case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24911esac
24912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24914 ac_status=$?
24915 grep -v '^ *+' conftest.er1 >conftest.err
24916 rm -f conftest.er1
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest.$ac_objext; then
24923 ac_cv_have_pw_class_in_struct_passwd="yes"
24924else
24925 echo "$as_me: failed program was:" >&5
24926sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 ac_cv_have_pw_class_in_struct_passwd="no"
24929
24930fi
24931
24932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24933
24934fi
24935{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
24936echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
24937if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
24938
24939cat >>confdefs.h <<\_ACEOF
24940#define HAVE_PW_CLASS_IN_PASSWD 1
24941_ACEOF
24942
24943fi
24944
24945{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
24946echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
24947if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
24948 echo $ECHO_N "(cached) $ECHO_C" >&6
24949else
24950
24951 cat >conftest.$ac_ext <<_ACEOF
24952/* confdefs.h. */
24953_ACEOF
24954cat confdefs.h >>conftest.$ac_ext
24955cat >>conftest.$ac_ext <<_ACEOF
24956/* end confdefs.h. */
24957
24958#include <pwd.h>
24959
24960int
24961main ()
24962{
24963 struct passwd p; p.pw_expire = 0;
24964 ;
24965 return 0;
24966}
24967_ACEOF
24968rm -f conftest.$ac_objext
24969if { (ac_try="$ac_compile"
24970case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24973esac
24974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975 (eval "$ac_compile") 2>conftest.er1
24976 ac_status=$?
24977 grep -v '^ *+' conftest.er1 >conftest.err
24978 rm -f conftest.er1
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } && {
24982 test -z "$ac_c_werror_flag" ||
24983 test ! -s conftest.err
24984 } && test -s conftest.$ac_objext; then
24985 ac_cv_have_pw_expire_in_struct_passwd="yes"
24986else
24987 echo "$as_me: failed program was:" >&5
24988sed 's/^/| /' conftest.$ac_ext >&5
24989
24990 ac_cv_have_pw_expire_in_struct_passwd="no"
24991
24992fi
24993
24994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995
24996fi
24997{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
24998echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
24999if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
25000
25001cat >>confdefs.h <<\_ACEOF
25002#define HAVE_PW_EXPIRE_IN_PASSWD 1
25003_ACEOF
25004
25005fi
25006
25007{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
25008echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
25009if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
25010 echo $ECHO_N "(cached) $ECHO_C" >&6
25011else
25012
25013 cat >conftest.$ac_ext <<_ACEOF
25014/* confdefs.h. */
25015_ACEOF
25016cat confdefs.h >>conftest.$ac_ext
25017cat >>conftest.$ac_ext <<_ACEOF
25018/* end confdefs.h. */
25019
25020#include <pwd.h>
25021
25022int
25023main ()
25024{
25025 struct passwd p; p.pw_change = 0;
25026 ;
25027 return 0;
25028}
25029_ACEOF
25030rm -f conftest.$ac_objext
25031if { (ac_try="$ac_compile"
25032case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25035esac
25036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25038 ac_status=$?
25039 grep -v '^ *+' conftest.er1 >conftest.err
25040 rm -f conftest.er1
25041 cat conftest.err >&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest.$ac_objext; then
25047 ac_cv_have_pw_change_in_struct_passwd="yes"
25048else
25049 echo "$as_me: failed program was:" >&5
25050sed 's/^/| /' conftest.$ac_ext >&5
25051
25052 ac_cv_have_pw_change_in_struct_passwd="no"
25053
25054fi
25055
25056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057
25058fi
25059{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
25060echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
25061if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
25062
25063cat >>confdefs.h <<\_ACEOF
25064#define HAVE_PW_CHANGE_IN_PASSWD 1
25065_ACEOF
25066
25067fi
25068
25069{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
25070echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
25071if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
25072 echo $ECHO_N "(cached) $ECHO_C" >&6
25073else
25074
25075 cat >conftest.$ac_ext <<_ACEOF
25076
25077#include <sys/types.h>
25078#include <sys/socket.h>
25079#include <sys/uio.h>
25080int main() {
25081#ifdef msg_accrights
25082#error "msg_accrights is a macro"
25083exit(1);
25084#endif
25085struct msghdr m;
25086m.msg_accrights = 0;
25087exit(0);
25088}
25089
25090_ACEOF
25091rm -f conftest.$ac_objext
25092if { (ac_try="$ac_compile"
25093case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25096esac
25097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098 (eval "$ac_compile") 2>conftest.er1
25099 ac_status=$?
25100 grep -v '^ *+' conftest.er1 >conftest.err
25101 rm -f conftest.er1
25102 cat conftest.err >&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } && {
25105 test -z "$ac_c_werror_flag" ||
25106 test ! -s conftest.err
25107 } && test -s conftest.$ac_objext; then
25108 ac_cv_have_accrights_in_msghdr="yes"
25109else
25110 echo "$as_me: failed program was:" >&5
25111sed 's/^/| /' conftest.$ac_ext >&5
25112
25113 ac_cv_have_accrights_in_msghdr="no"
25114
25115fi
25116
25117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25118
25119fi
25120{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
25121echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
25122if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
25123
25124cat >>confdefs.h <<\_ACEOF
25125#define HAVE_ACCRIGHTS_IN_MSGHDR 1
25126_ACEOF
25127
25128fi
25129
25130{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
25131echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
25132cat >conftest.$ac_ext <<_ACEOF
25133/* confdefs.h. */
25134_ACEOF
25135cat confdefs.h >>conftest.$ac_ext
25136cat >>conftest.$ac_ext <<_ACEOF
25137/* end confdefs.h. */
25138
25139#include <sys/types.h>
25140#include <sys/stat.h>
25141#ifdef HAVE_SYS_TIME_H
25142# include <sys/time.h>
25143#endif
25144#ifdef HAVE_SYS_MOUNT_H
25145#include <sys/mount.h>
25146#endif
25147#ifdef HAVE_SYS_STATVFS_H
25148#include <sys/statvfs.h>
25149#endif
25150
25151int
25152main ()
25153{
25154struct statvfs s; s.f_fsid = 0;
25155 ;
25156 return 0;
25157}
25158_ACEOF
25159rm -f conftest.$ac_objext
25160if { (ac_try="$ac_compile"
25161case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25164esac
25165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166 (eval "$ac_compile") 2>conftest.er1
25167 ac_status=$?
25168 grep -v '^ *+' conftest.er1 >conftest.err
25169 rm -f conftest.er1
25170 cat conftest.err >&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } && {
25173 test -z "$ac_c_werror_flag" ||
25174 test ! -s conftest.err
25175 } && test -s conftest.$ac_objext; then
25176 { echo "$as_me:$LINENO: result: yes" >&5
25177echo "${ECHO_T}yes" >&6; }
25178else
25179 echo "$as_me: failed program was:" >&5
25180sed 's/^/| /' conftest.$ac_ext >&5
25181
25182 { echo "$as_me:$LINENO: result: no" >&5
25183echo "${ECHO_T}no" >&6; }
25184
25185 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
25186echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
25187 cat >conftest.$ac_ext <<_ACEOF
25188/* confdefs.h. */
25189_ACEOF
25190cat confdefs.h >>conftest.$ac_ext
25191cat >>conftest.$ac_ext <<_ACEOF
25192/* end confdefs.h. */
25193
25194#include <sys/types.h>
25195#include <sys/statvfs.h>
25196int
25197main ()
25198{
25199fsid_t t; t.val[0] = 0;
25200 ;
25201 return 0;
25202}
25203_ACEOF
25204rm -f conftest.$ac_objext
25205if { (ac_try="$ac_compile"
25206case "(($ac_try" in
25207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208 *) ac_try_echo=$ac_try;;
25209esac
25210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211 (eval "$ac_compile") 2>conftest.er1
25212 ac_status=$?
25213 grep -v '^ *+' conftest.er1 >conftest.err
25214 rm -f conftest.er1
25215 cat conftest.err >&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && {
25218 test -z "$ac_c_werror_flag" ||
25219 test ! -s conftest.err
25220 } && test -s conftest.$ac_objext; then
25221 { echo "$as_me:$LINENO: result: yes" >&5
25222echo "${ECHO_T}yes" >&6; }
25223
25224cat >>confdefs.h <<\_ACEOF
25225#define FSID_HAS_VAL 1
25226_ACEOF
25227
25228else
25229 echo "$as_me: failed program was:" >&5
25230sed 's/^/| /' conftest.$ac_ext >&5
25231
25232 { echo "$as_me:$LINENO: result: no" >&5
25233echo "${ECHO_T}no" >&6; }
25234fi
25235
25236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25237
25238 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
25239echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
25240 cat >conftest.$ac_ext <<_ACEOF
25241/* confdefs.h. */
25242_ACEOF
25243cat confdefs.h >>conftest.$ac_ext
25244cat >>conftest.$ac_ext <<_ACEOF
25245/* end confdefs.h. */
25246
25247#include <sys/types.h>
25248#include <sys/statvfs.h>
25249int
25250main ()
25251{
25252fsid_t t; t.__val[0] = 0;
25253 ;
25254 return 0;
25255}
25256_ACEOF
25257rm -f conftest.$ac_objext
25258if { (ac_try="$ac_compile"
25259case "(($ac_try" in
25260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25261 *) ac_try_echo=$ac_try;;
25262esac
25263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25264 (eval "$ac_compile") 2>conftest.er1
25265 ac_status=$?
25266 grep -v '^ *+' conftest.er1 >conftest.err
25267 rm -f conftest.er1
25268 cat conftest.err >&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } && {
25271 test -z "$ac_c_werror_flag" ||
25272 test ! -s conftest.err
25273 } && test -s conftest.$ac_objext; then
25274 { echo "$as_me:$LINENO: result: yes" >&5
25275echo "${ECHO_T}yes" >&6; }
25276
25277cat >>confdefs.h <<\_ACEOF
25278#define FSID_HAS___VAL 1
25279_ACEOF
25280
25281else
25282 echo "$as_me: failed program was:" >&5
25283sed 's/^/| /' conftest.$ac_ext >&5
25284
25285 { echo "$as_me:$LINENO: result: no" >&5
25286echo "${ECHO_T}no" >&6; }
25287fi
25288
25289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25290
25291fi
25292
25293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25294
25295{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
25296echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
25297if test "${ac_cv_have_control_in_msghdr+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25299else
25300
25301 cat >conftest.$ac_ext <<_ACEOF
25302
25303#include <sys/types.h>
25304#include <sys/socket.h>
25305#include <sys/uio.h>
25306int main() {
25307#ifdef msg_control
25308#error "msg_control is a macro"
25309exit(1);
25310#endif
25311struct msghdr m;
25312m.msg_control = 0;
25313exit(0);
25314}
25315
25316_ACEOF
25317rm -f conftest.$ac_objext
25318if { (ac_try="$ac_compile"
25319case "(($ac_try" in
25320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25321 *) ac_try_echo=$ac_try;;
25322esac
25323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25324 (eval "$ac_compile") 2>conftest.er1
25325 ac_status=$?
25326 grep -v '^ *+' conftest.er1 >conftest.err
25327 rm -f conftest.er1
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && {
25331 test -z "$ac_c_werror_flag" ||
25332 test ! -s conftest.err
25333 } && test -s conftest.$ac_objext; then
25334 ac_cv_have_control_in_msghdr="yes"
25335else
25336 echo "$as_me: failed program was:" >&5
25337sed 's/^/| /' conftest.$ac_ext >&5
25338
25339 ac_cv_have_control_in_msghdr="no"
25340
25341fi
25342
25343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344
25345fi
25346{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
25347echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
25348if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
25349
25350cat >>confdefs.h <<\_ACEOF
25351#define HAVE_CONTROL_IN_MSGHDR 1
25352_ACEOF
25353
25354fi
25355
25356{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
25357echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
25358if test "${ac_cv_libc_defines___progname+set}" = set; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25360else
25361
25362 cat >conftest.$ac_ext <<_ACEOF
25363/* confdefs.h. */
25364_ACEOF
25365cat confdefs.h >>conftest.$ac_ext
25366cat >>conftest.$ac_ext <<_ACEOF
25367/* end confdefs.h. */
25368
25369int
25370main ()
25371{
25372 extern char *__progname; printf("%s", __progname);
25373 ;
25374 return 0;
25375}
25376_ACEOF
25377rm -f conftest.$ac_objext conftest$ac_exeext
25378if { (ac_try="$ac_link"
25379case "(($ac_try" in
25380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381 *) ac_try_echo=$ac_try;;
25382esac
25383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25384 (eval "$ac_link") 2>conftest.er1
25385 ac_status=$?
25386 grep -v '^ *+' conftest.er1 >conftest.err
25387 rm -f conftest.er1
25388 cat conftest.err >&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } && {
25391 test -z "$ac_c_werror_flag" ||
25392 test ! -s conftest.err
25393 } && test -s conftest$ac_exeext &&
25394 $as_test_x conftest$ac_exeext; then
25395 ac_cv_libc_defines___progname="yes"
25396else
25397 echo "$as_me: failed program was:" >&5
25398sed 's/^/| /' conftest.$ac_ext >&5
25399
25400 ac_cv_libc_defines___progname="no"
25401
25402fi
25403
25404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25405 conftest$ac_exeext conftest.$ac_ext
25406
25407fi
25408{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
25409echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
25410if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
25411
25412cat >>confdefs.h <<\_ACEOF
25413#define HAVE___PROGNAME 1
25414_ACEOF
25415
25416fi
25417
25418{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
25419echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
25420if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
25421 echo $ECHO_N "(cached) $ECHO_C" >&6
25422else
25423
25424 cat >conftest.$ac_ext <<_ACEOF
25425/* confdefs.h. */
25426_ACEOF
25427cat confdefs.h >>conftest.$ac_ext
25428cat >>conftest.$ac_ext <<_ACEOF
25429/* end confdefs.h. */
25430
25431#include <stdio.h>
25432
25433int
25434main ()
25435{
25436 printf("%s", __FUNCTION__);
25437 ;
25438 return 0;
25439}
25440_ACEOF
25441rm -f conftest.$ac_objext conftest$ac_exeext
25442if { (ac_try="$ac_link"
25443case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25446esac
25447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_link") 2>conftest.er1
25449 ac_status=$?
25450 grep -v '^ *+' conftest.er1 >conftest.err
25451 rm -f conftest.er1
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } && {
25455 test -z "$ac_c_werror_flag" ||
25456 test ! -s conftest.err
25457 } && test -s conftest$ac_exeext &&
25458 $as_test_x conftest$ac_exeext; then
25459 ac_cv_cc_implements___FUNCTION__="yes"
25460else
25461 echo "$as_me: failed program was:" >&5
25462sed 's/^/| /' conftest.$ac_ext >&5
25463
25464 ac_cv_cc_implements___FUNCTION__="no"
25465
25466fi
25467
25468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25469 conftest$ac_exeext conftest.$ac_ext
25470
25471fi
25472{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
25473echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
25474if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
25475
25476cat >>confdefs.h <<\_ACEOF
25477#define HAVE___FUNCTION__ 1
25478_ACEOF
25479
25480fi
25481
25482{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
25483echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
25484if test "${ac_cv_cc_implements___func__+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
25486else
25487
25488 cat >conftest.$ac_ext <<_ACEOF
25489/* confdefs.h. */
25490_ACEOF
25491cat confdefs.h >>conftest.$ac_ext
25492cat >>conftest.$ac_ext <<_ACEOF
25493/* end confdefs.h. */
25494
25495#include <stdio.h>
25496
25497int
25498main ()
25499{
25500 printf("%s", __func__);
25501 ;
25502 return 0;
25503}
25504_ACEOF
25505rm -f conftest.$ac_objext conftest$ac_exeext
25506if { (ac_try="$ac_link"
25507case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25510esac
25511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512 (eval "$ac_link") 2>conftest.er1
25513 ac_status=$?
25514 grep -v '^ *+' conftest.er1 >conftest.err
25515 rm -f conftest.er1
25516 cat conftest.err >&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } && {
25519 test -z "$ac_c_werror_flag" ||
25520 test ! -s conftest.err
25521 } && test -s conftest$ac_exeext &&
25522 $as_test_x conftest$ac_exeext; then
25523 ac_cv_cc_implements___func__="yes"
25524else
25525 echo "$as_me: failed program was:" >&5
25526sed 's/^/| /' conftest.$ac_ext >&5
25527
25528 ac_cv_cc_implements___func__="no"
25529
25530fi
25531
25532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25533 conftest$ac_exeext conftest.$ac_ext
25534
25535fi
25536{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
25537echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
25538if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
25539
25540cat >>confdefs.h <<\_ACEOF
25541#define HAVE___func__ 1
25542_ACEOF
25543
25544fi
25545
25546{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
25547echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
25548if test "${ac_cv_have_va_copy+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25550else
25551
25552 cat >conftest.$ac_ext <<_ACEOF
25553/* confdefs.h. */
25554_ACEOF
25555cat confdefs.h >>conftest.$ac_ext
25556cat >>conftest.$ac_ext <<_ACEOF
25557/* end confdefs.h. */
25558#include <stdarg.h>
25559 va_list x,y;
25560int
25561main ()
25562{
25563va_copy(x,y);
25564 ;
25565 return 0;
25566}
25567_ACEOF
25568rm -f conftest.$ac_objext conftest$ac_exeext
25569if { (ac_try="$ac_link"
25570case "(($ac_try" in
25571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25572 *) ac_try_echo=$ac_try;;
25573esac
25574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25575 (eval "$ac_link") 2>conftest.er1
25576 ac_status=$?
25577 grep -v '^ *+' conftest.er1 >conftest.err
25578 rm -f conftest.er1
25579 cat conftest.err >&5
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } && {
25582 test -z "$ac_c_werror_flag" ||
25583 test ! -s conftest.err
25584 } && test -s conftest$ac_exeext &&
25585 $as_test_x conftest$ac_exeext; then
25586 ac_cv_have_va_copy="yes"
25587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
25591 ac_cv_have_va_copy="no"
25592
25593fi
25594
25595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25596 conftest$ac_exeext conftest.$ac_ext
25597
25598fi
25599{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
25600echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
25601if test "x$ac_cv_have_va_copy" = "xyes" ; then
25602
25603cat >>confdefs.h <<\_ACEOF
25604#define HAVE_VA_COPY 1
25605_ACEOF
25606
25607fi
25608
25609{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
25610echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
25611if test "${ac_cv_have___va_copy+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25613else
25614
25615 cat >conftest.$ac_ext <<_ACEOF
25616/* confdefs.h. */
25617_ACEOF
25618cat confdefs.h >>conftest.$ac_ext
25619cat >>conftest.$ac_ext <<_ACEOF
25620/* end confdefs.h. */
25621#include <stdarg.h>
25622 va_list x,y;
25623int
25624main ()
25625{
25626__va_copy(x,y);
25627 ;
25628 return 0;
25629}
25630_ACEOF
25631rm -f conftest.$ac_objext conftest$ac_exeext
25632if { (ac_try="$ac_link"
25633case "(($ac_try" in
25634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635 *) ac_try_echo=$ac_try;;
25636esac
25637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638 (eval "$ac_link") 2>conftest.er1
25639 ac_status=$?
25640 grep -v '^ *+' conftest.er1 >conftest.err
25641 rm -f conftest.er1
25642 cat conftest.err >&5
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); } && {
25645 test -z "$ac_c_werror_flag" ||
25646 test ! -s conftest.err
25647 } && test -s conftest$ac_exeext &&
25648 $as_test_x conftest$ac_exeext; then
25649 ac_cv_have___va_copy="yes"
25650else
25651 echo "$as_me: failed program was:" >&5
25652sed 's/^/| /' conftest.$ac_ext >&5
25653
25654 ac_cv_have___va_copy="no"
25655
25656fi
25657
25658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25659 conftest$ac_exeext conftest.$ac_ext
25660
25661fi
25662{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
25663echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
25664if test "x$ac_cv_have___va_copy" = "xyes" ; then
25665
25666cat >>confdefs.h <<\_ACEOF
25667#define HAVE___VA_COPY 1
25668_ACEOF
25669
25670fi
25671
25672{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
25673echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
25674if test "${ac_cv_have_getopt_optreset+set}" = set; then
25675 echo $ECHO_N "(cached) $ECHO_C" >&6
25676else
25677
25678 cat >conftest.$ac_ext <<_ACEOF
25679/* confdefs.h. */
25680_ACEOF
25681cat confdefs.h >>conftest.$ac_ext
25682cat >>conftest.$ac_ext <<_ACEOF
25683/* end confdefs.h. */
25684
25685#include <getopt.h>
25686
25687int
25688main ()
25689{
25690 extern int optreset; optreset = 0;
25691 ;
25692 return 0;
25693}
25694_ACEOF
25695rm -f conftest.$ac_objext conftest$ac_exeext
25696if { (ac_try="$ac_link"
25697case "(($ac_try" in
25698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25699 *) ac_try_echo=$ac_try;;
25700esac
25701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25702 (eval "$ac_link") 2>conftest.er1
25703 ac_status=$?
25704 grep -v '^ *+' conftest.er1 >conftest.err
25705 rm -f conftest.er1
25706 cat conftest.err >&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } && {
25709 test -z "$ac_c_werror_flag" ||
25710 test ! -s conftest.err
25711 } && test -s conftest$ac_exeext &&
25712 $as_test_x conftest$ac_exeext; then
25713 ac_cv_have_getopt_optreset="yes"
25714else
25715 echo "$as_me: failed program was:" >&5
25716sed 's/^/| /' conftest.$ac_ext >&5
25717
25718 ac_cv_have_getopt_optreset="no"
25719
25720fi
25721
25722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25723 conftest$ac_exeext conftest.$ac_ext
25724
25725fi
25726{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
25727echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
25728if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
25729
25730cat >>confdefs.h <<\_ACEOF
25731#define HAVE_GETOPT_OPTRESET 1
25732_ACEOF
25733
25734fi
25735
25736{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
25737echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
25738if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
25740else
25741
25742 cat >conftest.$ac_ext <<_ACEOF
25743/* confdefs.h. */
25744_ACEOF
25745cat confdefs.h >>conftest.$ac_ext
25746cat >>conftest.$ac_ext <<_ACEOF
25747/* end confdefs.h. */
25748
25749int
25750main ()
25751{
25752 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
25753 ;
25754 return 0;
25755}
25756_ACEOF
25757rm -f conftest.$ac_objext conftest$ac_exeext
25758if { (ac_try="$ac_link"
25759case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25762esac
25763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764 (eval "$ac_link") 2>conftest.er1
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && {
25771 test -z "$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25773 } && test -s conftest$ac_exeext &&
25774 $as_test_x conftest$ac_exeext; then
25775 ac_cv_libc_defines_sys_errlist="yes"
25776else
25777 echo "$as_me: failed program was:" >&5
25778sed 's/^/| /' conftest.$ac_ext >&5
25779
25780 ac_cv_libc_defines_sys_errlist="no"
25781
25782fi
25783
25784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25785 conftest$ac_exeext conftest.$ac_ext
25786
25787fi
25788{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
25789echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
25790if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
25791
25792cat >>confdefs.h <<\_ACEOF
25793#define HAVE_SYS_ERRLIST 1
25794_ACEOF
25795
25796fi
25797
25798
25799{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
25800echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
25801if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
25802 echo $ECHO_N "(cached) $ECHO_C" >&6
25803else
25804
25805 cat >conftest.$ac_ext <<_ACEOF
25806/* confdefs.h. */
25807_ACEOF
25808cat confdefs.h >>conftest.$ac_ext
25809cat >>conftest.$ac_ext <<_ACEOF
25810/* end confdefs.h. */
25811
25812int
25813main ()
25814{
25815 extern int sys_nerr; printf("%i", sys_nerr);
25816 ;
25817 return 0;
25818}
25819_ACEOF
25820rm -f conftest.$ac_objext conftest$ac_exeext
25821if { (ac_try="$ac_link"
25822case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25825esac
25826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25827 (eval "$ac_link") 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } && {
25834 test -z "$ac_c_werror_flag" ||
25835 test ! -s conftest.err
25836 } && test -s conftest$ac_exeext &&
25837 $as_test_x conftest$ac_exeext; then
25838 ac_cv_libc_defines_sys_nerr="yes"
25839else
25840 echo "$as_me: failed program was:" >&5
25841sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_cv_libc_defines_sys_nerr="no"
25844
25845fi
25846
25847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25848 conftest$ac_exeext conftest.$ac_ext
25849
25850fi
25851{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
25852echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
25853if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
25854
25855cat >>confdefs.h <<\_ACEOF
25856#define HAVE_SYS_NERR 1
25857_ACEOF
25858
25859fi
25860
25861# Check libraries needed by DNS fingerprint support
25862{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
25863echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
25864if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25866else
25867 ac_func_search_save_LIBS=$LIBS
25868cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874
25875/* Override any GCC internal prototype to avoid an error.
25876 Use char because int might match the return type of a GCC
25877 builtin and then its argument prototype would still apply. */
25878#ifdef __cplusplus
25879extern "C"
25880#endif
25881char getrrsetbyname ();
25882int
25883main ()
25884{
25885return getrrsetbyname ();
25886 ;
25887 return 0;
25888}
25889_ACEOF
25890for ac_lib in '' resolv; do
25891 if test -z "$ac_lib"; then
25892 ac_res="none required"
25893 else
25894 ac_res=-l$ac_lib
25895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25896 fi
25897 rm -f conftest.$ac_objext conftest$ac_exeext
25898if { (ac_try="$ac_link"
25899case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25902esac
25903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25904 (eval "$ac_link") 2>conftest.er1
25905 ac_status=$?
25906 grep -v '^ *+' conftest.er1 >conftest.err
25907 rm -f conftest.er1
25908 cat conftest.err >&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } && {
25911 test -z "$ac_c_werror_flag" ||
25912 test ! -s conftest.err
25913 } && test -s conftest$ac_exeext &&
25914 $as_test_x conftest$ac_exeext; then
25915 ac_cv_search_getrrsetbyname=$ac_res
25916else
25917 echo "$as_me: failed program was:" >&5
25918sed 's/^/| /' conftest.$ac_ext >&5
25919
25920
25921fi
25922
25923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25924 conftest$ac_exeext
25925 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25926 break
25927fi
25928done
25929if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25930 :
25931else
25932 ac_cv_search_getrrsetbyname=no
25933fi
25934rm conftest.$ac_ext
25935LIBS=$ac_func_search_save_LIBS
25936fi
25937{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
25938echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
25939ac_res=$ac_cv_search_getrrsetbyname
25940if test "$ac_res" != no; then
25941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25942
25943cat >>confdefs.h <<\_ACEOF
25944#define HAVE_GETRRSETBYNAME 1
25945_ACEOF
25946
25947else
25948
25949 # Needed by our getrrsetbyname()
25950 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
25951echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
25952if test "${ac_cv_search_res_query+set}" = set; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25954else
25955 ac_func_search_save_LIBS=$LIBS
25956cat >conftest.$ac_ext <<_ACEOF
25957/* confdefs.h. */
25958_ACEOF
25959cat confdefs.h >>conftest.$ac_ext
25960cat >>conftest.$ac_ext <<_ACEOF
25961/* end confdefs.h. */
25962
25963/* Override any GCC internal prototype to avoid an error.
25964 Use char because int might match the return type of a GCC
25965 builtin and then its argument prototype would still apply. */
25966#ifdef __cplusplus
25967extern "C"
25968#endif
25969char res_query ();
25970int
25971main ()
25972{
25973return res_query ();
25974 ;
25975 return 0;
25976}
25977_ACEOF
25978for ac_lib in '' resolv; do
25979 if test -z "$ac_lib"; then
25980 ac_res="none required"
25981 else
25982 ac_res=-l$ac_lib
25983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25984 fi
25985 rm -f conftest.$ac_objext conftest$ac_exeext
25986if { (ac_try="$ac_link"
25987case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990esac
25991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992 (eval "$ac_link") 2>conftest.er1
25993 ac_status=$?
25994 grep -v '^ *+' conftest.er1 >conftest.err
25995 rm -f conftest.er1
25996 cat conftest.err >&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } && {
25999 test -z "$ac_c_werror_flag" ||
26000 test ! -s conftest.err
26001 } && test -s conftest$ac_exeext &&
26002 $as_test_x conftest$ac_exeext; then
26003 ac_cv_search_res_query=$ac_res
26004else
26005 echo "$as_me: failed program was:" >&5
26006sed 's/^/| /' conftest.$ac_ext >&5
26007
26008
26009fi
26010
26011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26012 conftest$ac_exeext
26013 if test "${ac_cv_search_res_query+set}" = set; then
26014 break
26015fi
26016done
26017if test "${ac_cv_search_res_query+set}" = set; then
26018 :
26019else
26020 ac_cv_search_res_query=no
26021fi
26022rm conftest.$ac_ext
26023LIBS=$ac_func_search_save_LIBS
26024fi
26025{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
26026echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
26027ac_res=$ac_cv_search_res_query
26028if test "$ac_res" != no; then
26029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26030
26031fi
26032
26033 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
26034echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
26035if test "${ac_cv_search_dn_expand+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26037else
26038 ac_func_search_save_LIBS=$LIBS
26039cat >conftest.$ac_ext <<_ACEOF
26040/* confdefs.h. */
26041_ACEOF
26042cat confdefs.h >>conftest.$ac_ext
26043cat >>conftest.$ac_ext <<_ACEOF
26044/* end confdefs.h. */
26045
26046/* Override any GCC internal prototype to avoid an error.
26047 Use char because int might match the return type of a GCC
26048 builtin and then its argument prototype would still apply. */
26049#ifdef __cplusplus
26050extern "C"
26051#endif
26052char dn_expand ();
26053int
26054main ()
26055{
26056return dn_expand ();
26057 ;
26058 return 0;
26059}
26060_ACEOF
26061for ac_lib in '' resolv; do
26062 if test -z "$ac_lib"; then
26063 ac_res="none required"
26064 else
26065 ac_res=-l$ac_lib
26066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26067 fi
26068 rm -f conftest.$ac_objext conftest$ac_exeext
26069if { (ac_try="$ac_link"
26070case "(($ac_try" in
26071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26072 *) ac_try_echo=$ac_try;;
26073esac
26074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26075 (eval "$ac_link") 2>conftest.er1
26076 ac_status=$?
26077 grep -v '^ *+' conftest.er1 >conftest.err
26078 rm -f conftest.er1
26079 cat conftest.err >&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } && {
26082 test -z "$ac_c_werror_flag" ||
26083 test ! -s conftest.err
26084 } && test -s conftest$ac_exeext &&
26085 $as_test_x conftest$ac_exeext; then
26086 ac_cv_search_dn_expand=$ac_res
26087else
26088 echo "$as_me: failed program was:" >&5
26089sed 's/^/| /' conftest.$ac_ext >&5
26090
26091
26092fi
26093
26094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26095 conftest$ac_exeext
26096 if test "${ac_cv_search_dn_expand+set}" = set; then
26097 break
26098fi
26099done
26100if test "${ac_cv_search_dn_expand+set}" = set; then
26101 :
26102else
26103 ac_cv_search_dn_expand=no
26104fi
26105rm conftest.$ac_ext
26106LIBS=$ac_func_search_save_LIBS
26107fi
26108{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
26109echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
26110ac_res=$ac_cv_search_dn_expand
26111if test "$ac_res" != no; then
26112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26113
26114fi
26115
26116 { echo "$as_me:$LINENO: checking if res_query will link" >&5
26117echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
26118 cat >conftest.$ac_ext <<_ACEOF
26119
26120#include "confdefs.h"
26121#include <sys/types.h>
26122#include <netinet/in.h>
26123#include <arpa/nameser.h>
26124#include <netdb.h>
26125#include <resolv.h>
26126int main()
26127{
26128 res_query (0, 0, 0, 0, 0);
26129 return 0;
26130}
26131
26132_ACEOF
26133rm -f conftest.$ac_objext conftest$ac_exeext
26134if { (ac_try="$ac_link"
26135case "(($ac_try" in
26136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137 *) ac_try_echo=$ac_try;;
26138esac
26139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26140 (eval "$ac_link") 2>conftest.er1
26141 ac_status=$?
26142 grep -v '^ *+' conftest.er1 >conftest.err
26143 rm -f conftest.er1
26144 cat conftest.err >&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } && {
26147 test -z "$ac_c_werror_flag" ||
26148 test ! -s conftest.err
26149 } && test -s conftest$ac_exeext &&
26150 $as_test_x conftest$ac_exeext; then
26151 { echo "$as_me:$LINENO: result: yes" >&5
26152echo "${ECHO_T}yes" >&6; }
26153else
26154 echo "$as_me: failed program was:" >&5
26155sed 's/^/| /' conftest.$ac_ext >&5
26156
26157 { echo "$as_me:$LINENO: result: no" >&5
26158echo "${ECHO_T}no" >&6; }
26159 saved_LIBS="$LIBS"
26160 LIBS="$LIBS -lresolv"
26161 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
26162echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
26163 cat >conftest.$ac_ext <<_ACEOF
26164
26165#include "confdefs.h"
26166#include <sys/types.h>
26167#include <netinet/in.h>
26168#include <arpa/nameser.h>
26169#include <netdb.h>
26170#include <resolv.h>
26171int main()
26172{
26173 res_query (0, 0, 0, 0, 0);
26174 return 0;
26175}
26176
26177_ACEOF
26178rm -f conftest.$ac_objext conftest$ac_exeext
26179if { (ac_try="$ac_link"
26180case "(($ac_try" in
26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182 *) ac_try_echo=$ac_try;;
26183esac
26184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185 (eval "$ac_link") 2>conftest.er1
26186 ac_status=$?
26187 grep -v '^ *+' conftest.er1 >conftest.err
26188 rm -f conftest.er1
26189 cat conftest.err >&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } && {
26192 test -z "$ac_c_werror_flag" ||
26193 test ! -s conftest.err
26194 } && test -s conftest$ac_exeext &&
26195 $as_test_x conftest$ac_exeext; then
26196 { echo "$as_me:$LINENO: result: yes" >&5
26197echo "${ECHO_T}yes" >&6; }
26198else
26199 echo "$as_me: failed program was:" >&5
26200sed 's/^/| /' conftest.$ac_ext >&5
26201
26202 LIBS="$saved_LIBS"
26203 { echo "$as_me:$LINENO: result: no" >&5
26204echo "${ECHO_T}no" >&6; }
26205fi
26206
26207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26208 conftest$ac_exeext conftest.$ac_ext
26209
26210fi
26211
26212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26213 conftest$ac_exeext conftest.$ac_ext
26214
26215
26216for ac_func in _getshort _getlong
26217do
26218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26219{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26221if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26222 echo $ECHO_N "(cached) $ECHO_C" >&6
26223else
26224 cat >conftest.$ac_ext <<_ACEOF
26225/* confdefs.h. */
26226_ACEOF
26227cat confdefs.h >>conftest.$ac_ext
26228cat >>conftest.$ac_ext <<_ACEOF
26229/* end confdefs.h. */
26230/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26232#define $ac_func innocuous_$ac_func
26233
26234/* System header to define __stub macros and hopefully few prototypes,
26235 which can conflict with char $ac_func (); below.
26236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26237 <limits.h> exists even on freestanding compilers. */
26238
26239#ifdef __STDC__
26240# include <limits.h>
26241#else
26242# include <assert.h>
26243#endif
26244
26245#undef $ac_func
26246
26247/* Override any GCC internal prototype to avoid an error.
26248 Use char because int might match the return type of a GCC
26249 builtin and then its argument prototype would still apply. */
26250#ifdef __cplusplus
26251extern "C"
26252#endif
26253char $ac_func ();
26254/* The GNU C library defines this for functions which it implements
26255 to always fail with ENOSYS. Some functions are actually named
26256 something starting with __ and the normal name is an alias. */
26257#if defined __stub_$ac_func || defined __stub___$ac_func
26258choke me
26259#endif
26260
26261int
26262main ()
26263{
26264return $ac_func ();
26265 ;
26266 return 0;
26267}
26268_ACEOF
26269rm -f conftest.$ac_objext conftest$ac_exeext
26270if { (ac_try="$ac_link"
26271case "(($ac_try" in
26272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26273 *) ac_try_echo=$ac_try;;
26274esac
26275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26276 (eval "$ac_link") 2>conftest.er1
26277 ac_status=$?
26278 grep -v '^ *+' conftest.er1 >conftest.err
26279 rm -f conftest.er1
26280 cat conftest.err >&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } && {
26283 test -z "$ac_c_werror_flag" ||
26284 test ! -s conftest.err
26285 } && test -s conftest$ac_exeext &&
26286 $as_test_x conftest$ac_exeext; then
26287 eval "$as_ac_var=yes"
26288else
26289 echo "$as_me: failed program was:" >&5
26290sed 's/^/| /' conftest.$ac_ext >&5
26291
26292 eval "$as_ac_var=no"
26293fi
26294
26295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26296 conftest$ac_exeext conftest.$ac_ext
26297fi
26298ac_res=`eval echo '${'$as_ac_var'}'`
26299 { echo "$as_me:$LINENO: result: $ac_res" >&5
26300echo "${ECHO_T}$ac_res" >&6; }
26301if test `eval echo '${'$as_ac_var'}'` = yes; then
26302 cat >>confdefs.h <<_ACEOF
26303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26304_ACEOF
26305
26306fi
26307done
26308
26309 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
26310echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
26311if test "${ac_cv_have_decl__getshort+set}" = set; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26313else
26314 cat >conftest.$ac_ext <<_ACEOF
26315/* confdefs.h. */
26316_ACEOF
26317cat confdefs.h >>conftest.$ac_ext
26318cat >>conftest.$ac_ext <<_ACEOF
26319/* end confdefs.h. */
26320#include <sys/types.h>
26321 #include <arpa/nameser.h>
26322
26323int
26324main ()
26325{
26326#ifndef _getshort
26327 (void) _getshort;
26328#endif
26329
26330 ;
26331 return 0;
26332}
26333_ACEOF
26334rm -f conftest.$ac_objext
26335if { (ac_try="$ac_compile"
26336case "(($ac_try" in
26337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338 *) ac_try_echo=$ac_try;;
26339esac
26340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341 (eval "$ac_compile") 2>conftest.er1
26342 ac_status=$?
26343 grep -v '^ *+' conftest.er1 >conftest.err
26344 rm -f conftest.er1
26345 cat conftest.err >&5
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); } && {
26348 test -z "$ac_c_werror_flag" ||
26349 test ! -s conftest.err
26350 } && test -s conftest.$ac_objext; then
26351 ac_cv_have_decl__getshort=yes
26352else
26353 echo "$as_me: failed program was:" >&5
26354sed 's/^/| /' conftest.$ac_ext >&5
26355
26356 ac_cv_have_decl__getshort=no
26357fi
26358
26359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26360fi
26361{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
26362echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
26363if test $ac_cv_have_decl__getshort = yes; then
26364
26365cat >>confdefs.h <<_ACEOF
26366#define HAVE_DECL__GETSHORT 1
26367_ACEOF
26368
26369
26370else
26371 cat >>confdefs.h <<_ACEOF
26372#define HAVE_DECL__GETSHORT 0
26373_ACEOF
26374
26375
26376fi
26377{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
26378echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
26379if test "${ac_cv_have_decl__getlong+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26381else
26382 cat >conftest.$ac_ext <<_ACEOF
26383/* confdefs.h. */
26384_ACEOF
26385cat confdefs.h >>conftest.$ac_ext
26386cat >>conftest.$ac_ext <<_ACEOF
26387/* end confdefs.h. */
26388#include <sys/types.h>
26389 #include <arpa/nameser.h>
26390
26391int
26392main ()
26393{
26394#ifndef _getlong
26395 (void) _getlong;
26396#endif
26397
26398 ;
26399 return 0;
26400}
26401_ACEOF
26402rm -f conftest.$ac_objext
26403if { (ac_try="$ac_compile"
26404case "(($ac_try" in
26405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26406 *) ac_try_echo=$ac_try;;
26407esac
26408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26409 (eval "$ac_compile") 2>conftest.er1
26410 ac_status=$?
26411 grep -v '^ *+' conftest.er1 >conftest.err
26412 rm -f conftest.er1
26413 cat conftest.err >&5
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); } && {
26416 test -z "$ac_c_werror_flag" ||
26417 test ! -s conftest.err
26418 } && test -s conftest.$ac_objext; then
26419 ac_cv_have_decl__getlong=yes
26420else
26421 echo "$as_me: failed program was:" >&5
26422sed 's/^/| /' conftest.$ac_ext >&5
26423
26424 ac_cv_have_decl__getlong=no
26425fi
26426
26427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428fi
26429{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
26430echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
26431if test $ac_cv_have_decl__getlong = yes; then
26432
26433cat >>confdefs.h <<_ACEOF
26434#define HAVE_DECL__GETLONG 1
26435_ACEOF
26436
26437
26438else
26439 cat >>confdefs.h <<_ACEOF
26440#define HAVE_DECL__GETLONG 0
26441_ACEOF
26442
26443
26444fi
26445
26446
26447 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
26448echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
26449if test "${ac_cv_member_HEADER_ad+set}" = set; then
26450 echo $ECHO_N "(cached) $ECHO_C" >&6
26451else
26452 cat >conftest.$ac_ext <<_ACEOF
26453/* confdefs.h. */
26454_ACEOF
26455cat confdefs.h >>conftest.$ac_ext
26456cat >>conftest.$ac_ext <<_ACEOF
26457/* end confdefs.h. */
26458#include <arpa/nameser.h>
26459
26460int
26461main ()
26462{
26463static HEADER ac_aggr;
26464if (ac_aggr.ad)
26465return 0;
26466 ;
26467 return 0;
26468}
26469_ACEOF
26470rm -f conftest.$ac_objext
26471if { (ac_try="$ac_compile"
26472case "(($ac_try" in
26473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474 *) ac_try_echo=$ac_try;;
26475esac
26476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477 (eval "$ac_compile") 2>conftest.er1
26478 ac_status=$?
26479 grep -v '^ *+' conftest.er1 >conftest.err
26480 rm -f conftest.er1
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } && {
26484 test -z "$ac_c_werror_flag" ||
26485 test ! -s conftest.err
26486 } && test -s conftest.$ac_objext; then
26487 ac_cv_member_HEADER_ad=yes
26488else
26489 echo "$as_me: failed program was:" >&5
26490sed 's/^/| /' conftest.$ac_ext >&5
26491
26492 cat >conftest.$ac_ext <<_ACEOF
26493/* confdefs.h. */
26494_ACEOF
26495cat confdefs.h >>conftest.$ac_ext
26496cat >>conftest.$ac_ext <<_ACEOF
26497/* end confdefs.h. */
26498#include <arpa/nameser.h>
26499
26500int
26501main ()
26502{
26503static HEADER ac_aggr;
26504if (sizeof ac_aggr.ad)
26505return 0;
26506 ;
26507 return 0;
26508}
26509_ACEOF
26510rm -f conftest.$ac_objext
26511if { (ac_try="$ac_compile"
26512case "(($ac_try" in
26513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514 *) ac_try_echo=$ac_try;;
26515esac
26516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517 (eval "$ac_compile") 2>conftest.er1
26518 ac_status=$?
26519 grep -v '^ *+' conftest.er1 >conftest.err
26520 rm -f conftest.er1
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } && {
26524 test -z "$ac_c_werror_flag" ||
26525 test ! -s conftest.err
26526 } && test -s conftest.$ac_objext; then
26527 ac_cv_member_HEADER_ad=yes
26528else
26529 echo "$as_me: failed program was:" >&5
26530sed 's/^/| /' conftest.$ac_ext >&5
26531
26532 ac_cv_member_HEADER_ad=no
26533fi
26534
26535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26536fi
26537
26538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26539fi
26540{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
26541echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
26542if test $ac_cv_member_HEADER_ad = yes; then
26543
26544cat >>confdefs.h <<\_ACEOF
26545#define HAVE_HEADER_AD 1
26546_ACEOF
26547
26548fi
26549
26550
26551fi
26552
26553
26554{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
26555echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
26556cat >conftest.$ac_ext <<_ACEOF
26557
26558#include <stdio.h>
26559#if HAVE_SYS_TYPES_H
26560# include <sys/types.h>
26561#endif
26562#include <netinet/in.h>
26563#include <arpa/nameser.h>
26564#include <resolv.h>
26565extern struct __res_state _res;
26566int main() { return 0; }
26567
26568_ACEOF
26569rm -f conftest.$ac_objext conftest$ac_exeext
26570if { (ac_try="$ac_link"
26571case "(($ac_try" in
26572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573 *) ac_try_echo=$ac_try;;
26574esac
26575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576 (eval "$ac_link") 2>conftest.er1
26577 ac_status=$?
26578 grep -v '^ *+' conftest.er1 >conftest.err
26579 rm -f conftest.er1
26580 cat conftest.err >&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } && {
26583 test -z "$ac_c_werror_flag" ||
26584 test ! -s conftest.err
26585 } && test -s conftest$ac_exeext &&
26586 $as_test_x conftest$ac_exeext; then
26587 { echo "$as_me:$LINENO: result: yes" >&5
26588echo "${ECHO_T}yes" >&6; }
26589
26590cat >>confdefs.h <<\_ACEOF
26591#define HAVE__RES_EXTERN 1
26592_ACEOF
26593
26594
26595else
26596 echo "$as_me: failed program was:" >&5
26597sed 's/^/| /' conftest.$ac_ext >&5
26598
26599 { echo "$as_me:$LINENO: result: no" >&5
26600echo "${ECHO_T}no" >&6; }
26601
26602fi
26603
26604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26605 conftest$ac_exeext conftest.$ac_ext
26606
26607# Check whether user wants SELinux support
26608SELINUX_MSG="no"
26609LIBSELINUX=""
26610
26611# Check whether --with-selinux was given.
26612if test "${with_selinux+set}" = set; then
26613 withval=$with_selinux; if test "x$withval" != "xno" ; then
26614 save_LIBS="$LIBS"
26615
26616cat >>confdefs.h <<\_ACEOF
26617#define WITH_SELINUX 1
26618_ACEOF
26619
26620 SELINUX_MSG="yes"
26621 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26622 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26623echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
26624if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26626fi
26627{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26628echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
26629else
26630 # Is the header compilable?
26631{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
26632echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
26633cat >conftest.$ac_ext <<_ACEOF
26634/* confdefs.h. */
26635_ACEOF
26636cat confdefs.h >>conftest.$ac_ext
26637cat >>conftest.$ac_ext <<_ACEOF
26638/* end confdefs.h. */
26639$ac_includes_default
26640#include <selinux/selinux.h>
26641_ACEOF
26642rm -f conftest.$ac_objext
26643if { (ac_try="$ac_compile"
26644case "(($ac_try" in
26645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26646 *) ac_try_echo=$ac_try;;
26647esac
26648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26649 (eval "$ac_compile") 2>conftest.er1
26650 ac_status=$?
26651 grep -v '^ *+' conftest.er1 >conftest.err
26652 rm -f conftest.er1
26653 cat conftest.err >&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } && {
26656 test -z "$ac_c_werror_flag" ||
26657 test ! -s conftest.err
26658 } && test -s conftest.$ac_objext; then
26659 ac_header_compiler=yes
26660else
26661 echo "$as_me: failed program was:" >&5
26662sed 's/^/| /' conftest.$ac_ext >&5
26663
26664 ac_header_compiler=no
26665fi
26666
26667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26669echo "${ECHO_T}$ac_header_compiler" >&6; }
26670
26671# Is the header present?
26672{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
26673echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
26674cat >conftest.$ac_ext <<_ACEOF
26675/* confdefs.h. */
26676_ACEOF
26677cat confdefs.h >>conftest.$ac_ext
26678cat >>conftest.$ac_ext <<_ACEOF
26679/* end confdefs.h. */
26680#include <selinux/selinux.h>
26681_ACEOF
26682if { (ac_try="$ac_cpp conftest.$ac_ext"
26683case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26686esac
26687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26689 ac_status=$?
26690 grep -v '^ *+' conftest.er1 >conftest.err
26691 rm -f conftest.er1
26692 cat conftest.err >&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } >/dev/null && {
26695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26696 test ! -s conftest.err
26697 }; then
26698 ac_header_preproc=yes
26699else
26700 echo "$as_me: failed program was:" >&5
26701sed 's/^/| /' conftest.$ac_ext >&5
26702
26703 ac_header_preproc=no
26704fi
26705
26706rm -f conftest.err conftest.$ac_ext
26707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26708echo "${ECHO_T}$ac_header_preproc" >&6; }
26709
26710# So? What about this header?
26711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26712 yes:no: )
26713 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
26714echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26715 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
26716echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
26717 ac_header_preproc=yes
26718 ;;
26719 no:yes:* )
26720 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
26721echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
26723echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
26725echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
26726 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
26727echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
26729echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
26731echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
26732 ( cat <<\_ASBOX
26733## ------------------------------------------- ##
26734## Report this to openssh-unix-dev@mindrot.org ##
26735## ------------------------------------------- ##
26736_ASBOX
26737 ) | sed "s/^/$as_me: WARNING: /" >&2
26738 ;;
26739esac
26740{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26741echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
26742if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26744else
26745 ac_cv_header_selinux_selinux_h=$ac_header_preproc
26746fi
26747{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26748echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
26749
26750fi
26751if test $ac_cv_header_selinux_selinux_h = yes; then
26752 :
26753else
26754 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
26755echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
26756 { (exit 1); exit 1; }; }
26757fi
26758
26759
26760 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
26761echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
26762if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
26764else
26765 ac_check_lib_save_LIBS=$LIBS
26766LIBS="-lselinux $LIBS"
26767cat >conftest.$ac_ext <<_ACEOF
26768/* confdefs.h. */
26769_ACEOF
26770cat confdefs.h >>conftest.$ac_ext
26771cat >>conftest.$ac_ext <<_ACEOF
26772/* end confdefs.h. */
26773
26774/* Override any GCC internal prototype to avoid an error.
26775 Use char because int might match the return type of a GCC
26776 builtin and then its argument prototype would still apply. */
26777#ifdef __cplusplus
26778extern "C"
26779#endif
26780char setexeccon ();
26781int
26782main ()
26783{
26784return setexeccon ();
26785 ;
26786 return 0;
26787}
26788_ACEOF
26789rm -f conftest.$ac_objext conftest$ac_exeext
26790if { (ac_try="$ac_link"
26791case "(($ac_try" in
26792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793 *) ac_try_echo=$ac_try;;
26794esac
26795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796 (eval "$ac_link") 2>conftest.er1
26797 ac_status=$?
26798 grep -v '^ *+' conftest.er1 >conftest.err
26799 rm -f conftest.er1
26800 cat conftest.err >&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); } && {
26803 test -z "$ac_c_werror_flag" ||
26804 test ! -s conftest.err
26805 } && test -s conftest$ac_exeext &&
26806 $as_test_x conftest$ac_exeext; then
26807 ac_cv_lib_selinux_setexeccon=yes
26808else
26809 echo "$as_me: failed program was:" >&5
26810sed 's/^/| /' conftest.$ac_ext >&5
26811
26812 ac_cv_lib_selinux_setexeccon=no
26813fi
26814
26815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26816 conftest$ac_exeext conftest.$ac_ext
26817LIBS=$ac_check_lib_save_LIBS
26818fi
26819{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
26820echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
26821if test $ac_cv_lib_selinux_setexeccon = yes; then
26822 LIBSELINUX="-lselinux"
26823 LIBS="$LIBS -lselinux"
26824
26825else
26826 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
26827echo "$as_me: error: SELinux support requires libselinux library" >&2;}
26828 { (exit 1); exit 1; }; }
26829fi
26830
26831 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
26832
26833
26834for ac_func in getseuserbyname get_default_context_with_level
26835do
26836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841else
26842 cat >conftest.$ac_ext <<_ACEOF
26843/* confdefs.h. */
26844_ACEOF
26845cat confdefs.h >>conftest.$ac_ext
26846cat >>conftest.$ac_ext <<_ACEOF
26847/* end confdefs.h. */
26848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26850#define $ac_func innocuous_$ac_func
26851
26852/* System header to define __stub macros and hopefully few prototypes,
26853 which can conflict with char $ac_func (); below.
26854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26855 <limits.h> exists even on freestanding compilers. */
26856
26857#ifdef __STDC__
26858# include <limits.h>
26859#else
26860# include <assert.h>
26861#endif
26862
26863#undef $ac_func
26864
26865/* Override any GCC internal prototype to avoid an error.
26866 Use char because int might match the return type of a GCC
26867 builtin and then its argument prototype would still apply. */
26868#ifdef __cplusplus
26869extern "C"
26870#endif
26871char $ac_func ();
26872/* The GNU C library defines this for functions which it implements
26873 to always fail with ENOSYS. Some functions are actually named
26874 something starting with __ and the normal name is an alias. */
26875#if defined __stub_$ac_func || defined __stub___$ac_func
26876choke me
26877#endif
26878
26879int
26880main ()
26881{
26882return $ac_func ();
26883 ;
26884 return 0;
26885}
26886_ACEOF
26887rm -f conftest.$ac_objext conftest$ac_exeext
26888if { (ac_try="$ac_link"
26889case "(($ac_try" in
26890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891 *) ac_try_echo=$ac_try;;
26892esac
26893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894 (eval "$ac_link") 2>conftest.er1
26895 ac_status=$?
26896 grep -v '^ *+' conftest.er1 >conftest.err
26897 rm -f conftest.er1
26898 cat conftest.err >&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } && {
26901 test -z "$ac_c_werror_flag" ||
26902 test ! -s conftest.err
26903 } && test -s conftest$ac_exeext &&
26904 $as_test_x conftest$ac_exeext; then
26905 eval "$as_ac_var=yes"
26906else
26907 echo "$as_me: failed program was:" >&5
26908sed 's/^/| /' conftest.$ac_ext >&5
26909
26910 eval "$as_ac_var=no"
26911fi
26912
26913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26914 conftest$ac_exeext conftest.$ac_ext
26915fi
26916ac_res=`eval echo '${'$as_ac_var'}'`
26917 { echo "$as_me:$LINENO: result: $ac_res" >&5
26918echo "${ECHO_T}$ac_res" >&6; }
26919if test `eval echo '${'$as_ac_var'}'` = yes; then
26920 cat >>confdefs.h <<_ACEOF
26921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26922_ACEOF
26923
26924fi
26925done
26926
26927 LIBS="$save_LIBS"
26928 fi
26929
26930fi
26931
26932
26933# Check whether user wants Kerberos 5 support
26934KRB5_MSG="no"
26935
26936# Check whether --with-kerberos5 was given.
26937if test "${with_kerberos5+set}" = set; then
26938 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
26939 if test "x$withval" = "xyes" ; then
26940 KRB5ROOT="/usr/local"
26941 else
26942 KRB5ROOT=${withval}
26943 fi
26944
26945
26946cat >>confdefs.h <<\_ACEOF
26947#define KRB5 1
26948_ACEOF
26949
26950 KRB5_MSG="yes"
26951
26952 # Extract the first word of "krb5-config", so it can be a program name with args.
26953set dummy krb5-config; ac_word=$2
26954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26956if test "${ac_cv_path_KRB5CONF+set}" = set; then
26957 echo $ECHO_N "(cached) $ECHO_C" >&6
26958else
26959 case $KRB5CONF in
26960 [\\/]* | ?:[\\/]*)
26961 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
26962 ;;
26963 *)
26964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26965as_dummy="$KRB5ROOT/bin:$PATH"
26966for as_dir in $as_dummy
26967do
26968 IFS=$as_save_IFS
26969 test -z "$as_dir" && as_dir=.
26970 for ac_exec_ext in '' $ac_executable_extensions; do
26971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26972 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
26973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26974 break 2
26975 fi
26976done
26977done
26978IFS=$as_save_IFS
26979
26980 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
26981 ;;
26982esac
26983fi
26984KRB5CONF=$ac_cv_path_KRB5CONF
26985if test -n "$KRB5CONF"; then
26986 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
26987echo "${ECHO_T}$KRB5CONF" >&6; }
26988else
26989 { echo "$as_me:$LINENO: result: no" >&5
26990echo "${ECHO_T}no" >&6; }
26991fi
26992
26993
26994 if test -x $KRB5CONF ; then
26995
26996 { echo "$as_me:$LINENO: checking for gssapi support" >&5
26997echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
26998 if $KRB5CONF | grep gssapi >/dev/null ; then
26999 { echo "$as_me:$LINENO: result: yes" >&5
27000echo "${ECHO_T}yes" >&6; }
27001
27002cat >>confdefs.h <<\_ACEOF
27003#define GSSAPI 1
27004_ACEOF
27005
27006 k5confopts=gssapi
27007 else
27008 { echo "$as_me:$LINENO: result: no" >&5
27009echo "${ECHO_T}no" >&6; }
27010 k5confopts=""
27011 fi
27012 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
27013 K5LIBS="`$KRB5CONF --libs $k5confopts`"
27014 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
27015 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
27016echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
27017 cat >conftest.$ac_ext <<_ACEOF
27018/* confdefs.h. */
27019_ACEOF
27020cat confdefs.h >>conftest.$ac_ext
27021cat >>conftest.$ac_ext <<_ACEOF
27022/* end confdefs.h. */
27023 #include <krb5.h>
27024int
27025main ()
27026{
27027 char *tmp = heimdal_version;
27028 ;
27029 return 0;
27030}
27031_ACEOF
27032rm -f conftest.$ac_objext
27033if { (ac_try="$ac_compile"
27034case "(($ac_try" in
27035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036 *) ac_try_echo=$ac_try;;
27037esac
27038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27039 (eval "$ac_compile") 2>conftest.er1
27040 ac_status=$?
27041 grep -v '^ *+' conftest.er1 >conftest.err
27042 rm -f conftest.er1
27043 cat conftest.err >&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } && {
27046 test -z "$ac_c_werror_flag" ||
27047 test ! -s conftest.err
27048 } && test -s conftest.$ac_objext; then
27049 { echo "$as_me:$LINENO: result: yes" >&5
27050echo "${ECHO_T}yes" >&6; }
27051
27052cat >>confdefs.h <<\_ACEOF
27053#define HEIMDAL 1
27054_ACEOF
27055
27056else
27057 echo "$as_me: failed program was:" >&5
27058sed 's/^/| /' conftest.$ac_ext >&5
27059
27060 { echo "$as_me:$LINENO: result: no" >&5
27061echo "${ECHO_T}no" >&6; }
27062
27063fi
27064
27065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27066 else
27067 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
27068 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
27069 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
27070echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
27071 cat >conftest.$ac_ext <<_ACEOF
27072/* confdefs.h. */
27073_ACEOF
27074cat confdefs.h >>conftest.$ac_ext
27075cat >>conftest.$ac_ext <<_ACEOF
27076/* end confdefs.h. */
27077 #include <krb5.h>
27078int
27079main ()
27080{
27081 char *tmp = heimdal_version;
27082 ;
27083 return 0;
27084}
27085_ACEOF
27086rm -f conftest.$ac_objext
27087if { (ac_try="$ac_compile"
27088case "(($ac_try" in
27089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27091esac
27092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_compile") 2>conftest.er1
27094 ac_status=$?
27095 grep -v '^ *+' conftest.er1 >conftest.err
27096 rm -f conftest.er1
27097 cat conftest.err >&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); } && {
27100 test -z "$ac_c_werror_flag" ||
27101 test ! -s conftest.err
27102 } && test -s conftest.$ac_objext; then
27103 { echo "$as_me:$LINENO: result: yes" >&5
27104echo "${ECHO_T}yes" >&6; }
27105 cat >>confdefs.h <<\_ACEOF
27106#define HEIMDAL 1
27107_ACEOF
27108
27109 K5LIBS="-lkrb5 -ldes"
27110 K5LIBS="$K5LIBS -lcom_err -lasn1"
27111 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
27112echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
27113if test "${ac_cv_lib_roken_net_write+set}" = set; then
27114 echo $ECHO_N "(cached) $ECHO_C" >&6
27115else
27116 ac_check_lib_save_LIBS=$LIBS
27117LIBS="-lroken $LIBS"
27118cat >conftest.$ac_ext <<_ACEOF
27119/* confdefs.h. */
27120_ACEOF
27121cat confdefs.h >>conftest.$ac_ext
27122cat >>conftest.$ac_ext <<_ACEOF
27123/* end confdefs.h. */
27124
27125/* Override any GCC internal prototype to avoid an error.
27126 Use char because int might match the return type of a GCC
27127 builtin and then its argument prototype would still apply. */
27128#ifdef __cplusplus
27129extern "C"
27130#endif
27131char net_write ();
27132int
27133main ()
27134{
27135return net_write ();
27136 ;
27137 return 0;
27138}
27139_ACEOF
27140rm -f conftest.$ac_objext conftest$ac_exeext
27141if { (ac_try="$ac_link"
27142case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27145esac
27146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_link") 2>conftest.er1
27148 ac_status=$?
27149 grep -v '^ *+' conftest.er1 >conftest.err
27150 rm -f conftest.er1
27151 cat conftest.err >&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); } && {
27154 test -z "$ac_c_werror_flag" ||
27155 test ! -s conftest.err
27156 } && test -s conftest$ac_exeext &&
27157 $as_test_x conftest$ac_exeext; then
27158 ac_cv_lib_roken_net_write=yes
27159else
27160 echo "$as_me: failed program was:" >&5
27161sed 's/^/| /' conftest.$ac_ext >&5
27162
27163 ac_cv_lib_roken_net_write=no
27164fi
27165
27166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27167 conftest$ac_exeext conftest.$ac_ext
27168LIBS=$ac_check_lib_save_LIBS
27169fi
27170{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
27171echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
27172if test $ac_cv_lib_roken_net_write = yes; then
27173 K5LIBS="$K5LIBS -lroken"
27174fi
27175
27176
27177else
27178 echo "$as_me: failed program was:" >&5
27179sed 's/^/| /' conftest.$ac_ext >&5
27180
27181 { echo "$as_me:$LINENO: result: no" >&5
27182echo "${ECHO_T}no" >&6; }
27183 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
27184
27185
27186fi
27187
27188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27189 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
27190echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
27191if test "${ac_cv_search_dn_expand+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
27194 ac_func_search_save_LIBS=$LIBS
27195cat >conftest.$ac_ext <<_ACEOF
27196/* confdefs.h. */
27197_ACEOF
27198cat confdefs.h >>conftest.$ac_ext
27199cat >>conftest.$ac_ext <<_ACEOF
27200/* end confdefs.h. */
27201
27202/* Override any GCC internal prototype to avoid an error.
27203 Use char because int might match the return type of a GCC
27204 builtin and then its argument prototype would still apply. */
27205#ifdef __cplusplus
27206extern "C"
27207#endif
27208char dn_expand ();
27209int
27210main ()
27211{
27212return dn_expand ();
27213 ;
27214 return 0;
27215}
27216_ACEOF
27217for ac_lib in '' resolv; do
27218 if test -z "$ac_lib"; then
27219 ac_res="none required"
27220 else
27221 ac_res=-l$ac_lib
27222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27223 fi
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225if { (ac_try="$ac_link"
27226case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_link") 2>conftest.er1
27232 ac_status=$?
27233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } && {
27238 test -z "$ac_c_werror_flag" ||
27239 test ! -s conftest.err
27240 } && test -s conftest$ac_exeext &&
27241 $as_test_x conftest$ac_exeext; then
27242 ac_cv_search_dn_expand=$ac_res
27243else
27244 echo "$as_me: failed program was:" >&5
27245sed 's/^/| /' conftest.$ac_ext >&5
27246
27247
27248fi
27249
27250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27251 conftest$ac_exeext
27252 if test "${ac_cv_search_dn_expand+set}" = set; then
27253 break
27254fi
27255done
27256if test "${ac_cv_search_dn_expand+set}" = set; then
27257 :
27258else
27259 ac_cv_search_dn_expand=no
27260fi
27261rm conftest.$ac_ext
27262LIBS=$ac_func_search_save_LIBS
27263fi
27264{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
27265echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
27266ac_res=$ac_cv_search_dn_expand
27267if test "$ac_res" != no; then
27268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27269
27270fi
27271
27272
27273 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
27274echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
27275if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
27280cat >conftest.$ac_ext <<_ACEOF
27281/* confdefs.h. */
27282_ACEOF
27283cat confdefs.h >>conftest.$ac_ext
27284cat >>conftest.$ac_ext <<_ACEOF
27285/* end confdefs.h. */
27286
27287/* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
27290#ifdef __cplusplus
27291extern "C"
27292#endif
27293char gss_init_sec_context ();
27294int
27295main ()
27296{
27297return gss_init_sec_context ();
27298 ;
27299 return 0;
27300}
27301_ACEOF
27302rm -f conftest.$ac_objext conftest$ac_exeext
27303if { (ac_try="$ac_link"
27304case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27307esac
27308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_link") 2>conftest.er1
27310 ac_status=$?
27311 grep -v '^ *+' conftest.er1 >conftest.err
27312 rm -f conftest.er1
27313 cat conftest.err >&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } && {
27316 test -z "$ac_c_werror_flag" ||
27317 test ! -s conftest.err
27318 } && test -s conftest$ac_exeext &&
27319 $as_test_x conftest$ac_exeext; then
27320 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
27321else
27322 echo "$as_me: failed program was:" >&5
27323sed 's/^/| /' conftest.$ac_ext >&5
27324
27325 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
27326fi
27327
27328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27329 conftest$ac_exeext conftest.$ac_ext
27330LIBS=$ac_check_lib_save_LIBS
27331fi
27332{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
27333echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
27334if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
27335 cat >>confdefs.h <<\_ACEOF
27336#define GSSAPI 1
27337_ACEOF
27338
27339 K5LIBS="-lgssapi_krb5 $K5LIBS"
27340else
27341 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
27342echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
27343if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
27344 echo $ECHO_N "(cached) $ECHO_C" >&6
27345else
27346 ac_check_lib_save_LIBS=$LIBS
27347LIBS="-lgssapi $K5LIBS $LIBS"
27348cat >conftest.$ac_ext <<_ACEOF
27349/* confdefs.h. */
27350_ACEOF
27351cat confdefs.h >>conftest.$ac_ext
27352cat >>conftest.$ac_ext <<_ACEOF
27353/* end confdefs.h. */
27354
27355/* Override any GCC internal prototype to avoid an error.
27356 Use char because int might match the return type of a GCC
27357 builtin and then its argument prototype would still apply. */
27358#ifdef __cplusplus
27359extern "C"
27360#endif
27361char gss_init_sec_context ();
27362int
27363main ()
27364{
27365return gss_init_sec_context ();
27366 ;
27367 return 0;
27368}
27369_ACEOF
27370rm -f conftest.$ac_objext conftest$ac_exeext
27371if { (ac_try="$ac_link"
27372case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375esac
27376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_link") 2>conftest.er1
27378 ac_status=$?
27379 grep -v '^ *+' conftest.er1 >conftest.err
27380 rm -f conftest.er1
27381 cat conftest.err >&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); } && {
27384 test -z "$ac_c_werror_flag" ||
27385 test ! -s conftest.err
27386 } && test -s conftest$ac_exeext &&
27387 $as_test_x conftest$ac_exeext; then
27388 ac_cv_lib_gssapi_gss_init_sec_context=yes
27389else
27390 echo "$as_me: failed program was:" >&5
27391sed 's/^/| /' conftest.$ac_ext >&5
27392
27393 ac_cv_lib_gssapi_gss_init_sec_context=no
27394fi
27395
27396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27397 conftest$ac_exeext conftest.$ac_ext
27398LIBS=$ac_check_lib_save_LIBS
27399fi
27400{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
27401echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
27402if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
27403 cat >>confdefs.h <<\_ACEOF
27404#define GSSAPI 1
27405_ACEOF
27406
27407 K5LIBS="-lgssapi $K5LIBS"
27408else
27409 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
27410echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
27411fi
27412
27413
27414fi
27415
27416
27417 if test "${ac_cv_header_gssapi_h+set}" = set; then
27418 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
27419echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
27420if test "${ac_cv_header_gssapi_h+set}" = set; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27422fi
27423{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
27424echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
27425else
27426 # Is the header compilable?
27427{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
27428echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
27429cat >conftest.$ac_ext <<_ACEOF
27430/* confdefs.h. */
27431_ACEOF
27432cat confdefs.h >>conftest.$ac_ext
27433cat >>conftest.$ac_ext <<_ACEOF
27434/* end confdefs.h. */
27435$ac_includes_default
27436#include <gssapi.h>
27437_ACEOF
27438rm -f conftest.$ac_objext
27439if { (ac_try="$ac_compile"
27440case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27443esac
27444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_compile") 2>conftest.er1
27446 ac_status=$?
27447 grep -v '^ *+' conftest.er1 >conftest.err
27448 rm -f conftest.er1
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } && {
27452 test -z "$ac_c_werror_flag" ||
27453 test ! -s conftest.err
27454 } && test -s conftest.$ac_objext; then
27455 ac_header_compiler=yes
27456else
27457 echo "$as_me: failed program was:" >&5
27458sed 's/^/| /' conftest.$ac_ext >&5
27459
27460 ac_header_compiler=no
27461fi
27462
27463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27464{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27465echo "${ECHO_T}$ac_header_compiler" >&6; }
27466
27467# Is the header present?
27468{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
27469echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
27470cat >conftest.$ac_ext <<_ACEOF
27471/* confdefs.h. */
27472_ACEOF
27473cat confdefs.h >>conftest.$ac_ext
27474cat >>conftest.$ac_ext <<_ACEOF
27475/* end confdefs.h. */
27476#include <gssapi.h>
27477_ACEOF
27478if { (ac_try="$ac_cpp conftest.$ac_ext"
27479case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27482esac
27483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27485 ac_status=$?
27486 grep -v '^ *+' conftest.er1 >conftest.err
27487 rm -f conftest.er1
27488 cat conftest.err >&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); } >/dev/null && {
27491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27492 test ! -s conftest.err
27493 }; then
27494 ac_header_preproc=yes
27495else
27496 echo "$as_me: failed program was:" >&5
27497sed 's/^/| /' conftest.$ac_ext >&5
27498
27499 ac_header_preproc=no
27500fi
27501
27502rm -f conftest.err conftest.$ac_ext
27503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27504echo "${ECHO_T}$ac_header_preproc" >&6; }
27505
27506# So? What about this header?
27507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27508 yes:no: )
27509 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
27510echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27511 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
27512echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
27513 ac_header_preproc=yes
27514 ;;
27515 no:yes:* )
27516 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
27517echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
27518 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
27519echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
27520 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
27521echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
27522 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
27523echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
27524 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
27525echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
27526 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
27527echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
27528 ( cat <<\_ASBOX
27529## ------------------------------------------- ##
27530## Report this to openssh-unix-dev@mindrot.org ##
27531## ------------------------------------------- ##
27532_ASBOX
27533 ) | sed "s/^/$as_me: WARNING: /" >&2
27534 ;;
27535esac
27536{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
27537echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
27538if test "${ac_cv_header_gssapi_h+set}" = set; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27540else
27541 ac_cv_header_gssapi_h=$ac_header_preproc
27542fi
27543{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
27544echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
27545
27546fi
27547if test $ac_cv_header_gssapi_h = yes; then
27548 :
27549else
27550 unset ac_cv_header_gssapi_h
27551 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
27552
27553for ac_header in gssapi.h
27554do
27555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27560 echo $ECHO_N "(cached) $ECHO_C" >&6
27561fi
27562ac_res=`eval echo '${'$as_ac_Header'}'`
27563 { echo "$as_me:$LINENO: result: $ac_res" >&5
27564echo "${ECHO_T}$ac_res" >&6; }
27565else
27566 # Is the header compilable?
27567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27569cat >conftest.$ac_ext <<_ACEOF
27570/* confdefs.h. */
27571_ACEOF
27572cat confdefs.h >>conftest.$ac_ext
27573cat >>conftest.$ac_ext <<_ACEOF
27574/* end confdefs.h. */
27575$ac_includes_default
27576#include <$ac_header>
27577_ACEOF
27578rm -f conftest.$ac_objext
27579if { (ac_try="$ac_compile"
27580case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27583esac
27584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_compile") 2>conftest.er1
27586 ac_status=$?
27587 grep -v '^ *+' conftest.er1 >conftest.err
27588 rm -f conftest.er1
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } && {
27592 test -z "$ac_c_werror_flag" ||
27593 test ! -s conftest.err
27594 } && test -s conftest.$ac_objext; then
27595 ac_header_compiler=yes
27596else
27597 echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
27600 ac_header_compiler=no
27601fi
27602
27603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27605echo "${ECHO_T}$ac_header_compiler" >&6; }
27606
27607# Is the header present?
27608{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27610cat >conftest.$ac_ext <<_ACEOF
27611/* confdefs.h. */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h. */
27616#include <$ac_header>
27617_ACEOF
27618if { (ac_try="$ac_cpp conftest.$ac_ext"
27619case "(($ac_try" in
27620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621 *) ac_try_echo=$ac_try;;
27622esac
27623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27625 ac_status=$?
27626 grep -v '^ *+' conftest.er1 >conftest.err
27627 rm -f conftest.er1
27628 cat conftest.err >&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); } >/dev/null && {
27631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27632 test ! -s conftest.err
27633 }; then
27634 ac_header_preproc=yes
27635else
27636 echo "$as_me: failed program was:" >&5
27637sed 's/^/| /' conftest.$ac_ext >&5
27638
27639 ac_header_preproc=no
27640fi
27641
27642rm -f conftest.err conftest.$ac_ext
27643{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27644echo "${ECHO_T}$ac_header_preproc" >&6; }
27645
27646# So? What about this header?
27647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27648 yes:no: )
27649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27653 ac_header_preproc=yes
27654 ;;
27655 no:yes:* )
27656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27659echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27663echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27668 ( cat <<\_ASBOX
27669## ------------------------------------------- ##
27670## Report this to openssh-unix-dev@mindrot.org ##
27671## ------------------------------------------- ##
27672_ASBOX
27673 ) | sed "s/^/$as_me: WARNING: /" >&2
27674 ;;
27675esac
27676{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27680else
27681 eval "$as_ac_Header=\$ac_header_preproc"
27682fi
27683ac_res=`eval echo '${'$as_ac_Header'}'`
27684 { echo "$as_me:$LINENO: result: $ac_res" >&5
27685echo "${ECHO_T}$ac_res" >&6; }
27686
27687fi
27688if test `eval echo '${'$as_ac_Header'}'` = yes; then
27689 cat >>confdefs.h <<_ACEOF
27690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27691_ACEOF
27692
27693else
27694 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
27695echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
27696
27697fi
27698
27699done
27700
27701
27702
27703fi
27704
27705
27706
27707 oldCPP="$CPPFLAGS"
27708 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
27709 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27710 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27711echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27712if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714fi
27715{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27716echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27717else
27718 # Is the header compilable?
27719{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
27720echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
27721cat >conftest.$ac_ext <<_ACEOF
27722/* confdefs.h. */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h. */
27727$ac_includes_default
27728#include <gssapi_krb5.h>
27729_ACEOF
27730rm -f conftest.$ac_objext
27731if { (ac_try="$ac_compile"
27732case "(($ac_try" in
27733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27735esac
27736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737 (eval "$ac_compile") 2>conftest.er1
27738 ac_status=$?
27739 grep -v '^ *+' conftest.er1 >conftest.err
27740 rm -f conftest.er1
27741 cat conftest.err >&5
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } && {
27744 test -z "$ac_c_werror_flag" ||
27745 test ! -s conftest.err
27746 } && test -s conftest.$ac_objext; then
27747 ac_header_compiler=yes
27748else
27749 echo "$as_me: failed program was:" >&5
27750sed 's/^/| /' conftest.$ac_ext >&5
27751
27752 ac_header_compiler=no
27753fi
27754
27755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27757echo "${ECHO_T}$ac_header_compiler" >&6; }
27758
27759# Is the header present?
27760{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
27761echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
27762cat >conftest.$ac_ext <<_ACEOF
27763/* confdefs.h. */
27764_ACEOF
27765cat confdefs.h >>conftest.$ac_ext
27766cat >>conftest.$ac_ext <<_ACEOF
27767/* end confdefs.h. */
27768#include <gssapi_krb5.h>
27769_ACEOF
27770if { (ac_try="$ac_cpp conftest.$ac_ext"
27771case "(($ac_try" in
27772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773 *) ac_try_echo=$ac_try;;
27774esac
27775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27777 ac_status=$?
27778 grep -v '^ *+' conftest.er1 >conftest.err
27779 rm -f conftest.er1
27780 cat conftest.err >&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } >/dev/null && {
27783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27784 test ! -s conftest.err
27785 }; then
27786 ac_header_preproc=yes
27787else
27788 echo "$as_me: failed program was:" >&5
27789sed 's/^/| /' conftest.$ac_ext >&5
27790
27791 ac_header_preproc=no
27792fi
27793
27794rm -f conftest.err conftest.$ac_ext
27795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27796echo "${ECHO_T}$ac_header_preproc" >&6; }
27797
27798# So? What about this header?
27799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27800 yes:no: )
27801 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
27802echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27803 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
27804echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
27805 ac_header_preproc=yes
27806 ;;
27807 no:yes:* )
27808 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
27809echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
27810 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
27811echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
27812 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
27813echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
27814 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
27815echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
27816 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
27817echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
27818 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
27819echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
27820 ( cat <<\_ASBOX
27821## ------------------------------------------- ##
27822## Report this to openssh-unix-dev@mindrot.org ##
27823## ------------------------------------------- ##
27824_ASBOX
27825 ) | sed "s/^/$as_me: WARNING: /" >&2
27826 ;;
27827esac
27828{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27829echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27830if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27831 echo $ECHO_N "(cached) $ECHO_C" >&6
27832else
27833 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
27834fi
27835{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27836echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27837
27838fi
27839if test $ac_cv_header_gssapi_krb5_h = yes; then
27840 :
27841else
27842 CPPFLAGS="$oldCPP"
27843fi
27844
27845
27846
27847 fi
27848 if test ! -z "$need_dash_r" ; then
27849 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
27850 fi
27851 if test ! -z "$blibpath" ; then
27852 blibpath="$blibpath:${KRB5ROOT}/lib"
27853 fi
27854
27855
27856
27857for ac_header in gssapi.h gssapi/gssapi.h
27858do
27859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27865fi
27866ac_res=`eval echo '${'$as_ac_Header'}'`
27867 { echo "$as_me:$LINENO: result: $ac_res" >&5
27868echo "${ECHO_T}$ac_res" >&6; }
27869else
27870 # Is the header compilable?
27871{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27873cat >conftest.$ac_ext <<_ACEOF
27874/* confdefs.h. */
27875_ACEOF
27876cat confdefs.h >>conftest.$ac_ext
27877cat >>conftest.$ac_ext <<_ACEOF
27878/* end confdefs.h. */
27879$ac_includes_default
27880#include <$ac_header>
27881_ACEOF
27882rm -f conftest.$ac_objext
27883if { (ac_try="$ac_compile"
27884case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27887esac
27888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_compile") 2>conftest.er1
27890 ac_status=$?
27891 grep -v '^ *+' conftest.er1 >conftest.err
27892 rm -f conftest.er1
27893 cat conftest.err >&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } && {
27896 test -z "$ac_c_werror_flag" ||
27897 test ! -s conftest.err
27898 } && test -s conftest.$ac_objext; then
27899 ac_header_compiler=yes
27900else
27901 echo "$as_me: failed program was:" >&5
27902sed 's/^/| /' conftest.$ac_ext >&5
27903
27904 ac_header_compiler=no
27905fi
27906
27907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27909echo "${ECHO_T}$ac_header_compiler" >&6; }
27910
27911# Is the header present?
27912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27914cat >conftest.$ac_ext <<_ACEOF
27915/* confdefs.h. */
27916_ACEOF
27917cat confdefs.h >>conftest.$ac_ext
27918cat >>conftest.$ac_ext <<_ACEOF
27919/* end confdefs.h. */
27920#include <$ac_header>
27921_ACEOF
27922if { (ac_try="$ac_cpp conftest.$ac_ext"
27923case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27926esac
27927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27929 ac_status=$?
27930 grep -v '^ *+' conftest.er1 >conftest.err
27931 rm -f conftest.er1
27932 cat conftest.err >&5
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } >/dev/null && {
27935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27936 test ! -s conftest.err
27937 }; then
27938 ac_header_preproc=yes
27939else
27940 echo "$as_me: failed program was:" >&5
27941sed 's/^/| /' conftest.$ac_ext >&5
27942
27943 ac_header_preproc=no
27944fi
27945
27946rm -f conftest.err conftest.$ac_ext
27947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27948echo "${ECHO_T}$ac_header_preproc" >&6; }
27949
27950# So? What about this header?
27951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27952 yes:no: )
27953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27957 ac_header_preproc=yes
27958 ;;
27959 no:yes:* )
27960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27972 ( cat <<\_ASBOX
27973## ------------------------------------------- ##
27974## Report this to openssh-unix-dev@mindrot.org ##
27975## ------------------------------------------- ##
27976_ASBOX
27977 ) | sed "s/^/$as_me: WARNING: /" >&2
27978 ;;
27979esac
27980{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27983 echo $ECHO_N "(cached) $ECHO_C" >&6
27984else
27985 eval "$as_ac_Header=\$ac_header_preproc"
27986fi
27987ac_res=`eval echo '${'$as_ac_Header'}'`
27988 { echo "$as_me:$LINENO: result: $ac_res" >&5
27989echo "${ECHO_T}$ac_res" >&6; }
27990
27991fi
27992if test `eval echo '${'$as_ac_Header'}'` = yes; then
27993 cat >>confdefs.h <<_ACEOF
27994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27995_ACEOF
27996
27997fi
27998
27999done
28000
28001
28002
28003for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
28004do
28005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28010 echo $ECHO_N "(cached) $ECHO_C" >&6
28011fi
28012ac_res=`eval echo '${'$as_ac_Header'}'`
28013 { echo "$as_me:$LINENO: result: $ac_res" >&5
28014echo "${ECHO_T}$ac_res" >&6; }
28015else
28016 # Is the header compilable?
28017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28019cat >conftest.$ac_ext <<_ACEOF
28020/* confdefs.h. */
28021_ACEOF
28022cat confdefs.h >>conftest.$ac_ext
28023cat >>conftest.$ac_ext <<_ACEOF
28024/* end confdefs.h. */
28025$ac_includes_default
28026#include <$ac_header>
28027_ACEOF
28028rm -f conftest.$ac_objext
28029if { (ac_try="$ac_compile"
28030case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28033esac
28034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_compile") 2>conftest.er1
28036 ac_status=$?
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } && {
28042 test -z "$ac_c_werror_flag" ||
28043 test ! -s conftest.err
28044 } && test -s conftest.$ac_objext; then
28045 ac_header_compiler=yes
28046else
28047 echo "$as_me: failed program was:" >&5
28048sed 's/^/| /' conftest.$ac_ext >&5
28049
28050 ac_header_compiler=no
28051fi
28052
28053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28055echo "${ECHO_T}$ac_header_compiler" >&6; }
28056
28057# Is the header present?
28058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28060cat >conftest.$ac_ext <<_ACEOF
28061/* confdefs.h. */
28062_ACEOF
28063cat confdefs.h >>conftest.$ac_ext
28064cat >>conftest.$ac_ext <<_ACEOF
28065/* end confdefs.h. */
28066#include <$ac_header>
28067_ACEOF
28068if { (ac_try="$ac_cpp conftest.$ac_ext"
28069case "(($ac_try" in
28070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071 *) ac_try_echo=$ac_try;;
28072esac
28073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28075 ac_status=$?
28076 grep -v '^ *+' conftest.er1 >conftest.err
28077 rm -f conftest.er1
28078 cat conftest.err >&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } >/dev/null && {
28081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28082 test ! -s conftest.err
28083 }; then
28084 ac_header_preproc=yes
28085else
28086 echo "$as_me: failed program was:" >&5
28087sed 's/^/| /' conftest.$ac_ext >&5
28088
28089 ac_header_preproc=no
28090fi
28091
28092rm -f conftest.err conftest.$ac_ext
28093{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28094echo "${ECHO_T}$ac_header_preproc" >&6; }
28095
28096# So? What about this header?
28097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28098 yes:no: )
28099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28103 ac_header_preproc=yes
28104 ;;
28105 no:yes:* )
28106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28118 ( cat <<\_ASBOX
28119## ------------------------------------------- ##
28120## Report this to openssh-unix-dev@mindrot.org ##
28121## ------------------------------------------- ##
28122_ASBOX
28123 ) | sed "s/^/$as_me: WARNING: /" >&2
28124 ;;
28125esac
28126{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
28130else
28131 eval "$as_ac_Header=\$ac_header_preproc"
28132fi
28133ac_res=`eval echo '${'$as_ac_Header'}'`
28134 { echo "$as_me:$LINENO: result: $ac_res" >&5
28135echo "${ECHO_T}$ac_res" >&6; }
28136
28137fi
28138if test `eval echo '${'$as_ac_Header'}'` = yes; then
28139 cat >>confdefs.h <<_ACEOF
28140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28141_ACEOF
28142
28143fi
28144
28145done
28146
28147
28148
28149for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
28150do
28151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28157fi
28158ac_res=`eval echo '${'$as_ac_Header'}'`
28159 { echo "$as_me:$LINENO: result: $ac_res" >&5
28160echo "${ECHO_T}$ac_res" >&6; }
28161else
28162 # Is the header compilable?
28163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28165cat >conftest.$ac_ext <<_ACEOF
28166/* confdefs.h. */
28167_ACEOF
28168cat confdefs.h >>conftest.$ac_ext
28169cat >>conftest.$ac_ext <<_ACEOF
28170/* end confdefs.h. */
28171$ac_includes_default
28172#include <$ac_header>
28173_ACEOF
28174rm -f conftest.$ac_objext
28175if { (ac_try="$ac_compile"
28176case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_compile") 2>conftest.er1
28182 ac_status=$?
28183 grep -v '^ *+' conftest.er1 >conftest.err
28184 rm -f conftest.er1
28185 cat conftest.err >&5
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); } && {
28188 test -z "$ac_c_werror_flag" ||
28189 test ! -s conftest.err
28190 } && test -s conftest.$ac_objext; then
28191 ac_header_compiler=yes
28192else
28193 echo "$as_me: failed program was:" >&5
28194sed 's/^/| /' conftest.$ac_ext >&5
28195
28196 ac_header_compiler=no
28197fi
28198
28199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28201echo "${ECHO_T}$ac_header_compiler" >&6; }
28202
28203# Is the header present?
28204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28206cat >conftest.$ac_ext <<_ACEOF
28207/* confdefs.h. */
28208_ACEOF
28209cat confdefs.h >>conftest.$ac_ext
28210cat >>conftest.$ac_ext <<_ACEOF
28211/* end confdefs.h. */
28212#include <$ac_header>
28213_ACEOF
28214if { (ac_try="$ac_cpp conftest.$ac_ext"
28215case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28218esac
28219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28221 ac_status=$?
28222 grep -v '^ *+' conftest.er1 >conftest.err
28223 rm -f conftest.er1
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } >/dev/null && {
28227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28228 test ! -s conftest.err
28229 }; then
28230 ac_header_preproc=yes
28231else
28232 echo "$as_me: failed program was:" >&5
28233sed 's/^/| /' conftest.$ac_ext >&5
28234
28235 ac_header_preproc=no
28236fi
28237
28238rm -f conftest.err conftest.$ac_ext
28239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28240echo "${ECHO_T}$ac_header_preproc" >&6; }
28241
28242# So? What about this header?
28243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28244 yes:no: )
28245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28249 ac_header_preproc=yes
28250 ;;
28251 no:yes:* )
28252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28264 ( cat <<\_ASBOX
28265## ------------------------------------------- ##
28266## Report this to openssh-unix-dev@mindrot.org ##
28267## ------------------------------------------- ##
28268_ASBOX
28269 ) | sed "s/^/$as_me: WARNING: /" >&2
28270 ;;
28271esac
28272{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28275 echo $ECHO_N "(cached) $ECHO_C" >&6
28276else
28277 eval "$as_ac_Header=\$ac_header_preproc"
28278fi
28279ac_res=`eval echo '${'$as_ac_Header'}'`
28280 { echo "$as_me:$LINENO: result: $ac_res" >&5
28281echo "${ECHO_T}$ac_res" >&6; }
28282
28283fi
28284if test `eval echo '${'$as_ac_Header'}'` = yes; then
28285 cat >>confdefs.h <<_ACEOF
28286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28287_ACEOF
28288
28289fi
28290
28291done
28292
28293
28294 LIBS="$LIBS $K5LIBS"
28295 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
28296echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
28297if test "${ac_cv_search_k_hasafs+set}" = set; then
28298 echo $ECHO_N "(cached) $ECHO_C" >&6
28299else
28300 ac_func_search_save_LIBS=$LIBS
28301cat >conftest.$ac_ext <<_ACEOF
28302/* confdefs.h. */
28303_ACEOF
28304cat confdefs.h >>conftest.$ac_ext
28305cat >>conftest.$ac_ext <<_ACEOF
28306/* end confdefs.h. */
28307
28308/* Override any GCC internal prototype to avoid an error.
28309 Use char because int might match the return type of a GCC
28310 builtin and then its argument prototype would still apply. */
28311#ifdef __cplusplus
28312extern "C"
28313#endif
28314char k_hasafs ();
28315int
28316main ()
28317{
28318return k_hasafs ();
28319 ;
28320 return 0;
28321}
28322_ACEOF
28323for ac_lib in '' kafs; do
28324 if test -z "$ac_lib"; then
28325 ac_res="none required"
28326 else
28327 ac_res=-l$ac_lib
28328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28329 fi
28330 rm -f conftest.$ac_objext conftest$ac_exeext
28331if { (ac_try="$ac_link"
28332case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28335esac
28336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337 (eval "$ac_link") 2>conftest.er1
28338 ac_status=$?
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } && {
28344 test -z "$ac_c_werror_flag" ||
28345 test ! -s conftest.err
28346 } && test -s conftest$ac_exeext &&
28347 $as_test_x conftest$ac_exeext; then
28348 ac_cv_search_k_hasafs=$ac_res
28349else
28350 echo "$as_me: failed program was:" >&5
28351sed 's/^/| /' conftest.$ac_ext >&5
28352
28353
28354fi
28355
28356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28357 conftest$ac_exeext
28358 if test "${ac_cv_search_k_hasafs+set}" = set; then
28359 break
28360fi
28361done
28362if test "${ac_cv_search_k_hasafs+set}" = set; then
28363 :
28364else
28365 ac_cv_search_k_hasafs=no
28366fi
28367rm conftest.$ac_ext
28368LIBS=$ac_func_search_save_LIBS
28369fi
28370{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
28371echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
28372ac_res=$ac_cv_search_k_hasafs
28373if test "$ac_res" != no; then
28374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28375
28376cat >>confdefs.h <<\_ACEOF
28377#define USE_AFS 1
28378_ACEOF
28379
28380fi
28381
28382 fi
28383
28384
28385fi
28386
28387
28388# Looking for programs, paths and files
28389
28390PRIVSEP_PATH=/var/empty
28391
28392# Check whether --with-privsep-path was given.
28393if test "${with_privsep_path+set}" = set; then
28394 withval=$with_privsep_path;
28395 if test -n "$withval" && test "x$withval" != "xno" && \
28396 test "x${withval}" != "xyes"; then
28397 PRIVSEP_PATH=$withval
28398 fi
28399
28400
28401fi
28402
28403
28404
28405
28406# Check whether --with-xauth was given.
28407if test "${with_xauth+set}" = set; then
28408 withval=$with_xauth;
28409 if test -n "$withval" && test "x$withval" != "xno" && \
28410 test "x${withval}" != "xyes"; then
28411 xauth_path=$withval
28412 fi
28413
28414else
28415
28416 TestPath="$PATH"
28417 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
28418 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
28419 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
28420 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
28421 # Extract the first word of "xauth", so it can be a program name with args.
28422set dummy xauth; ac_word=$2
28423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28425if test "${ac_cv_path_xauth_path+set}" = set; then
28426 echo $ECHO_N "(cached) $ECHO_C" >&6
28427else
28428 case $xauth_path in
28429 [\\/]* | ?:[\\/]*)
28430 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
28431 ;;
28432 *)
28433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28434for as_dir in $TestPath
28435do
28436 IFS=$as_save_IFS
28437 test -z "$as_dir" && as_dir=.
28438 for ac_exec_ext in '' $ac_executable_extensions; do
28439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28440 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
28441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28442 break 2
28443 fi
28444done
28445done
28446IFS=$as_save_IFS
28447
28448 ;;
28449esac
28450fi
28451xauth_path=$ac_cv_path_xauth_path
28452if test -n "$xauth_path"; then
28453 { echo "$as_me:$LINENO: result: $xauth_path" >&5
28454echo "${ECHO_T}$xauth_path" >&6; }
28455else
28456 { echo "$as_me:$LINENO: result: no" >&5
28457echo "${ECHO_T}no" >&6; }
28458fi
28459
28460
28461 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
28462 xauth_path="/usr/openwin/bin/xauth"
28463 fi
28464
28465
28466fi
28467
28468
28469STRIP_OPT=-s
28470# Check whether --enable-strip was given.
28471if test "${enable_strip+set}" = set; then
28472 enableval=$enable_strip;
28473 if test "x$enableval" = "xno" ; then
28474 STRIP_OPT=
28475 fi
28476
28477
28478fi
28479
28480
28481
28482if test -z "$xauth_path" ; then
28483 XAUTH_PATH="undefined"
28484
28485else
28486
28487cat >>confdefs.h <<_ACEOF
28488#define XAUTH_PATH "$xauth_path"
28489_ACEOF
28490
28491 XAUTH_PATH=$xauth_path
28492
28493fi
28494
28495# Check for mail directory (last resort if we cannot get it from headers)
28496if test ! -z "$MAIL" ; then
28497 maildir=`dirname $MAIL`
28498
28499cat >>confdefs.h <<_ACEOF
28500#define MAIL_DIRECTORY "$maildir"
28501_ACEOF
28502
28503fi
28504
28505if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
28506 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
28507echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
28508 disable_ptmx_check=yes
28509fi
28510if test -z "$no_dev_ptmx" ; then
28511 if test "x$disable_ptmx_check" != "xyes" ; then
28512 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
28513echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
28514if test "${ac_cv_file___dev_ptmx_+set}" = set; then
28515 echo $ECHO_N "(cached) $ECHO_C" >&6
28516else
28517 test "$cross_compiling" = yes &&
28518 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28519echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28520 { (exit 1); exit 1; }; }
28521if test -r ""/dev/ptmx""; then
28522 ac_cv_file___dev_ptmx_=yes
28523else
28524 ac_cv_file___dev_ptmx_=no
28525fi
28526fi
28527{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
28528echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
28529if test $ac_cv_file___dev_ptmx_ = yes; then
28530
28531
28532cat >>confdefs.h <<_ACEOF
28533#define HAVE_DEV_PTMX 1
28534_ACEOF
28535
28536 have_dev_ptmx=1
28537
28538
28539fi
28540
28541 fi
28542fi
28543
28544if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
28545 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
28546echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
28547if test "${ac_cv_file___dev_ptc_+set}" = set; then
28548 echo $ECHO_N "(cached) $ECHO_C" >&6
28549else
28550 test "$cross_compiling" = yes &&
28551 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28552echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28553 { (exit 1); exit 1; }; }
28554if test -r ""/dev/ptc""; then
28555 ac_cv_file___dev_ptc_=yes
28556else
28557 ac_cv_file___dev_ptc_=no
28558fi
28559fi
28560{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
28561echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
28562if test $ac_cv_file___dev_ptc_ = yes; then
28563
28564
28565cat >>confdefs.h <<_ACEOF
28566#define HAVE_DEV_PTS_AND_PTC 1
28567_ACEOF
28568
28569 have_dev_ptc=1
28570
28571
28572fi
28573
28574else
28575 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
28576echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
28577fi
28578
28579# Options from here on. Some of these are preset by platform above
28580
28581# Check whether --with-mantype was given.
28582if test "${with_mantype+set}" = set; then
28583 withval=$with_mantype;
28584 case "$withval" in
28585 man|cat|doc)
28586 MANTYPE=$withval
28587 ;;
28588 *)
28589 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
28590echo "$as_me: error: invalid man type: $withval" >&2;}
28591 { (exit 1); exit 1; }; }
28592 ;;
28593 esac
28594
28595
28596fi
28597
28598if test -z "$MANTYPE"; then
28599 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
28600 for ac_prog in nroff awf
28601do
28602 # Extract the first word of "$ac_prog", so it can be a program name with args.
28603set dummy $ac_prog; ac_word=$2
28604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28606if test "${ac_cv_path_NROFF+set}" = set; then
28607 echo $ECHO_N "(cached) $ECHO_C" >&6
28608else
28609 case $NROFF in
28610 [\\/]* | ?:[\\/]*)
28611 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
28612 ;;
28613 *)
28614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28615for as_dir in $TestPath
28616do
28617 IFS=$as_save_IFS
28618 test -z "$as_dir" && as_dir=.
28619 for ac_exec_ext in '' $ac_executable_extensions; do
28620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28621 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
28622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28623 break 2
28624 fi
28625done
28626done
28627IFS=$as_save_IFS
28628
28629 ;;
28630esac
28631fi
28632NROFF=$ac_cv_path_NROFF
28633if test -n "$NROFF"; then
28634 { echo "$as_me:$LINENO: result: $NROFF" >&5
28635echo "${ECHO_T}$NROFF" >&6; }
28636else
28637 { echo "$as_me:$LINENO: result: no" >&5
28638echo "${ECHO_T}no" >&6; }
28639fi
28640
28641
28642 test -n "$NROFF" && break
28643done
28644test -n "$NROFF" || NROFF="/bin/false"
28645
28646 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
28647 MANTYPE=doc
28648 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
28649 MANTYPE=man
28650 else
28651 MANTYPE=cat
28652 fi
28653fi
28654
28655if test "$MANTYPE" = "doc"; then
28656 mansubdir=man;
28657else
28658 mansubdir=$MANTYPE;
28659fi
28660
28661
28662# Check whether to enable MD5 passwords
28663MD5_MSG="no"
28664
28665# Check whether --with-md5-passwords was given.
28666if test "${with_md5_passwords+set}" = set; then
28667 withval=$with_md5_passwords;
28668 if test "x$withval" != "xno" ; then
28669
28670cat >>confdefs.h <<\_ACEOF
28671#define HAVE_MD5_PASSWORDS 1
28672_ACEOF
28673
28674 MD5_MSG="yes"
28675 fi
28676
28677
28678fi
28679
28680
28681# Whether to disable shadow password support
28682
28683# Check whether --with-shadow was given.
28684if test "${with_shadow+set}" = set; then
28685 withval=$with_shadow;
28686 if test "x$withval" = "xno" ; then
28687 cat >>confdefs.h <<\_ACEOF
28688#define DISABLE_SHADOW 1
28689_ACEOF
28690
28691 disable_shadow=yes
28692 fi
28693
28694
28695fi
28696
28697
28698if test -z "$disable_shadow" ; then
28699 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
28700echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
28701 cat >conftest.$ac_ext <<_ACEOF
28702/* confdefs.h. */
28703_ACEOF
28704cat confdefs.h >>conftest.$ac_ext
28705cat >>conftest.$ac_ext <<_ACEOF
28706/* end confdefs.h. */
28707
28708#include <sys/types.h>
28709#include <shadow.h>
28710 struct spwd sp;
28711
28712int
28713main ()
28714{
28715 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
28716 ;
28717 return 0;
28718}
28719_ACEOF
28720rm -f conftest.$ac_objext
28721if { (ac_try="$ac_compile"
28722case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28725esac
28726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_compile") 2>conftest.er1
28728 ac_status=$?
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } && {
28734 test -z "$ac_c_werror_flag" ||
28735 test ! -s conftest.err
28736 } && test -s conftest.$ac_objext; then
28737 sp_expire_available=yes
28738else
28739 echo "$as_me: failed program was:" >&5
28740sed 's/^/| /' conftest.$ac_ext >&5
28741
28742
28743
28744fi
28745
28746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747
28748 if test "x$sp_expire_available" = "xyes" ; then
28749 { echo "$as_me:$LINENO: result: yes" >&5
28750echo "${ECHO_T}yes" >&6; }
28751
28752cat >>confdefs.h <<\_ACEOF
28753#define HAS_SHADOW_EXPIRE 1
28754_ACEOF
28755
28756 else
28757 { echo "$as_me:$LINENO: result: no" >&5
28758echo "${ECHO_T}no" >&6; }
28759 fi
28760fi
28761
28762# Use ip address instead of hostname in $DISPLAY
28763if test ! -z "$IPADDR_IN_DISPLAY" ; then
28764 DISPLAY_HACK_MSG="yes"
28765
28766cat >>confdefs.h <<\_ACEOF
28767#define IPADDR_IN_DISPLAY 1
28768_ACEOF
28769
28770else
28771 DISPLAY_HACK_MSG="no"
28772
28773# Check whether --with-ipaddr-display was given.
28774if test "${with_ipaddr_display+set}" = set; then
28775 withval=$with_ipaddr_display;
28776 if test "x$withval" != "xno" ; then
28777 cat >>confdefs.h <<\_ACEOF
28778#define IPADDR_IN_DISPLAY 1
28779_ACEOF
28780
28781 DISPLAY_HACK_MSG="yes"
28782 fi
28783
28784
28785fi
28786
28787fi
28788
28789# check for /etc/default/login and use it if present.
28790# Check whether --enable-etc-default-login was given.
28791if test "${enable_etc_default_login+set}" = set; then
28792 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
28793 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
28794echo "$as_me: /etc/default/login handling disabled" >&6;}
28795 etc_default_login=no
28796 else
28797 etc_default_login=yes
28798 fi
28799else
28800 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
28801 then
28802 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
28803echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
28804 etc_default_login=no
28805 else
28806 etc_default_login=yes
28807 fi
28808
28809fi
28810
28811
28812if test "x$etc_default_login" != "xno"; then
28813 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
28814echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
28815if test "${ac_cv_file___etc_default_login_+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817else
28818 test "$cross_compiling" = yes &&
28819 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28820echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28821 { (exit 1); exit 1; }; }
28822if test -r ""/etc/default/login""; then
28823 ac_cv_file___etc_default_login_=yes
28824else
28825 ac_cv_file___etc_default_login_=no
28826fi
28827fi
28828{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
28829echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
28830if test $ac_cv_file___etc_default_login_ = yes; then
28831 external_path_file=/etc/default/login
28832fi
28833
28834 if test "x$external_path_file" = "x/etc/default/login"; then
28835
28836cat >>confdefs.h <<\_ACEOF
28837#define HAVE_ETC_DEFAULT_LOGIN 1
28838_ACEOF
28839
28840 fi
28841fi
28842
28843if test $ac_cv_func_login_getcapbool = "yes" && \
28844 test $ac_cv_header_login_cap_h = "yes" ; then
28845 external_path_file=/etc/login.conf
28846fi
28847
28848# Whether to mess with the default path
28849SERVER_PATH_MSG="(default)"
28850
28851# Check whether --with-default-path was given.
28852if test "${with_default_path+set}" = set; then
28853 withval=$with_default_path;
28854 if test "x$external_path_file" = "x/etc/login.conf" ; then
28855 { echo "$as_me:$LINENO: WARNING:
28856--with-default-path=PATH has no effect on this system.
28857Edit /etc/login.conf instead." >&5
28858echo "$as_me: WARNING:
28859--with-default-path=PATH has no effect on this system.
28860Edit /etc/login.conf instead." >&2;}
28861 elif test "x$withval" != "xno" ; then
28862 if test ! -z "$external_path_file" ; then
28863 { echo "$as_me:$LINENO: WARNING:
28864--with-default-path=PATH will only be used if PATH is not defined in
28865$external_path_file ." >&5
28866echo "$as_me: WARNING:
28867--with-default-path=PATH will only be used if PATH is not defined in
28868$external_path_file ." >&2;}
28869 fi
28870 user_path="$withval"
28871 SERVER_PATH_MSG="$withval"
28872 fi
28873
28874else
28875 if test "x$external_path_file" = "x/etc/login.conf" ; then
28876 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
28877echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
28878 else
28879 if test ! -z "$external_path_file" ; then
28880 { echo "$as_me:$LINENO: WARNING:
28881If PATH is defined in $external_path_file, ensure the path to scp is included,
28882otherwise scp will not work." >&5
28883echo "$as_me: WARNING:
28884If PATH is defined in $external_path_file, ensure the path to scp is included,
28885otherwise scp will not work." >&2;}
28886 fi
28887 if test "$cross_compiling" = yes; then
28888 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28889
28890else
28891 cat >conftest.$ac_ext <<_ACEOF
28892/* confdefs.h. */
28893_ACEOF
28894cat confdefs.h >>conftest.$ac_ext
28895cat >>conftest.$ac_ext <<_ACEOF
28896/* end confdefs.h. */
28897
28898/* find out what STDPATH is */
28899#include <stdio.h>
28900#ifdef HAVE_PATHS_H
28901# include <paths.h>
28902#endif
28903#ifndef _PATH_STDPATH
28904# ifdef _PATH_USERPATH /* Irix */
28905# define _PATH_STDPATH _PATH_USERPATH
28906# else
28907# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
28908# endif
28909#endif
28910#include <sys/types.h>
28911#include <sys/stat.h>
28912#include <fcntl.h>
28913#define DATA "conftest.stdpath"
28914
28915main()
28916{
28917 FILE *fd;
28918 int rc;
28919
28920 fd = fopen(DATA,"w");
28921 if(fd == NULL)
28922 exit(1);
28923
28924 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
28925 exit(1);
28926
28927 exit(0);
28928}
28929
28930_ACEOF
28931rm -f conftest$ac_exeext
28932if { (ac_try="$ac_link"
28933case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28936esac
28937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_link") 2>&5
28939 ac_status=$?
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28942 { (case "(($ac_try" in
28943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28944 *) ac_try_echo=$ac_try;;
28945esac
28946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28947 (eval "$ac_try") 2>&5
28948 ac_status=$?
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; }; then
28951 user_path=`cat conftest.stdpath`
28952else
28953 echo "$as_me: program exited with status $ac_status" >&5
28954echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
28957( exit $ac_status )
28958 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28959fi
28960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28961fi
28962
28963
28964# make sure $bindir is in USER_PATH so scp will work
28965 t_bindir=`eval echo ${bindir}`
28966 case $t_bindir in
28967 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
28968 esac
28969 case $t_bindir in
28970 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
28971 esac
28972 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
28973 if test $? -ne 0 ; then
28974 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
28975 if test $? -ne 0 ; then
28976 user_path=$user_path:$t_bindir
28977 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
28978echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
28979 fi
28980 fi
28981 fi
28982
28983fi
28984
28985if test "x$external_path_file" != "x/etc/login.conf" ; then
28986
28987cat >>confdefs.h <<_ACEOF
28988#define USER_PATH "$user_path"
28989_ACEOF
28990
28991
28992fi
28993
28994# Set superuser path separately to user path
28995
28996# Check whether --with-superuser-path was given.
28997if test "${with_superuser_path+set}" = set; then
28998 withval=$with_superuser_path;
28999 if test -n "$withval" && test "x$withval" != "xno" && \
29000 test "x${withval}" != "xyes"; then
29001
29002cat >>confdefs.h <<_ACEOF
29003#define SUPERUSER_PATH "$withval"
29004_ACEOF
29005
29006 superuser_path=$withval
29007 fi
29008
29009
29010fi
29011
29012
29013
29014{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
29015echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
29016IPV4_IN6_HACK_MSG="no"
29017
29018# Check whether --with-4in6 was given.
29019if test "${with_4in6+set}" = set; then
29020 withval=$with_4in6;
29021 if test "x$withval" != "xno" ; then
29022 { echo "$as_me:$LINENO: result: yes" >&5
29023echo "${ECHO_T}yes" >&6; }
29024
29025cat >>confdefs.h <<\_ACEOF
29026#define IPV4_IN_IPV6 1
29027_ACEOF
29028
29029 IPV4_IN6_HACK_MSG="yes"
29030 else
29031 { echo "$as_me:$LINENO: result: no" >&5
29032echo "${ECHO_T}no" >&6; }
29033 fi
29034
29035else
29036
29037 if test "x$inet6_default_4in6" = "xyes"; then
29038 { echo "$as_me:$LINENO: result: yes (default)" >&5
29039echo "${ECHO_T}yes (default)" >&6; }
29040 cat >>confdefs.h <<\_ACEOF
29041#define IPV4_IN_IPV6 1
29042_ACEOF
29043
29044 IPV4_IN6_HACK_MSG="yes"
29045 else
29046 { echo "$as_me:$LINENO: result: no (default)" >&5
29047echo "${ECHO_T}no (default)" >&6; }
29048 fi
29049
29050
29051fi
29052
29053
29054# Whether to enable BSD auth support
29055BSD_AUTH_MSG=no
29056
29057# Check whether --with-bsd-auth was given.
29058if test "${with_bsd_auth+set}" = set; then
29059 withval=$with_bsd_auth;
29060 if test "x$withval" != "xno" ; then
29061
29062cat >>confdefs.h <<\_ACEOF
29063#define BSD_AUTH 1
29064_ACEOF
29065
29066 BSD_AUTH_MSG=yes
29067 fi
29068
29069
29070fi
29071
29072
29073# Where to place sshd.pid
29074piddir=/var/run
29075# make sure the directory exists
29076if test ! -d $piddir ; then
29077 piddir=`eval echo ${sysconfdir}`
29078 case $piddir in
29079 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
29080 esac
29081fi
29082
29083
29084# Check whether --with-pid-dir was given.
29085if test "${with_pid_dir+set}" = set; then
29086 withval=$with_pid_dir;
29087 if test -n "$withval" && test "x$withval" != "xno" && \
29088 test "x${withval}" != "xyes"; then
29089 piddir=$withval
29090 if test ! -d $piddir ; then
29091 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
29092echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
29093 fi
29094 fi
29095
29096
29097fi
29098
29099
29100
29101cat >>confdefs.h <<_ACEOF
29102#define _PATH_SSH_PIDDIR "$piddir"
29103_ACEOF
29104
29105
29106
29107# Check whether --enable-lastlog was given.
29108if test "${enable_lastlog+set}" = set; then
29109 enableval=$enable_lastlog;
29110 if test "x$enableval" = "xno" ; then
29111 cat >>confdefs.h <<\_ACEOF
29112#define DISABLE_LASTLOG 1
29113_ACEOF
29114
29115 fi
29116
29117
29118fi
29119
29120# Check whether --enable-utmp was given.
29121if test "${enable_utmp+set}" = set; then
29122 enableval=$enable_utmp;
29123 if test "x$enableval" = "xno" ; then
29124 cat >>confdefs.h <<\_ACEOF
29125#define DISABLE_UTMP 1
29126_ACEOF
29127
29128 fi
29129
29130
29131fi
29132
29133# Check whether --enable-utmpx was given.
29134if test "${enable_utmpx+set}" = set; then
29135 enableval=$enable_utmpx;
29136 if test "x$enableval" = "xno" ; then
29137
29138cat >>confdefs.h <<\_ACEOF
29139#define DISABLE_UTMPX 1
29140_ACEOF
29141
29142 fi
29143
29144
29145fi
29146
29147# Check whether --enable-wtmp was given.
29148if test "${enable_wtmp+set}" = set; then
29149 enableval=$enable_wtmp;
29150 if test "x$enableval" = "xno" ; then
29151 cat >>confdefs.h <<\_ACEOF
29152#define DISABLE_WTMP 1
29153_ACEOF
29154
29155 fi
29156
29157
29158fi
29159
29160# Check whether --enable-wtmpx was given.
29161if test "${enable_wtmpx+set}" = set; then
29162 enableval=$enable_wtmpx;
29163 if test "x$enableval" = "xno" ; then
29164
29165cat >>confdefs.h <<\_ACEOF
29166#define DISABLE_WTMPX 1
29167_ACEOF
29168
29169 fi
29170
29171
29172fi
29173
29174# Check whether --enable-libutil was given.
29175if test "${enable_libutil+set}" = set; then
29176 enableval=$enable_libutil;
29177 if test "x$enableval" = "xno" ; then
29178 cat >>confdefs.h <<\_ACEOF
29179#define DISABLE_LOGIN 1
29180_ACEOF
29181
29182 fi
29183
29184
29185fi
29186
29187# Check whether --enable-pututline was given.
29188if test "${enable_pututline+set}" = set; then
29189 enableval=$enable_pututline;
29190 if test "x$enableval" = "xno" ; then
29191
29192cat >>confdefs.h <<\_ACEOF
29193#define DISABLE_PUTUTLINE 1
29194_ACEOF
29195
29196 fi
29197
29198
29199fi
29200
29201# Check whether --enable-pututxline was given.
29202if test "${enable_pututxline+set}" = set; then
29203 enableval=$enable_pututxline;
29204 if test "x$enableval" = "xno" ; then
29205
29206cat >>confdefs.h <<\_ACEOF
29207#define DISABLE_PUTUTXLINE 1
29208_ACEOF
29209
29210 fi
29211
29212
29213fi
29214
29215
29216# Check whether --with-lastlog was given.
29217if test "${with_lastlog+set}" = set; then
29218 withval=$with_lastlog;
29219 if test "x$withval" = "xno" ; then
29220 cat >>confdefs.h <<\_ACEOF
29221#define DISABLE_LASTLOG 1
29222_ACEOF
29223
29224 elif test -n "$withval" && test "x${withval}" != "xyes"; then
29225 conf_lastlog_location=$withval
29226 fi
29227
29228
29229fi
29230
29231
29232
29233{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
29234echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
29235cat >conftest.$ac_ext <<_ACEOF
29236/* confdefs.h. */
29237_ACEOF
29238cat confdefs.h >>conftest.$ac_ext
29239cat >>conftest.$ac_ext <<_ACEOF
29240/* end confdefs.h. */
29241
29242#include <sys/types.h>
29243#include <utmp.h>
29244#ifdef HAVE_LASTLOG_H
29245# include <lastlog.h>
29246#endif
29247#ifdef HAVE_PATHS_H
29248# include <paths.h>
29249#endif
29250#ifdef HAVE_LOGIN_H
29251# include <login.h>
29252#endif
29253
29254int
29255main ()
29256{
29257 char *lastlog = LASTLOG_FILE;
29258 ;
29259 return 0;
29260}
29261_ACEOF
29262rm -f conftest.$ac_objext
29263if { (ac_try="$ac_compile"
29264case "(($ac_try" in
29265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29266 *) ac_try_echo=$ac_try;;
29267esac
29268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29269 (eval "$ac_compile") 2>conftest.er1
29270 ac_status=$?
29271 grep -v '^ *+' conftest.er1 >conftest.err
29272 rm -f conftest.er1
29273 cat conftest.err >&5
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); } && {
29276 test -z "$ac_c_werror_flag" ||
29277 test ! -s conftest.err
29278 } && test -s conftest.$ac_objext; then
29279 { echo "$as_me:$LINENO: result: yes" >&5
29280echo "${ECHO_T}yes" >&6; }
29281else
29282 echo "$as_me: failed program was:" >&5
29283sed 's/^/| /' conftest.$ac_ext >&5
29284
29285
29286 { echo "$as_me:$LINENO: result: no" >&5
29287echo "${ECHO_T}no" >&6; }
29288 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
29289echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
29290 cat >conftest.$ac_ext <<_ACEOF
29291/* confdefs.h. */
29292_ACEOF
29293cat confdefs.h >>conftest.$ac_ext
29294cat >>conftest.$ac_ext <<_ACEOF
29295/* end confdefs.h. */
29296
29297#include <sys/types.h>
29298#include <utmp.h>
29299#ifdef HAVE_LASTLOG_H
29300# include <lastlog.h>
29301#endif
29302#ifdef HAVE_PATHS_H
29303# include <paths.h>
29304#endif
29305
29306int
29307main ()
29308{
29309 char *lastlog = _PATH_LASTLOG;
29310 ;
29311 return 0;
29312}
29313_ACEOF
29314rm -f conftest.$ac_objext
29315if { (ac_try="$ac_compile"
29316case "(($ac_try" in
29317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29318 *) ac_try_echo=$ac_try;;
29319esac
29320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29321 (eval "$ac_compile") 2>conftest.er1
29322 ac_status=$?
29323 grep -v '^ *+' conftest.er1 >conftest.err
29324 rm -f conftest.er1
29325 cat conftest.err >&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } && {
29328 test -z "$ac_c_werror_flag" ||
29329 test ! -s conftest.err
29330 } && test -s conftest.$ac_objext; then
29331 { echo "$as_me:$LINENO: result: yes" >&5
29332echo "${ECHO_T}yes" >&6; }
29333else
29334 echo "$as_me: failed program was:" >&5
29335sed 's/^/| /' conftest.$ac_ext >&5
29336
29337
29338 { echo "$as_me:$LINENO: result: no" >&5
29339echo "${ECHO_T}no" >&6; }
29340 system_lastlog_path=no
29341
29342fi
29343
29344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345
29346
29347fi
29348
29349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29350
29351if test -z "$conf_lastlog_location"; then
29352 if test x"$system_lastlog_path" = x"no" ; then
29353 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
29354 if (test -d "$f" || test -f "$f") ; then
29355 conf_lastlog_location=$f
29356 fi
29357 done
29358 if test -z "$conf_lastlog_location"; then
29359 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
29360echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
29361 fi
29362 fi
29363fi
29364
29365if test -n "$conf_lastlog_location"; then
29366
29367cat >>confdefs.h <<_ACEOF
29368#define CONF_LASTLOG_FILE "$conf_lastlog_location"
29369_ACEOF
29370
29371fi
29372
29373{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
29374echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
29375cat >conftest.$ac_ext <<_ACEOF
29376/* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
29381
29382#include <sys/types.h>
29383#include <utmp.h>
29384#ifdef HAVE_PATHS_H
29385# include <paths.h>
29386#endif
29387
29388int
29389main ()
29390{
29391 char *utmp = UTMP_FILE;
29392 ;
29393 return 0;
29394}
29395_ACEOF
29396rm -f conftest.$ac_objext
29397if { (ac_try="$ac_compile"
29398case "(($ac_try" in
29399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400 *) ac_try_echo=$ac_try;;
29401esac
29402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403 (eval "$ac_compile") 2>conftest.er1
29404 ac_status=$?
29405 grep -v '^ *+' conftest.er1 >conftest.err
29406 rm -f conftest.er1
29407 cat conftest.err >&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); } && {
29410 test -z "$ac_c_werror_flag" ||
29411 test ! -s conftest.err
29412 } && test -s conftest.$ac_objext; then
29413 { echo "$as_me:$LINENO: result: yes" >&5
29414echo "${ECHO_T}yes" >&6; }
29415else
29416 echo "$as_me: failed program was:" >&5
29417sed 's/^/| /' conftest.$ac_ext >&5
29418
29419 { echo "$as_me:$LINENO: result: no" >&5
29420echo "${ECHO_T}no" >&6; }
29421 system_utmp_path=no
29422
29423fi
29424
29425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29426if test -z "$conf_utmp_location"; then
29427 if test x"$system_utmp_path" = x"no" ; then
29428 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
29429 if test -f $f ; then
29430 conf_utmp_location=$f
29431 fi
29432 done
29433 if test -z "$conf_utmp_location"; then
29434 cat >>confdefs.h <<\_ACEOF
29435#define DISABLE_UTMP 1
29436_ACEOF
29437
29438 fi
29439 fi
29440fi
29441if test -n "$conf_utmp_location"; then
29442
29443cat >>confdefs.h <<_ACEOF
29444#define CONF_UTMP_FILE "$conf_utmp_location"
29445_ACEOF
29446
29447fi
29448
29449{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
29450echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
29451cat >conftest.$ac_ext <<_ACEOF
29452/* confdefs.h. */
29453_ACEOF
29454cat confdefs.h >>conftest.$ac_ext
29455cat >>conftest.$ac_ext <<_ACEOF
29456/* end confdefs.h. */
29457
29458#include <sys/types.h>
29459#include <utmp.h>
29460#ifdef HAVE_PATHS_H
29461# include <paths.h>
29462#endif
29463
29464int
29465main ()
29466{
29467 char *wtmp = WTMP_FILE;
29468 ;
29469 return 0;
29470}
29471_ACEOF
29472rm -f conftest.$ac_objext
29473if { (ac_try="$ac_compile"
29474case "(($ac_try" in
29475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476 *) ac_try_echo=$ac_try;;
29477esac
29478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479 (eval "$ac_compile") 2>conftest.er1
29480 ac_status=$?
29481 grep -v '^ *+' conftest.er1 >conftest.err
29482 rm -f conftest.er1
29483 cat conftest.err >&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); } && {
29486 test -z "$ac_c_werror_flag" ||
29487 test ! -s conftest.err
29488 } && test -s conftest.$ac_objext; then
29489 { echo "$as_me:$LINENO: result: yes" >&5
29490echo "${ECHO_T}yes" >&6; }
29491else
29492 echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495 { echo "$as_me:$LINENO: result: no" >&5
29496echo "${ECHO_T}no" >&6; }
29497 system_wtmp_path=no
29498
29499fi
29500
29501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29502if test -z "$conf_wtmp_location"; then
29503 if test x"$system_wtmp_path" = x"no" ; then
29504 for f in /usr/adm/wtmp /var/log/wtmp; do
29505 if test -f $f ; then
29506 conf_wtmp_location=$f
29507 fi
29508 done
29509 if test -z "$conf_wtmp_location"; then
29510 cat >>confdefs.h <<\_ACEOF
29511#define DISABLE_WTMP 1
29512_ACEOF
29513
29514 fi
29515 fi
29516fi
29517if test -n "$conf_wtmp_location"; then
29518
29519cat >>confdefs.h <<_ACEOF
29520#define CONF_WTMP_FILE "$conf_wtmp_location"
29521_ACEOF
29522
29523fi
29524
29525
29526{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
29527echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
29528cat >conftest.$ac_ext <<_ACEOF
29529/* confdefs.h. */
29530_ACEOF
29531cat confdefs.h >>conftest.$ac_ext
29532cat >>conftest.$ac_ext <<_ACEOF
29533/* end confdefs.h. */
29534
29535#include <sys/types.h>
29536#include <utmp.h>
29537#ifdef HAVE_UTMPX_H
29538#include <utmpx.h>
29539#endif
29540#ifdef HAVE_PATHS_H
29541# include <paths.h>
29542#endif
29543
29544int
29545main ()
29546{
29547 char *wtmpx = WTMPX_FILE;
29548 ;
29549 return 0;
29550}
29551_ACEOF
29552rm -f conftest.$ac_objext
29553if { (ac_try="$ac_compile"
29554case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29557esac
29558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_compile") 2>conftest.er1
29560 ac_status=$?
29561 grep -v '^ *+' conftest.er1 >conftest.err
29562 rm -f conftest.er1
29563 cat conftest.err >&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); } && {
29566 test -z "$ac_c_werror_flag" ||
29567 test ! -s conftest.err
29568 } && test -s conftest.$ac_objext; then
29569 { echo "$as_me:$LINENO: result: yes" >&5
29570echo "${ECHO_T}yes" >&6; }
29571else
29572 echo "$as_me: failed program was:" >&5
29573sed 's/^/| /' conftest.$ac_ext >&5
29574
29575 { echo "$as_me:$LINENO: result: no" >&5
29576echo "${ECHO_T}no" >&6; }
29577 system_wtmpx_path=no
29578
29579fi
29580
29581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29582if test -z "$conf_wtmpx_location"; then
29583 if test x"$system_wtmpx_path" = x"no" ; then
29584 cat >>confdefs.h <<\_ACEOF
29585#define DISABLE_WTMPX 1
29586_ACEOF
29587
29588 fi
29589else
29590
29591cat >>confdefs.h <<_ACEOF
29592#define CONF_WTMPX_FILE "$conf_wtmpx_location"
29593_ACEOF
29594
29595fi
29596
29597
29598if test ! -z "$blibpath" ; then
29599 LDFLAGS="$LDFLAGS $blibflags$blibpath"
29600 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
29601echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
29602fi
29603
29604CFLAGS="$CFLAGS $werror_flags"
29605
29606if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
29607 TEST_SSH_IPV6=no
29608else
29609 TEST_SSH_IPV6=yes
29610fi
29611{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
29612echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
29613if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29615else
29616 cat >conftest.$ac_ext <<_ACEOF
29617/* confdefs.h. */
29618_ACEOF
29619cat confdefs.h >>conftest.$ac_ext
29620cat >>conftest.$ac_ext <<_ACEOF
29621/* end confdefs.h. */
29622$ac_includes_default
29623int
29624main ()
29625{
29626#ifndef BROKEN_GETADDRINFO
29627 (void) BROKEN_GETADDRINFO;
29628#endif
29629
29630 ;
29631 return 0;
29632}
29633_ACEOF
29634rm -f conftest.$ac_objext
29635if { (ac_try="$ac_compile"
29636case "(($ac_try" in
29637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29639esac
29640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_compile") 2>conftest.er1
29642 ac_status=$?
29643 grep -v '^ *+' conftest.er1 >conftest.err
29644 rm -f conftest.er1
29645 cat conftest.err >&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } && {
29648 test -z "$ac_c_werror_flag" ||
29649 test ! -s conftest.err
29650 } && test -s conftest.$ac_objext; then
29651 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
29652else
29653 echo "$as_me: failed program was:" >&5
29654sed 's/^/| /' conftest.$ac_ext >&5
29655
29656 ac_cv_have_decl_BROKEN_GETADDRINFO=no
29657fi
29658
29659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660fi
29661{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
29662echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
29663if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
29664 TEST_SSH_IPV6=no
29665fi
29666
29667TEST_SSH_IPV6=$TEST_SSH_IPV6
29668
29669
29670
29671ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
29672
29673cat >confcache <<\_ACEOF
29674# This file is a shell script that caches the results of configure
29675# tests run on this system so they can be shared between configure
29676# scripts and configure runs, see configure's option --config-cache.
29677# It is not useful on other systems. If it contains results you don't
29678# want to keep, you may remove or edit it.
29679#
29680# config.status only pays attention to the cache file if you give it
29681# the --recheck option to rerun configure.
29682#
29683# `ac_cv_env_foo' variables (set or unset) will be overridden when
29684# loading this file, other *unset* `ac_cv_foo' will be assigned the
29685# following values.
29686
29687_ACEOF
29688
29689# The following way of writing the cache mishandles newlines in values,
29690# but we know of no workaround that is simple, portable, and efficient.
29691# So, we kill variables containing newlines.
29692# Ultrix sh set writes to stderr and can't be redirected directly,
29693# and sets the high bit in the cache file unless we assign to the vars.
29694(
29695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29696 eval ac_val=\$$ac_var
29697 case $ac_val in #(
29698 *${as_nl}*)
29699 case $ac_var in #(
29700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29701echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29702 esac
29703 case $ac_var in #(
29704 _ | IFS | as_nl) ;; #(
29705 *) $as_unset $ac_var ;;
29706 esac ;;
29707 esac
29708 done
29709
29710 (set) 2>&1 |
29711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29712 *${as_nl}ac_space=\ *)
29713 # `set' does not quote correctly, so add quotes (double-quote
29714 # substitution turns \\\\ into \\, and sed turns \\ into \).
29715 sed -n \
29716 "s/'/'\\\\''/g;
29717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29718 ;; #(
29719 *)
29720 # `set' quotes correctly as required by POSIX, so do not add quotes.
29721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29722 ;;
29723 esac |
29724 sort
29725) |
29726 sed '
29727 /^ac_cv_env_/b end
29728 t clear
29729 :clear
29730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29731 t end
29732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29733 :end' >>confcache
29734if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29735 if test -w "$cache_file"; then
29736 test "x$cache_file" != "x/dev/null" &&
29737 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29738echo "$as_me: updating cache $cache_file" >&6;}
29739 cat confcache >$cache_file
29740 else
29741 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29742echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29743 fi
29744fi
29745rm -f confcache
29746
29747test "x$prefix" = xNONE && prefix=$ac_default_prefix
29748# Let make expand exec_prefix.
29749test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29750
29751DEFS=-DHAVE_CONFIG_H
29752
29753ac_libobjs=
29754ac_ltlibobjs=
29755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29756 # 1. Remove the extension, and $U if already installed.
29757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29758 ac_i=`echo "$ac_i" | sed "$ac_script"`
29759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29760 # will be set to the directory where LIBOBJS objects are built.
29761 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29762 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29763done
29764LIBOBJS=$ac_libobjs
29765
29766LTLIBOBJS=$ac_ltlibobjs
29767
29768
29769
29770: ${CONFIG_STATUS=./config.status}
29771ac_clean_files_save=$ac_clean_files
29772ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29773{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29774echo "$as_me: creating $CONFIG_STATUS" >&6;}
29775cat >$CONFIG_STATUS <<_ACEOF
29776#! $SHELL
29777# Generated by $as_me.
29778# Run this file to recreate the current configuration.
29779# Compiler output produced by configure, useful for debugging
29780# configure, is in config.log if it exists.
29781
29782debug=false
29783ac_cs_recheck=false
29784ac_cs_silent=false
29785SHELL=\${CONFIG_SHELL-$SHELL}
29786_ACEOF
29787
29788cat >>$CONFIG_STATUS <<\_ACEOF
29789## --------------------- ##
29790## M4sh Initialization. ##
29791## --------------------- ##
29792
29793# Be more Bourne compatible
29794DUALCASE=1; export DUALCASE # for MKS sh
29795if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29796 emulate sh
29797 NULLCMD=:
29798 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29799 # is contrary to our usage. Disable this feature.
29800 alias -g '${1+"$@"}'='"$@"'
29801 setopt NO_GLOB_SUBST
29802else
29803 case `(set -o) 2>/dev/null` in
29804 *posix*) set -o posix ;;
29805esac
29806
29807fi
29808
29809
29810
29811
29812# PATH needs CR
29813# Avoid depending upon Character Ranges.
29814as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29815as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29816as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29817as_cr_digits='0123456789'
29818as_cr_alnum=$as_cr_Letters$as_cr_digits
29819
29820# The user is always right.
29821if test "${PATH_SEPARATOR+set}" != set; then
29822 echo "#! /bin/sh" >conf$$.sh
29823 echo "exit 0" >>conf$$.sh
29824 chmod +x conf$$.sh
29825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29826 PATH_SEPARATOR=';'
29827 else
29828 PATH_SEPARATOR=:
29829 fi
29830 rm -f conf$$.sh
29831fi
29832
29833# Support unset when possible.
29834if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29835 as_unset=unset
29836else
29837 as_unset=false
29838fi
29839
29840
29841# IFS
29842# We need space, tab and new line, in precisely that order. Quoting is
29843# there to prevent editors from complaining about space-tab.
29844# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29845# splitting by setting IFS to empty value.)
29846as_nl='
29847'
29848IFS=" "" $as_nl"
29849
29850# Find who we are. Look in the path if we contain no directory separator.
29851case $0 in
29852 *[\\/]* ) as_myself=$0 ;;
29853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29854for as_dir in $PATH
29855do
29856 IFS=$as_save_IFS
29857 test -z "$as_dir" && as_dir=.
29858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29859done
29860IFS=$as_save_IFS
29861
29862 ;;
29863esac
29864# We did not find ourselves, most probably we were run as `sh COMMAND'
29865# in which case we are not to be found in the path.
29866if test "x$as_myself" = x; then
29867 as_myself=$0
29868fi
29869if test ! -f "$as_myself"; then
29870 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29871 { (exit 1); exit 1; }
29872fi
29873
29874# Work around bugs in pre-3.0 UWIN ksh.
29875for as_var in ENV MAIL MAILPATH
29876do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29877done
29878PS1='$ '
29879PS2='> '
29880PS4='+ '
29881
29882# NLS nuisances.
29883for as_var in \
29884 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29885 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29886 LC_TELEPHONE LC_TIME
29887do
29888 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29889 eval $as_var=C; export $as_var
29890 else
29891 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29892 fi
29893done
29894
29895# Required to use basename.
29896if expr a : '\(a\)' >/dev/null 2>&1 &&
29897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29898 as_expr=expr
29899else
29900 as_expr=false
29901fi
29902
29903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29904 as_basename=basename
29905else
29906 as_basename=false
29907fi
29908
29909
29910# Name of the executable.
29911as_me=`$as_basename -- "$0" ||
29912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29913 X"$0" : 'X\(//\)$' \| \
29914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29915echo X/"$0" |
29916 sed '/^.*\/\([^/][^/]*\)\/*$/{
29917 s//\1/
29918 q
29919 }
29920 /^X\/\(\/\/\)$/{
29921 s//\1/
29922 q
29923 }
29924 /^X\/\(\/\).*/{
29925 s//\1/
29926 q
29927 }
29928 s/.*/./; q'`
29929
29930# CDPATH.
29931$as_unset CDPATH
29932
29933
29934
29935 as_lineno_1=$LINENO
29936 as_lineno_2=$LINENO
29937 test "x$as_lineno_1" != "x$as_lineno_2" &&
29938 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29939
29940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29941 # uniformly replaced by the line number. The first 'sed' inserts a
29942 # line-number line after each line using $LINENO; the second 'sed'
29943 # does the real work. The second script uses 'N' to pair each
29944 # line-number line with the line containing $LINENO, and appends
29945 # trailing '-' during substitution so that $LINENO is not a special
29946 # case at line end.
29947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29948 # scripts with optimization help from Paolo Bonzini. Blame Lee
29949 # E. McMahon (1931-1989) for sed's syntax. :-)
29950 sed -n '
29951 p
29952 /[$]LINENO/=
29953 ' <$as_myself |
29954 sed '
29955 s/[$]LINENO.*/&-/
29956 t lineno
29957 b
29958 :lineno
29959 N
29960 :loop
29961 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29962 t loop
29963 s/-\n.*//
29964 ' >$as_me.lineno &&
29965 chmod +x "$as_me.lineno" ||
29966 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29967 { (exit 1); exit 1; }; }
29968
29969 # Don't try to exec as it changes $[0], causing all sort of problems
29970 # (the dirname of $[0] is not the place where we might find the
29971 # original and so on. Autoconf is especially sensitive to this).
29972 . "./$as_me.lineno"
29973 # Exit status is that of the last command.
29974 exit
29975}
29976
29977
29978if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29979 as_dirname=dirname
29980else
29981 as_dirname=false
29982fi
29983
29984ECHO_C= ECHO_N= ECHO_T=
29985case `echo -n x` in
29986-n*)
29987 case `echo 'x\c'` in
29988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29989 *) ECHO_C='\c';;
29990 esac;;
29991*)
29992 ECHO_N='-n';;
29993esac
29994
29995if expr a : '\(a\)' >/dev/null 2>&1 &&
29996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29997 as_expr=expr
29998else
29999 as_expr=false
30000fi
30001
30002rm -f conf$$ conf$$.exe conf$$.file
30003if test -d conf$$.dir; then
30004 rm -f conf$$.dir/conf$$.file
30005else
30006 rm -f conf$$.dir
30007 mkdir conf$$.dir
30008fi
30009echo >conf$$.file
30010if ln -s conf$$.file conf$$ 2>/dev/null; then
30011 as_ln_s='ln -s'
30012 # ... but there are two gotchas:
30013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30015 # In both cases, we have to default to `cp -p'.
30016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30017 as_ln_s='cp -p'
30018elif ln conf$$.file conf$$ 2>/dev/null; then
30019 as_ln_s=ln
30020else
30021 as_ln_s='cp -p'
30022fi
30023rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30024rmdir conf$$.dir 2>/dev/null
30025
30026if mkdir -p . 2>/dev/null; then
30027 as_mkdir_p=:
30028else
30029 test -d ./-p && rmdir ./-p
30030 as_mkdir_p=false
30031fi
30032
30033if test -x / >/dev/null 2>&1; then
30034 as_test_x='test -x'
30035else
30036 if ls -dL / >/dev/null 2>&1; then
30037 as_ls_L_option=L
30038 else
30039 as_ls_L_option=
30040 fi
30041 as_test_x='
30042 eval sh -c '\''
30043 if test -d "$1"; then
30044 test -d "$1/.";
30045 else
30046 case $1 in
30047 -*)set "./$1";;
30048 esac;
30049 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30050 ???[sx]*):;;*)false;;esac;fi
30051 '\'' sh
30052 '
30053fi
30054as_executable_p=$as_test_x
30055
30056# Sed expression to map a string onto a valid CPP name.
30057as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30058
30059# Sed expression to map a string onto a valid variable name.
30060as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30061
30062
30063exec 6>&1
30064
30065# Save the log message, to keep $[0] and so on meaningful, and to
30066# report actual input values of CONFIG_FILES etc. instead of their
30067# values after options handling.
30068ac_log="
30069This file was extended by OpenSSH $as_me Portable, which was
30070generated by GNU Autoconf 2.61. Invocation command line was
30071
30072 CONFIG_FILES = $CONFIG_FILES
30073 CONFIG_HEADERS = $CONFIG_HEADERS
30074 CONFIG_LINKS = $CONFIG_LINKS
30075 CONFIG_COMMANDS = $CONFIG_COMMANDS
30076 $ $0 $@
30077
30078on `(hostname || uname -n) 2>/dev/null | sed 1q`
30079"
30080
30081_ACEOF
30082
30083cat >>$CONFIG_STATUS <<_ACEOF
30084# Files that config.status was made for.
30085config_files="$ac_config_files"
30086config_headers="$ac_config_headers"
30087
30088_ACEOF
30089
30090cat >>$CONFIG_STATUS <<\_ACEOF
30091ac_cs_usage="\
30092\`$as_me' instantiates files from templates according to the
30093current configuration.
30094
30095Usage: $0 [OPTIONS] [FILE]...
30096
30097 -h, --help print this help, then exit
30098 -V, --version print version number and configuration settings, then exit
30099 -q, --quiet do not print progress messages
30100 -d, --debug don't remove temporary files
30101 --recheck update $as_me by reconfiguring in the same conditions
30102 --file=FILE[:TEMPLATE]
30103 instantiate the configuration file FILE
30104 --header=FILE[:TEMPLATE]
30105 instantiate the configuration header FILE
30106
30107Configuration files:
30108$config_files
30109
30110Configuration headers:
30111$config_headers
30112
30113Report bugs to <bug-autoconf@gnu.org>."
30114
30115_ACEOF
30116cat >>$CONFIG_STATUS <<_ACEOF
30117ac_cs_version="\\
30118OpenSSH config.status Portable
30119configured by $0, generated by GNU Autoconf 2.61,
30120 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30121
30122Copyright (C) 2006 Free Software Foundation, Inc.
30123This config.status script is free software; the Free Software Foundation
30124gives unlimited permission to copy, distribute and modify it."
30125
30126ac_pwd='$ac_pwd'
30127srcdir='$srcdir'
30128INSTALL='$INSTALL'
30129_ACEOF
30130
30131cat >>$CONFIG_STATUS <<\_ACEOF
30132# If no file are specified by the user, then we need to provide default
30133# value. By we need to know if files were specified by the user.
30134ac_need_defaults=:
30135while test $# != 0
30136do
30137 case $1 in
30138 --*=*)
30139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30141 ac_shift=:
30142 ;;
30143 *)
30144 ac_option=$1
30145 ac_optarg=$2
30146 ac_shift=shift
30147 ;;
30148 esac
30149
30150 case $ac_option in
30151 # Handling of the options.
30152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30153 ac_cs_recheck=: ;;
30154 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30155 echo "$ac_cs_version"; exit ;;
30156 --debug | --debu | --deb | --de | --d | -d )
30157 debug=: ;;
30158 --file | --fil | --fi | --f )
30159 $ac_shift
30160 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30161 ac_need_defaults=false;;
30162 --header | --heade | --head | --hea )
30163 $ac_shift
30164 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30165 ac_need_defaults=false;;
30166 --he | --h)
30167 # Conflict between --help and --header
30168 { echo "$as_me: error: ambiguous option: $1
30169Try \`$0 --help' for more information." >&2
30170 { (exit 1); exit 1; }; };;
30171 --help | --hel | -h )
30172 echo "$ac_cs_usage"; exit ;;
30173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30174 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30175 ac_cs_silent=: ;;
30176
30177 # This is an error.
30178 -*) { echo "$as_me: error: unrecognized option: $1
30179Try \`$0 --help' for more information." >&2
30180 { (exit 1); exit 1; }; } ;;
30181
30182 *) ac_config_targets="$ac_config_targets $1"
30183 ac_need_defaults=false ;;
30184
30185 esac
30186 shift
30187done
30188
30189ac_configure_extra_args=
30190
30191if $ac_cs_silent; then
30192 exec 6>/dev/null
30193 ac_configure_extra_args="$ac_configure_extra_args --silent"
30194fi
30195
30196_ACEOF
30197cat >>$CONFIG_STATUS <<_ACEOF
30198if \$ac_cs_recheck; then
30199 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30200 CONFIG_SHELL=$SHELL
30201 export CONFIG_SHELL
30202 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30203fi
30204
30205_ACEOF
30206cat >>$CONFIG_STATUS <<\_ACEOF
30207exec 5>>config.log
30208{
30209 echo
30210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30211## Running $as_me. ##
30212_ASBOX
30213 echo "$ac_log"
30214} >&5
30215
30216_ACEOF
30217cat >>$CONFIG_STATUS <<_ACEOF
30218_ACEOF
30219
30220cat >>$CONFIG_STATUS <<\_ACEOF
30221
30222# Handling of arguments.
30223for ac_config_target in $ac_config_targets
30224do
30225 case $ac_config_target in
30226 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30227 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30228 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
30229 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
30230 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
30231 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
30232 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
30233 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
30234 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
30235
30236 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30237echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30238 { (exit 1); exit 1; }; };;
30239 esac
30240done
30241
30242
30243# If the user did not use the arguments to specify the items to instantiate,
30244# then the envvar interface is used. Set only those that are not.
30245# We use the long form for the default assignment because of an extremely
30246# bizarre bug on SunOS 4.1.3.
30247if $ac_need_defaults; then
30248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30250fi
30251
30252# Have a temporary directory for convenience. Make it in the build tree
30253# simply because there is no reason against having it here, and in addition,
30254# creating and moving files from /tmp can sometimes cause problems.
30255# Hook for its removal unless debugging.
30256# Note that there is a small window in which the directory will not be cleaned:
30257# after its creation but before its name has been assigned to `$tmp'.
30258$debug ||
30259{
30260 tmp=
30261 trap 'exit_status=$?
30262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30263' 0
30264 trap '{ (exit 1); exit 1; }' 1 2 13 15
30265}
30266# Create a (secure) tmp directory for tmp files.
30267
30268{
30269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30270 test -n "$tmp" && test -d "$tmp"
30271} ||
30272{
30273 tmp=./conf$$-$RANDOM
30274 (umask 077 && mkdir "$tmp")
30275} ||
30276{
30277 echo "$me: cannot create a temporary directory in ." >&2
30278 { (exit 1); exit 1; }
30279}
30280
30281#
30282# Set up the sed scripts for CONFIG_FILES section.
30283#
30284
30285# No need to generate the scripts if there are no CONFIG_FILES.
30286# This happens for instance when ./config.status config.h
30287if test -n "$CONFIG_FILES"; then
30288
30289_ACEOF
30290
30291
30292
30293ac_delim='%!_!# '
30294for ac_last_try in false false false false false :; do
30295 cat >conf$$subs.sed <<_ACEOF
30296SHELL!$SHELL$ac_delim
30297PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30298PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30299PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30300PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30301PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30302PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30303exec_prefix!$exec_prefix$ac_delim
30304prefix!$prefix$ac_delim
30305program_transform_name!$program_transform_name$ac_delim
30306bindir!$bindir$ac_delim
30307sbindir!$sbindir$ac_delim
30308libexecdir!$libexecdir$ac_delim
30309datarootdir!$datarootdir$ac_delim
30310datadir!$datadir$ac_delim
30311sysconfdir!$sysconfdir$ac_delim
30312sharedstatedir!$sharedstatedir$ac_delim
30313localstatedir!$localstatedir$ac_delim
30314includedir!$includedir$ac_delim
30315oldincludedir!$oldincludedir$ac_delim
30316docdir!$docdir$ac_delim
30317infodir!$infodir$ac_delim
30318htmldir!$htmldir$ac_delim
30319dvidir!$dvidir$ac_delim
30320pdfdir!$pdfdir$ac_delim
30321psdir!$psdir$ac_delim
30322libdir!$libdir$ac_delim
30323localedir!$localedir$ac_delim
30324mandir!$mandir$ac_delim
30325DEFS!$DEFS$ac_delim
30326ECHO_C!$ECHO_C$ac_delim
30327ECHO_N!$ECHO_N$ac_delim
30328ECHO_T!$ECHO_T$ac_delim
30329LIBS!$LIBS$ac_delim
30330build_alias!$build_alias$ac_delim
30331host_alias!$host_alias$ac_delim
30332target_alias!$target_alias$ac_delim
30333CC!$CC$ac_delim
30334CFLAGS!$CFLAGS$ac_delim
30335LDFLAGS!$LDFLAGS$ac_delim
30336CPPFLAGS!$CPPFLAGS$ac_delim
30337ac_ct_CC!$ac_ct_CC$ac_delim
30338EXEEXT!$EXEEXT$ac_delim
30339OBJEXT!$OBJEXT$ac_delim
30340build!$build$ac_delim
30341build_cpu!$build_cpu$ac_delim
30342build_vendor!$build_vendor$ac_delim
30343build_os!$build_os$ac_delim
30344host!$host$ac_delim
30345host_cpu!$host_cpu$ac_delim
30346host_vendor!$host_vendor$ac_delim
30347host_os!$host_os$ac_delim
30348CPP!$CPP$ac_delim
30349GREP!$GREP$ac_delim
30350EGREP!$EGREP$ac_delim
30351AWK!$AWK$ac_delim
30352RANLIB!$RANLIB$ac_delim
30353INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30354INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30355INSTALL_DATA!$INSTALL_DATA$ac_delim
30356AR!$AR$ac_delim
30357CAT!$CAT$ac_delim
30358KILL!$KILL$ac_delim
30359PERL!$PERL$ac_delim
30360SED!$SED$ac_delim
30361ENT!$ENT$ac_delim
30362TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
30363SH!$SH$ac_delim
30364TEST_SHELL!$TEST_SHELL$ac_delim
30365PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
30366PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
30367MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
30368STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
30369LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
30370PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
30371LD!$LD$ac_delim
30372SSHDLIBS!$SSHDLIBS$ac_delim
30373PKGCONFIG!$PKGCONFIG$ac_delim
30374LIBEDIT!$LIBEDIT$ac_delim
30375INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
30376SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
30377PROG_LS!$PROG_LS$ac_delim
30378PROG_NETSTAT!$PROG_NETSTAT$ac_delim
30379PROG_ARP!$PROG_ARP$ac_delim
30380PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
30381PROG_JSTAT!$PROG_JSTAT$ac_delim
30382PROG_PS!$PROG_PS$ac_delim
30383PROG_SAR!$PROG_SAR$ac_delim
30384PROG_W!$PROG_W$ac_delim
30385PROG_WHO!$PROG_WHO$ac_delim
30386PROG_LAST!$PROG_LAST$ac_delim
30387PROG_LASTLOG!$PROG_LASTLOG$ac_delim
30388PROG_DF!$PROG_DF$ac_delim
30389PROG_VMSTAT!$PROG_VMSTAT$ac_delim
30390PROG_UPTIME!$PROG_UPTIME$ac_delim
30391PROG_IPCS!$PROG_IPCS$ac_delim
30392PROG_TAIL!$PROG_TAIL$ac_delim
30393_ACEOF
30394
30395 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30396 break
30397 elif $ac_last_try; then
30398 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30399echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30400 { (exit 1); exit 1; }; }
30401 else
30402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30403 fi
30404done
30405
30406ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30407if test -n "$ac_eof"; then
30408 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30409 ac_eof=`expr $ac_eof + 1`
30410fi
30411
30412cat >>$CONFIG_STATUS <<_ACEOF
30413cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30414/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30415_ACEOF
30416sed '
30417s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30418s/^/s,@/; s/!/@,|#_!!_#|/
30419:n
30420t n
30421s/'"$ac_delim"'$/,g/; t
30422s/$/\\/; p
30423N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30424' >>$CONFIG_STATUS <conf$$subs.sed
30425rm -f conf$$subs.sed
30426cat >>$CONFIG_STATUS <<_ACEOF
30427CEOF$ac_eof
30428_ACEOF
30429
30430
30431ac_delim='%!_!# '
30432for ac_last_try in false false false false false :; do
30433 cat >conf$$subs.sed <<_ACEOF
30434INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
30435KRB5CONF!$KRB5CONF$ac_delim
30436PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
30437xauth_path!$xauth_path$ac_delim
30438STRIP_OPT!$STRIP_OPT$ac_delim
30439XAUTH_PATH!$XAUTH_PATH$ac_delim
30440NROFF!$NROFF$ac_delim
30441MANTYPE!$MANTYPE$ac_delim
30442mansubdir!$mansubdir$ac_delim
30443user_path!$user_path$ac_delim
30444piddir!$piddir$ac_delim
30445TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
30446LIBOBJS!$LIBOBJS$ac_delim
30447LTLIBOBJS!$LTLIBOBJS$ac_delim
30448_ACEOF
30449
30450 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
30451 break
30452 elif $ac_last_try; then
30453 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30454echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30455 { (exit 1); exit 1; }; }
30456 else
30457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30458 fi
30459done
30460
30461ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30462if test -n "$ac_eof"; then
30463 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30464 ac_eof=`expr $ac_eof + 1`
30465fi
30466
30467cat >>$CONFIG_STATUS <<_ACEOF
30468cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30469/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30470_ACEOF
30471sed '
30472s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30473s/^/s,@/; s/!/@,|#_!!_#|/
30474:n
30475t n
30476s/'"$ac_delim"'$/,g/; t
30477s/$/\\/; p
30478N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30479' >>$CONFIG_STATUS <conf$$subs.sed
30480rm -f conf$$subs.sed
30481cat >>$CONFIG_STATUS <<_ACEOF
30482:end
30483s/|#_!!_#|//g
30484CEOF$ac_eof
30485_ACEOF
30486
30487
30488# VPATH may cause trouble with some makes, so we remove $(srcdir),
30489# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30490# trailing colons and then remove the whole line if VPATH becomes empty
30491# (actually we leave an empty line to preserve line numbers).
30492if test "x$srcdir" = x.; then
30493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30494s/:*\$(srcdir):*/:/
30495s/:*\${srcdir}:*/:/
30496s/:*@srcdir@:*/:/
30497s/^\([^=]*=[ ]*\):*/\1/
30498s/:*$//
30499s/^[^=]*=[ ]*$//
30500}'
30501fi
30502
30503cat >>$CONFIG_STATUS <<\_ACEOF
30504fi # test -n "$CONFIG_FILES"
30505
30506
30507for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
30508do
30509 case $ac_tag in
30510 :[FHLC]) ac_mode=$ac_tag; continue;;
30511 esac
30512 case $ac_mode$ac_tag in
30513 :[FHL]*:*);;
30514 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30515echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30516 { (exit 1); exit 1; }; };;
30517 :[FH]-) ac_tag=-:-;;
30518 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30519 esac
30520 ac_save_IFS=$IFS
30521 IFS=:
30522 set x $ac_tag
30523 IFS=$ac_save_IFS
30524 shift
30525 ac_file=$1
30526 shift
30527
30528 case $ac_mode in
30529 :L) ac_source=$1;;
30530 :[FH])
30531 ac_file_inputs=
30532 for ac_f
30533 do
30534 case $ac_f in
30535 -) ac_f="$tmp/stdin";;
30536 *) # Look for the file first in the build tree, then in the source tree
30537 # (if the path is not absolute). The absolute path cannot be DOS-style,
30538 # because $ac_f cannot contain `:'.
30539 test -f "$ac_f" ||
30540 case $ac_f in
30541 [\\/$]*) false;;
30542 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30543 esac ||
30544 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30545echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30546 { (exit 1); exit 1; }; };;
30547 esac
30548 ac_file_inputs="$ac_file_inputs $ac_f"
30549 done
30550
30551 # Let's still pretend it is `configure' which instantiates (i.e., don't
30552 # use $as_me), people would be surprised to read:
30553 # /* config.h. Generated by config.status. */
30554 configure_input="Generated from "`IFS=:
30555 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30556 if test x"$ac_file" != x-; then
30557 configure_input="$ac_file. $configure_input"
30558 { echo "$as_me:$LINENO: creating $ac_file" >&5
30559echo "$as_me: creating $ac_file" >&6;}
30560 fi
30561
30562 case $ac_tag in
30563 *:-:* | *:-) cat >"$tmp/stdin";;
30564 esac
30565 ;;
30566 esac
30567
30568 ac_dir=`$as_dirname -- "$ac_file" ||
30569$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30570 X"$ac_file" : 'X\(//\)[^/]' \| \
30571 X"$ac_file" : 'X\(//\)$' \| \
30572 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30573echo X"$ac_file" |
30574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30575 s//\1/
30576 q
30577 }
30578 /^X\(\/\/\)[^/].*/{
30579 s//\1/
30580 q
30581 }
30582 /^X\(\/\/\)$/{
30583 s//\1/
30584 q
30585 }
30586 /^X\(\/\).*/{
30587 s//\1/
30588 q
30589 }
30590 s/.*/./; q'`
30591 { as_dir="$ac_dir"
30592 case $as_dir in #(
30593 -*) as_dir=./$as_dir;;
30594 esac
30595 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30596 as_dirs=
30597 while :; do
30598 case $as_dir in #(
30599 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30600 *) as_qdir=$as_dir;;
30601 esac
30602 as_dirs="'$as_qdir' $as_dirs"
30603 as_dir=`$as_dirname -- "$as_dir" ||
30604$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30605 X"$as_dir" : 'X\(//\)[^/]' \| \
30606 X"$as_dir" : 'X\(//\)$' \| \
30607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30608echo X"$as_dir" |
30609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30610 s//\1/
30611 q
30612 }
30613 /^X\(\/\/\)[^/].*/{
30614 s//\1/
30615 q
30616 }
30617 /^X\(\/\/\)$/{
30618 s//\1/
30619 q
30620 }
30621 /^X\(\/\).*/{
30622 s//\1/
30623 q
30624 }
30625 s/.*/./; q'`
30626 test -d "$as_dir" && break
30627 done
30628 test -z "$as_dirs" || eval "mkdir $as_dirs"
30629 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30630echo "$as_me: error: cannot create directory $as_dir" >&2;}
30631 { (exit 1); exit 1; }; }; }
30632 ac_builddir=.
30633
30634case "$ac_dir" in
30635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30636*)
30637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30638 # A ".." for each directory in $ac_dir_suffix.
30639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30640 case $ac_top_builddir_sub in
30641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30643 esac ;;
30644esac
30645ac_abs_top_builddir=$ac_pwd
30646ac_abs_builddir=$ac_pwd$ac_dir_suffix
30647# for backward compatibility:
30648ac_top_builddir=$ac_top_build_prefix
30649
30650case $srcdir in
30651 .) # We are building in place.
30652 ac_srcdir=.
30653 ac_top_srcdir=$ac_top_builddir_sub
30654 ac_abs_top_srcdir=$ac_pwd ;;
30655 [\\/]* | ?:[\\/]* ) # Absolute name.
30656 ac_srcdir=$srcdir$ac_dir_suffix;
30657 ac_top_srcdir=$srcdir
30658 ac_abs_top_srcdir=$srcdir ;;
30659 *) # Relative name.
30660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30661 ac_top_srcdir=$ac_top_build_prefix$srcdir
30662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30663esac
30664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30665
30666
30667 case $ac_mode in
30668 :F)
30669 #
30670 # CONFIG_FILE
30671 #
30672
30673 case $INSTALL in
30674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30676 esac
30677_ACEOF
30678
30679cat >>$CONFIG_STATUS <<\_ACEOF
30680# If the template does not know about datarootdir, expand it.
30681# FIXME: This hack should be removed a few years after 2.60.
30682ac_datarootdir_hack=; ac_datarootdir_seen=
30683
30684case `sed -n '/datarootdir/ {
30685 p
30686 q
30687}
30688/@datadir@/p
30689/@docdir@/p
30690/@infodir@/p
30691/@localedir@/p
30692/@mandir@/p
30693' $ac_file_inputs` in
30694*datarootdir*) ac_datarootdir_seen=yes;;
30695*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30696 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30697echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30698_ACEOF
30699cat >>$CONFIG_STATUS <<_ACEOF
30700 ac_datarootdir_hack='
30701 s&@datadir@&$datadir&g
30702 s&@docdir@&$docdir&g
30703 s&@infodir@&$infodir&g
30704 s&@localedir@&$localedir&g
30705 s&@mandir@&$mandir&g
30706 s&\\\${datarootdir}&$datarootdir&g' ;;
30707esac
30708_ACEOF
30709
30710# Neutralize VPATH when `$srcdir' = `.'.
30711# Shell code in configure.ac might set extrasub.
30712# FIXME: do we really want to maintain this feature?
30713cat >>$CONFIG_STATUS <<_ACEOF
30714 sed "$ac_vpsub
30715$extrasub
30716_ACEOF
30717cat >>$CONFIG_STATUS <<\_ACEOF
30718:t
30719/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30720s&@configure_input@&$configure_input&;t t
30721s&@top_builddir@&$ac_top_builddir_sub&;t t
30722s&@srcdir@&$ac_srcdir&;t t
30723s&@abs_srcdir@&$ac_abs_srcdir&;t t
30724s&@top_srcdir@&$ac_top_srcdir&;t t
30725s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30726s&@builddir@&$ac_builddir&;t t
30727s&@abs_builddir@&$ac_abs_builddir&;t t
30728s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30729s&@INSTALL@&$ac_INSTALL&;t t
30730$ac_datarootdir_hack
30731" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30732
30733test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30734 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30735 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30736 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30737which seems to be undefined. Please make sure it is defined." >&5
30738echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30739which seems to be undefined. Please make sure it is defined." >&2;}
30740
30741 rm -f "$tmp/stdin"
30742 case $ac_file in
30743 -) cat "$tmp/out"; rm -f "$tmp/out";;
30744 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30745 esac
30746 ;;
30747 :H)
30748 #
30749 # CONFIG_HEADER
30750 #
30751_ACEOF
30752
30753# Transform confdefs.h into a sed script `conftest.defines', that
30754# substitutes the proper values into config.h.in to produce config.h.
30755rm -f conftest.defines conftest.tail
30756# First, append a space to every undef/define line, to ease matching.
30757echo 's/$/ /' >conftest.defines
30758# Then, protect against being on the right side of a sed subst, or in
30759# an unquoted here document, in config.status. If some macros were
30760# called several times there might be several #defines for the same
30761# symbol, which is useless. But do not sort them, since the last
30762# AC_DEFINE must be honored.
30763ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30764# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30765# NAME is the cpp macro being defined, VALUE is the value it is being given.
30766# PARAMS is the parameter list in the macro definition--in most cases, it's
30767# just an empty string.
30768ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30769ac_dB='\\)[ (].*,\\1define\\2'
30770ac_dC=' '
30771ac_dD=' ,'
30772
30773uniq confdefs.h |
30774 sed -n '
30775 t rset
30776 :rset
30777 s/^[ ]*#[ ]*define[ ][ ]*//
30778 t ok
30779 d
30780 :ok
30781 s/[\\&,]/\\&/g
30782 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30783 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30784 ' >>conftest.defines
30785
30786# Remove the space that was appended to ease matching.
30787# Then replace #undef with comments. This is necessary, for
30788# example, in the case of _POSIX_SOURCE, which is predefined and required
30789# on some systems where configure will not decide to define it.
30790# (The regexp can be short, since the line contains either #define or #undef.)
30791echo 's/ $//
30792s,^[ #]*u.*,/* & */,' >>conftest.defines
30793
30794# Break up conftest.defines:
30795ac_max_sed_lines=50
30796
30797# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30798# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30799# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30800# et cetera.
30801ac_in='$ac_file_inputs'
30802ac_out='"$tmp/out1"'
30803ac_nxt='"$tmp/out2"'
30804
30805while :
30806do
30807 # Write a here document:
30808 cat >>$CONFIG_STATUS <<_ACEOF
30809 # First, check the format of the line:
30810 cat >"\$tmp/defines.sed" <<\\CEOF
30811/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30812/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30813b
30814:def
30815_ACEOF
30816 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30817 echo 'CEOF
30818 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30819 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30820 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30821 grep . conftest.tail >/dev/null || break
30822 rm -f conftest.defines
30823 mv conftest.tail conftest.defines
30824done
30825rm -f conftest.defines conftest.tail
30826
30827echo "ac_result=$ac_in" >>$CONFIG_STATUS
30828cat >>$CONFIG_STATUS <<\_ACEOF
30829 if test x"$ac_file" != x-; then
30830 echo "/* $configure_input */" >"$tmp/config.h"
30831 cat "$ac_result" >>"$tmp/config.h"
30832 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30833 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30834echo "$as_me: $ac_file is unchanged" >&6;}
30835 else
30836 rm -f $ac_file
30837 mv "$tmp/config.h" $ac_file
30838 fi
30839 else
30840 echo "/* $configure_input */"
30841 cat "$ac_result"
30842 fi
30843 rm -f "$tmp/out12"
30844 ;;
30845
30846
30847 esac
30848
30849done # for ac_tag
30850
30851
30852{ (exit 0); exit 0; }
30853_ACEOF
30854chmod +x $CONFIG_STATUS
30855ac_clean_files=$ac_clean_files_save
30856
30857
30858# configure is writing to config.log, and then calls config.status.
30859# config.status does its own redirection, appending to config.log.
30860# Unfortunately, on DOS this fails, as config.log is still kept open
30861# by configure, so config.status won't be able to write to it; its
30862# output is simply discarded. So we exec the FD to /dev/null,
30863# effectively closing config.log, so it can be properly (re)opened and
30864# appended to by config.status. When coming back to configure, we
30865# need to make the FD available again.
30866if test "$no_create" != yes; then
30867 ac_cs_success=:
30868 ac_config_status_args=
30869 test "$silent" = yes &&
30870 ac_config_status_args="$ac_config_status_args --quiet"
30871 exec 5>/dev/null
30872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30873 exec 5>>config.log
30874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30875 # would make configure fail if this is the last instruction.
30876 $ac_cs_success || { (exit 1); exit 1; }
30877fi
30878
30879
30880# Print summary of options
30881
30882# Someone please show me a better way :)
30883A=`eval echo ${prefix}` ; A=`eval echo ${A}`
30884B=`eval echo ${bindir}` ; B=`eval echo ${B}`
30885C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
30886D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
30887E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
30888F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
30889G=`eval echo ${piddir}` ; G=`eval echo ${G}`
30890H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
30891I=`eval echo ${user_path}` ; I=`eval echo ${I}`
30892J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
30893
30894echo ""
30895echo "OpenSSH has been configured with the following options:"
30896echo " User binaries: $B"
30897echo " System binaries: $C"
30898echo " Configuration files: $D"
30899echo " Askpass program: $E"
30900echo " Manual pages: $F"
30901echo " PID file: $G"
30902echo " Privilege separation chroot path: $H"
30903if test "x$external_path_file" = "x/etc/login.conf" ; then
30904echo " At runtime, sshd will use the path defined in $external_path_file"
30905echo " Make sure the path to scp is present, otherwise scp will not work"
30906else
30907echo " sshd default user PATH: $I"
30908 if test ! -z "$external_path_file"; then
30909echo " (If PATH is set in $external_path_file it will be used instead. If"
30910echo " used, ensure the path to scp is present, otherwise scp will not work.)"
30911 fi
30912fi
30913if test ! -z "$superuser_path" ; then
30914echo " sshd superuser user PATH: $J"
30915fi
30916echo " Manpage format: $MANTYPE"
30917echo " PAM support: $PAM_MSG"
30918echo " OSF SIA support: $SIA_MSG"
30919echo " KerberosV support: $KRB5_MSG"
30920echo " SELinux support: $SELINUX_MSG"
30921echo " Smartcard support: $SCARD_MSG"
30922echo " S/KEY support: $SKEY_MSG"
30923echo " TCP Wrappers support: $TCPW_MSG"
30924echo " MD5 password support: $MD5_MSG"
30925echo " libedit support: $LIBEDIT_MSG"
30926echo " Solaris process contract support: $SPC_MSG"
30927echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
30928echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
30929echo " BSD Auth support: $BSD_AUTH_MSG"
30930echo " Random number source: $RAND_MSG"
30931if test ! -z "$USE_RAND_HELPER" ; then
30932echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
30933fi
30934
30935echo ""
30936
30937echo " Host: ${host}"
30938echo " Compiler: ${CC}"
30939echo " Compiler flags: ${CFLAGS}"
30940echo "Preprocessor flags: ${CPPFLAGS}"
30941echo " Linker flags: ${LDFLAGS}"
30942echo " Libraries: ${LIBS}"
30943if test ! -z "${SSHDLIBS}"; then
30944echo " +for sshd: ${SSHDLIBS}"
30945fi
30946
30947echo ""
30948
30949if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
30950 echo "SVR4 style packages are supported with \"make package\""
30951 echo ""
30952fi
30953
30954if test "x$PAM_MSG" = "xyes" ; then
30955 echo "PAM is enabled. You may need to install a PAM control file "
30956 echo "for sshd, otherwise password authentication may fail. "
30957 echo "Example PAM control files can be found in the contrib/ "
30958 echo "subdirectory"
30959 echo ""
30960fi
30961
30962if test ! -z "$RAND_HELPER_CMDHASH" ; then
30963 echo "WARNING: you are using the builtin random number collection "
30964 echo "service. Please read WARNING.RNG and request that your OS "
30965 echo "vendor includes kernel-based random number collection in "
30966 echo "future versions of your OS."
30967 echo ""
30968fi
30969
30970if test ! -z "$NO_PEERCHECK" ; then
30971 echo "WARNING: the operating system that you are using does not"
30972 echo "appear to support getpeereid(), getpeerucred() or the"
30973 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
30974 echo "enforce security checks to prevent unauthorised connections to"
30975 echo "ssh-agent. Their absence increases the risk that a malicious"
30976 echo "user can connect to your agent."
30977 echo ""
30978fi
30979
30980if test "$AUDIT_MODULE" = "bsm" ; then
30981 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
30982 echo "See the Solaris section in README.platform for details."
30983fi