summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-07-22 14:59:59 +0000
committerColin Watson <cjwatson@debian.org>2008-07-22 14:59:59 +0000
commitef94e5613d37bcbf880f21ee6094e4b1c7683a4c (patch)
treeeebe1697910d248823033b5d14354c7f5ee8b471 /configure
parent8f42e9b75a55401fa9dfdf14d49fbe5396c6ce92 (diff)
parent70847d299887abb96f8703ca99db6d817b78960e (diff)
Import OpenSSH 5.1p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30197
1 files changed, 30197 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..19cc20c84
--- /dev/null
+++ b/configure
@@ -0,0 +1,30197 @@
1#! /bin/sh
2# From configure.ac Revision: 1.409 .
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
696LIBEDIT
697INSTALL_SSH_RAND_HELPER
698SSH_PRIVSEP_USER
699PROG_LS
700PROG_NETSTAT
701PROG_ARP
702PROG_IFCONFIG
703PROG_JSTAT
704PROG_PS
705PROG_SAR
706PROG_W
707PROG_WHO
708PROG_LAST
709PROG_LASTLOG
710PROG_DF
711PROG_VMSTAT
712PROG_UPTIME
713PROG_IPCS
714PROG_TAIL
715INSTALL_SSH_PRNG_CMDS
716OPENSC_CONFIG
717PRIVSEP_PATH
718xauth_path
719STRIP_OPT
720XAUTH_PATH
721NROFF
722MANTYPE
723mansubdir
724user_path
725piddir
726TEST_SSH_IPV6
727LIBOBJS
728LTLIBOBJS'
729ac_subst_files=''
730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
736LIBS
737CPPFLAGS
738CPP'
739
740
741# Initialize some variables set by options.
742ac_init_help=
743ac_init_version=false
744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
766# (The list follows the same order as the GNU Coding Standards.)
767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
775includedir='${prefix}/include'
776oldincludedir='/usr/include'
777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
786
787ac_prev=
788ac_dashdash=
789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116done
1117
1118if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122fi
1123
1124# Be sure to have absolute directory names.
1125for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137done
1138
1139# There might be people who depend on the old broken behavior: `$host'
1140# used to hold the argument of --host etc.
1141# FIXME: To remove some day.
1142build=$build_alias
1143host=$host_alias
1144target=$target_alias
1145
1146# FIXME: To remove some day.
1147if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155fi
1156
1157ac_tool_prefix=
1158test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160test "$silent" = yes && exec 6>/dev/null
1161
1162
1163ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164ac_ls_di=`ls -di .` &&
1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173# Find the source files, if location was not specified.
1174if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204else
1205 ac_srcdir_defaulted=no
1206fi
1207if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211fi
1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217# When building in place, set srcdir=.
1218if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220fi
1221# Remove unnecessary trailing slashes from srcdir.
1222# Double slashes in file names in object file debugging info
1223# mess up M-x gdb in Emacs.
1224case $srcdir in
1225*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226esac
1227for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232done
1233
1234#
1235# Report the --help message.
1236#
1237if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1242
1243Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248Defaults for the options are specified in brackets.
1249
1250Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267By default, \`make install' will install all the files in
1268\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270for instance \`--prefix=\$HOME'.
1271
1272For better control, use the options below.
1273
1274Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294_ACEOF
1295
1296 cat <<\_ACEOF
1297
1298System types:
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301_ACEOF
1302fi
1303
1304if test -n "$ac_init_help"; then
1305 case $ac_init_help in
1306 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1307 esac
1308 cat <<\_ACEOF
1309
1310Optional Features:
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --disable-largefile omit support for large files
1314 --disable-strip Disable calling strip(1) on install
1315 --disable-etc-default-login Disable using PATH from /etc/default/login no
1316 --disable-lastlog disable use of lastlog even if detected no
1317 --disable-utmp disable use of utmp even if detected no
1318 --disable-utmpx disable use of utmpx even if detected no
1319 --disable-wtmp disable use of wtmp even if detected no
1320 --disable-wtmpx disable use of wtmpx even if detected no
1321 --disable-libutil disable use of libutil (login() etc.) no
1322 --disable-pututline disable use of pututline() etc. (uwtmp) no
1323 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1324
1325Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --without-stackprotect Don't use compiler's stack protection
1329 --without-rpath Disable auto-added -R linker paths
1330 --with-cflags Specify additional flags to pass to compiler
1331 --with-cppflags Specify additional flags to pass to preprocessor
1332 --with-ldflags Specify additional flags to pass to linker
1333 --with-libs Specify additional libraries to link with
1334 --with-Werror Build main code with -Werror
1335 --with-solaris-contracts Enable Solaris process contracts (experimental)
1336 --with-osfsia Enable Digital Unix SIA
1337 --with-zlib=PATH Use zlib in PATH
1338 --without-zlib-version-check Disable zlib version check
1339 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1340 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1341 --with-libedit[=PATH] Enable libedit support for sftp
1342 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1343 --with-ssl-dir=PATH Specify path to OpenSSL installation
1344 --without-openssl-header-check Disable OpenSSL version consistency check
1345 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1346 --with-pam Enable PAM support
1347 --with-rand-helper Use subprocess to gather strong randomness
1348 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1349 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1350 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1351 --with-privsep-user=user Specify non-privileged user for privilege separation
1352 --with-sectok Enable smartcard support using libsectok
1353 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1354 --with-selinux Enable SELinux support
1355 --with-kerberos5=PATH Enable Kerberos 5 support
1356 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1357 --with-xauth=PATH Specify path to xauth program
1358 --with-mantype=man|cat|doc Set man page type
1359 --with-md5-passwords Enable use of MD5 passwords
1360 --without-shadow Disable shadow password support
1361 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1362 --with-default-path= Specify default \$PATH environment for server
1363 --with-superuser-path= Specify different path for super-user
1364 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1365 --with-bsd-auth Enable BSD auth support
1366 --with-pid-dir=PATH Specify location of ssh.pid file
1367 --with-lastlog=FILE|DIR specify lastlog location common locations
1368
1369Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378
1379Use these variables to override the choices made by `configure' or to help
1380it to find libraries and programs with nonstandard names/locations.
1381
1382Report bugs to <openssh-unix-dev@mindrot.org>.
1383_ACEOF
1384ac_status=$?
1385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1391 ac_builddir=.
1392
1393case "$ac_dir" in
1394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395*)
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403esac
1404ac_abs_top_builddir=$ac_pwd
1405ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406# for backward compatibility:
1407ac_top_builddir=$ac_top_build_prefix
1408
1409case $srcdir in
1410 .) # We are building in place.
1411 ac_srcdir=.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422esac
1423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1438fi
1439
1440test -n "$ac_init_help" && exit $ac_status
1441if $ac_init_version; then
1442 cat <<\_ACEOF
1443OpenSSH configure Portable
1444generated by GNU Autoconf 2.61
1445
1446Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448This configure script is free software; the Free Software Foundation
1449gives unlimited permission to copy, distribute and modify it.
1450_ACEOF
1451 exit
1452fi
1453cat >config.log <<_ACEOF
1454This file contains any messages produced by compilers while
1455running configure, to aid debugging if configure makes a mistake.
1456
1457It was created by OpenSSH $as_me Portable, which was
1458generated by GNU Autoconf 2.61. Invocation command line was
1459
1460 $ $0 $@
1461
1462_ACEOF
1463exec 5>>config.log
1464{
1465cat <<_ASUNAME
1466## --------- ##
1467## Platform. ##
1468## --------- ##
1469
1470hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1478
1479/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486
1487_ASUNAME
1488
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1495done
1496IFS=$as_save_IFS
1497
1498} >&5
1499
1500cat >&5 <<_ACEOF
1501
1502
1503## ----------- ##
1504## Core tests. ##
1505## ----------- ##
1506
1507_ACEOF
1508
1509
1510# Keep a trace of the command line.
1511# Strip out --no-create and --no-recursion so they do not pile up.
1512# Strip out --silent because we don't want to record it for future runs.
1513# Also quote any args containing shell meta-characters.
1514# Make two passes to allow for proper duplicate-argument suppression.
1515ac_configure_args=
1516ac_configure_args0=
1517ac_configure_args1=
1518ac_must_keep_next=false
1519for ac_pass in 1 2
1520do
1521 for ac_arg
1522 do
1523 case $ac_arg in
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1527 continue ;;
1528 *\'*)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 esac
1531 case $ac_pass in
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1533 2)
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1537 else
1538 case $ac_arg in
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 esac
1546 ;;
1547 -* ) ac_must_keep_next=true ;;
1548 esac
1549 fi
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1551 ;;
1552 esac
1553 done
1554done
1555$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1557
1558# When interrupted or exit'd, cleanup temporary files, and complete
1559# config.log. We remove comments because anyway the quotes in there
1560# would cause problems or look ugly.
1561# WARNING: Use '\'' to represent an apostrophe within the trap.
1562# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1565 {
1566 echo
1567
1568 cat <<\_ASBOX
1569## ---------------- ##
1570## Cache variables. ##
1571## ---------------- ##
1572_ASBOX
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575(
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1587 esac ;;
1588 esac
1589 done
1590 (set) 2>&1 |
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1593 sed -n \
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 ;; #(
1597 *)
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ;;
1600 esac |
1601 sort
1602)
1603 echo
1604
1605 cat <<\_ASBOX
1606## ----------------- ##
1607## Output variables. ##
1608## ----------------- ##
1609_ASBOX
1610 echo
1611 for ac_var in $ac_subst_vars
1612 do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1620
1621 if test -n "$ac_subst_files"; then
1622 cat <<\_ASBOX
1623## ------------------- ##
1624## File substitutions. ##
1625## ------------------- ##
1626_ASBOX
1627 echo
1628 for ac_var in $ac_subst_files
1629 do
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1637 fi
1638
1639 if test -s confdefs.h; then
1640 cat <<\_ASBOX
1641## ----------- ##
1642## confdefs.h. ##
1643## ----------- ##
1644_ASBOX
1645 echo
1646 cat confdefs.h
1647 echo
1648 fi
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1652 } >&5
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 exit $exit_status
1656' 0
1657for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659done
1660ac_signal=0
1661
1662# confdefs.h avoids OS command line length limits that DEFS can exceed.
1663rm -f -r conftest* confdefs.h
1664
1665# Predefined preprocessor variables.
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_NAME "$PACKAGE_NAME"
1669_ACEOF
1670
1671
1672cat >>confdefs.h <<_ACEOF
1673#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674_ACEOF
1675
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_VERSION "$PACKAGE_VERSION"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_STRING "$PACKAGE_STRING"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689_ACEOF
1690
1691
1692# Let the site file select an alternate cache file if it wants to.
1693# Prefer explicitly selected file to automatically selected ones.
1694if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698else
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1701fi
1702shift
1703for ac_site_file
1704do
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1709 . "$ac_site_file"
1710 fi
1711done
1712
1713if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718echo "$as_me: loading cache $cache_file" >&6;}
1719 case $cache_file in
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1722 esac
1723 fi
1724else
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726echo "$as_me: creating cache $cache_file" >&6;}
1727 >$cache_file
1728fi
1729
1730# Check that the precious variables saved in the cache have kept the same
1731# value.
1732ac_cache_corrupted=false
1733for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1739 set,)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,set)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,);;
1748 *)
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1769 fi
1770done
1771if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1777fi
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808
1809
1810
1811
1812
1813ac_config_headers="$ac_config_headers config.h"
1814
1815ac_ext=c
1816ac_cpp='$CPP $CPPFLAGS'
1817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820if test -n "$ac_tool_prefix"; then
1821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1822set dummy ${ac_tool_prefix}gcc; ac_word=$2
1823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1825if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842done
1843done
1844IFS=$as_save_IFS
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850 { echo "$as_me:$LINENO: result: $CC" >&5
1851echo "${ECHO_T}$CC" >&6; }
1852else
1853 { echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6; }
1855fi
1856
1857
1858fi
1859if test -z "$ac_cv_prog_CC"; then
1860 ac_ct_CC=$CC
1861 # Extract the first word of "gcc", so it can be a program name with args.
1862set dummy gcc; ac_word=$2
1863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1878 ac_cv_prog_ac_ct_CC="gcc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1881 fi
1882done
1883done
1884IFS=$as_save_IFS
1885
1886fi
1887fi
1888ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889if test -n "$ac_ct_CC"; then
1890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891echo "${ECHO_T}$ac_ct_CC" >&6; }
1892else
1893 { echo "$as_me:$LINENO: result: no" >&5
1894echo "${ECHO_T}no" >&6; }
1895fi
1896
1897 if test "x$ac_ct_CC" = x; then
1898 CC=""
1899 else
1900 case $cross_compiling:$ac_tool_warned in
1901yes:)
1902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1903whose name does not start with the host triplet. If you think this
1904configuration is useful to you, please write to autoconf@gnu.org." >&5
1905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1906whose name does not start with the host triplet. If you think this
1907configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1908ac_tool_warned=yes ;;
1909esac
1910 CC=$ac_ct_CC
1911 fi
1912else
1913 CC="$ac_cv_prog_CC"
1914fi
1915
1916if test -z "$CC"; then
1917 if test -n "$ac_tool_prefix"; then
1918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1919set dummy ${ac_tool_prefix}cc; ac_word=$2
1920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1922if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1935 ac_cv_prog_CC="${ac_tool_prefix}cc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939done
1940done
1941IFS=$as_save_IFS
1942
1943fi
1944fi
1945CC=$ac_cv_prog_CC
1946if test -n "$CC"; then
1947 { echo "$as_me:$LINENO: result: $CC" >&5
1948echo "${ECHO_T}$CC" >&6; }
1949else
1950 { echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6; }
1952fi
1953
1954
1955 fi
1956fi
1957if test -z "$CC"; then
1958 # Extract the first word of "cc", so it can be a program name with args.
1959set dummy cc; ac_word=$2
1960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1967else
1968 ac_prog_rejected=no
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1977 ac_prog_rejected=yes
1978 continue
1979 fi
1980 ac_cv_prog_CC="cc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1983 fi
1984done
1985done
1986IFS=$as_save_IFS
1987
1988if test $ac_prog_rejected = yes; then
1989 # We found a bogon in the path, so make sure we never use it.
1990 set dummy $ac_cv_prog_CC
1991 shift
1992 if test $# != 0; then
1993 # We chose a different compiler from the bogus one.
1994 # However, it has the same basename, so the bogon will be chosen
1995 # first if we set CC to just the basename; use the full file name.
1996 shift
1997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1998 fi
1999fi
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6; }
2006else
2007 { echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6; }
2009fi
2010
2011
2012fi
2013if test -z "$CC"; then
2014 if test -n "$ac_tool_prefix"; then
2015 for ac_prog in cl.exe
2016 do
2017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021if test "${ac_cv_prog_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2026else
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2037 fi
2038done
2039done
2040IFS=$as_save_IFS
2041
2042fi
2043fi
2044CC=$ac_cv_prog_CC
2045if test -n "$CC"; then
2046 { echo "$as_me:$LINENO: result: $CC" >&5
2047echo "${ECHO_T}$CC" >&6; }
2048else
2049 { echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6; }
2051fi
2052
2053
2054 test -n "$CC" && break
2055 done
2056fi
2057if test -z "$CC"; then
2058 ac_ct_CC=$CC
2059 for ac_prog in cl.exe
2060do
2061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2062set dummy $ac_prog; ac_word=$2
2063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2078 ac_cv_prog_ac_ct_CC="$ac_prog"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2081 fi
2082done
2083done
2084IFS=$as_save_IFS
2085
2086fi
2087fi
2088ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089if test -n "$ac_ct_CC"; then
2090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091echo "${ECHO_T}$ac_ct_CC" >&6; }
2092else
2093 { echo "$as_me:$LINENO: result: no" >&5
2094echo "${ECHO_T}no" >&6; }
2095fi
2096
2097
2098 test -n "$ac_ct_CC" && break
2099done
2100
2101 if test "x$ac_ct_CC" = x; then
2102 CC=""
2103 else
2104 case $cross_compiling:$ac_tool_warned in
2105yes:)
2106{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2107whose name does not start with the host triplet. If you think this
2108configuration is useful to you, please write to autoconf@gnu.org." >&5
2109echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet. If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2112ac_tool_warned=yes ;;
2113esac
2114 CC=$ac_ct_CC
2115 fi
2116fi
2117
2118fi
2119
2120
2121test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&5
2123echo "$as_me: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2126
2127# Provide some information about the compiler.
2128echo "$as_me:$LINENO: checking for C compiler version" >&5
2129ac_compiler=`set X $ac_compile; echo $2`
2130{ (ac_try="$ac_compiler --version >&5"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler --version >&5") 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140{ (ac_try="$ac_compiler -v >&5"
2141case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144esac
2145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_compiler -v >&5") 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150{ (ac_try="$ac_compiler -V >&5"
2151case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154esac
2155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156 (eval "$ac_compiler -V >&5") 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160
2161cat >conftest.$ac_ext <<_ACEOF
2162/* confdefs.h. */
2163_ACEOF
2164cat confdefs.h >>conftest.$ac_ext
2165cat >>conftest.$ac_ext <<_ACEOF
2166/* end confdefs.h. */
2167
2168int
2169main ()
2170{
2171
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176ac_clean_files_save=$ac_clean_files
2177ac_clean_files="$ac_clean_files a.out a.exe b.out"
2178# Try to create an executable without -o first, disregard a.out.
2179# It will help us diagnose broken compilers, and finding out an intuition
2180# of exeext.
2181{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2182echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2183ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2184#
2185# List of possible output files, starting from the most likely.
2186# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2187# only as a last resort. b.out is created by i960 compilers.
2188ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2189#
2190# The IRIX 6 linker writes into existing files which may not be
2191# executable, retaining their permissions. Remove them first so a
2192# subsequent execution test works.
2193ac_rmfiles=
2194for ac_file in $ac_files
2195do
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2199 esac
2200done
2201rm -f $ac_rmfiles
2202
2203if { (ac_try="$ac_link_default"
2204case "(($ac_try" in
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2207esac
2208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2209 (eval "$ac_link_default") 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2214# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2215# in a Makefile. We should not override ac_cv_exeext if it was cached,
2216# so that the user can short-circuit this test for compilers unknown to
2217# Autoconf.
2218for ac_file in $ac_files ''
2219do
2220 test -f "$ac_file" || continue
2221 case $ac_file in
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2223 ;;
2224 [ab].out )
2225 # We found the default executable, but exeext='' is most
2226 # certainly right.
2227 break;;
2228 *.* )
2229 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2230 then :; else
2231 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 fi
2233 # We set ac_cv_exeext here because the later test for it is not
2234 # safe: cross compilers may not add the suffix if given an `-o'
2235 # argument, so we may need to know it at that point already.
2236 # Even if this section looks crufty: it has the advantage of
2237 # actually working.
2238 break;;
2239 * )
2240 break;;
2241 esac
2242done
2243test "$ac_cv_exeext" = no && ac_cv_exeext=
2244
2245else
2246 ac_file=''
2247fi
2248
2249{ echo "$as_me:$LINENO: result: $ac_file" >&5
2250echo "${ECHO_T}$ac_file" >&6; }
2251if test -z "$ac_file"; then
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: C compiler cannot create executables
2258See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2260fi
2261
2262ac_exeext=$ac_cv_exeext
2263
2264# Check that the compiler produces executables we can run. If not, either
2265# the compiler is broken, or we cross compile.
2266{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269# If not cross compiling, check that we can run a simple program.
2270if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_try") 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 cross_compiling=no
2282 else
2283 if test "$cross_compiling" = maybe; then
2284 cross_compiling=yes
2285 else
2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2294 fi
2295fi
2296{ echo "$as_me:$LINENO: result: yes" >&5
2297echo "${ECHO_T}yes" >&6; }
2298
2299rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300ac_clean_files=$ac_clean_files_save
2301# Check that the compiler produces executables we can run. If not, either
2302# the compiler is broken, or we cross compile.
2303{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310if { (ac_try="$ac_link"
2311case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
2315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_link") 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322# work properly (i.e., refer to `conftest.exe'), while it won't with
2323# `rm'.
2324for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
2326 case $ac_file in
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 break;;
2330 * ) break;;
2331 esac
2332done
2333else
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest$ac_cv_exeext
2342{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343echo "${ECHO_T}$ac_cv_exeext" >&6; }
2344
2345rm -f conftest.$ac_ext
2346EXEEXT=$ac_cv_exeext
2347ac_exeext=$EXEEXT
2348{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350if test "${ac_cv_objext+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h. */
2359
2360int
2361main ()
2362{
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368rm -f conftest.o conftest.obj
2369if { (ac_try="$ac_compile"
2370case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373esac
2374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compile") 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 for ac_file in conftest.o conftest.obj conftest.*; do
2380 test -f "$ac_file" || continue;
2381 case $ac_file in
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384 break;;
2385 esac
2386done
2387else
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2396fi
2397
2398rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399fi
2400{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401echo "${ECHO_T}$ac_cv_objext" >&6; }
2402OBJEXT=$ac_cv_objext
2403ac_objext=$OBJEXT
2404{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409 cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h. */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h. */
2415
2416int
2417main ()
2418{
2419#ifndef __GNUC__
2420 choke me
2421#endif
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (ac_try="$ac_compile"
2429case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432esac
2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compile") 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } && {
2441 test -z "$ac_c_werror_flag" ||
2442 test ! -s conftest.err
2443 } && test -s conftest.$ac_objext; then
2444 ac_compiler_gnu=yes
2445else
2446 echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_compiler_gnu=no
2450fi
2451
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455fi
2456{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458GCC=`test $ac_compiler_gnu = yes && echo yes`
2459ac_test_CFLAGS=${CFLAGS+set}
2460ac_save_CFLAGS=$CFLAGS
2461{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_cc_g+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 ac_save_c_werror_flag=$ac_c_werror_flag
2467 ac_c_werror_flag=yes
2468 ac_cv_prog_cc_g=no
2469 CFLAGS="-g"
2470 cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h. */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h. */
2476
2477int
2478main ()
2479{
2480
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (ac_try="$ac_compile"
2487case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
2491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_compile") 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } && {
2499 test -z "$ac_c_werror_flag" ||
2500 test ! -s conftest.err
2501 } && test -s conftest.$ac_objext; then
2502 ac_cv_prog_cc_g=yes
2503else
2504 echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 CFLAGS=""
2508 cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
2514
2515int
2516main ()
2517{
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523rm -f conftest.$ac_objext
2524if { (ac_try="$ac_compile"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } && {
2537 test -z "$ac_c_werror_flag" ||
2538 test ! -s conftest.err
2539 } && test -s conftest.$ac_objext; then
2540 :
2541else
2542 echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_c_werror_flag=$ac_save_c_werror_flag
2546 CFLAGS="-g"
2547 cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
2553
2554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.$ac_objext
2563if { (ac_try="$ac_compile"
2564case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.$ac_objext; then
2579 ac_cv_prog_cc_g=yes
2580else
2581 echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584
2585fi
2586
2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588fi
2589
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 ac_c_werror_flag=$ac_save_c_werror_flag
2595fi
2596{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2598if test "$ac_test_CFLAGS" = set; then
2599 CFLAGS=$ac_save_CFLAGS
2600elif test $ac_cv_prog_cc_g = yes; then
2601 if test "$GCC" = yes; then
2602 CFLAGS="-g -O2"
2603 else
2604 CFLAGS="-g"
2605 fi
2606else
2607 if test "$GCC" = yes; then
2608 CFLAGS="-O2"
2609 else
2610 CFLAGS=
2611 fi
2612fi
2613{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2614echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2615if test "${ac_cv_prog_cc_c89+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 ac_cv_prog_cc_c89=no
2619ac_save_CC=$CC
2620cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
2626#include <stdarg.h>
2627#include <stdio.h>
2628#include <sys/types.h>
2629#include <sys/stat.h>
2630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2631struct buf { int x; };
2632FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633static char *e (p, i)
2634 char **p;
2635 int i;
2636{
2637 return p[i];
2638}
2639static char *f (char * (*g) (char **, int), char **p, ...)
2640{
2641 char *s;
2642 va_list v;
2643 va_start (v,p);
2644 s = g (p, va_arg (v,int));
2645 va_end (v);
2646 return s;
2647}
2648
2649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2650 function prototypes and stuff, but not '\xHH' hex character constants.
2651 These don't provoke an error unfortunately, instead are silently treated
2652 as 'x'. The following induces an error, until -std is added to get
2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2654 array size at least. It's necessary to write '\x00'==0 to get something
2655 that's true only with -std. */
2656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2657
2658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2659 inside strings and character constants. */
2660#define FOO(x) 'x'
2661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2662
2663int test (int i, double x);
2664struct s1 {int (*f) (int a);};
2665struct s2 {int (*f) (double a);};
2666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2667int argc;
2668char **argv;
2669int
2670main ()
2671{
2672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2679do
2680 CC="$ac_save_CC $ac_arg"
2681 rm -f conftest.$ac_objext
2682if { (ac_try="$ac_compile"
2683case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686esac
2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compile") 2>conftest.er1
2689 ac_status=$?
2690 grep -v '^ *+' conftest.er1 >conftest.err
2691 rm -f conftest.er1
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } && {
2695 test -z "$ac_c_werror_flag" ||
2696 test ! -s conftest.err
2697 } && test -s conftest.$ac_objext; then
2698 ac_cv_prog_cc_c89=$ac_arg
2699else
2700 echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703
2704fi
2705
2706rm -f core conftest.err conftest.$ac_objext
2707 test "x$ac_cv_prog_cc_c89" != "xno" && break
2708done
2709rm -f conftest.$ac_ext
2710CC=$ac_save_CC
2711
2712fi
2713# AC_CACHE_VAL
2714case "x$ac_cv_prog_cc_c89" in
2715 x)
2716 { echo "$as_me:$LINENO: result: none needed" >&5
2717echo "${ECHO_T}none needed" >&6; } ;;
2718 xno)
2719 { echo "$as_me:$LINENO: result: unsupported" >&5
2720echo "${ECHO_T}unsupported" >&6; } ;;
2721 *)
2722 CC="$CC $ac_cv_prog_cc_c89"
2723 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2724echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2725esac
2726
2727
2728ac_ext=c
2729ac_cpp='$CPP $CPPFLAGS'
2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734ac_aux_dir=
2735for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2739 break
2740 elif test -f "$ac_dir/install.sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2743 break
2744 elif test -f "$ac_dir/shtool"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2747 break
2748 fi
2749done
2750if test -z "$ac_aux_dir"; then
2751 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2752echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2753 { (exit 1); exit 1; }; }
2754fi
2755
2756# These three variables are undocumented and unsupported,
2757# and are intended to be withdrawn in a future Autoconf release.
2758# They can cause serious problems if a builder's source tree is in a directory
2759# whose full name contains unusual characters.
2760ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763
2764
2765# Make sure we can run config.sub.
2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2768echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2769 { (exit 1); exit 1; }; }
2770
2771{ echo "$as_me:$LINENO: checking build system type" >&5
2772echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2773if test "${ac_cv_build+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776 ac_build_alias=$build_alias
2777test "x$ac_build_alias" = x &&
2778 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2779test "x$ac_build_alias" = x &&
2780 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2781echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2782 { (exit 1); exit 1; }; }
2783ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2785echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2786 { (exit 1); exit 1; }; }
2787
2788fi
2789{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2790echo "${ECHO_T}$ac_cv_build" >&6; }
2791case $ac_cv_build in
2792*-*-*) ;;
2793*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2794echo "$as_me: error: invalid value of canonical build" >&2;}
2795 { (exit 1); exit 1; }; };;
2796esac
2797build=$ac_cv_build
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_build
2800shift
2801build_cpu=$1
2802build_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806build_os=$*
2807IFS=$ac_save_IFS
2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
2810
2811{ echo "$as_me:$LINENO: checking host system type" >&5
2812echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2813if test "${ac_cv_host+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818else
2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2821echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2822 { (exit 1); exit 1; }; }
2823fi
2824
2825fi
2826{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2827echo "${ECHO_T}$ac_cv_host" >&6; }
2828case $ac_cv_host in
2829*-*-*) ;;
2830*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2831echo "$as_me: error: invalid value of canonical host" >&2;}
2832 { (exit 1); exit 1; }; };;
2833esac
2834host=$ac_cv_host
2835ac_save_IFS=$IFS; IFS='-'
2836set x $ac_cv_host
2837shift
2838host_cpu=$1
2839host_vendor=$2
2840shift; shift
2841# Remember, the first character of IFS is used to create $*,
2842# except with old shells:
2843host_os=$*
2844IFS=$ac_save_IFS
2845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2846
2847
2848
2849ac_ext=c
2850ac_cpp='$CPP $CPPFLAGS'
2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2855echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2856# On Suns, sometimes $CPP names a directory.
2857if test -n "$CPP" && test -d "$CPP"; then
2858 CPP=
2859fi
2860if test -z "$CPP"; then
2861 if test "${ac_cv_prog_CPP+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
2864 # Double quotes because CPP needs to be expanded
2865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2866 do
2867 ac_preproc_ok=false
2868for ac_c_preproc_warn_flag in '' yes
2869do
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h. */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h. */
2882#ifdef __STDC__
2883# include <limits.h>
2884#else
2885# include <assert.h>
2886#endif
2887 Syntax error
2888_ACEOF
2889if { (ac_try="$ac_cpp conftest.$ac_ext"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2896 ac_status=$?
2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } >/dev/null && {
2902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2903 test ! -s conftest.err
2904 }; then
2905 :
2906else
2907 echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 # Broken: fails on valid input.
2911continue
2912fi
2913
2914rm -f conftest.err conftest.$ac_ext
2915
2916 # OK, works on sane cases. Now check whether nonexistent headers
2917 # can be detected and how.
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924#include <ac_nonexistent.h>
2925_ACEOF
2926if { (ac_try="$ac_cpp conftest.$ac_ext"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null && {
2939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 }; then
2942 # Broken: success on invalid input.
2943continue
2944else
2945 echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 # Passes both tests.
2949ac_preproc_ok=:
2950break
2951fi
2952
2953rm -f conftest.err conftest.$ac_ext
2954
2955done
2956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2957rm -f conftest.err conftest.$ac_ext
2958if $ac_preproc_ok; then
2959 break
2960fi
2961
2962 done
2963 ac_cv_prog_CPP=$CPP
2964
2965fi
2966 CPP=$ac_cv_prog_CPP
2967else
2968 ac_cv_prog_CPP=$CPP
2969fi
2970{ echo "$as_me:$LINENO: result: $CPP" >&5
2971echo "${ECHO_T}$CPP" >&6; }
2972ac_preproc_ok=false
2973for ac_c_preproc_warn_flag in '' yes
2974do
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
2987#ifdef __STDC__
2988# include <limits.h>
2989#else
2990# include <assert.h>
2991#endif
2992 Syntax error
2993_ACEOF
2994if { (ac_try="$ac_cpp conftest.$ac_ext"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null && {
3007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 }; then
3010 :
3011else
3012 echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 # Broken: fails on valid input.
3016continue
3017fi
3018
3019rm -f conftest.err conftest.$ac_ext
3020
3021 # OK, works on sane cases. Now check whether nonexistent headers
3022 # can be detected and how.
3023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
3029#include <ac_nonexistent.h>
3030_ACEOF
3031if { (ac_try="$ac_cpp conftest.$ac_ext"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null && {
3044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 }; then
3047 # Broken: success on invalid input.
3048continue
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Passes both tests.
3054ac_preproc_ok=:
3055break
3056fi
3057
3058rm -f conftest.err conftest.$ac_ext
3059
3060done
3061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062rm -f conftest.err conftest.$ac_ext
3063if $ac_preproc_ok; then
3064 :
3065else
3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067See \`config.log' for more details." >&5
3068echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3071fi
3072
3073ac_ext=c
3074ac_cpp='$CPP $CPPFLAGS'
3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3081echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3082if test "${ac_cv_path_GREP+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 # Extract the first word of "grep ggrep" to use in msg output
3086if test -z "$GREP"; then
3087set dummy grep ggrep; ac_prog_name=$2
3088if test "${ac_cv_path_GREP+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 ac_path_GREP_found=false
3092# Loop through the user's path and test for each of PROGNAME-LIST
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_prog in grep ggrep; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3101 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3102 # Check for GNU ac_path_GREP and select it if it is found.
3103 # Check for GNU $ac_path_GREP
3104case `"$ac_path_GREP" --version 2>&1` in
3105*GNU*)
3106 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3107*)
3108 ac_count=0
3109 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3110 while :
3111 do
3112 cat "conftest.in" "conftest.in" >"conftest.tmp"
3113 mv "conftest.tmp" "conftest.in"
3114 cp "conftest.in" "conftest.nl"
3115 echo 'GREP' >> "conftest.nl"
3116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3118 ac_count=`expr $ac_count + 1`
3119 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3120 # Best one so far, save it but keep looking for a better one
3121 ac_cv_path_GREP="$ac_path_GREP"
3122 ac_path_GREP_max=$ac_count
3123 fi
3124 # 10*(2^10) chars as input seems more than enough
3125 test $ac_count -gt 10 && break
3126 done
3127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3128esac
3129
3130
3131 $ac_path_GREP_found && break 3
3132 done
3133done
3134
3135done
3136IFS=$as_save_IFS
3137
3138
3139fi
3140
3141GREP="$ac_cv_path_GREP"
3142if test -z "$GREP"; then
3143 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3144echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3145 { (exit 1); exit 1; }; }
3146fi
3147
3148else
3149 ac_cv_path_GREP=$GREP
3150fi
3151
3152
3153fi
3154{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3155echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3156 GREP="$ac_cv_path_GREP"
3157
3158
3159{ echo "$as_me:$LINENO: checking for egrep" >&5
3160echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3161if test "${ac_cv_path_EGREP+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3165 then ac_cv_path_EGREP="$GREP -E"
3166 else
3167 # Extract the first word of "egrep" to use in msg output
3168if test -z "$EGREP"; then
3169set dummy egrep; ac_prog_name=$2
3170if test "${ac_cv_path_EGREP+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 ac_path_EGREP_found=false
3174# Loop through the user's path and test for each of PROGNAME-LIST
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_prog in egrep; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3184 # Check for GNU ac_path_EGREP and select it if it is found.
3185 # Check for GNU $ac_path_EGREP
3186case `"$ac_path_EGREP" --version 2>&1` in
3187*GNU*)
3188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3189*)
3190 ac_count=0
3191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3192 while :
3193 do
3194 cat "conftest.in" "conftest.in" >"conftest.tmp"
3195 mv "conftest.tmp" "conftest.in"
3196 cp "conftest.in" "conftest.nl"
3197 echo 'EGREP' >> "conftest.nl"
3198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3200 ac_count=`expr $ac_count + 1`
3201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3202 # Best one so far, save it but keep looking for a better one
3203 ac_cv_path_EGREP="$ac_path_EGREP"
3204 ac_path_EGREP_max=$ac_count
3205 fi
3206 # 10*(2^10) chars as input seems more than enough
3207 test $ac_count -gt 10 && break
3208 done
3209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3210esac
3211
3212
3213 $ac_path_EGREP_found && break 3
3214 done
3215done
3216
3217done
3218IFS=$as_save_IFS
3219
3220
3221fi
3222
3223EGREP="$ac_cv_path_EGREP"
3224if test -z "$EGREP"; then
3225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3226echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3227 { (exit 1); exit 1; }; }
3228fi
3229
3230else
3231 ac_cv_path_EGREP=$EGREP
3232fi
3233
3234
3235 fi
3236fi
3237{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3238echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3239 EGREP="$ac_cv_path_EGREP"
3240
3241
3242{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3243echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3244if test "${ac_cv_header_stdc+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253#include <stdlib.h>
3254#include <stdarg.h>
3255#include <string.h>
3256#include <float.h>
3257
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (ac_try="$ac_compile"
3268case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271esac
3272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3283 ac_cv_header_stdc=yes
3284else
3285 echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 ac_cv_header_stdc=no
3289fi
3290
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292
3293if test $ac_cv_header_stdc = yes; then
3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#include <string.h>
3302
3303_ACEOF
3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "memchr" >/dev/null 2>&1; then
3306 :
3307else
3308 ac_cv_header_stdc=no
3309fi
3310rm -f conftest*
3311
3312fi
3313
3314if test $ac_cv_header_stdc = yes; then
3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#include <stdlib.h>
3323
3324_ACEOF
3325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev/null 2>&1; then
3327 :
3328else
3329 ac_cv_header_stdc=no
3330fi
3331rm -f conftest*
3332
3333fi
3334
3335if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then
3338 :
3339else
3340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346#include <ctype.h>
3347#include <stdlib.h>
3348#if ((' ' & 0x0FF) == 0x020)
3349# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3350# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3351#else
3352# define ISLOWER(c) \
3353 (('a' <= (c) && (c) <= 'i') \
3354 || ('j' <= (c) && (c) <= 'r') \
3355 || ('s' <= (c) && (c) <= 'z'))
3356# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3357#endif
3358
3359#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3360int
3361main ()
3362{
3363 int i;
3364 for (i = 0; i < 256; i++)
3365 if (XOR (islower (i), ISLOWER (i))
3366 || toupper (i) != TOUPPER (i))
3367 return 2;
3368 return 0;
3369}
3370_ACEOF
3371rm -f conftest$ac_exeext
3372if { (ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 :
3392else
3393 echo "$as_me: program exited with status $ac_status" >&5
3394echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397( exit $ac_status )
3398ac_cv_header_stdc=no
3399fi
3400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3401fi
3402
3403
3404fi
3405fi
3406{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3407echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3408if test $ac_cv_header_stdc = yes; then
3409
3410cat >>confdefs.h <<\_ACEOF
3411#define STDC_HEADERS 1
3412_ACEOF
3413
3414fi
3415
3416# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3427 inttypes.h stdint.h unistd.h
3428do
3429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3430{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441$ac_includes_default
3442
3443#include <$ac_header>
3444_ACEOF
3445rm -f conftest.$ac_objext
3446if { (ac_try="$ac_compile"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3462 eval "$as_ac_Header=yes"
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 eval "$as_ac_Header=no"
3468fi
3469
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471fi
3472ac_res=`eval echo '${'$as_ac_Header'}'`
3473 { echo "$as_me:$LINENO: result: $ac_res" >&5
3474echo "${ECHO_T}$ac_res" >&6; }
3475if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476 cat >>confdefs.h <<_ACEOF
3477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3478_ACEOF
3479
3480fi
3481
3482done
3483
3484
3485{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3486echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3487if test "${ac_cv_c_bigendian+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 # See if sys/param.h defines the BYTE_ORDER macro.
3491cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h. */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h. */
3497#include <sys/types.h>
3498#include <sys/param.h>
3499
3500int
3501main ()
3502{
3503#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3504 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3505 bogus endian macros
3506#endif
3507
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext
3513if { (ac_try="$ac_compile"
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
3518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3529 # It does; now see whether it defined to BIG_ENDIAN or not.
3530cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h. */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h. */
3536#include <sys/types.h>
3537#include <sys/param.h>
3538
3539int
3540main ()
3541{
3542#if BYTE_ORDER != BIG_ENDIAN
3543 not big endian
3544#endif
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
3550rm -f conftest.$ac_objext
3551if { (ac_try="$ac_compile"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3567 ac_cv_c_bigendian=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 ac_cv_c_bigendian=no
3573fi
3574
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 # It does not; compile a test program.
3581if test "$cross_compiling" = yes; then
3582 # try to guess the endianness by grepping values into an object file
3583 ac_cv_c_bigendian=unknown
3584 cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3591short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3592void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3593short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3594short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3595void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3596int
3597main ()
3598{
3599 _ascii (); _ebcdic ();
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (ac_try="$ac_compile"
3606case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609esac
3610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.$ac_objext; then
3621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3622 ac_cv_c_bigendian=yes
3623fi
3624if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3625 if test "$ac_cv_c_bigendian" = unknown; then
3626 ac_cv_c_bigendian=no
3627 else
3628 # finding both strings is unlikely to happen, but who knows?
3629 ac_cv_c_bigendian=unknown
3630 fi
3631fi
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636
3637fi
3638
3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640else
3641 cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h. */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h. */
3647$ac_includes_default
3648int
3649main ()
3650{
3651
3652 /* Are we little or big endian? From Harbison&Steele. */
3653 union
3654 {
3655 long int l;
3656 char c[sizeof (long int)];
3657 } u;
3658 u.l = 1;
3659 return u.c[sizeof (long int) - 1] == 1;
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665rm -f conftest$ac_exeext
3666if { (ac_try="$ac_link"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_link") 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_c_bigendian=no
3686else
3687 echo "$as_me: program exited with status $ac_status" >&5
3688echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691( exit $ac_status )
3692ac_cv_c_bigendian=yes
3693fi
3694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3695fi
3696
3697
3698fi
3699
3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701fi
3702{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3703echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3704case $ac_cv_c_bigendian in
3705 yes)
3706
3707cat >>confdefs.h <<\_ACEOF
3708#define WORDS_BIGENDIAN 1
3709_ACEOF
3710 ;;
3711 no)
3712 ;;
3713 *)
3714 { { echo "$as_me:$LINENO: error: unknown endianness
3715presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3716echo "$as_me: error: unknown endianness
3717presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3718 { (exit 1); exit 1; }; } ;;
3719esac
3720
3721
3722# Checks for programs.
3723for ac_prog in gawk mawk nawk awk
3724do
3725 # Extract the first word of "$ac_prog", so it can be a program name with args.
3726set dummy $ac_prog; ac_word=$2
3727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3729if test "${ac_cv_prog_AWK+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732 if test -n "$AWK"; then
3733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3734else
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_AWK="$ac_prog"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746done
3747done
3748IFS=$as_save_IFS
3749
3750fi
3751fi
3752AWK=$ac_cv_prog_AWK
3753if test -n "$AWK"; then
3754 { echo "$as_me:$LINENO: result: $AWK" >&5
3755echo "${ECHO_T}$AWK" >&6; }
3756else
3757 { echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6; }
3759fi
3760
3761
3762 test -n "$AWK" && break
3763done
3764
3765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3771echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3772# On Suns, sometimes $CPP names a directory.
3773if test -n "$CPP" && test -d "$CPP"; then
3774 CPP=
3775fi
3776if test -z "$CPP"; then
3777 if test "${ac_cv_prog_CPP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780 # Double quotes because CPP needs to be expanded
3781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 do
3783 ac_preproc_ok=false
3784for ac_c_preproc_warn_flag in '' yes
3785do
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
3790 # On the NeXT, cc -E runs the code through the compiler's parser,
3791 # not just through cpp. "Syntax error" is here to catch this case.
3792 cat >conftest.$ac_ext <<_ACEOF
3793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798#ifdef __STDC__
3799# include <limits.h>
3800#else
3801# include <assert.h>
3802#endif
3803 Syntax error
3804_ACEOF
3805if { (ac_try="$ac_cpp conftest.$ac_ext"
3806case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809esac
3810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
3821 :
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 # Broken: fails on valid input.
3827continue
3828fi
3829
3830rm -f conftest.err conftest.$ac_ext
3831
3832 # OK, works on sane cases. Now check whether nonexistent headers
3833 # can be detected and how.
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840#include <ac_nonexistent.h>
3841_ACEOF
3842if { (ac_try="$ac_cpp conftest.$ac_ext"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null && {
3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 }; then
3858 # Broken: success on invalid input.
3859continue
3860else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 # Passes both tests.
3865ac_preproc_ok=:
3866break
3867fi
3868
3869rm -f conftest.err conftest.$ac_ext
3870
3871done
3872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873rm -f conftest.err conftest.$ac_ext
3874if $ac_preproc_ok; then
3875 break
3876fi
3877
3878 done
3879 ac_cv_prog_CPP=$CPP
3880
3881fi
3882 CPP=$ac_cv_prog_CPP
3883else
3884 ac_cv_prog_CPP=$CPP
3885fi
3886{ echo "$as_me:$LINENO: result: $CPP" >&5
3887echo "${ECHO_T}$CPP" >&6; }
3888ac_preproc_ok=false
3889for ac_c_preproc_warn_flag in '' yes
3890do
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
3903#ifdef __STDC__
3904# include <limits.h>
3905#else
3906# include <assert.h>
3907#endif
3908 Syntax error
3909_ACEOF
3910if { (ac_try="$ac_cpp conftest.$ac_ext"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
3926 :
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 # Broken: fails on valid input.
3932continue
3933fi
3934
3935rm -f conftest.err conftest.$ac_ext
3936
3937 # OK, works on sane cases. Now check whether nonexistent headers
3938 # can be detected and how.
3939 cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945#include <ac_nonexistent.h>
3946_ACEOF
3947if { (ac_try="$ac_cpp conftest.$ac_ext"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } >/dev/null && {
3960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 }; then
3963 # Broken: success on invalid input.
3964continue
3965else
3966 echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 # Passes both tests.
3970ac_preproc_ok=:
3971break
3972fi
3973
3974rm -f conftest.err conftest.$ac_ext
3975
3976done
3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978rm -f conftest.err conftest.$ac_ext
3979if $ac_preproc_ok; then
3980 :
3981else
3982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3983See \`config.log' for more details." >&5
3984echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3985See \`config.log' for more details." >&2;}
3986 { (exit 1); exit 1; }; }
3987fi
3988
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3997set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4000if test "${ac_cv_prog_RANLIB+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 if test -n "$RANLIB"; then
4004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017done
4018done
4019IFS=$as_save_IFS
4020
4021fi
4022fi
4023RANLIB=$ac_cv_prog_RANLIB
4024if test -n "$RANLIB"; then
4025 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4026echo "${ECHO_T}$RANLIB" >&6; }
4027else
4028 { echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6; }
4030fi
4031
4032
4033fi
4034if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037set dummy ranlib; ac_word=$2
4038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4040if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_ac_ct_RANLIB="ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057done
4058done
4059IFS=$as_save_IFS
4060
4061fi
4062fi
4063ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4064if test -n "$ac_ct_RANLIB"; then
4065 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4066echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4067else
4068 { echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6; }
4070fi
4071
4072 if test "x$ac_ct_RANLIB" = x; then
4073 RANLIB=":"
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4078whose name does not start with the host triplet. If you think this
4079configuration is useful to you, please write to autoconf@gnu.org." >&5
4080echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4081whose name does not start with the host triplet. If you think this
4082configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4083ac_tool_warned=yes ;;
4084esac
4085 RANLIB=$ac_ct_RANLIB
4086 fi
4087else
4088 RANLIB="$ac_cv_prog_RANLIB"
4089fi
4090
4091# Find a good install program. We prefer a C program (faster),
4092# so one script is as good as another. But avoid the broken or
4093# incompatible versions:
4094# SysV /etc/install, /usr/sbin/install
4095# SunOS /usr/etc/install
4096# IRIX /sbin/install
4097# AIX /bin/install
4098# AmigaOS /C/install, which installs bootblocks on floppy discs
4099# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4100# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4101# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4102# OS/2's system install, which has a completely different semantic
4103# ./install, which can be erroneously created by make from ./install.sh.
4104{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4105echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4106if test -z "$INSTALL"; then
4107if test "${ac_cv_path_install+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 # Account for people who put trailing slashes in PATH elements.
4116case $as_dir/ in
4117 ./ | .// | /cC/* | \
4118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4119 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4120 /usr/ucb/* ) ;;
4121 *)
4122 # OSF1 and SCO ODT 3.0 have their own names for install.
4123 # Don't use installbsd from OSF since it installs stuff as root
4124 # by default.
4125 for ac_prog in ginstall scoinst install; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4128 if test $ac_prog = install &&
4129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4130 # AIX install. It has an incompatible calling convention.
4131 :
4132 elif test $ac_prog = install &&
4133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4134 # program-specific install script used by HP pwplus--don't use.
4135 :
4136 else
4137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4138 break 3
4139 fi
4140 fi
4141 done
4142 done
4143 ;;
4144esac
4145done
4146IFS=$as_save_IFS
4147
4148
4149fi
4150 if test "${ac_cv_path_install+set}" = set; then
4151 INSTALL=$ac_cv_path_install
4152 else
4153 # As a last resort, use the slow shell script. Don't cache a
4154 # value for INSTALL within a source directory, because that will
4155 # break other packages using the cache if that directory is
4156 # removed, or if the value is a relative name.
4157 INSTALL=$ac_install_sh
4158 fi
4159fi
4160{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4161echo "${ECHO_T}$INSTALL" >&6; }
4162
4163# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4164# It thinks the first close brace ends the variable substitution.
4165test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4166
4167test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4168
4169test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4170
4171{ echo "$as_me:$LINENO: checking for egrep" >&5
4172echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4173if test "${ac_cv_path_EGREP+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4177 then ac_cv_path_EGREP="$GREP -E"
4178 else
4179 # Extract the first word of "egrep" to use in msg output
4180if test -z "$EGREP"; then
4181set dummy egrep; ac_prog_name=$2
4182if test "${ac_cv_path_EGREP+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185 ac_path_EGREP_found=false
4186# Loop through the user's path and test for each of PROGNAME-LIST
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in egrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4195 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4196 # Check for GNU ac_path_EGREP and select it if it is found.
4197 # Check for GNU $ac_path_EGREP
4198case `"$ac_path_EGREP" --version 2>&1` in
4199*GNU*)
4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201*)
4202 ac_count=0
4203 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4204 while :
4205 do
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 echo 'EGREP' >> "conftest.nl"
4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 ac_count=`expr $ac_count + 1`
4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_EGREP="$ac_path_EGREP"
4216 ac_path_EGREP_max=$ac_count
4217 fi
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4220 done
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222esac
4223
4224
4225 $ac_path_EGREP_found && break 3
4226 done
4227done
4228
4229done
4230IFS=$as_save_IFS
4231
4232
4233fi
4234
4235EGREP="$ac_cv_path_EGREP"
4236if test -z "$EGREP"; then
4237 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239 { (exit 1); exit 1; }; }
4240fi
4241
4242else
4243 ac_cv_path_EGREP=$EGREP
4244fi
4245
4246
4247 fi
4248fi
4249{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4250echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4251 EGREP="$ac_cv_path_EGREP"
4252
4253
4254# Extract the first word of "ar", so it can be a program name with args.
4255set dummy ar; ac_word=$2
4256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4258if test "${ac_cv_path_AR+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261 case $AR in
4262 [\\/]* | ?:[\\/]*)
4263 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4264 ;;
4265 *)
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279IFS=$as_save_IFS
4280
4281 ;;
4282esac
4283fi
4284AR=$ac_cv_path_AR
4285if test -n "$AR"; then
4286 { echo "$as_me:$LINENO: result: $AR" >&5
4287echo "${ECHO_T}$AR" >&6; }
4288else
4289 { echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6; }
4291fi
4292
4293
4294# Extract the first word of "cat", so it can be a program name with args.
4295set dummy cat; ac_word=$2
4296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298if test "${ac_cv_path_CAT+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 case $CAT in
4302 [\\/]* | ?:[\\/]*)
4303 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4304 ;;
4305 *)
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317done
4318done
4319IFS=$as_save_IFS
4320
4321 ;;
4322esac
4323fi
4324CAT=$ac_cv_path_CAT
4325if test -n "$CAT"; then
4326 { echo "$as_me:$LINENO: result: $CAT" >&5
4327echo "${ECHO_T}$CAT" >&6; }
4328else
4329 { echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6; }
4331fi
4332
4333
4334# Extract the first word of "kill", so it can be a program name with args.
4335set dummy kill; ac_word=$2
4336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338if test "${ac_cv_path_KILL+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 case $KILL in
4342 [\\/]* | ?:[\\/]*)
4343 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4344 ;;
4345 *)
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358done
4359IFS=$as_save_IFS
4360
4361 ;;
4362esac
4363fi
4364KILL=$ac_cv_path_KILL
4365if test -n "$KILL"; then
4366 { echo "$as_me:$LINENO: result: $KILL" >&5
4367echo "${ECHO_T}$KILL" >&6; }
4368else
4369 { echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6; }
4371fi
4372
4373
4374for ac_prog in perl5 perl
4375do
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377set dummy $ac_prog; ac_word=$2
4378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380if test "${ac_cv_path_PERL+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 case $PERL in
4384 [\\/]* | ?:[\\/]*)
4385 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399done
4400done
4401IFS=$as_save_IFS
4402
4403 ;;
4404esac
4405fi
4406PERL=$ac_cv_path_PERL
4407if test -n "$PERL"; then
4408 { echo "$as_me:$LINENO: result: $PERL" >&5
4409echo "${ECHO_T}$PERL" >&6; }
4410else
4411 { echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6; }
4413fi
4414
4415
4416 test -n "$PERL" && break
4417done
4418
4419# Extract the first word of "sed", so it can be a program name with args.
4420set dummy sed; ac_word=$2
4421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423if test "${ac_cv_path_SED+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 case $SED in
4427 [\\/]* | ?:[\\/]*)
4428 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4429 ;;
4430 *)
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
4443done
4444IFS=$as_save_IFS
4445
4446 ;;
4447esac
4448fi
4449SED=$ac_cv_path_SED
4450if test -n "$SED"; then
4451 { echo "$as_me:$LINENO: result: $SED" >&5
4452echo "${ECHO_T}$SED" >&6; }
4453else
4454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
4456fi
4457
4458
4459
4460# Extract the first word of "ent", so it can be a program name with args.
4461set dummy ent; ac_word=$2
4462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_path_ENT+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 case $ENT in
4468 [\\/]* | ?:[\\/]*)
4469 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4470 ;;
4471 *)
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483done
4484done
4485IFS=$as_save_IFS
4486
4487 ;;
4488esac
4489fi
4490ENT=$ac_cv_path_ENT
4491if test -n "$ENT"; then
4492 { echo "$as_me:$LINENO: result: $ENT" >&5
4493echo "${ECHO_T}$ENT" >&6; }
4494else
4495 { echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6; }
4497fi
4498
4499
4500
4501# Extract the first word of "bash", so it can be a program name with args.
4502set dummy bash; ac_word=$2
4503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 case $TEST_MINUS_S_SH in
4509 [\\/]* | ?:[\\/]*)
4510 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4511 ;;
4512 *)
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524done
4525done
4526IFS=$as_save_IFS
4527
4528 ;;
4529esac
4530fi
4531TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4532if test -n "$TEST_MINUS_S_SH"; then
4533 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4534echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4535else
4536 { echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6; }
4538fi
4539
4540
4541# Extract the first word of "ksh", so it can be a program name with args.
4542set dummy ksh; ac_word=$2
4543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 case $TEST_MINUS_S_SH in
4549 [\\/]* | ?:[\\/]*)
4550 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4551 ;;
4552 *)
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564done
4565done
4566IFS=$as_save_IFS
4567
4568 ;;
4569esac
4570fi
4571TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4572if test -n "$TEST_MINUS_S_SH"; then
4573 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4574echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4575else
4576 { echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6; }
4578fi
4579
4580
4581# Extract the first word of "sh", so it can be a program name with args.
4582set dummy sh; ac_word=$2
4583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 case $TEST_MINUS_S_SH in
4589 [\\/]* | ?:[\\/]*)
4590 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4591 ;;
4592 *)
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
4606IFS=$as_save_IFS
4607
4608 ;;
4609esac
4610fi
4611TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4612if test -n "$TEST_MINUS_S_SH"; then
4613 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4614echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4615else
4616 { echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6; }
4618fi
4619
4620
4621# Extract the first word of "sh", so it can be a program name with args.
4622set dummy sh; ac_word=$2
4623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625if test "${ac_cv_path_SH+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 case $SH in
4629 [\\/]* | ?:[\\/]*)
4630 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4631 ;;
4632 *)
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644done
4645done
4646IFS=$as_save_IFS
4647
4648 ;;
4649esac
4650fi
4651SH=$ac_cv_path_SH
4652if test -n "$SH"; then
4653 { echo "$as_me:$LINENO: result: $SH" >&5
4654echo "${ECHO_T}$SH" >&6; }
4655else
4656 { echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6; }
4658fi
4659
4660
4661TEST_SHELL=sh
4662
4663
4664# Extract the first word of "groupadd", so it can be a program name with args.
4665set dummy groupadd; ac_word=$2
4666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 case $PATH_GROUPADD_PROG in
4672 [\\/]* | ?:[\\/]*)
4673 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4674 ;;
4675 *)
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4678do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687done
4688done
4689IFS=$as_save_IFS
4690
4691 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4692 ;;
4693esac
4694fi
4695PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4696if test -n "$PATH_GROUPADD_PROG"; then
4697 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4698echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4699else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6; }
4702fi
4703
4704
4705# Extract the first word of "useradd", so it can be a program name with args.
4706set dummy useradd; ac_word=$2
4707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 case $PATH_USERADD_PROG in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729done
4730IFS=$as_save_IFS
4731
4732 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4733 ;;
4734esac
4735fi
4736PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4737if test -n "$PATH_USERADD_PROG"; then
4738 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4739echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4740else
4741 { echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6; }
4743fi
4744
4745
4746# Extract the first word of "pkgmk", so it can be a program name with args.
4747set dummy pkgmk; ac_word=$2
4748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4750if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4754 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767done
4768done
4769IFS=$as_save_IFS
4770
4771 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4772fi
4773fi
4774MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4775if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4776 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4777echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4778else
4779 { echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6; }
4781fi
4782
4783
4784if test -x /sbin/sh; then
4785 STARTUP_SCRIPT_SHELL=/sbin/sh
4786
4787else
4788 STARTUP_SCRIPT_SHELL=/bin/sh
4789
4790fi
4791
4792# System features
4793# Check whether --enable-largefile was given.
4794if test "${enable_largefile+set}" = set; then
4795 enableval=$enable_largefile;
4796fi
4797
4798if test "$enable_largefile" != no; then
4799
4800 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4801echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4802if test "${ac_cv_sys_largefile_CC+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805 ac_cv_sys_largefile_CC=no
4806 if test "$GCC" != yes; then
4807 ac_save_CC=$CC
4808 while :; do
4809 # IRIX 6.2 and later do not support large files by default,
4810 # so use the C compiler's -n32 option if that helps.
4811 cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817#include <sys/types.h>
4818 /* Check that off_t can represent 2**63 - 1 correctly.
4819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4820 since some C++ compilers masquerading as C compilers
4821 incorrectly reject 9223372036854775807. */
4822#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4824 && LARGE_OFF_T % 2147483647 == 1)
4825 ? 1 : -1];
4826int
4827main ()
4828{
4829
4830 ;
4831 return 0;
4832}
4833_ACEOF
4834 rm -f conftest.$ac_objext
4835if { (ac_try="$ac_compile"
4836case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839esac
4840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_compile") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && {
4848 test -z "$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 } && test -s conftest.$ac_objext; then
4851 break
4852else
4853 echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856
4857fi
4858
4859rm -f core conftest.err conftest.$ac_objext
4860 CC="$CC -n32"
4861 rm -f conftest.$ac_objext
4862if { (ac_try="$ac_compile"
4863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
4867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_cv_sys_largefile_CC=' -n32'; break
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883
4884fi
4885
4886rm -f core conftest.err conftest.$ac_objext
4887 break
4888 done
4889 CC=$ac_save_CC
4890 rm -f conftest.$ac_ext
4891 fi
4892fi
4893{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4894echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4895 if test "$ac_cv_sys_largefile_CC" != no; then
4896 CC=$CC$ac_cv_sys_largefile_CC
4897 fi
4898
4899 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4900echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4901if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 while :; do
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911#include <sys/types.h>
4912 /* Check that off_t can represent 2**63 - 1 correctly.
4913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4914 since some C++ compilers masquerading as C compilers
4915 incorrectly reject 9223372036854775807. */
4916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4918 && LARGE_OFF_T % 2147483647 == 1)
4919 ? 1 : -1];
4920int
4921main ()
4922{
4923
4924 ;
4925 return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 ac_cv_sys_file_offset_bits=no; break
4946else
4947 echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950
4951fi
4952
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960#define _FILE_OFFSET_BITS 64
4961#include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978rm -f conftest.$ac_objext
4979if { (ac_try="$ac_compile"
4980case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983esac
4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4995 ac_cv_sys_file_offset_bits=64; break
4996else
4997 echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000
5001fi
5002
5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_cv_sys_file_offset_bits=unknown
5005 break
5006done
5007fi
5008{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5009echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5010case $ac_cv_sys_file_offset_bits in #(
5011 no | unknown) ;;
5012 *)
5013cat >>confdefs.h <<_ACEOF
5014#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5015_ACEOF
5016;;
5017esac
5018rm -f conftest*
5019 if test $ac_cv_sys_file_offset_bits = unknown; then
5020 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5021echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5022if test "${ac_cv_sys_large_files+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 while :; do
5026 cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
5032#include <sys/types.h>
5033 /* Check that off_t can represent 2**63 - 1 correctly.
5034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5035 since some C++ compilers masquerading as C compilers
5036 incorrectly reject 9223372036854775807. */
5037#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5039 && LARGE_OFF_T % 2147483647 == 1)
5040 ? 1 : -1];
5041int
5042main ()
5043{
5044
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049rm -f conftest.$ac_objext
5050if { (ac_try="$ac_compile"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_sys_large_files=no; break
5067else
5068 echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071
5072fi
5073
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081#define _LARGE_FILES 1
5082#include <sys/types.h>
5083 /* Check that off_t can represent 2**63 - 1 correctly.
5084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5085 since some C++ compilers masquerading as C compilers
5086 incorrectly reject 9223372036854775807. */
5087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5089 && LARGE_OFF_T % 2147483647 == 1)
5090 ? 1 : -1];
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
5100if { (ac_try="$ac_compile"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 ac_cv_sys_large_files=1; break
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121
5122fi
5123
5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_cv_sys_large_files=unknown
5126 break
5127done
5128fi
5129{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5130echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5131case $ac_cv_sys_large_files in #(
5132 no | unknown) ;;
5133 *)
5134cat >>confdefs.h <<_ACEOF
5135#define _LARGE_FILES $ac_cv_sys_large_files
5136_ACEOF
5137;;
5138esac
5139rm -f conftest*
5140 fi
5141fi
5142
5143
5144if test -z "$AR" ; then
5145 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5146echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5147 { (exit 1); exit 1; }; }
5148fi
5149
5150# Use LOGIN_PROGRAM from environment if possible
5151if test ! -z "$LOGIN_PROGRAM" ; then
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5155_ACEOF
5156
5157else
5158 # Search for login
5159 # Extract the first word of "login", so it can be a program name with args.
5160set dummy login; ac_word=$2
5161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 case $LOGIN_PROGRAM_FALLBACK in
5167 [\\/]* | ?:[\\/]*)
5168 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5169 ;;
5170 *)
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH
5173do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182done
5183done
5184IFS=$as_save_IFS
5185
5186 ;;
5187esac
5188fi
5189LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5190if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5191 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5192echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5193else
5194 { echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6; }
5196fi
5197
5198
5199 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5200 cat >>confdefs.h <<_ACEOF
5201#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5202_ACEOF
5203
5204 fi
5205fi
5206
5207# Extract the first word of "passwd", so it can be a program name with args.
5208set dummy passwd; ac_word=$2
5209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5211if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 case $PATH_PASSWD_PROG in
5215 [\\/]* | ?:[\\/]*)
5216 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5217 ;;
5218 *)
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230done
5231done
5232IFS=$as_save_IFS
5233
5234 ;;
5235esac
5236fi
5237PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5238if test -n "$PATH_PASSWD_PROG"; then
5239 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5240echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5241else
5242 { echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6; }
5244fi
5245
5246
5247if test ! -z "$PATH_PASSWD_PROG" ; then
5248
5249cat >>confdefs.h <<_ACEOF
5250#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5251_ACEOF
5252
5253fi
5254
5255if test -z "$LD" ; then
5256 LD=$CC
5257fi
5258
5259
5260{ echo "$as_me:$LINENO: checking for inline" >&5
5261echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5262if test "${ac_cv_c_inline+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 ac_cv_c_inline=no
5266for ac_kw in inline __inline__ __inline; do
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#ifndef __cplusplus
5274typedef int foo_t;
5275static $ac_kw foo_t static_foo () {return 0; }
5276$ac_kw foo_t foo () {return 0; }
5277#endif
5278
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (ac_try="$ac_compile"
5282case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285esac
5286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_cv_c_inline=$ac_kw
5298else
5299 echo "$as_me: failed program was:" >&5
5300sed 's/^/| /' conftest.$ac_ext >&5
5301
5302
5303fi
5304
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 test "$ac_cv_c_inline" != no && break
5307done
5308
5309fi
5310{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5311echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5312
5313
5314case $ac_cv_c_inline in
5315 inline | yes) ;;
5316 *)
5317 case $ac_cv_c_inline in
5318 no) ac_val=;;
5319 *) ac_val=$ac_cv_c_inline;;
5320 esac
5321 cat >>confdefs.h <<_ACEOF
5322#ifndef __cplusplus
5323#define inline $ac_val
5324#endif
5325_ACEOF
5326 ;;
5327esac
5328
5329
5330{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5331echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5332if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 cat >conftest.$ac_ext <<_ACEOF
5336/* confdefs.h. */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h. */
5341#include <limits.h>
5342
5343int
5344main ()
5345{
5346#ifndef LLONG_MAX
5347 (void) LLONG_MAX;
5348#endif
5349
5350 ;
5351 return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (ac_try="$ac_compile"
5356case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_cv_have_decl_LLONG_MAX=yes
5372else
5373 echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_cv_have_decl_LLONG_MAX=no
5377fi
5378
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380fi
5381{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5382echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5383if test $ac_cv_have_decl_LLONG_MAX = yes; then
5384 have_llong_max=1
5385fi
5386
5387
5388use_stack_protector=1
5389
5390# Check whether --with-stackprotect was given.
5391if test "${with_stackprotect+set}" = set; then
5392 withval=$with_stackprotect;
5393 if test "x$withval" = "xno"; then
5394 use_stack_protector=0
5395 fi
5396fi
5397
5398
5399if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5400 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5401 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5402 case $GCC_VER in
5403 1.*) no_attrib_nonnull=1 ;;
5404 2.8* | 2.9*)
5405 CFLAGS="$CFLAGS -Wsign-compare"
5406 no_attrib_nonnull=1
5407 ;;
5408 2.*) no_attrib_nonnull=1 ;;
5409 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5410 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5411 *) ;;
5412 esac
5413
5414 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5415echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5416 saved_CFLAGS="$CFLAGS"
5417 CFLAGS="$CFLAGS -fno-builtin-memset"
5418 cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424
5425#include <string.h>
5426int main(void){char b[10]; memset(b, 0, sizeof(b));}
5427
5428_ACEOF
5429rm -f conftest.$ac_objext conftest$ac_exeext
5430if { (ac_try="$ac_link"
5431case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434esac
5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_link") 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_c_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest$ac_exeext &&
5446 $as_test_x conftest$ac_exeext; then
5447 { echo "$as_me:$LINENO: result: yes" >&5
5448echo "${ECHO_T}yes" >&6; }
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 { echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6; }
5455 CFLAGS="$saved_CFLAGS"
5456
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460 conftest$ac_exeext conftest.$ac_ext
5461
5462 # -fstack-protector-all doesn't always work for some GCC versions
5463 # and/or platforms, so we test if we can. If it's not supported
5464 # on a give platform gcc will emit a warning so we use -Werror.
5465 if test "x$use_stack_protector" = "x1"; then
5466 for t in -fstack-protector-all -fstack-protector; do
5467 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5468echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5469 saved_CFLAGS="$CFLAGS"
5470 saved_LDFLAGS="$LDFLAGS"
5471 CFLAGS="$CFLAGS $t -Werror"
5472 LDFLAGS="$LDFLAGS $t -Werror"
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479
5480#include <stdlib.h>
5481int main(void){return 0;}
5482
5483_ACEOF
5484rm -f conftest.$ac_objext conftest$ac_exeext
5485if { (ac_try="$ac_link"
5486case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_link") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest$ac_exeext &&
5501 $as_test_x conftest$ac_exeext; then
5502 { echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6; }
5504 CFLAGS="$saved_CFLAGS $t"
5505 LDFLAGS="$saved_LDFLAGS $t"
5506 { echo "$as_me:$LINENO: checking if $t works" >&5
5507echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5508 if test "$cross_compiling" = yes; then
5509 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5510echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5511 break
5512
5513else
5514 cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520
5521#include <stdlib.h>
5522int main(void){exit(0);}
5523
5524_ACEOF
5525rm -f conftest$ac_exeext
5526if { (ac_try="$ac_link"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_link") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5536 { (case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_try") 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 { echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6; }
5547 break
5548else
5549 echo "$as_me: program exited with status $ac_status" >&5
5550echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553( exit $ac_status )
5554 { echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6; }
5556fi
5557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558fi
5559
5560
5561
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
5568
5569fi
5570
5571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5572 conftest$ac_exeext conftest.$ac_ext
5573 CFLAGS="$saved_CFLAGS"
5574 LDFLAGS="$saved_LDFLAGS"
5575 done
5576 fi
5577
5578 if test -z "$have_llong_max"; then
5579 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5580 unset ac_cv_have_decl_LLONG_MAX
5581 saved_CFLAGS="$CFLAGS"
5582 CFLAGS="$CFLAGS -std=gnu99"
5583 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5584echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5585if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588 cat >conftest.$ac_ext <<_ACEOF
5589/* confdefs.h. */
5590_ACEOF
5591cat confdefs.h >>conftest.$ac_ext
5592cat >>conftest.$ac_ext <<_ACEOF
5593/* end confdefs.h. */
5594#include <limits.h>
5595
5596
5597int
5598main ()
5599{
5600#ifndef LLONG_MAX
5601 (void) LLONG_MAX;
5602#endif
5603
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
5614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.$ac_objext; then
5625 ac_cv_have_decl_LLONG_MAX=yes
5626else
5627 echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_cv_have_decl_LLONG_MAX=no
5631fi
5632
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634fi
5635{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5636echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5637if test $ac_cv_have_decl_LLONG_MAX = yes; then
5638 have_llong_max=1
5639else
5640 CFLAGS="$saved_CFLAGS"
5641fi
5642
5643 fi
5644fi
5645
5646if test "x$no_attrib_nonnull" != "x1" ; then
5647
5648cat >>confdefs.h <<\_ACEOF
5649#define HAVE_ATTRIBUTE__NONNULL__ 1
5650_ACEOF
5651
5652fi
5653
5654
5655# Check whether --with-rpath was given.
5656if test "${with_rpath+set}" = set; then
5657 withval=$with_rpath;
5658 if test "x$withval" = "xno" ; then
5659 need_dash_r=""
5660 fi
5661 if test "x$withval" = "xyes" ; then
5662 need_dash_r=1
5663 fi
5664
5665
5666fi
5667
5668
5669# Allow user to specify flags
5670
5671# Check whether --with-cflags was given.
5672if test "${with_cflags+set}" = set; then
5673 withval=$with_cflags;
5674 if test -n "$withval" && test "x$withval" != "xno" && \
5675 test "x${withval}" != "xyes"; then
5676 CFLAGS="$CFLAGS $withval"
5677 fi
5678
5679
5680fi
5681
5682
5683# Check whether --with-cppflags was given.
5684if test "${with_cppflags+set}" = set; then
5685 withval=$with_cppflags;
5686 if test -n "$withval" && test "x$withval" != "xno" && \
5687 test "x${withval}" != "xyes"; then
5688 CPPFLAGS="$CPPFLAGS $withval"
5689 fi
5690
5691
5692fi
5693
5694
5695# Check whether --with-ldflags was given.
5696if test "${with_ldflags+set}" = set; then
5697 withval=$with_ldflags;
5698 if test -n "$withval" && test "x$withval" != "xno" && \
5699 test "x${withval}" != "xyes"; then
5700 LDFLAGS="$LDFLAGS $withval"
5701 fi
5702
5703
5704fi
5705
5706
5707# Check whether --with-libs was given.
5708if test "${with_libs+set}" = set; then
5709 withval=$with_libs;
5710 if test -n "$withval" && test "x$withval" != "xno" && \
5711 test "x${withval}" != "xyes"; then
5712 LIBS="$LIBS $withval"
5713 fi
5714
5715
5716fi
5717
5718
5719# Check whether --with-Werror was given.
5720if test "${with_Werror+set}" = set; then
5721 withval=$with_Werror;
5722 if test -n "$withval" && test "x$withval" != "xno"; then
5723 werror_flags="-Werror"
5724 if test "x${withval}" != "xyes"; then
5725 werror_flags="$withval"
5726 fi
5727 fi
5728
5729
5730fi
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
5795
5796
5797for ac_header in \
5798 bstring.h \
5799 crypt.h \
5800 crypto/sha2.h \
5801 dirent.h \
5802 endian.h \
5803 features.h \
5804 fcntl.h \
5805 floatingpoint.h \
5806 getopt.h \
5807 glob.h \
5808 ia.h \
5809 iaf.h \
5810 limits.h \
5811 login.h \
5812 maillock.h \
5813 ndir.h \
5814 net/if_tun.h \
5815 netdb.h \
5816 netgroup.h \
5817 pam/pam_appl.h \
5818 paths.h \
5819 poll.h \
5820 pty.h \
5821 readpassphrase.h \
5822 rpc/types.h \
5823 security/pam_appl.h \
5824 sha2.h \
5825 shadow.h \
5826 stddef.h \
5827 stdint.h \
5828 string.h \
5829 strings.h \
5830 sys/audit.h \
5831 sys/bitypes.h \
5832 sys/bsdtty.h \
5833 sys/cdefs.h \
5834 sys/dir.h \
5835 sys/mman.h \
5836 sys/mount.h \
5837 sys/ndir.h \
5838 sys/poll.h \
5839 sys/prctl.h \
5840 sys/pstat.h \
5841 sys/select.h \
5842 sys/stat.h \
5843 sys/stream.h \
5844 sys/stropts.h \
5845 sys/strtio.h \
5846 sys/statvfs.h \
5847 sys/sysmacros.h \
5848 sys/time.h \
5849 sys/timers.h \
5850 sys/un.h \
5851 time.h \
5852 tmpdir.h \
5853 ttyent.h \
5854 ucred.h \
5855 unistd.h \
5856 usersec.h \
5857 util.h \
5858 utime.h \
5859 utmp.h \
5860 utmpx.h \
5861 vis.h \
5862
5863do
5864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870fi
5871ac_res=`eval echo '${'$as_ac_Header'}'`
5872 { echo "$as_me:$LINENO: result: $ac_res" >&5
5873echo "${ECHO_T}$ac_res" >&6; }
5874else
5875 # Is the header compilable?
5876{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5878cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
5884$ac_includes_default
5885#include <$ac_header>
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && {
5901 test -z "$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest.$ac_objext; then
5904 ac_header_compiler=yes
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_header_compiler=no
5910fi
5911
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5914echo "${ECHO_T}$ac_header_compiler" >&6; }
5915
5916# Is the header present?
5917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5919cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925#include <$ac_header>
5926_ACEOF
5927if { (ac_try="$ac_cpp conftest.$ac_ext"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
5943 ac_header_preproc=yes
5944else
5945 echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_header_preproc=no
5949fi
5950
5951rm -f conftest.err conftest.$ac_ext
5952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5953echo "${ECHO_T}$ac_header_preproc" >&6; }
5954
5955# So? What about this header?
5956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5957 yes:no: )
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5962 ac_header_preproc=yes
5963 ;;
5964 no:yes:* )
5965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5977 ( cat <<\_ASBOX
5978## ------------------------------------------- ##
5979## Report this to openssh-unix-dev@mindrot.org ##
5980## ------------------------------------------- ##
5981_ASBOX
5982 ) | sed "s/^/$as_me: WARNING: /" >&2
5983 ;;
5984esac
5985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990 eval "$as_ac_Header=\$ac_header_preproc"
5991fi
5992ac_res=`eval echo '${'$as_ac_Header'}'`
5993 { echo "$as_me:$LINENO: result: $ac_res" >&5
5994echo "${ECHO_T}$ac_res" >&6; }
5995
5996fi
5997if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000_ACEOF
6001
6002fi
6003
6004done
6005
6006
6007# lastlog.h requires sys/time.h to be included first on Solaris
6008
6009for ac_header in lastlog.h
6010do
6011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h. */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h. */
6023
6024#ifdef HAVE_SYS_TIME_H
6025# include <sys/time.h>
6026#endif
6027
6028
6029#include <$ac_header>
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (ac_try="$ac_compile"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest.$ac_objext; then
6048 eval "$as_ac_Header=yes"
6049else
6050 echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 eval "$as_ac_Header=no"
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058ac_res=`eval echo '${'$as_ac_Header'}'`
6059 { echo "$as_me:$LINENO: result: $ac_res" >&5
6060echo "${ECHO_T}$ac_res" >&6; }
6061if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064_ACEOF
6065
6066fi
6067
6068done
6069
6070
6071# sys/ptms.h requires sys/stream.h to be included first on Solaris
6072
6073for ac_header in sys/ptms.h
6074do
6075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
6087
6088#ifdef HAVE_SYS_STREAM_H
6089# include <sys/stream.h>
6090#endif
6091
6092
6093#include <$ac_header>
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_c_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6112 eval "$as_ac_Header=yes"
6113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 eval "$as_ac_Header=no"
6118fi
6119
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121fi
6122ac_res=`eval echo '${'$as_ac_Header'}'`
6123 { echo "$as_me:$LINENO: result: $ac_res" >&5
6124echo "${ECHO_T}$ac_res" >&6; }
6125if test `eval echo '${'$as_ac_Header'}'` = yes; then
6126 cat >>confdefs.h <<_ACEOF
6127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6128_ACEOF
6129
6130fi
6131
6132done
6133
6134
6135# login_cap.h requires sys/types.h on NetBSD
6136
6137for ac_header in login_cap.h
6138do
6139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
6152#include <sys/types.h>
6153
6154
6155#include <$ac_header>
6156_ACEOF
6157rm -f conftest.$ac_objext
6158if { (ac_try="$ac_compile"
6159case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162esac
6163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_compile") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.$ac_objext; then
6174 eval "$as_ac_Header=yes"
6175else
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 eval "$as_ac_Header=no"
6180fi
6181
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183fi
6184ac_res=`eval echo '${'$as_ac_Header'}'`
6185 { echo "$as_me:$LINENO: result: $ac_res" >&5
6186echo "${ECHO_T}$ac_res" >&6; }
6187if test `eval echo '${'$as_ac_Header'}'` = yes; then
6188 cat >>confdefs.h <<_ACEOF
6189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6190_ACEOF
6191
6192fi
6193
6194done
6195
6196
6197# Messages for features tested for in target-specific section
6198SIA_MSG="no"
6199SPC_MSG="no"
6200
6201# Check for some target-specific stuff
6202case "$host" in
6203*-*-aix*)
6204 # Some versions of VAC won't allow macro redefinitions at
6205 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6206 # particularly with older versions of vac or xlc.
6207 # It also throws errors about null macro argments, but these are
6208 # not fatal.
6209 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6210echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6211 cat >conftest.$ac_ext <<_ACEOF
6212/* confdefs.h. */
6213_ACEOF
6214cat confdefs.h >>conftest.$ac_ext
6215cat >>conftest.$ac_ext <<_ACEOF
6216/* end confdefs.h. */
6217
6218#define testmacro foo
6219#define testmacro bar
6220int main(void) { exit(0); }
6221
6222_ACEOF
6223rm -f conftest.$ac_objext
6224if { (ac_try="$ac_compile"
6225case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 { echo "$as_me:$LINENO: result: yes" >&5
6241echo "${ECHO_T}yes" >&6; }
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 { echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6; }
6248 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6249 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6250 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6251 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6252
6253
6254fi
6255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257
6258 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6259echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6260 if (test -z "$blibpath"); then
6261 blibpath="/usr/lib:/lib"
6262 fi
6263 saved_LDFLAGS="$LDFLAGS"
6264 if test "$GCC" = "yes"; then
6265 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6266 else
6267 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6268 fi
6269 for tryflags in $flags ;do
6270 if (test -z "$blibflags"); then
6271 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6272 cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h. */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h. */
6278
6279int
6280main ()
6281{
6282
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (ac_try="$ac_link"
6289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_link") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && {
6301 test -z "$ac_c_werror_flag" ||
6302 test ! -s conftest.err
6303 } && test -s conftest$ac_exeext &&
6304 $as_test_x conftest$ac_exeext; then
6305 blibflags=$tryflags
6306else
6307 echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310
6311fi
6312
6313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6314 conftest$ac_exeext conftest.$ac_ext
6315 fi
6316 done
6317 if (test -z "$blibflags"); then
6318 { echo "$as_me:$LINENO: result: not found" >&5
6319echo "${ECHO_T}not found" >&6; }
6320 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6321echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6322 { (exit 1); exit 1; }; }
6323 else
6324 { echo "$as_me:$LINENO: result: $blibflags" >&5
6325echo "${ECHO_T}$blibflags" >&6; }
6326 fi
6327 LDFLAGS="$saved_LDFLAGS"
6328 { echo "$as_me:$LINENO: checking for authenticate" >&5
6329echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6330if test "${ac_cv_func_authenticate+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333 cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6341#define authenticate innocuous_authenticate
6342
6343/* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char authenticate (); below.
6345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 <limits.h> exists even on freestanding compilers. */
6347
6348#ifdef __STDC__
6349# include <limits.h>
6350#else
6351# include <assert.h>
6352#endif
6353
6354#undef authenticate
6355
6356/* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6359#ifdef __cplusplus
6360extern "C"
6361#endif
6362char authenticate ();
6363/* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366#if defined __stub_authenticate || defined __stub___authenticate
6367choke me
6368#endif
6369
6370int
6371main ()
6372{
6373return authenticate ();
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378rm -f conftest.$ac_objext conftest$ac_exeext
6379if { (ac_try="$ac_link"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_link") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest$ac_exeext &&
6395 $as_test_x conftest$ac_exeext; then
6396 ac_cv_func_authenticate=yes
6397else
6398 echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 ac_cv_func_authenticate=no
6402fi
6403
6404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6405 conftest$ac_exeext conftest.$ac_ext
6406fi
6407{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6408echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6409if test $ac_cv_func_authenticate = yes; then
6410
6411cat >>confdefs.h <<\_ACEOF
6412#define WITH_AIXAUTHENTICATE 1
6413_ACEOF
6414
6415else
6416 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6417echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6418if test "${ac_cv_lib_s_authenticate+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421 ac_check_lib_save_LIBS=$LIBS
6422LIBS="-ls $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
6429
6430/* Override any GCC internal prototype to avoid an error.
6431 Use char because int might match the return type of a GCC
6432 builtin and then its argument prototype would still apply. */
6433#ifdef __cplusplus
6434extern "C"
6435#endif
6436char authenticate ();
6437int
6438main ()
6439{
6440return authenticate ();
6441 ;
6442 return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
6446if { (ac_try="$ac_link"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_link") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest$ac_exeext &&
6462 $as_test_x conftest$ac_exeext; then
6463 ac_cv_lib_s_authenticate=yes
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_cv_lib_s_authenticate=no
6469fi
6470
6471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6472 conftest$ac_exeext conftest.$ac_ext
6473LIBS=$ac_check_lib_save_LIBS
6474fi
6475{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6476echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6477if test $ac_cv_lib_s_authenticate = yes; then
6478 cat >>confdefs.h <<\_ACEOF
6479#define WITH_AIXAUTHENTICATE 1
6480_ACEOF
6481
6482 LIBS="$LIBS -ls"
6483
6484fi
6485
6486
6487fi
6488
6489 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6490echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6491if test "${ac_cv_have_decl_authenticate+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494 cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <usersec.h>
6501
6502int
6503main ()
6504{
6505#ifndef authenticate
6506 (void) authenticate;
6507#endif
6508
6509 ;
6510 return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext
6514if { (ac_try="$ac_compile"
6515case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_compile") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && {
6527 test -z "$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 } && test -s conftest.$ac_objext; then
6530 ac_cv_have_decl_authenticate=yes
6531else
6532 echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_cv_have_decl_authenticate=no
6536fi
6537
6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539fi
6540{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6541echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6542if test $ac_cv_have_decl_authenticate = yes; then
6543
6544cat >>confdefs.h <<_ACEOF
6545#define HAVE_DECL_AUTHENTICATE 1
6546_ACEOF
6547
6548
6549else
6550 cat >>confdefs.h <<_ACEOF
6551#define HAVE_DECL_AUTHENTICATE 0
6552_ACEOF
6553
6554
6555fi
6556{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6557echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6558if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
6567#include <usersec.h>
6568
6569int
6570main ()
6571{
6572#ifndef loginrestrictions
6573 (void) loginrestrictions;
6574#endif
6575
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext
6581if { (ac_try="$ac_compile"
6582case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 ac_cv_have_decl_loginrestrictions=yes
6598else
6599 echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 ac_cv_have_decl_loginrestrictions=no
6603fi
6604
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi
6607{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6608echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6609if test $ac_cv_have_decl_loginrestrictions = yes; then
6610
6611cat >>confdefs.h <<_ACEOF
6612#define HAVE_DECL_LOGINRESTRICTIONS 1
6613_ACEOF
6614
6615
6616else
6617 cat >>confdefs.h <<_ACEOF
6618#define HAVE_DECL_LOGINRESTRICTIONS 0
6619_ACEOF
6620
6621
6622fi
6623{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6624echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6625if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
6634#include <usersec.h>
6635
6636int
6637main ()
6638{
6639#ifndef loginsuccess
6640 (void) loginsuccess;
6641#endif
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext
6648if { (ac_try="$ac_compile"
6649case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_cv_have_decl_loginsuccess=yes
6665else
6666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 ac_cv_have_decl_loginsuccess=no
6670fi
6671
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6675echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6676if test $ac_cv_have_decl_loginsuccess = yes; then
6677
6678cat >>confdefs.h <<_ACEOF
6679#define HAVE_DECL_LOGINSUCCESS 1
6680_ACEOF
6681
6682
6683else
6684 cat >>confdefs.h <<_ACEOF
6685#define HAVE_DECL_LOGINSUCCESS 0
6686_ACEOF
6687
6688
6689fi
6690{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6691echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6692if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695 cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h. */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h. */
6701#include <usersec.h>
6702
6703int
6704main ()
6705{
6706#ifndef passwdexpired
6707 (void) passwdexpired;
6708#endif
6709
6710 ;
6711 return 0;
6712}
6713_ACEOF
6714rm -f conftest.$ac_objext
6715if { (ac_try="$ac_compile"
6716case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_compile") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest.$ac_objext; then
6731 ac_cv_have_decl_passwdexpired=yes
6732else
6733 echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 ac_cv_have_decl_passwdexpired=no
6737fi
6738
6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740fi
6741{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6742echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6743if test $ac_cv_have_decl_passwdexpired = yes; then
6744
6745cat >>confdefs.h <<_ACEOF
6746#define HAVE_DECL_PASSWDEXPIRED 1
6747_ACEOF
6748
6749
6750else
6751 cat >>confdefs.h <<_ACEOF
6752#define HAVE_DECL_PASSWDEXPIRED 0
6753_ACEOF
6754
6755
6756fi
6757{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6758echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6759if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761else
6762 cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
6768#include <usersec.h>
6769
6770int
6771main ()
6772{
6773#ifndef setauthdb
6774 (void) setauthdb;
6775#endif
6776
6777 ;
6778 return 0;
6779}
6780_ACEOF
6781rm -f conftest.$ac_objext
6782if { (ac_try="$ac_compile"
6783case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786esac
6787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_have_decl_setauthdb=yes
6799else
6800 echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_cv_have_decl_setauthdb=no
6804fi
6805
6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807fi
6808{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6809echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6810if test $ac_cv_have_decl_setauthdb = yes; then
6811
6812cat >>confdefs.h <<_ACEOF
6813#define HAVE_DECL_SETAUTHDB 1
6814_ACEOF
6815
6816
6817else
6818 cat >>confdefs.h <<_ACEOF
6819#define HAVE_DECL_SETAUTHDB 0
6820_ACEOF
6821
6822
6823fi
6824
6825
6826 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6827echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6828if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831 cat >conftest.$ac_ext <<_ACEOF
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837#include <usersec.h>
6838
6839
6840int
6841main ()
6842{
6843#ifndef loginfailed
6844 (void) loginfailed;
6845#endif
6846
6847 ;
6848 return 0;
6849}
6850_ACEOF
6851rm -f conftest.$ac_objext
6852if { (ac_try="$ac_compile"
6853case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856esac
6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 ac_cv_have_decl_loginfailed=yes
6869else
6870 echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 ac_cv_have_decl_loginfailed=no
6874fi
6875
6876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877fi
6878{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6879echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6880if test $ac_cv_have_decl_loginfailed = yes; then
6881
6882cat >>confdefs.h <<_ACEOF
6883#define HAVE_DECL_LOGINFAILED 1
6884_ACEOF
6885
6886{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6887echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6888 cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h. */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */
6894#include <usersec.h>
6895int
6896main ()
6897{
6898(void)loginfailed("user","host","tty",0);
6899 ;
6900 return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext
6904if { (ac_try="$ac_compile"
6905case "(($ac_try" in
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6908esac
6909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_compile") 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest.$ac_objext; then
6920 { echo "$as_me:$LINENO: result: yes" >&5
6921echo "${ECHO_T}yes" >&6; }
6922
6923cat >>confdefs.h <<\_ACEOF
6924#define AIX_LOGINFAILED_4ARG 1
6925_ACEOF
6926
6927else
6928 echo "$as_me: failed program was:" >&5
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933
6934fi
6935
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937else
6938 cat >>confdefs.h <<_ACEOF
6939#define HAVE_DECL_LOGINFAILED 0
6940_ACEOF
6941
6942
6943fi
6944
6945
6946
6947
6948for ac_func in getgrset setauthdb
6949do
6950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 cat >conftest.$ac_ext <<_ACEOF
6957/* confdefs.h. */
6958_ACEOF
6959cat confdefs.h >>conftest.$ac_ext
6960cat >>conftest.$ac_ext <<_ACEOF
6961/* end confdefs.h. */
6962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6964#define $ac_func innocuous_$ac_func
6965
6966/* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char $ac_func (); below.
6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 <limits.h> exists even on freestanding compilers. */
6970
6971#ifdef __STDC__
6972# include <limits.h>
6973#else
6974# include <assert.h>
6975#endif
6976
6977#undef $ac_func
6978
6979/* Override any GCC internal prototype to avoid an error.
6980 Use char because int might match the return type of a GCC
6981 builtin and then its argument prototype would still apply. */
6982#ifdef __cplusplus
6983extern "C"
6984#endif
6985char $ac_func ();
6986/* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989#if defined __stub_$ac_func || defined __stub___$ac_func
6990choke me
6991#endif
6992
6993int
6994main ()
6995{
6996return $ac_func ();
6997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (ac_try="$ac_link"
7003case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006esac
7007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest$ac_exeext &&
7018 $as_test_x conftest$ac_exeext; then
7019 eval "$as_ac_var=yes"
7020else
7021 echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 eval "$as_ac_var=no"
7025fi
7026
7027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028 conftest$ac_exeext conftest.$ac_ext
7029fi
7030ac_res=`eval echo '${'$as_ac_var'}'`
7031 { echo "$as_me:$LINENO: result: $ac_res" >&5
7032echo "${ECHO_T}$ac_res" >&6; }
7033if test `eval echo '${'$as_ac_var'}'` = yes; then
7034 cat >>confdefs.h <<_ACEOF
7035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7036_ACEOF
7037
7038fi
7039done
7040
7041 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7042echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7043if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052 #include <limits.h>
7053 #include <fcntl.h>
7054
7055
7056int
7057main ()
7058{
7059#ifndef F_CLOSEM
7060 (void) F_CLOSEM;
7061#endif
7062
7063 ;
7064 return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext
7068if { (ac_try="$ac_compile"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_have_decl_F_CLOSEM=yes
7085else
7086 echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ac_cv_have_decl_F_CLOSEM=no
7090fi
7091
7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093fi
7094{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7095echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7096if test $ac_cv_have_decl_F_CLOSEM = yes; then
7097
7098cat >>confdefs.h <<\_ACEOF
7099#define HAVE_FCNTL_CLOSEM 1
7100_ACEOF
7101
7102fi
7103
7104 check_for_aix_broken_getaddrinfo=1
7105
7106cat >>confdefs.h <<\_ACEOF
7107#define BROKEN_REALPATH 1
7108_ACEOF
7109
7110
7111cat >>confdefs.h <<\_ACEOF
7112#define SETEUID_BREAKS_SETUID 1
7113_ACEOF
7114
7115
7116cat >>confdefs.h <<\_ACEOF
7117#define BROKEN_SETREUID 1
7118_ACEOF
7119
7120
7121cat >>confdefs.h <<\_ACEOF
7122#define BROKEN_SETREGID 1
7123_ACEOF
7124
7125
7126cat >>confdefs.h <<\_ACEOF
7127#define DISABLE_LASTLOG 1
7128_ACEOF
7129
7130
7131cat >>confdefs.h <<\_ACEOF
7132#define LOGIN_NEEDS_UTMPX 1
7133_ACEOF
7134
7135
7136cat >>confdefs.h <<\_ACEOF
7137#define SPT_TYPE SPT_REUSEARGV
7138_ACEOF
7139
7140
7141cat >>confdefs.h <<\_ACEOF
7142#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7143_ACEOF
7144
7145
7146cat >>confdefs.h <<\_ACEOF
7147#define PTY_ZEROREAD 1
7148_ACEOF
7149
7150 ;;
7151*-*-cygwin*)
7152 check_for_libcrypt_later=1
7153 LIBS="$LIBS /usr/lib/textreadmode.o"
7154
7155cat >>confdefs.h <<\_ACEOF
7156#define HAVE_CYGWIN 1
7157_ACEOF
7158
7159
7160cat >>confdefs.h <<\_ACEOF
7161#define USE_PIPES 1
7162_ACEOF
7163
7164
7165cat >>confdefs.h <<\_ACEOF
7166#define DISABLE_SHADOW 1
7167_ACEOF
7168
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define IP_TOS_IS_BROKEN 1
7172_ACEOF
7173
7174
7175cat >>confdefs.h <<\_ACEOF
7176#define NO_X11_UNIX_SOCKETS 1
7177_ACEOF
7178
7179
7180cat >>confdefs.h <<\_ACEOF
7181#define NO_IPPORT_RESERVED_CONCEPT 1
7182_ACEOF
7183
7184
7185cat >>confdefs.h <<\_ACEOF
7186#define DISABLE_FD_PASSING 1
7187_ACEOF
7188
7189 ;;
7190*-*-dgux*)
7191 cat >>confdefs.h <<\_ACEOF
7192#define IP_TOS_IS_BROKEN 1
7193_ACEOF
7194
7195 cat >>confdefs.h <<\_ACEOF
7196#define SETEUID_BREAKS_SETUID 1
7197_ACEOF
7198
7199 cat >>confdefs.h <<\_ACEOF
7200#define BROKEN_SETREUID 1
7201_ACEOF
7202
7203 cat >>confdefs.h <<\_ACEOF
7204#define BROKEN_SETREGID 1
7205_ACEOF
7206
7207 ;;
7208*-*-darwin*)
7209 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7210echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7211 if test "$cross_compiling" = yes; then
7212 { echo "$as_me:$LINENO: result: assume it is working" >&5
7213echo "${ECHO_T}assume it is working" >&6; }
7214else
7215 cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h. */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h. */
7221#include <mach-o/dyld.h>
7222main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7223 exit(0);
7224 else
7225 exit(1);
7226}
7227_ACEOF
7228rm -f conftest$ac_exeext
7229if { (ac_try="$ac_link"
7230case "(($ac_try" in
7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232 *) ac_try_echo=$ac_try;;
7233esac
7234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235 (eval "$ac_link") 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7239 { (case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_try") 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 { echo "$as_me:$LINENO: result: working" >&5
7249echo "${ECHO_T}working" >&6; }
7250else
7251 echo "$as_me: program exited with status $ac_status" >&5
7252echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255( exit $ac_status )
7256{ echo "$as_me:$LINENO: result: buggy" >&5
7257echo "${ECHO_T}buggy" >&6; }
7258
7259cat >>confdefs.h <<\_ACEOF
7260#define BROKEN_GETADDRINFO 1
7261_ACEOF
7262
7263fi
7264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7265fi
7266
7267
7268 cat >>confdefs.h <<\_ACEOF
7269#define SETEUID_BREAKS_SETUID 1
7270_ACEOF
7271
7272 cat >>confdefs.h <<\_ACEOF
7273#define BROKEN_SETREUID 1
7274_ACEOF
7275
7276 cat >>confdefs.h <<\_ACEOF
7277#define BROKEN_SETREGID 1
7278_ACEOF
7279
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define BROKEN_GLOB 1
7283_ACEOF
7284
7285
7286cat >>confdefs.h <<_ACEOF
7287#define BIND_8_COMPAT 1
7288_ACEOF
7289
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define SSH_TUN_FREEBSD 1
7293_ACEOF
7294
7295
7296cat >>confdefs.h <<\_ACEOF
7297#define SSH_TUN_COMPAT_AF 1
7298_ACEOF
7299
7300
7301cat >>confdefs.h <<\_ACEOF
7302#define SSH_TUN_PREPEND_AF 1
7303_ACEOF
7304
7305
7306 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7307echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7308if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h. */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
7316/* end confdefs.h. */
7317$ac_includes_default
7318int
7319main ()
7320{
7321#ifndef AU_IPv4
7322 (void) AU_IPv4;
7323#endif
7324
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329rm -f conftest.$ac_objext
7330if { (ac_try="$ac_compile"
7331case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334esac
7335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_have_decl_AU_IPv4=yes
7347else
7348 echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_cv_have_decl_AU_IPv4=no
7352fi
7353
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7357echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7358if test $ac_cv_have_decl_AU_IPv4 = yes; then
7359 :
7360else
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define AU_IPv4 0
7364_ACEOF
7365
7366 #include <bsm/audit.h>
7367
7368fi
7369
7370 ;;
7371*-*-dragonfly*)
7372 SSHDLIBS="$SSHDLIBS -lcrypt"
7373 ;;
7374*-*-hpux*)
7375 # first we define all of the options common to all HP-UX releases
7376 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7377 IPADDR_IN_DISPLAY=yes
7378 cat >>confdefs.h <<\_ACEOF
7379#define USE_PIPES 1
7380_ACEOF
7381
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define LOGIN_NO_ENDOPT 1
7385_ACEOF
7386
7387 cat >>confdefs.h <<\_ACEOF
7388#define LOGIN_NEEDS_UTMPX 1
7389_ACEOF
7390
7391
7392cat >>confdefs.h <<\_ACEOF
7393#define LOCKED_PASSWD_STRING "*"
7394_ACEOF
7395
7396 cat >>confdefs.h <<\_ACEOF
7397#define SPT_TYPE SPT_PSTAT
7398_ACEOF
7399
7400 MAIL="/var/mail/username"
7401 LIBS="$LIBS -lsec"
7402
7403{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7404echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7405if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 ac_check_lib_save_LIBS=$LIBS
7409LIBS="-lxnet $LIBS"
7410cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h. */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h. */
7416
7417/* Override any GCC internal prototype to avoid an error.
7418 Use char because int might match the return type of a GCC
7419 builtin and then its argument prototype would still apply. */
7420#ifdef __cplusplus
7421extern "C"
7422#endif
7423char t_error ();
7424int
7425main ()
7426{
7427return t_error ();
7428 ;
7429 return 0;
7430}
7431_ACEOF
7432rm -f conftest.$ac_objext conftest$ac_exeext
7433if { (ac_try="$ac_link"
7434case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437esac
7438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_link") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest$ac_exeext &&
7449 $as_test_x conftest$ac_exeext; then
7450 ac_cv_lib_xnet_t_error=yes
7451else
7452 echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_cv_lib_xnet_t_error=no
7456fi
7457
7458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7459 conftest$ac_exeext conftest.$ac_ext
7460LIBS=$ac_check_lib_save_LIBS
7461fi
7462{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7463echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7464if test $ac_cv_lib_xnet_t_error = yes; then
7465 cat >>confdefs.h <<_ACEOF
7466#define HAVE_LIBXNET 1
7467_ACEOF
7468
7469 LIBS="-lxnet $LIBS"
7470
7471else
7472 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7473echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7474 { (exit 1); exit 1; }; }
7475fi
7476
7477
7478 # next, we define all of the options specific to major releases
7479 case "$host" in
7480 *-*-hpux10*)
7481 if test -z "$GCC"; then
7482 CFLAGS="$CFLAGS -Ae"
7483 fi
7484 ;;
7485 *-*-hpux11*)
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define PAM_SUN_CODEBASE 1
7489_ACEOF
7490
7491
7492cat >>confdefs.h <<\_ACEOF
7493#define DISABLE_UTMP 1
7494_ACEOF
7495
7496
7497cat >>confdefs.h <<\_ACEOF
7498#define USE_BTMP 1
7499_ACEOF
7500
7501 check_for_hpux_broken_getaddrinfo=1
7502 check_for_conflicting_getspnam=1
7503 ;;
7504 esac
7505
7506 # lastly, we define options specific to minor releases
7507 case "$host" in
7508 *-*-hpux10.26)
7509
7510cat >>confdefs.h <<\_ACEOF
7511#define HAVE_SECUREWARE 1
7512_ACEOF
7513
7514 disable_ptmx_check=yes
7515 LIBS="$LIBS -lsecpw"
7516 ;;
7517 esac
7518 ;;
7519*-*-irix5*)
7520 PATH="$PATH:/usr/etc"
7521
7522cat >>confdefs.h <<\_ACEOF
7523#define BROKEN_INET_NTOA 1
7524_ACEOF
7525
7526 cat >>confdefs.h <<\_ACEOF
7527#define SETEUID_BREAKS_SETUID 1
7528_ACEOF
7529
7530 cat >>confdefs.h <<\_ACEOF
7531#define BROKEN_SETREUID 1
7532_ACEOF
7533
7534 cat >>confdefs.h <<\_ACEOF
7535#define BROKEN_SETREGID 1
7536_ACEOF
7537
7538
7539cat >>confdefs.h <<\_ACEOF
7540#define WITH_ABBREV_NO_TTY 1
7541_ACEOF
7542
7543 cat >>confdefs.h <<\_ACEOF
7544#define LOCKED_PASSWD_STRING "*LK*"
7545_ACEOF
7546
7547 ;;
7548*-*-irix6*)
7549 PATH="$PATH:/usr/etc"
7550
7551cat >>confdefs.h <<\_ACEOF
7552#define WITH_IRIX_ARRAY 1
7553_ACEOF
7554
7555
7556cat >>confdefs.h <<\_ACEOF
7557#define WITH_IRIX_PROJECT 1
7558_ACEOF
7559
7560
7561cat >>confdefs.h <<\_ACEOF
7562#define WITH_IRIX_AUDIT 1
7563_ACEOF
7564
7565 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7566echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7567if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7578#define jlimit_startjob innocuous_jlimit_startjob
7579
7580/* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char jlimit_startjob (); below.
7582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583 <limits.h> exists even on freestanding compilers. */
7584
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
7590
7591#undef jlimit_startjob
7592
7593/* Override any GCC internal prototype to avoid an error.
7594 Use char because int might match the return type of a GCC
7595 builtin and then its argument prototype would still apply. */
7596#ifdef __cplusplus
7597extern "C"
7598#endif
7599char jlimit_startjob ();
7600/* The GNU C library defines this for functions which it implements
7601 to always fail with ENOSYS. Some functions are actually named
7602 something starting with __ and the normal name is an alias. */
7603#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7604choke me
7605#endif
7606
7607int
7608main ()
7609{
7610return jlimit_startjob ();
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (ac_try="$ac_link"
7617case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620esac
7621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_link") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest$ac_exeext &&
7632 $as_test_x conftest$ac_exeext; then
7633 ac_cv_func_jlimit_startjob=yes
7634else
7635 echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_cv_func_jlimit_startjob=no
7639fi
7640
7641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642 conftest$ac_exeext conftest.$ac_ext
7643fi
7644{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7645echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7646if test $ac_cv_func_jlimit_startjob = yes; then
7647
7648cat >>confdefs.h <<\_ACEOF
7649#define WITH_IRIX_JOBS 1
7650_ACEOF
7651
7652fi
7653
7654 cat >>confdefs.h <<\_ACEOF
7655#define BROKEN_INET_NTOA 1
7656_ACEOF
7657
7658 cat >>confdefs.h <<\_ACEOF
7659#define SETEUID_BREAKS_SETUID 1
7660_ACEOF
7661
7662 cat >>confdefs.h <<\_ACEOF
7663#define BROKEN_SETREUID 1
7664_ACEOF
7665
7666 cat >>confdefs.h <<\_ACEOF
7667#define BROKEN_SETREGID 1
7668_ACEOF
7669
7670
7671cat >>confdefs.h <<\_ACEOF
7672#define BROKEN_UPDWTMPX 1
7673_ACEOF
7674
7675 cat >>confdefs.h <<\_ACEOF
7676#define WITH_ABBREV_NO_TTY 1
7677_ACEOF
7678
7679 cat >>confdefs.h <<\_ACEOF
7680#define LOCKED_PASSWD_STRING "*LK*"
7681_ACEOF
7682
7683 ;;
7684*-*-linux*)
7685 no_dev_ptmx=1
7686 check_for_libcrypt_later=1
7687 check_for_openpty_ctty_bug=1
7688
7689cat >>confdefs.h <<\_ACEOF
7690#define PAM_TTY_KLUDGE 1
7691_ACEOF
7692
7693
7694cat >>confdefs.h <<\_ACEOF
7695#define LOCKED_PASSWD_PREFIX "!"
7696_ACEOF
7697
7698 cat >>confdefs.h <<\_ACEOF
7699#define SPT_TYPE SPT_REUSEARGV
7700_ACEOF
7701
7702
7703cat >>confdefs.h <<\_ACEOF
7704#define LINK_OPNOTSUPP_ERRNO EPERM
7705_ACEOF
7706
7707
7708cat >>confdefs.h <<\_ACEOF
7709#define _PATH_BTMP "/var/log/btmp"
7710_ACEOF
7711
7712 cat >>confdefs.h <<\_ACEOF
7713#define USE_BTMP 1
7714_ACEOF
7715
7716 inet6_default_4in6=yes
7717 case `uname -r` in
7718 1.*|2.0.*)
7719
7720cat >>confdefs.h <<\_ACEOF
7721#define BROKEN_CMSG_TYPE 1
7722_ACEOF
7723
7724 ;;
7725 esac
7726 # tun(4) forwarding compat code
7727
7728for ac_header in linux/if_tun.h
7729do
7730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736fi
7737ac_res=`eval echo '${'$as_ac_Header'}'`
7738 { echo "$as_me:$LINENO: result: $ac_res" >&5
7739echo "${ECHO_T}$ac_res" >&6; }
7740else
7741 # Is the header compilable?
7742{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7744cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h. */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h. */
7750$ac_includes_default
7751#include <$ac_header>
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (ac_try="$ac_compile"
7755case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
7770 ac_header_compiler=yes
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_header_compiler=no
7776fi
7777
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7780echo "${ECHO_T}$ac_header_compiler" >&6; }
7781
7782# Is the header present?
7783{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7785cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
7791#include <$ac_header>
7792_ACEOF
7793if { (ac_try="$ac_cpp conftest.$ac_ext"
7794case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797esac
7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } >/dev/null && {
7806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 }; then
7809 ac_header_preproc=yes
7810else
7811 echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_header_preproc=no
7815fi
7816
7817rm -f conftest.err conftest.$ac_ext
7818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819echo "${ECHO_T}$ac_header_preproc" >&6; }
7820
7821# So? What about this header?
7822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7823 yes:no: )
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7828 ac_header_preproc=yes
7829 ;;
7830 no:yes:* )
7831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7843 ( cat <<\_ASBOX
7844## ------------------------------------------- ##
7845## Report this to openssh-unix-dev@mindrot.org ##
7846## ------------------------------------------- ##
7847_ASBOX
7848 ) | sed "s/^/$as_me: WARNING: /" >&2
7849 ;;
7850esac
7851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 eval "$as_ac_Header=\$ac_header_preproc"
7857fi
7858ac_res=`eval echo '${'$as_ac_Header'}'`
7859 { echo "$as_me:$LINENO: result: $ac_res" >&5
7860echo "${ECHO_T}$ac_res" >&6; }
7861
7862fi
7863if test `eval echo '${'$as_ac_Header'}'` = yes; then
7864 cat >>confdefs.h <<_ACEOF
7865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866_ACEOF
7867
7868fi
7869
7870done
7871
7872 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7873
7874cat >>confdefs.h <<\_ACEOF
7875#define SSH_TUN_LINUX 1
7876_ACEOF
7877
7878
7879cat >>confdefs.h <<\_ACEOF
7880#define SSH_TUN_COMPAT_AF 1
7881_ACEOF
7882
7883
7884cat >>confdefs.h <<\_ACEOF
7885#define SSH_TUN_PREPEND_AF 1
7886_ACEOF
7887
7888 fi
7889 ;;
7890mips-sony-bsd|mips-sony-newsos4)
7891
7892cat >>confdefs.h <<\_ACEOF
7893#define NEED_SETPGRP 1
7894_ACEOF
7895
7896 SONY=1
7897 ;;
7898*-*-netbsd*)
7899 check_for_libcrypt_before=1
7900 if test "x$withval" != "xno" ; then
7901 need_dash_r=1
7902 fi
7903
7904cat >>confdefs.h <<\_ACEOF
7905#define SSH_TUN_FREEBSD 1
7906_ACEOF
7907
7908 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7909 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7910echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7911if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913fi
7914{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7915echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7916else
7917 # Is the header compilable?
7918{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7919echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7920cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h. */
7926$ac_includes_default
7927#include <net/if_tap.h>
7928_ACEOF
7929rm -f conftest.$ac_objext
7930if { (ac_try="$ac_compile"
7931case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934esac
7935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_header_compiler=yes
7947else
7948 echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_header_compiler=no
7952fi
7953
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7956echo "${ECHO_T}$ac_header_compiler" >&6; }
7957
7958# Is the header present?
7959{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7960echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7961cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967#include <net/if_tap.h>
7968_ACEOF
7969if { (ac_try="$ac_cpp conftest.$ac_ext"
7970case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } >/dev/null && {
7982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 }; then
7985 ac_header_preproc=yes
7986else
7987 echo "$as_me: failed program was:" >&5
7988sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_header_preproc=no
7991fi
7992
7993rm -f conftest.err conftest.$ac_ext
7994{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7995echo "${ECHO_T}$ac_header_preproc" >&6; }
7996
7997# So? What about this header?
7998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7999 yes:no: )
8000 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8001echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8003echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8004 ac_header_preproc=yes
8005 ;;
8006 no:yes:* )
8007 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8008echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8010echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8012echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8014echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8016echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8017 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8018echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8019 ( cat <<\_ASBOX
8020## ------------------------------------------- ##
8021## Report this to openssh-unix-dev@mindrot.org ##
8022## ------------------------------------------- ##
8023_ASBOX
8024 ) | sed "s/^/$as_me: WARNING: /" >&2
8025 ;;
8026esac
8027{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8028echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8029if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 ac_cv_header_net_if_tap_h=$ac_header_preproc
8033fi
8034{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8035echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8036
8037fi
8038if test $ac_cv_header_net_if_tap_h = yes; then
8039 :
8040else
8041
8042cat >>confdefs.h <<\_ACEOF
8043#define SSH_TUN_NO_L2 1
8044_ACEOF
8045
8046fi
8047
8048
8049
8050cat >>confdefs.h <<\_ACEOF
8051#define SSH_TUN_PREPEND_AF 1
8052_ACEOF
8053
8054 ;;
8055*-*-freebsd*)
8056 check_for_libcrypt_later=1
8057
8058cat >>confdefs.h <<\_ACEOF
8059#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8060_ACEOF
8061
8062
8063cat >>confdefs.h <<\_ACEOF
8064#define SSH_TUN_FREEBSD 1
8065_ACEOF
8066
8067 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8068 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8069echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8070if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072fi
8073{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8074echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8075else
8076 # Is the header compilable?
8077{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8078echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8079cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
8085$ac_includes_default
8086#include <net/if_tap.h>
8087_ACEOF
8088rm -f conftest.$ac_objext
8089if { (ac_try="$ac_compile"
8090case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093esac
8094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_header_compiler=yes
8106else
8107 echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_header_compiler=no
8111fi
8112
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8115echo "${ECHO_T}$ac_header_compiler" >&6; }
8116
8117# Is the header present?
8118{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8119echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8120cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126#include <net/if_tap.h>
8127_ACEOF
8128if { (ac_try="$ac_cpp conftest.$ac_ext"
8129case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev/null && {
8141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 }; then
8144 ac_header_preproc=yes
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_header_preproc=no
8150fi
8151
8152rm -f conftest.err conftest.$ac_ext
8153{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8154echo "${ECHO_T}$ac_header_preproc" >&6; }
8155
8156# So? What about this header?
8157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8158 yes:no: )
8159 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8160echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8162echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8163 ac_header_preproc=yes
8164 ;;
8165 no:yes:* )
8166 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8167echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8169echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8171echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8173echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8174 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8175echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8177echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8178 ( cat <<\_ASBOX
8179## ------------------------------------------- ##
8180## Report this to openssh-unix-dev@mindrot.org ##
8181## ------------------------------------------- ##
8182_ASBOX
8183 ) | sed "s/^/$as_me: WARNING: /" >&2
8184 ;;
8185esac
8186{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8187echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8188if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 ac_cv_header_net_if_tap_h=$ac_header_preproc
8192fi
8193{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8194echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8195
8196fi
8197if test $ac_cv_header_net_if_tap_h = yes; then
8198 :
8199else
8200
8201cat >>confdefs.h <<\_ACEOF
8202#define SSH_TUN_NO_L2 1
8203_ACEOF
8204
8205fi
8206
8207
8208
8209cat >>confdefs.h <<\_ACEOF
8210#define BROKEN_GLOB 1
8211_ACEOF
8212
8213 ;;
8214*-*-bsdi*)
8215 cat >>confdefs.h <<\_ACEOF
8216#define SETEUID_BREAKS_SETUID 1
8217_ACEOF
8218
8219 cat >>confdefs.h <<\_ACEOF
8220#define BROKEN_SETREUID 1
8221_ACEOF
8222
8223 cat >>confdefs.h <<\_ACEOF
8224#define BROKEN_SETREGID 1
8225_ACEOF
8226
8227 ;;
8228*-next-*)
8229 conf_lastlog_location="/usr/adm/lastlog"
8230 conf_utmp_location=/etc/utmp
8231 conf_wtmp_location=/usr/adm/wtmp
8232 MAIL=/usr/spool/mail
8233
8234cat >>confdefs.h <<\_ACEOF
8235#define HAVE_NEXT 1
8236_ACEOF
8237
8238 cat >>confdefs.h <<\_ACEOF
8239#define BROKEN_REALPATH 1
8240_ACEOF
8241
8242 cat >>confdefs.h <<\_ACEOF
8243#define USE_PIPES 1
8244_ACEOF
8245
8246
8247cat >>confdefs.h <<\_ACEOF
8248#define BROKEN_SAVED_UIDS 1
8249_ACEOF
8250
8251 ;;
8252*-*-openbsd*)
8253
8254cat >>confdefs.h <<\_ACEOF
8255#define HAVE_ATTRIBUTE__SENTINEL__ 1
8256_ACEOF
8257
8258
8259cat >>confdefs.h <<\_ACEOF
8260#define HAVE_ATTRIBUTE__BOUNDED__ 1
8261_ACEOF
8262
8263
8264cat >>confdefs.h <<\_ACEOF
8265#define SSH_TUN_OPENBSD 1
8266_ACEOF
8267
8268
8269cat >>confdefs.h <<\_ACEOF
8270#define SYSLOG_R_SAFE_IN_SIGHAND 1
8271_ACEOF
8272
8273 ;;
8274*-*-solaris*)
8275 if test "x$withval" != "xno" ; then
8276 need_dash_r=1
8277 fi
8278 cat >>confdefs.h <<\_ACEOF
8279#define PAM_SUN_CODEBASE 1
8280_ACEOF
8281
8282 cat >>confdefs.h <<\_ACEOF
8283#define LOGIN_NEEDS_UTMPX 1
8284_ACEOF
8285
8286
8287cat >>confdefs.h <<\_ACEOF
8288#define LOGIN_NEEDS_TERM 1
8289_ACEOF
8290
8291 cat >>confdefs.h <<\_ACEOF
8292#define PAM_TTY_KLUDGE 1
8293_ACEOF
8294
8295
8296cat >>confdefs.h <<\_ACEOF
8297#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8298_ACEOF
8299
8300 cat >>confdefs.h <<\_ACEOF
8301#define LOCKED_PASSWD_STRING "*LK*"
8302_ACEOF
8303
8304 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8305
8306cat >>confdefs.h <<\_ACEOF
8307#define SSHD_ACQUIRES_CTTY 1
8308_ACEOF
8309
8310
8311cat >>confdefs.h <<\_ACEOF
8312#define PASSWD_NEEDS_USERNAME 1
8313_ACEOF
8314
8315 external_path_file=/etc/default/login
8316 # hardwire lastlog location (can't detect it on some versions)
8317 conf_lastlog_location="/var/adm/lastlog"
8318 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8319echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8320 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8321 if test "$sol2ver" -ge 8; then
8322 { echo "$as_me:$LINENO: result: yes" >&5
8323echo "${ECHO_T}yes" >&6; }
8324 cat >>confdefs.h <<\_ACEOF
8325#define DISABLE_UTMP 1
8326_ACEOF
8327
8328
8329cat >>confdefs.h <<\_ACEOF
8330#define DISABLE_WTMP 1
8331_ACEOF
8332
8333 else
8334 { echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6; }
8336 fi
8337
8338# Check whether --with-solaris-contracts was given.
8339if test "${with_solaris_contracts+set}" = set; then
8340 withval=$with_solaris_contracts;
8341 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8342echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8343if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346 ac_check_lib_save_LIBS=$LIBS
8347LIBS="-lcontract $LIBS"
8348cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h. */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h. */
8354
8355/* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8358#ifdef __cplusplus
8359extern "C"
8360#endif
8361char ct_tmpl_activate ();
8362int
8363main ()
8364{
8365return ct_tmpl_activate ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (ac_try="$ac_link"
8372case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest$ac_exeext &&
8387 $as_test_x conftest$ac_exeext; then
8388 ac_cv_lib_contract_ct_tmpl_activate=yes
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ac_cv_lib_contract_ct_tmpl_activate=no
8394fi
8395
8396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8397 conftest$ac_exeext conftest.$ac_ext
8398LIBS=$ac_check_lib_save_LIBS
8399fi
8400{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8401echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8402if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8403
8404cat >>confdefs.h <<\_ACEOF
8405#define USE_SOLARIS_PROCESS_CONTRACTS 1
8406_ACEOF
8407
8408 SSHDLIBS="$SSHDLIBS -lcontract"
8409
8410 SPC_MSG="yes"
8411fi
8412
8413
8414fi
8415
8416 ;;
8417*-*-sunos4*)
8418 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8419
8420for ac_func in getpwanam
8421do
8422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8423{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
8434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8436#define $ac_func innocuous_$ac_func
8437
8438/* System header to define __stub macros and hopefully few prototypes,
8439 which can conflict with char $ac_func (); below.
8440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441 <limits.h> exists even on freestanding compilers. */
8442
8443#ifdef __STDC__
8444# include <limits.h>
8445#else
8446# include <assert.h>
8447#endif
8448
8449#undef $ac_func
8450
8451/* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8454#ifdef __cplusplus
8455extern "C"
8456#endif
8457char $ac_func ();
8458/* The GNU C library defines this for functions which it implements
8459 to always fail with ENOSYS. Some functions are actually named
8460 something starting with __ and the normal name is an alias. */
8461#if defined __stub_$ac_func || defined __stub___$ac_func
8462choke me
8463#endif
8464
8465int
8466main ()
8467{
8468return $ac_func ();
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext conftest$ac_exeext
8474if { (ac_try="$ac_link"
8475case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
8479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_link") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest$ac_exeext &&
8490 $as_test_x conftest$ac_exeext; then
8491 eval "$as_ac_var=yes"
8492else
8493 echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 eval "$as_ac_var=no"
8497fi
8498
8499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8500 conftest$ac_exeext conftest.$ac_ext
8501fi
8502ac_res=`eval echo '${'$as_ac_var'}'`
8503 { echo "$as_me:$LINENO: result: $ac_res" >&5
8504echo "${ECHO_T}$ac_res" >&6; }
8505if test `eval echo '${'$as_ac_var'}'` = yes; then
8506 cat >>confdefs.h <<_ACEOF
8507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8508_ACEOF
8509
8510fi
8511done
8512
8513 cat >>confdefs.h <<\_ACEOF
8514#define PAM_SUN_CODEBASE 1
8515_ACEOF
8516
8517 conf_utmp_location=/etc/utmp
8518 conf_wtmp_location=/var/adm/wtmp
8519 conf_lastlog_location=/var/adm/lastlog
8520 cat >>confdefs.h <<\_ACEOF
8521#define USE_PIPES 1
8522_ACEOF
8523
8524 ;;
8525*-ncr-sysv*)
8526 LIBS="$LIBS -lc89"
8527 cat >>confdefs.h <<\_ACEOF
8528#define USE_PIPES 1
8529_ACEOF
8530
8531 cat >>confdefs.h <<\_ACEOF
8532#define SSHD_ACQUIRES_CTTY 1
8533_ACEOF
8534
8535 cat >>confdefs.h <<\_ACEOF
8536#define SETEUID_BREAKS_SETUID 1
8537_ACEOF
8538
8539 cat >>confdefs.h <<\_ACEOF
8540#define BROKEN_SETREUID 1
8541_ACEOF
8542
8543 cat >>confdefs.h <<\_ACEOF
8544#define BROKEN_SETREGID 1
8545_ACEOF
8546
8547 ;;
8548*-sni-sysv*)
8549 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8550
8551{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8552echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8553if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556 ac_check_lib_save_LIBS=$LIBS
8557LIBS="-ldl $LIBS"
8558cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char dlsym ();
8572int
8573main ()
8574{
8575return dlsym ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580rm -f conftest.$ac_objext conftest$ac_exeext
8581if { (ac_try="$ac_link"
8582case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext &&
8597 $as_test_x conftest$ac_exeext; then
8598 ac_cv_lib_dl_dlsym=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 ac_cv_lib_dl_dlsym=no
8604fi
8605
8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607 conftest$ac_exeext conftest.$ac_ext
8608LIBS=$ac_check_lib_save_LIBS
8609fi
8610{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8611echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8612if test $ac_cv_lib_dl_dlsym = yes; then
8613 cat >>confdefs.h <<_ACEOF
8614#define HAVE_LIBDL 1
8615_ACEOF
8616
8617 LIBS="-ldl $LIBS"
8618
8619fi
8620
8621 # -lresolv needs to be at the end of LIBS or DNS lookups break
8622 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8623echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8624if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626else
8627 ac_check_lib_save_LIBS=$LIBS
8628LIBS="-lresolv $LIBS"
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635
8636/* Override any GCC internal prototype to avoid an error.
8637 Use char because int might match the return type of a GCC
8638 builtin and then its argument prototype would still apply. */
8639#ifdef __cplusplus
8640extern "C"
8641#endif
8642char res_query ();
8643int
8644main ()
8645{
8646return res_query ();
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext conftest$ac_exeext
8652if { (ac_try="$ac_link"
8653case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656esac
8657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_link") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest$ac_exeext &&
8668 $as_test_x conftest$ac_exeext; then
8669 ac_cv_lib_resolv_res_query=yes
8670else
8671 echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_lib_resolv_res_query=no
8675fi
8676
8677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8678 conftest$ac_exeext conftest.$ac_ext
8679LIBS=$ac_check_lib_save_LIBS
8680fi
8681{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8682echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8683if test $ac_cv_lib_resolv_res_query = yes; then
8684 LIBS="$LIBS -lresolv"
8685fi
8686
8687 IPADDR_IN_DISPLAY=yes
8688 cat >>confdefs.h <<\_ACEOF
8689#define USE_PIPES 1
8690_ACEOF
8691
8692 cat >>confdefs.h <<\_ACEOF
8693#define IP_TOS_IS_BROKEN 1
8694_ACEOF
8695
8696 cat >>confdefs.h <<\_ACEOF
8697#define SETEUID_BREAKS_SETUID 1
8698_ACEOF
8699
8700 cat >>confdefs.h <<\_ACEOF
8701#define BROKEN_SETREUID 1
8702_ACEOF
8703
8704 cat >>confdefs.h <<\_ACEOF
8705#define BROKEN_SETREGID 1
8706_ACEOF
8707
8708 cat >>confdefs.h <<\_ACEOF
8709#define SSHD_ACQUIRES_CTTY 1
8710_ACEOF
8711
8712 external_path_file=/etc/default/login
8713 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8714 # Attention: always take care to bind libsocket and libnsl before libc,
8715 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8716 ;;
8717# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8718*-*-sysv4.2*)
8719 cat >>confdefs.h <<\_ACEOF
8720#define USE_PIPES 1
8721_ACEOF
8722
8723 cat >>confdefs.h <<\_ACEOF
8724#define SETEUID_BREAKS_SETUID 1
8725_ACEOF
8726
8727 cat >>confdefs.h <<\_ACEOF
8728#define BROKEN_SETREUID 1
8729_ACEOF
8730
8731 cat >>confdefs.h <<\_ACEOF
8732#define BROKEN_SETREGID 1
8733_ACEOF
8734
8735
8736cat >>confdefs.h <<\_ACEOF
8737#define PASSWD_NEEDS_USERNAME 1
8738_ACEOF
8739
8740 cat >>confdefs.h <<\_ACEOF
8741#define LOCKED_PASSWD_STRING "*LK*"
8742_ACEOF
8743
8744 ;;
8745# UnixWare 7.x, OpenUNIX 8
8746*-*-sysv5*)
8747 check_for_libcrypt_later=1
8748
8749cat >>confdefs.h <<\_ACEOF
8750#define UNIXWARE_LONG_PASSWORDS 1
8751_ACEOF
8752
8753 cat >>confdefs.h <<\_ACEOF
8754#define USE_PIPES 1
8755_ACEOF
8756
8757 cat >>confdefs.h <<\_ACEOF
8758#define SETEUID_BREAKS_SETUID 1
8759_ACEOF
8760
8761 cat >>confdefs.h <<\_ACEOF
8762#define BROKEN_SETREUID 1
8763_ACEOF
8764
8765 cat >>confdefs.h <<\_ACEOF
8766#define BROKEN_SETREGID 1
8767_ACEOF
8768
8769 cat >>confdefs.h <<\_ACEOF
8770#define PASSWD_NEEDS_USERNAME 1
8771_ACEOF
8772
8773 case "$host" in
8774 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8775 TEST_SHELL=/u95/bin/sh
8776
8777cat >>confdefs.h <<\_ACEOF
8778#define BROKEN_LIBIAF 1
8779_ACEOF
8780
8781 cat >>confdefs.h <<\_ACEOF
8782#define BROKEN_UPDWTMPX 1
8783_ACEOF
8784
8785 ;;
8786 *) cat >>confdefs.h <<\_ACEOF
8787#define LOCKED_PASSWD_STRING "*LK*"
8788_ACEOF
8789
8790 ;;
8791 esac
8792 ;;
8793*-*-sysv*)
8794 ;;
8795# SCO UNIX and OEM versions of SCO UNIX
8796*-*-sco3.2v4*)
8797 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8798echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8799 { (exit 1); exit 1; }; }
8800 ;;
8801# SCO OpenServer 5.x
8802*-*-sco3.2v5*)
8803 if test -z "$GCC"; then
8804 CFLAGS="$CFLAGS -belf"
8805 fi
8806 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8807 no_dev_ptmx=1
8808 cat >>confdefs.h <<\_ACEOF
8809#define USE_PIPES 1
8810_ACEOF
8811
8812 cat >>confdefs.h <<\_ACEOF
8813#define HAVE_SECUREWARE 1
8814_ACEOF
8815
8816 cat >>confdefs.h <<\_ACEOF
8817#define DISABLE_SHADOW 1
8818_ACEOF
8819
8820 cat >>confdefs.h <<\_ACEOF
8821#define DISABLE_FD_PASSING 1
8822_ACEOF
8823
8824 cat >>confdefs.h <<\_ACEOF
8825#define SETEUID_BREAKS_SETUID 1
8826_ACEOF
8827
8828 cat >>confdefs.h <<\_ACEOF
8829#define BROKEN_SETREUID 1
8830_ACEOF
8831
8832 cat >>confdefs.h <<\_ACEOF
8833#define BROKEN_SETREGID 1
8834_ACEOF
8835
8836 cat >>confdefs.h <<\_ACEOF
8837#define WITH_ABBREV_NO_TTY 1
8838_ACEOF
8839
8840 cat >>confdefs.h <<\_ACEOF
8841#define BROKEN_UPDWTMPX 1
8842_ACEOF
8843
8844 cat >>confdefs.h <<\_ACEOF
8845#define PASSWD_NEEDS_USERNAME 1
8846_ACEOF
8847
8848
8849
8850for ac_func in getluid setluid
8851do
8852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
8864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8866#define $ac_func innocuous_$ac_func
8867
8868/* System header to define __stub macros and hopefully few prototypes,
8869 which can conflict with char $ac_func (); below.
8870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8871 <limits.h> exists even on freestanding compilers. */
8872
8873#ifdef __STDC__
8874# include <limits.h>
8875#else
8876# include <assert.h>
8877#endif
8878
8879#undef $ac_func
8880
8881/* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8884#ifdef __cplusplus
8885extern "C"
8886#endif
8887char $ac_func ();
8888/* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */
8891#if defined __stub_$ac_func || defined __stub___$ac_func
8892choke me
8893#endif
8894
8895int
8896main ()
8897{
8898return $ac_func ();
8899 ;
8900 return 0;
8901}
8902_ACEOF
8903rm -f conftest.$ac_objext conftest$ac_exeext
8904if { (ac_try="$ac_link"
8905case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908esac
8909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_link") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest$ac_exeext &&
8920 $as_test_x conftest$ac_exeext; then
8921 eval "$as_ac_var=yes"
8922else
8923 echo "$as_me: failed program was:" >&5
8924sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 eval "$as_ac_var=no"
8927fi
8928
8929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8930 conftest$ac_exeext conftest.$ac_ext
8931fi
8932ac_res=`eval echo '${'$as_ac_var'}'`
8933 { echo "$as_me:$LINENO: result: $ac_res" >&5
8934echo "${ECHO_T}$ac_res" >&6; }
8935if test `eval echo '${'$as_ac_var'}'` = yes; then
8936 cat >>confdefs.h <<_ACEOF
8937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8938_ACEOF
8939
8940fi
8941done
8942
8943 MANTYPE=man
8944 TEST_SHELL=ksh
8945 ;;
8946*-*-unicosmk*)
8947
8948cat >>confdefs.h <<\_ACEOF
8949#define NO_SSH_LASTLOG 1
8950_ACEOF
8951
8952 cat >>confdefs.h <<\_ACEOF
8953#define SETEUID_BREAKS_SETUID 1
8954_ACEOF
8955
8956 cat >>confdefs.h <<\_ACEOF
8957#define BROKEN_SETREUID 1
8958_ACEOF
8959
8960 cat >>confdefs.h <<\_ACEOF
8961#define BROKEN_SETREGID 1
8962_ACEOF
8963
8964 cat >>confdefs.h <<\_ACEOF
8965#define USE_PIPES 1
8966_ACEOF
8967
8968 cat >>confdefs.h <<\_ACEOF
8969#define DISABLE_FD_PASSING 1
8970_ACEOF
8971
8972 LDFLAGS="$LDFLAGS"
8973 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8974 MANTYPE=cat
8975 ;;
8976*-*-unicosmp*)
8977 cat >>confdefs.h <<\_ACEOF
8978#define SETEUID_BREAKS_SETUID 1
8979_ACEOF
8980
8981 cat >>confdefs.h <<\_ACEOF
8982#define BROKEN_SETREUID 1
8983_ACEOF
8984
8985 cat >>confdefs.h <<\_ACEOF
8986#define BROKEN_SETREGID 1
8987_ACEOF
8988
8989 cat >>confdefs.h <<\_ACEOF
8990#define WITH_ABBREV_NO_TTY 1
8991_ACEOF
8992
8993 cat >>confdefs.h <<\_ACEOF
8994#define USE_PIPES 1
8995_ACEOF
8996
8997 cat >>confdefs.h <<\_ACEOF
8998#define DISABLE_FD_PASSING 1
8999_ACEOF
9000
9001 LDFLAGS="$LDFLAGS"
9002 LIBS="$LIBS -lgen -lacid -ldb"
9003 MANTYPE=cat
9004 ;;
9005*-*-unicos*)
9006 cat >>confdefs.h <<\_ACEOF
9007#define SETEUID_BREAKS_SETUID 1
9008_ACEOF
9009
9010 cat >>confdefs.h <<\_ACEOF
9011#define BROKEN_SETREUID 1
9012_ACEOF
9013
9014 cat >>confdefs.h <<\_ACEOF
9015#define BROKEN_SETREGID 1
9016_ACEOF
9017
9018 cat >>confdefs.h <<\_ACEOF
9019#define USE_PIPES 1
9020_ACEOF
9021
9022 cat >>confdefs.h <<\_ACEOF
9023#define DISABLE_FD_PASSING 1
9024_ACEOF
9025
9026 cat >>confdefs.h <<\_ACEOF
9027#define NO_SSH_LASTLOG 1
9028_ACEOF
9029
9030 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9031 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9032 MANTYPE=cat
9033 ;;
9034*-dec-osf*)
9035 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9036echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9037 no_osfsia=""
9038
9039# Check whether --with-osfsia was given.
9040if test "${with_osfsia+set}" = set; then
9041 withval=$with_osfsia;
9042 if test "x$withval" = "xno" ; then
9043 { echo "$as_me:$LINENO: result: disabled" >&5
9044echo "${ECHO_T}disabled" >&6; }
9045 no_osfsia=1
9046 fi
9047
9048fi
9049
9050 if test -z "$no_osfsia" ; then
9051 if test -f /etc/sia/matrix.conf; then
9052 { echo "$as_me:$LINENO: result: yes" >&5
9053echo "${ECHO_T}yes" >&6; }
9054
9055cat >>confdefs.h <<\_ACEOF
9056#define HAVE_OSF_SIA 1
9057_ACEOF
9058
9059
9060cat >>confdefs.h <<\_ACEOF
9061#define DISABLE_LOGIN 1
9062_ACEOF
9063
9064 cat >>confdefs.h <<\_ACEOF
9065#define DISABLE_FD_PASSING 1
9066_ACEOF
9067
9068 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9069 SIA_MSG="yes"
9070 else
9071 { echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6; }
9073
9074cat >>confdefs.h <<\_ACEOF
9075#define LOCKED_PASSWD_SUBSTR "Nologin"
9076_ACEOF
9077
9078 fi
9079 fi
9080 cat >>confdefs.h <<\_ACEOF
9081#define BROKEN_GETADDRINFO 1
9082_ACEOF
9083
9084 cat >>confdefs.h <<\_ACEOF
9085#define SETEUID_BREAKS_SETUID 1
9086_ACEOF
9087
9088 cat >>confdefs.h <<\_ACEOF
9089#define BROKEN_SETREUID 1
9090_ACEOF
9091
9092 cat >>confdefs.h <<\_ACEOF
9093#define BROKEN_SETREGID 1
9094_ACEOF
9095
9096
9097cat >>confdefs.h <<\_ACEOF
9098#define BROKEN_READV_COMPARISON 1
9099_ACEOF
9100
9101 ;;
9102
9103*-*-nto-qnx*)
9104 cat >>confdefs.h <<\_ACEOF
9105#define USE_PIPES 1
9106_ACEOF
9107
9108 cat >>confdefs.h <<\_ACEOF
9109#define NO_X11_UNIX_SOCKETS 1
9110_ACEOF
9111
9112
9113cat >>confdefs.h <<\_ACEOF
9114#define MISSING_NFDBITS 1
9115_ACEOF
9116
9117
9118cat >>confdefs.h <<\_ACEOF
9119#define MISSING_HOWMANY 1
9120_ACEOF
9121
9122
9123cat >>confdefs.h <<\_ACEOF
9124#define MISSING_FD_MASK 1
9125_ACEOF
9126
9127 cat >>confdefs.h <<\_ACEOF
9128#define DISABLE_LASTLOG 1
9129_ACEOF
9130
9131 cat >>confdefs.h <<\_ACEOF
9132#define SSHD_ACQUIRES_CTTY 1
9133_ACEOF
9134
9135
9136cat >>confdefs.h <<\_ACEOF
9137#define BROKEN_SHADOW_EXPIRE 1
9138_ACEOF
9139
9140 enable_etc_default_login=no # has incompatible /etc/default/login
9141 case "$host" in
9142 *-*-nto-qnx6*)
9143 cat >>confdefs.h <<\_ACEOF
9144#define DISABLE_FD_PASSING 1
9145_ACEOF
9146
9147 ;;
9148 esac
9149 ;;
9150
9151*-*-ultrix*)
9152
9153cat >>confdefs.h <<\_ACEOF
9154#define BROKEN_GETGROUPS 1
9155_ACEOF
9156
9157
9158cat >>confdefs.h <<\_ACEOF
9159#define BROKEN_MMAP 1
9160_ACEOF
9161
9162 cat >>confdefs.h <<\_ACEOF
9163#define NEED_SETPGRP 1
9164_ACEOF
9165
9166
9167cat >>confdefs.h <<\_ACEOF
9168#define HAVE_SYS_SYSLOG_H 1
9169_ACEOF
9170
9171 ;;
9172
9173*-*-lynxos)
9174 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9175 cat >>confdefs.h <<\_ACEOF
9176#define MISSING_HOWMANY 1
9177_ACEOF
9178
9179
9180cat >>confdefs.h <<\_ACEOF
9181#define BROKEN_SETVBUF 1
9182_ACEOF
9183
9184 ;;
9185esac
9186
9187{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9188echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9189if test "$cross_compiling" = yes; then
9190 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9191echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9192
9193else
9194 cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200
9201#include <stdio.h>
9202int main(){exit(0);}
9203
9204_ACEOF
9205rm -f conftest$ac_exeext
9206if { (ac_try="$ac_link"
9207case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9216 { (case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219esac
9220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_try") 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 { echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6; }
9227else
9228 echo "$as_me: program exited with status $ac_status" >&5
9229echo "$as_me: failed program was:" >&5
9230sed 's/^/| /' conftest.$ac_ext >&5
9231
9232( exit $ac_status )
9233
9234 { echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6; }
9236 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9237echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9238 { (exit 1); exit 1; }; }
9239
9240fi
9241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9242fi
9243
9244
9245
9246# Checks for libraries.
9247{ echo "$as_me:$LINENO: checking for yp_match" >&5
9248echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9249if test "${ac_cv_func_yp_match+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 cat >conftest.$ac_ext <<_ACEOF
9253/* confdefs.h. */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h. */
9258/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9260#define yp_match innocuous_yp_match
9261
9262/* System header to define __stub macros and hopefully few prototypes,
9263 which can conflict with char yp_match (); below.
9264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265 <limits.h> exists even on freestanding compilers. */
9266
9267#ifdef __STDC__
9268# include <limits.h>
9269#else
9270# include <assert.h>
9271#endif
9272
9273#undef yp_match
9274
9275/* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278#ifdef __cplusplus
9279extern "C"
9280#endif
9281char yp_match ();
9282/* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285#if defined __stub_yp_match || defined __stub___yp_match
9286choke me
9287#endif
9288
9289int
9290main ()
9291{
9292return yp_match ();
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext conftest$ac_exeext
9298if { (ac_try="$ac_link"
9299case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_link") 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest$ac_exeext &&
9314 $as_test_x conftest$ac_exeext; then
9315 ac_cv_func_yp_match=yes
9316else
9317 echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
9320 ac_cv_func_yp_match=no
9321fi
9322
9323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9324 conftest$ac_exeext conftest.$ac_ext
9325fi
9326{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9327echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9328if test $ac_cv_func_yp_match = yes; then
9329 :
9330else
9331
9332{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9333echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9334if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337 ac_check_lib_save_LIBS=$LIBS
9338LIBS="-lnsl $LIBS"
9339cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */
9345
9346/* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9349#ifdef __cplusplus
9350extern "C"
9351#endif
9352char yp_match ();
9353int
9354main ()
9355{
9356return yp_match ();
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (ac_try="$ac_link"
9363case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } && {
9375 test -z "$ac_c_werror_flag" ||
9376 test ! -s conftest.err
9377 } && test -s conftest$ac_exeext &&
9378 $as_test_x conftest$ac_exeext; then
9379 ac_cv_lib_nsl_yp_match=yes
9380else
9381 echo "$as_me: failed program was:" >&5
9382sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 ac_cv_lib_nsl_yp_match=no
9385fi
9386
9387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9388 conftest$ac_exeext conftest.$ac_ext
9389LIBS=$ac_check_lib_save_LIBS
9390fi
9391{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9392echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9393if test $ac_cv_lib_nsl_yp_match = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395#define HAVE_LIBNSL 1
9396_ACEOF
9397
9398 LIBS="-lnsl $LIBS"
9399
9400fi
9401
9402fi
9403
9404{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9405echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9406if test "${ac_cv_func_setsockopt+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408else
9409 cat >conftest.$ac_ext <<_ACEOF
9410/* confdefs.h. */
9411_ACEOF
9412cat confdefs.h >>conftest.$ac_ext
9413cat >>conftest.$ac_ext <<_ACEOF
9414/* end confdefs.h. */
9415/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9417#define setsockopt innocuous_setsockopt
9418
9419/* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char setsockopt (); below.
9421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422 <limits.h> exists even on freestanding compilers. */
9423
9424#ifdef __STDC__
9425# include <limits.h>
9426#else
9427# include <assert.h>
9428#endif
9429
9430#undef setsockopt
9431
9432/* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
9435#ifdef __cplusplus
9436extern "C"
9437#endif
9438char setsockopt ();
9439/* The GNU C library defines this for functions which it implements
9440 to always fail with ENOSYS. Some functions are actually named
9441 something starting with __ and the normal name is an alias. */
9442#if defined __stub_setsockopt || defined __stub___setsockopt
9443choke me
9444#endif
9445
9446int
9447main ()
9448{
9449return setsockopt ();
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454rm -f conftest.$ac_objext conftest$ac_exeext
9455if { (ac_try="$ac_link"
9456case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459esac
9460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest$ac_exeext &&
9471 $as_test_x conftest$ac_exeext; then
9472 ac_cv_func_setsockopt=yes
9473else
9474 echo "$as_me: failed program was:" >&5
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 ac_cv_func_setsockopt=no
9478fi
9479
9480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481 conftest$ac_exeext conftest.$ac_ext
9482fi
9483{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9484echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9485if test $ac_cv_func_setsockopt = yes; then
9486 :
9487else
9488
9489{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9490echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9491if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494 ac_check_lib_save_LIBS=$LIBS
9495LIBS="-lsocket $LIBS"
9496cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h. */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h. */
9502
9503/* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506#ifdef __cplusplus
9507extern "C"
9508#endif
9509char setsockopt ();
9510int
9511main ()
9512{
9513return setsockopt ();
9514 ;
9515 return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext conftest$ac_exeext
9519if { (ac_try="$ac_link"
9520case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest$ac_exeext &&
9535 $as_test_x conftest$ac_exeext; then
9536 ac_cv_lib_socket_setsockopt=yes
9537else
9538 echo "$as_me: failed program was:" >&5
9539sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 ac_cv_lib_socket_setsockopt=no
9542fi
9543
9544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546LIBS=$ac_check_lib_save_LIBS
9547fi
9548{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9549echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9550if test $ac_cv_lib_socket_setsockopt = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552#define HAVE_LIBSOCKET 1
9553_ACEOF
9554
9555 LIBS="-lsocket $LIBS"
9556
9557fi
9558
9559fi
9560
9561
9562
9563for ac_func in dirname
9564do
9565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571 cat >conftest.$ac_ext <<_ACEOF
9572/* confdefs.h. */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
9576/* end confdefs.h. */
9577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9579#define $ac_func innocuous_$ac_func
9580
9581/* System header to define __stub macros and hopefully few prototypes,
9582 which can conflict with char $ac_func (); below.
9583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584 <limits.h> exists even on freestanding compilers. */
9585
9586#ifdef __STDC__
9587# include <limits.h>
9588#else
9589# include <assert.h>
9590#endif
9591
9592#undef $ac_func
9593
9594/* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600char $ac_func ();
9601/* The GNU C library defines this for functions which it implements
9602 to always fail with ENOSYS. Some functions are actually named
9603 something starting with __ and the normal name is an alias. */
9604#if defined __stub_$ac_func || defined __stub___$ac_func
9605choke me
9606#endif
9607
9608int
9609main ()
9610{
9611return $ac_func ();
9612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext conftest$ac_exeext
9617if { (ac_try="$ac_link"
9618case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_link") 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest$ac_exeext &&
9633 $as_test_x conftest$ac_exeext; then
9634 eval "$as_ac_var=yes"
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 eval "$as_ac_var=no"
9640fi
9641
9642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9643 conftest$ac_exeext conftest.$ac_ext
9644fi
9645ac_res=`eval echo '${'$as_ac_var'}'`
9646 { echo "$as_me:$LINENO: result: $ac_res" >&5
9647echo "${ECHO_T}$ac_res" >&6; }
9648if test `eval echo '${'$as_ac_var'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651_ACEOF
9652
9653for ac_header in libgen.h
9654do
9655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661fi
9662ac_res=`eval echo '${'$as_ac_Header'}'`
9663 { echo "$as_me:$LINENO: result: $ac_res" >&5
9664echo "${ECHO_T}$ac_res" >&6; }
9665else
9666 # Is the header compilable?
9667{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9669cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675$ac_includes_default
9676#include <$ac_header>
9677_ACEOF
9678rm -f conftest.$ac_objext
9679if { (ac_try="$ac_compile"
9680case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683esac
9684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_compile") 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } && {
9692 test -z "$ac_c_werror_flag" ||
9693 test ! -s conftest.err
9694 } && test -s conftest.$ac_objext; then
9695 ac_header_compiler=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_header_compiler=no
9701fi
9702
9703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9705echo "${ECHO_T}$ac_header_compiler" >&6; }
9706
9707# Is the header present?
9708{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h. */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h. */
9716#include <$ac_header>
9717_ACEOF
9718if { (ac_try="$ac_cpp conftest.$ac_ext"
9719case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } >/dev/null && {
9731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 }; then
9734 ac_header_preproc=yes
9735else
9736 echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 ac_header_preproc=no
9740fi
9741
9742rm -f conftest.err conftest.$ac_ext
9743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744echo "${ECHO_T}$ac_header_preproc" >&6; }
9745
9746# So? What about this header?
9747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9748 yes:no: )
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9753 ac_header_preproc=yes
9754 ;;
9755 no:yes:* )
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9768 ( cat <<\_ASBOX
9769## ------------------------------------------- ##
9770## Report this to openssh-unix-dev@mindrot.org ##
9771## ------------------------------------------- ##
9772_ASBOX
9773 ) | sed "s/^/$as_me: WARNING: /" >&2
9774 ;;
9775esac
9776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781 eval "$as_ac_Header=\$ac_header_preproc"
9782fi
9783ac_res=`eval echo '${'$as_ac_Header'}'`
9784 { echo "$as_me:$LINENO: result: $ac_res" >&5
9785echo "${ECHO_T}$ac_res" >&6; }
9786
9787fi
9788if test `eval echo '${'$as_ac_Header'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9791_ACEOF
9792
9793fi
9794
9795done
9796
9797else
9798
9799 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
9800echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
9801if test "${ac_cv_lib_gen_dirname+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804 ac_check_lib_save_LIBS=$LIBS
9805LIBS="-lgen $LIBS"
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
9812
9813/* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9816#ifdef __cplusplus
9817extern "C"
9818#endif
9819char dirname ();
9820int
9821main ()
9822{
9823return dirname ();
9824 ;
9825 return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (ac_try="$ac_link"
9830case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_link") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext &&
9845 $as_test_x conftest$ac_exeext; then
9846 ac_cv_lib_gen_dirname=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_lib_gen_dirname=no
9852fi
9853
9854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855 conftest$ac_exeext conftest.$ac_ext
9856LIBS=$ac_check_lib_save_LIBS
9857fi
9858{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
9859echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
9860if test $ac_cv_lib_gen_dirname = yes; then
9861
9862 { echo "$as_me:$LINENO: checking for broken dirname" >&5
9863echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
9864if test "${ac_cv_have_broken_dirname+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866else
9867
9868 save_LIBS="$LIBS"
9869 LIBS="$LIBS -lgen"
9870 if test "$cross_compiling" = yes; then
9871 ac_cv_have_broken_dirname="no"
9872else
9873 cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879
9880#include <libgen.h>
9881#include <string.h>
9882
9883int main(int argc, char **argv) {
9884 char *s, buf[32];
9885
9886 strncpy(buf,"/etc", 32);
9887 s = dirname(buf);
9888 if (!s || strncmp(s, "/", 32) != 0) {
9889 exit(1);
9890 } else {
9891 exit(0);
9892 }
9893}
9894
9895_ACEOF
9896rm -f conftest$ac_exeext
9897if { (ac_try="$ac_link"
9898case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_have_broken_dirname="no"
9917else
9918 echo "$as_me: program exited with status $ac_status" >&5
9919echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
9922( exit $ac_status )
9923 ac_cv_have_broken_dirname="yes"
9924fi
9925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9926fi
9927
9928
9929 LIBS="$save_LIBS"
9930
9931fi
9932{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
9933echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
9934 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9935 LIBS="$LIBS -lgen"
9936 cat >>confdefs.h <<\_ACEOF
9937#define HAVE_DIRNAME 1
9938_ACEOF
9939
9940
9941for ac_header in libgen.h
9942do
9943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949fi
9950ac_res=`eval echo '${'$as_ac_Header'}'`
9951 { echo "$as_me:$LINENO: result: $ac_res" >&5
9952echo "${ECHO_T}$ac_res" >&6; }
9953else
9954 # Is the header compilable?
9955{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9957cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963$ac_includes_default
9964#include <$ac_header>
9965_ACEOF
9966rm -f conftest.$ac_objext
9967if { (ac_try="$ac_compile"
9968case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_compile") 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.$ac_objext; then
9983 ac_header_compiler=yes
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_header_compiler=no
9989fi
9990
9991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9993echo "${ECHO_T}$ac_header_compiler" >&6; }
9994
9995# Is the header present?
9996{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004#include <$ac_header>
10005_ACEOF
10006if { (ac_try="$ac_cpp conftest.$ac_ext"
10007case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } >/dev/null && {
10019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 }; then
10022 ac_header_preproc=yes
10023else
10024 echo "$as_me: failed program was:" >&5
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 ac_header_preproc=no
10028fi
10029
10030rm -f conftest.err conftest.$ac_ext
10031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032echo "${ECHO_T}$ac_header_preproc" >&6; }
10033
10034# So? What about this header?
10035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10036 yes:no: )
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10041 ac_header_preproc=yes
10042 ;;
10043 no:yes:* )
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10056 ( cat <<\_ASBOX
10057## ------------------------------------------- ##
10058## Report this to openssh-unix-dev@mindrot.org ##
10059## ------------------------------------------- ##
10060_ASBOX
10061 ) | sed "s/^/$as_me: WARNING: /" >&2
10062 ;;
10063esac
10064{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 eval "$as_ac_Header=\$ac_header_preproc"
10070fi
10071ac_res=`eval echo '${'$as_ac_Header'}'`
10072 { echo "$as_me:$LINENO: result: $ac_res" >&5
10073echo "${ECHO_T}$ac_res" >&6; }
10074
10075fi
10076if test `eval echo '${'$as_ac_Header'}'` = yes; then
10077 cat >>confdefs.h <<_ACEOF
10078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10079_ACEOF
10080
10081fi
10082
10083done
10084
10085 fi
10086
10087fi
10088
10089
10090fi
10091done
10092
10093
10094{ echo "$as_me:$LINENO: checking for getspnam" >&5
10095echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10096if test "${ac_cv_func_getspnam+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099 cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h. */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h. */
10105/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10107#define getspnam innocuous_getspnam
10108
10109/* System header to define __stub macros and hopefully few prototypes,
10110 which can conflict with char getspnam (); below.
10111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112 <limits.h> exists even on freestanding compilers. */
10113
10114#ifdef __STDC__
10115# include <limits.h>
10116#else
10117# include <assert.h>
10118#endif
10119
10120#undef getspnam
10121
10122/* Override any GCC internal prototype to avoid an error.
10123 Use char because int might match the return type of a GCC
10124 builtin and then its argument prototype would still apply. */
10125#ifdef __cplusplus
10126extern "C"
10127#endif
10128char getspnam ();
10129/* The GNU C library defines this for functions which it implements
10130 to always fail with ENOSYS. Some functions are actually named
10131 something starting with __ and the normal name is an alias. */
10132#if defined __stub_getspnam || defined __stub___getspnam
10133choke me
10134#endif
10135
10136int
10137main ()
10138{
10139return getspnam ();
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_link") 2>conftest.er1
10152 ac_status=$?
10153 grep -v '^ *+' conftest.er1 >conftest.err
10154 rm -f conftest.er1
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } && {
10158 test -z "$ac_c_werror_flag" ||
10159 test ! -s conftest.err
10160 } && test -s conftest$ac_exeext &&
10161 $as_test_x conftest$ac_exeext; then
10162 ac_cv_func_getspnam=yes
10163else
10164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_cv_func_getspnam=no
10168fi
10169
10170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171 conftest$ac_exeext conftest.$ac_ext
10172fi
10173{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10174echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10175if test $ac_cv_func_getspnam = yes; then
10176 :
10177else
10178 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10179echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10180if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183 ac_check_lib_save_LIBS=$LIBS
10184LIBS="-lgen $LIBS"
10185cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h. */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h. */
10191
10192/* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10195#ifdef __cplusplus
10196extern "C"
10197#endif
10198char getspnam ();
10199int
10200main ()
10201{
10202return getspnam ();
10203 ;
10204 return 0;
10205}
10206_ACEOF
10207rm -f conftest.$ac_objext conftest$ac_exeext
10208if { (ac_try="$ac_link"
10209case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest$ac_exeext &&
10224 $as_test_x conftest$ac_exeext; then
10225 ac_cv_lib_gen_getspnam=yes
10226else
10227 echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_gen_getspnam=no
10231fi
10232
10233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10234 conftest$ac_exeext conftest.$ac_ext
10235LIBS=$ac_check_lib_save_LIBS
10236fi
10237{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10238echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10239if test $ac_cv_lib_gen_getspnam = yes; then
10240 LIBS="$LIBS -lgen"
10241fi
10242
10243fi
10244
10245{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10246echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10247if test "${ac_cv_search_basename+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 ac_func_search_save_LIBS=$LIBS
10251cat >conftest.$ac_ext <<_ACEOF
10252/* confdefs.h. */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h. */
10257
10258/* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
10261#ifdef __cplusplus
10262extern "C"
10263#endif
10264char basename ();
10265int
10266main ()
10267{
10268return basename ();
10269 ;
10270 return 0;
10271}
10272_ACEOF
10273for ac_lib in '' gen; do
10274 if test -z "$ac_lib"; then
10275 ac_res="none required"
10276 else
10277 ac_res=-l$ac_lib
10278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10279 fi
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (ac_try="$ac_link"
10282case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_link") 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && {
10294 test -z "$ac_c_werror_flag" ||
10295 test ! -s conftest.err
10296 } && test -s conftest$ac_exeext &&
10297 $as_test_x conftest$ac_exeext; then
10298 ac_cv_search_basename=$ac_res
10299else
10300 echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
10303
10304fi
10305
10306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307 conftest$ac_exeext
10308 if test "${ac_cv_search_basename+set}" = set; then
10309 break
10310fi
10311done
10312if test "${ac_cv_search_basename+set}" = set; then
10313 :
10314else
10315 ac_cv_search_basename=no
10316fi
10317rm conftest.$ac_ext
10318LIBS=$ac_func_search_save_LIBS
10319fi
10320{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10321echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10322ac_res=$ac_cv_search_basename
10323if test "$ac_res" != no; then
10324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10325
10326cat >>confdefs.h <<\_ACEOF
10327#define HAVE_BASENAME 1
10328_ACEOF
10329
10330fi
10331
10332
10333
10334# Check whether --with-zlib was given.
10335if test "${with_zlib+set}" = set; then
10336 withval=$with_zlib; if test "x$withval" = "xno" ; then
10337 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10338echo "$as_me: error: *** zlib is required ***" >&2;}
10339 { (exit 1); exit 1; }; }
10340 elif test "x$withval" != "xyes"; then
10341 if test -d "$withval/lib"; then
10342 if test -n "${need_dash_r}"; then
10343 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10344 else
10345 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10346 fi
10347 else
10348 if test -n "${need_dash_r}"; then
10349 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10350 else
10351 LDFLAGS="-L${withval} ${LDFLAGS}"
10352 fi
10353 fi
10354 if test -d "$withval/include"; then
10355 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10356 else
10357 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10358 fi
10359 fi
10360
10361fi
10362
10363
10364
10365{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10366echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10367if test "${ac_cv_lib_z_deflate+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 ac_check_lib_save_LIBS=$LIBS
10371LIBS="-lz $LIBS"
10372cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378
10379/* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10382#ifdef __cplusplus
10383extern "C"
10384#endif
10385char deflate ();
10386int
10387main ()
10388{
10389return deflate ();
10390 ;
10391 return 0;
10392}
10393_ACEOF
10394rm -f conftest.$ac_objext conftest$ac_exeext
10395if { (ac_try="$ac_link"
10396case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_link") 2>conftest.er1
10402 ac_status=$?
10403 grep -v '^ *+' conftest.er1 >conftest.err
10404 rm -f conftest.er1
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && {
10408 test -z "$ac_c_werror_flag" ||
10409 test ! -s conftest.err
10410 } && test -s conftest$ac_exeext &&
10411 $as_test_x conftest$ac_exeext; then
10412 ac_cv_lib_z_deflate=yes
10413else
10414 echo "$as_me: failed program was:" >&5
10415sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ac_cv_lib_z_deflate=no
10418fi
10419
10420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422LIBS=$ac_check_lib_save_LIBS
10423fi
10424{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10425echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10426if test $ac_cv_lib_z_deflate = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428#define HAVE_LIBZ 1
10429_ACEOF
10430
10431 LIBS="-lz $LIBS"
10432
10433else
10434
10435 saved_CPPFLAGS="$CPPFLAGS"
10436 saved_LDFLAGS="$LDFLAGS"
10437 save_LIBS="$LIBS"
10438 if test -n "${need_dash_r}"; then
10439 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10440 else
10441 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10442 fi
10443 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10444 LIBS="$LIBS -lz"
10445 cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451
10452/* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455#ifdef __cplusplus
10456extern "C"
10457#endif
10458char deflate ();
10459int
10460main ()
10461{
10462return deflate ();
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (ac_try="$ac_link"
10469case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
10485 cat >>confdefs.h <<\_ACEOF
10486#define HAVE_LIBZ 1
10487_ACEOF
10488
10489else
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10495echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10496 { (exit 1); exit 1; }; }
10497
10498
10499fi
10500
10501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503
10504
10505fi
10506
10507if test "${ac_cv_header_zlib_h+set}" = set; then
10508 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10509echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10510if test "${ac_cv_header_zlib_h+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512fi
10513{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10514echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10515else
10516 # Is the header compilable?
10517{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10518echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10519cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
10525$ac_includes_default
10526#include <zlib.h>
10527_ACEOF
10528rm -f conftest.$ac_objext
10529if { (ac_try="$ac_compile"
10530case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10533esac
10534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_compile") 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest.$ac_objext; then
10545 ac_header_compiler=yes
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_header_compiler=no
10551fi
10552
10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555echo "${ECHO_T}$ac_header_compiler" >&6; }
10556
10557# Is the header present?
10558{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10559echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566#include <zlib.h>
10567_ACEOF
10568if { (ac_try="$ac_cpp conftest.$ac_ext"
10569case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null && {
10581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 }; then
10584 ac_header_preproc=yes
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ac_header_preproc=no
10590fi
10591
10592rm -f conftest.err conftest.$ac_ext
10593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10594echo "${ECHO_T}$ac_header_preproc" >&6; }
10595
10596# So? What about this header?
10597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10598 yes:no: )
10599 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10600echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10602echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10603 ac_header_preproc=yes
10604 ;;
10605 no:yes:* )
10606 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10607echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10609echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10611echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10613echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10615echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10617echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10618 ( cat <<\_ASBOX
10619## ------------------------------------------- ##
10620## Report this to openssh-unix-dev@mindrot.org ##
10621## ------------------------------------------- ##
10622_ASBOX
10623 ) | sed "s/^/$as_me: WARNING: /" >&2
10624 ;;
10625esac
10626{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10627echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10628if test "${ac_cv_header_zlib_h+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630else
10631 ac_cv_header_zlib_h=$ac_header_preproc
10632fi
10633{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10634echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10635
10636fi
10637if test $ac_cv_header_zlib_h = yes; then
10638 :
10639else
10640 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10641echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10642 { (exit 1); exit 1; }; }
10643fi
10644
10645
10646
10647
10648# Check whether --with-zlib-version-check was given.
10649if test "${with_zlib_version_check+set}" = set; then
10650 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
10651 zlib_check_nonfatal=1
10652 fi
10653
10654
10655fi
10656
10657
10658{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
10659echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
10660if test "$cross_compiling" = yes; then
10661 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
10662echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
10663
10664else
10665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
10671
10672#include <stdio.h>
10673#include <zlib.h>
10674int main()
10675{
10676 int a=0, b=0, c=0, d=0, n, v;
10677 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
10678 if (n != 3 && n != 4)
10679 exit(1);
10680 v = a*1000000 + b*10000 + c*100 + d;
10681 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
10682
10683 /* 1.1.4 is OK */
10684 if (a == 1 && b == 1 && c >= 4)
10685 exit(0);
10686
10687 /* 1.2.3 and up are OK */
10688 if (v >= 1020300)
10689 exit(0);
10690
10691 exit(2);
10692}
10693
10694_ACEOF
10695rm -f conftest$ac_exeext
10696if { (ac_try="$ac_link"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 { echo "$as_me:$LINENO: result: no" >&5
10716echo "${ECHO_T}no" >&6; }
10717else
10718 echo "$as_me: program exited with status $ac_status" >&5
10719echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722( exit $ac_status )
10723 { echo "$as_me:$LINENO: result: yes" >&5
10724echo "${ECHO_T}yes" >&6; }
10725 if test -z "$zlib_check_nonfatal" ; then
10726 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
10727Your reported zlib version has known security problems. It's possible your
10728vendor has fixed these problems without changing the version number. If you
10729are sure this is the case, you can disable the check by running
10730\"./configure --without-zlib-version-check\".
10731If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10732See http://www.gzip.org/zlib/ for details." >&5
10733echo "$as_me: error: *** zlib too old - check config.log ***
10734Your reported zlib version has known security problems. It's possible your
10735vendor has fixed these problems without changing the version number. If you
10736are sure this is the case, you can disable the check by running
10737\"./configure --without-zlib-version-check\".
10738If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10739See http://www.gzip.org/zlib/ for details." >&2;}
10740 { (exit 1); exit 1; }; }
10741 else
10742 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
10743echo "$as_me: WARNING: zlib version may have security problems" >&2;}
10744 fi
10745
10746fi
10747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10748fi
10749
10750
10751
10752{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
10753echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
10754if test "${ac_cv_func_strcasecmp+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765#define strcasecmp innocuous_strcasecmp
10766
10767/* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char strcasecmp (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10771
10772#ifdef __STDC__
10773# include <limits.h>
10774#else
10775# include <assert.h>
10776#endif
10777
10778#undef strcasecmp
10779
10780/* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783#ifdef __cplusplus
10784extern "C"
10785#endif
10786char strcasecmp ();
10787/* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790#if defined __stub_strcasecmp || defined __stub___strcasecmp
10791choke me
10792#endif
10793
10794int
10795main ()
10796{
10797return strcasecmp ();
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext conftest$ac_exeext
10803if { (ac_try="$ac_link"
10804case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_link") 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && {
10816 test -z "$ac_c_werror_flag" ||
10817 test ! -s conftest.err
10818 } && test -s conftest$ac_exeext &&
10819 $as_test_x conftest$ac_exeext; then
10820 ac_cv_func_strcasecmp=yes
10821else
10822 echo "$as_me: failed program was:" >&5
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_func_strcasecmp=no
10826fi
10827
10828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10829 conftest$ac_exeext conftest.$ac_ext
10830fi
10831{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
10832echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
10833if test $ac_cv_func_strcasecmp = yes; then
10834 :
10835else
10836 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
10837echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
10838if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 ac_check_lib_save_LIBS=$LIBS
10842LIBS="-lresolv $LIBS"
10843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849
10850/* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853#ifdef __cplusplus
10854extern "C"
10855#endif
10856char strcasecmp ();
10857int
10858main ()
10859{
10860return strcasecmp ();
10861 ;
10862 return 0;
10863}
10864_ACEOF
10865rm -f conftest.$ac_objext conftest$ac_exeext
10866if { (ac_try="$ac_link"
10867case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext &&
10882 $as_test_x conftest$ac_exeext; then
10883 ac_cv_lib_resolv_strcasecmp=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_lib_resolv_strcasecmp=no
10889fi
10890
10891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10892 conftest$ac_exeext conftest.$ac_ext
10893LIBS=$ac_check_lib_save_LIBS
10894fi
10895{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
10896echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
10897if test $ac_cv_lib_resolv_strcasecmp = yes; then
10898 LIBS="$LIBS -lresolv"
10899fi
10900
10901
10902fi
10903
10904
10905for ac_func in utimes
10906do
10907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10908{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10921#define $ac_func innocuous_$ac_func
10922
10923/* System header to define __stub macros and hopefully few prototypes,
10924 which can conflict with char $ac_func (); below.
10925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10926 <limits.h> exists even on freestanding compilers. */
10927
10928#ifdef __STDC__
10929# include <limits.h>
10930#else
10931# include <assert.h>
10932#endif
10933
10934#undef $ac_func
10935
10936/* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939#ifdef __cplusplus
10940extern "C"
10941#endif
10942char $ac_func ();
10943/* The GNU C library defines this for functions which it implements
10944 to always fail with ENOSYS. Some functions are actually named
10945 something starting with __ and the normal name is an alias. */
10946#if defined __stub_$ac_func || defined __stub___$ac_func
10947choke me
10948#endif
10949
10950int
10951main ()
10952{
10953return $ac_func ();
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958rm -f conftest.$ac_objext conftest$ac_exeext
10959if { (ac_try="$ac_link"
10960case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_link") 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && {
10972 test -z "$ac_c_werror_flag" ||
10973 test ! -s conftest.err
10974 } && test -s conftest$ac_exeext &&
10975 $as_test_x conftest$ac_exeext; then
10976 eval "$as_ac_var=yes"
10977else
10978 echo "$as_me: failed program was:" >&5
10979sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 eval "$as_ac_var=no"
10982fi
10983
10984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10985 conftest$ac_exeext conftest.$ac_ext
10986fi
10987ac_res=`eval echo '${'$as_ac_var'}'`
10988 { echo "$as_me:$LINENO: result: $ac_res" >&5
10989echo "${ECHO_T}$ac_res" >&6; }
10990if test `eval echo '${'$as_ac_var'}'` = yes; then
10991 cat >>confdefs.h <<_ACEOF
10992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10993_ACEOF
10994
10995else
10996 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
10997echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
10998if test "${ac_cv_lib_c89_utimes+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-lc89 $LIBS"
11003cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009
11010/* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013#ifdef __cplusplus
11014extern "C"
11015#endif
11016char utimes ();
11017int
11018main ()
11019{
11020return utimes ();
11021 ;
11022 return 0;
11023}
11024_ACEOF
11025rm -f conftest.$ac_objext conftest$ac_exeext
11026if { (ac_try="$ac_link"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11043 ac_cv_lib_c89_utimes=yes
11044else
11045 echo "$as_me: failed program was:" >&5
11046sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 ac_cv_lib_c89_utimes=no
11049fi
11050
11051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052 conftest$ac_exeext conftest.$ac_ext
11053LIBS=$ac_check_lib_save_LIBS
11054fi
11055{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11056echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11057if test $ac_cv_lib_c89_utimes = yes; then
11058 cat >>confdefs.h <<\_ACEOF
11059#define HAVE_UTIMES 1
11060_ACEOF
11061
11062 LIBS="$LIBS -lc89"
11063fi
11064
11065
11066fi
11067done
11068
11069
11070
11071for ac_header in libutil.h
11072do
11073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079fi
11080ac_res=`eval echo '${'$as_ac_Header'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082echo "${ECHO_T}$ac_res" >&6; }
11083else
11084 # Is the header compilable?
11085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11087cat >conftest.$ac_ext <<_ACEOF
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
11093$ac_includes_default
11094#include <$ac_header>
11095_ACEOF
11096rm -f conftest.$ac_objext
11097if { (ac_try="$ac_compile"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
11113 ac_header_compiler=yes
11114else
11115 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 ac_header_compiler=no
11119fi
11120
11121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123echo "${ECHO_T}$ac_header_compiler" >&6; }
11124
11125# Is the header present?
11126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11128cat >conftest.$ac_ext <<_ACEOF
11129/* confdefs.h. */
11130_ACEOF
11131cat confdefs.h >>conftest.$ac_ext
11132cat >>conftest.$ac_ext <<_ACEOF
11133/* end confdefs.h. */
11134#include <$ac_header>
11135_ACEOF
11136if { (ac_try="$ac_cpp conftest.$ac_ext"
11137case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } >/dev/null && {
11149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 }; then
11152 ac_header_preproc=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_header_preproc=no
11158fi
11159
11160rm -f conftest.err conftest.$ac_ext
11161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162echo "${ECHO_T}$ac_header_preproc" >&6; }
11163
11164# So? What about this header?
11165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166 yes:no: )
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11172 ;;
11173 no:yes:* )
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11186 ( cat <<\_ASBOX
11187## ------------------------------------------- ##
11188## Report this to openssh-unix-dev@mindrot.org ##
11189## ------------------------------------------- ##
11190_ASBOX
11191 ) | sed "s/^/$as_me: WARNING: /" >&2
11192 ;;
11193esac
11194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 eval "$as_ac_Header=\$ac_header_preproc"
11200fi
11201ac_res=`eval echo '${'$as_ac_Header'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203echo "${ECHO_T}$ac_res" >&6; }
11204
11205fi
11206if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11209_ACEOF
11210
11211fi
11212
11213done
11214
11215{ echo "$as_me:$LINENO: checking for library containing login" >&5
11216echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
11217if test "${ac_cv_search_login+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 ac_func_search_save_LIBS=$LIBS
11221cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227
11228/* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231#ifdef __cplusplus
11232extern "C"
11233#endif
11234char login ();
11235int
11236main ()
11237{
11238return login ();
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243for ac_lib in '' util bsd; do
11244 if test -z "$ac_lib"; then
11245 ac_res="none required"
11246 else
11247 ac_res=-l$ac_lib
11248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11249 fi
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251if { (ac_try="$ac_link"
11252case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_link") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest$ac_exeext &&
11267 $as_test_x conftest$ac_exeext; then
11268 ac_cv_search_login=$ac_res
11269else
11270 echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
11273
11274fi
11275
11276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext
11278 if test "${ac_cv_search_login+set}" = set; then
11279 break
11280fi
11281done
11282if test "${ac_cv_search_login+set}" = set; then
11283 :
11284else
11285 ac_cv_search_login=no
11286fi
11287rm conftest.$ac_ext
11288LIBS=$ac_func_search_save_LIBS
11289fi
11290{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11291echo "${ECHO_T}$ac_cv_search_login" >&6; }
11292ac_res=$ac_cv_search_login
11293if test "$ac_res" != no; then
11294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11295
11296cat >>confdefs.h <<\_ACEOF
11297#define HAVE_LOGIN 1
11298_ACEOF
11299
11300fi
11301
11302
11303
11304
11305
11306for ac_func in fmt_scaled logout updwtmp logwtmp
11307do
11308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313else
11314 cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
11320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11322#define $ac_func innocuous_$ac_func
11323
11324/* System header to define __stub macros and hopefully few prototypes,
11325 which can conflict with char $ac_func (); below.
11326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11327 <limits.h> exists even on freestanding compilers. */
11328
11329#ifdef __STDC__
11330# include <limits.h>
11331#else
11332# include <assert.h>
11333#endif
11334
11335#undef $ac_func
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char $ac_func ();
11344/* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347#if defined __stub_$ac_func || defined __stub___$ac_func
11348choke me
11349#endif
11350
11351int
11352main ()
11353{
11354return $ac_func ();
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359rm -f conftest.$ac_objext conftest$ac_exeext
11360if { (ac_try="$ac_link"
11361case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_link") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest$ac_exeext &&
11376 $as_test_x conftest$ac_exeext; then
11377 eval "$as_ac_var=yes"
11378else
11379 echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 eval "$as_ac_var=no"
11383fi
11384
11385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11386 conftest$ac_exeext conftest.$ac_ext
11387fi
11388ac_res=`eval echo '${'$as_ac_var'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390echo "${ECHO_T}$ac_res" >&6; }
11391if test `eval echo '${'$as_ac_var'}'` = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11394_ACEOF
11395
11396fi
11397done
11398
11399
11400
11401for ac_func in strftime
11402do
11403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11404{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408else
11409 cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
11415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11417#define $ac_func innocuous_$ac_func
11418
11419/* System header to define __stub macros and hopefully few prototypes,
11420 which can conflict with char $ac_func (); below.
11421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11422 <limits.h> exists even on freestanding compilers. */
11423
11424#ifdef __STDC__
11425# include <limits.h>
11426#else
11427# include <assert.h>
11428#endif
11429
11430#undef $ac_func
11431
11432/* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435#ifdef __cplusplus
11436extern "C"
11437#endif
11438char $ac_func ();
11439/* The GNU C library defines this for functions which it implements
11440 to always fail with ENOSYS. Some functions are actually named
11441 something starting with __ and the normal name is an alias. */
11442#if defined __stub_$ac_func || defined __stub___$ac_func
11443choke me
11444#endif
11445
11446int
11447main ()
11448{
11449return $ac_func ();
11450 ;
11451 return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext conftest$ac_exeext
11455if { (ac_try="$ac_link"
11456case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_link") 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_c_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest$ac_exeext &&
11471 $as_test_x conftest$ac_exeext; then
11472 eval "$as_ac_var=yes"
11473else
11474 echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 eval "$as_ac_var=no"
11478fi
11479
11480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481 conftest$ac_exeext conftest.$ac_ext
11482fi
11483ac_res=`eval echo '${'$as_ac_var'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485echo "${ECHO_T}$ac_res" >&6; }
11486if test `eval echo '${'$as_ac_var'}'` = yes; then
11487 cat >>confdefs.h <<_ACEOF
11488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11489_ACEOF
11490
11491else
11492 # strftime is in -lintl on SCO UNIX.
11493{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11494echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11495if test "${ac_cv_lib_intl_strftime+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 ac_check_lib_save_LIBS=$LIBS
11499LIBS="-lintl $LIBS"
11500cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506
11507/* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510#ifdef __cplusplus
11511extern "C"
11512#endif
11513char strftime ();
11514int
11515main ()
11516{
11517return strftime ();
11518 ;
11519 return 0;
11520}
11521_ACEOF
11522rm -f conftest.$ac_objext conftest$ac_exeext
11523if { (ac_try="$ac_link"
11524case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527esac
11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_link") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest$ac_exeext &&
11539 $as_test_x conftest$ac_exeext; then
11540 ac_cv_lib_intl_strftime=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_cv_lib_intl_strftime=no
11546fi
11547
11548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11549 conftest$ac_exeext conftest.$ac_ext
11550LIBS=$ac_check_lib_save_LIBS
11551fi
11552{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11553echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11554if test $ac_cv_lib_intl_strftime = yes; then
11555 cat >>confdefs.h <<\_ACEOF
11556#define HAVE_STRFTIME 1
11557_ACEOF
11558
11559LIBS="-lintl $LIBS"
11560fi
11561
11562fi
11563done
11564
11565
11566# Check for ALTDIRFUNC glob() extension
11567{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11568echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11569cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575
11576 #include <glob.h>
11577 #ifdef GLOB_ALTDIRFUNC
11578 FOUNDIT
11579 #endif
11580
11581_ACEOF
11582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11583 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11584
11585
11586cat >>confdefs.h <<\_ACEOF
11587#define GLOB_HAS_ALTDIRFUNC 1
11588_ACEOF
11589
11590 { echo "$as_me:$LINENO: result: yes" >&5
11591echo "${ECHO_T}yes" >&6; }
11592
11593else
11594
11595 { echo "$as_me:$LINENO: result: no" >&5
11596echo "${ECHO_T}no" >&6; }
11597
11598
11599fi
11600rm -f conftest*
11601
11602
11603# Check for g.gl_matchc glob() extension
11604{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11605echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11606cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612 #include <glob.h>
11613int
11614main ()
11615{
11616glob_t g; g.gl_matchc = 1;
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (ac_try="$ac_compile"
11623case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_compile") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest.$ac_objext; then
11638
11639
11640cat >>confdefs.h <<\_ACEOF
11641#define GLOB_HAS_GL_MATCHC 1
11642_ACEOF
11643
11644 { echo "$as_me:$LINENO: result: yes" >&5
11645echo "${ECHO_T}yes" >&6; }
11646
11647else
11648 echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651
11652 { echo "$as_me:$LINENO: result: no" >&5
11653echo "${ECHO_T}no" >&6; }
11654
11655
11656fi
11657
11658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659
11660{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11661echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11662if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671#include <glob.h>
11672
11673int
11674main ()
11675{
11676#ifndef GLOB_NOMATCH
11677 (void) GLOB_NOMATCH;
11678#endif
11679
11680 ;
11681 return 0;
11682}
11683_ACEOF
11684rm -f conftest.$ac_objext
11685if { (ac_try="$ac_compile"
11686case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689esac
11690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_cv_have_decl_GLOB_NOMATCH=yes
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_cv_have_decl_GLOB_NOMATCH=no
11707fi
11708
11709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710fi
11711{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11712echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11713if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11714
11715cat >>confdefs.h <<_ACEOF
11716#define HAVE_DECL_GLOB_NOMATCH 1
11717_ACEOF
11718
11719
11720else
11721 cat >>confdefs.h <<_ACEOF
11722#define HAVE_DECL_GLOB_NOMATCH 0
11723_ACEOF
11724
11725
11726fi
11727
11728
11729
11730{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
11731echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
11732if test "$cross_compiling" = yes; then
11733
11734 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
11735echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
11736 cat >>confdefs.h <<\_ACEOF
11737#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11738_ACEOF
11739
11740
11741
11742else
11743 cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749
11750#include <sys/types.h>
11751#include <dirent.h>
11752int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
11753
11754_ACEOF
11755rm -f conftest$ac_exeext
11756if { (ac_try="$ac_link"
11757case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_link") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769esac
11770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 { echo "$as_me:$LINENO: result: yes" >&5
11776echo "${ECHO_T}yes" >&6; }
11777else
11778 echo "$as_me: program exited with status $ac_status" >&5
11779echo "$as_me: failed program was:" >&5
11780sed 's/^/| /' conftest.$ac_ext >&5
11781
11782( exit $ac_status )
11783
11784 { echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786
11787cat >>confdefs.h <<\_ACEOF
11788#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11789_ACEOF
11790
11791
11792fi
11793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11794fi
11795
11796
11797
11798{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
11799echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
11800if test -d "/proc/$$/fd" ; then
11801
11802cat >>confdefs.h <<\_ACEOF
11803#define HAVE_PROC_PID 1
11804_ACEOF
11805
11806 { echo "$as_me:$LINENO: result: yes" >&5
11807echo "${ECHO_T}yes" >&6; }
11808else
11809 { echo "$as_me:$LINENO: result: no" >&5
11810echo "${ECHO_T}no" >&6; }
11811fi
11812
11813# Check whether user wants S/Key support
11814SKEY_MSG="no"
11815
11816# Check whether --with-skey was given.
11817if test "${with_skey+set}" = set; then
11818 withval=$with_skey;
11819 if test "x$withval" != "xno" ; then
11820
11821 if test "x$withval" != "xyes" ; then
11822 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11823 LDFLAGS="$LDFLAGS -L${withval}/lib"
11824 fi
11825
11826
11827cat >>confdefs.h <<\_ACEOF
11828#define SKEY 1
11829_ACEOF
11830
11831 LIBS="-lskey $LIBS"
11832 SKEY_MSG="yes"
11833
11834 { echo "$as_me:$LINENO: checking for s/key support" >&5
11835echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
11836 cat >conftest.$ac_ext <<_ACEOF
11837/* confdefs.h. */
11838_ACEOF
11839cat confdefs.h >>conftest.$ac_ext
11840cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */
11842
11843#include <stdio.h>
11844#include <skey.h>
11845int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
11846
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
11849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest$ac_exeext &&
11865 $as_test_x conftest$ac_exeext; then
11866 { echo "$as_me:$LINENO: result: yes" >&5
11867echo "${ECHO_T}yes" >&6; }
11868else
11869 echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872
11873 { echo "$as_me:$LINENO: result: no" >&5
11874echo "${ECHO_T}no" >&6; }
11875 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
11876echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
11877 { (exit 1); exit 1; }; }
11878
11879fi
11880
11881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11882 conftest$ac_exeext conftest.$ac_ext
11883 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
11884echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891#include <stdio.h>
11892 #include <skey.h>
11893int
11894main ()
11895{
11896(void)skeychallenge(NULL,"name","",0);
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext
11902if { (ac_try="$ac_compile"
11903case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 { echo "$as_me:$LINENO: result: yes" >&5
11919echo "${ECHO_T}yes" >&6; }
11920
11921cat >>confdefs.h <<\_ACEOF
11922#define SKEYCHALLENGE_4ARG 1
11923_ACEOF
11924
11925else
11926 echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 { echo "$as_me:$LINENO: result: no" >&5
11930echo "${ECHO_T}no" >&6; }
11931
11932fi
11933
11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 fi
11936
11937
11938fi
11939
11940
11941# Check whether user wants TCP wrappers support
11942TCPW_MSG="no"
11943
11944# Check whether --with-tcp-wrappers was given.
11945if test "${with_tcp_wrappers+set}" = set; then
11946 withval=$with_tcp_wrappers;
11947 if test "x$withval" != "xno" ; then
11948 saved_LIBS="$LIBS"
11949 saved_LDFLAGS="$LDFLAGS"
11950 saved_CPPFLAGS="$CPPFLAGS"
11951 if test -n "${withval}" && \
11952 test "x${withval}" != "xyes"; then
11953 if test -d "${withval}/lib"; then
11954 if test -n "${need_dash_r}"; then
11955 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11956 else
11957 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11958 fi
11959 else
11960 if test -n "${need_dash_r}"; then
11961 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11962 else
11963 LDFLAGS="-L${withval} ${LDFLAGS}"
11964 fi
11965 fi
11966 if test -d "${withval}/include"; then
11967 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11968 else
11969 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11970 fi
11971 fi
11972 LIBS="-lwrap $LIBS"
11973 { echo "$as_me:$LINENO: checking for libwrap" >&5
11974echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
11975 cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981
11982#include <sys/types.h>
11983#include <sys/socket.h>
11984#include <netinet/in.h>
11985#include <tcpd.h>
11986 int deny_severity = 0, allow_severity = 0;
11987
11988int
11989main ()
11990{
11991hosts_access(0);
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996rm -f conftest.$ac_objext conftest$ac_exeext
11997if { (ac_try="$ac_link"
11998case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_link") 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } && {
12010 test -z "$ac_c_werror_flag" ||
12011 test ! -s conftest.err
12012 } && test -s conftest$ac_exeext &&
12013 $as_test_x conftest$ac_exeext; then
12014
12015 { echo "$as_me:$LINENO: result: yes" >&5
12016echo "${ECHO_T}yes" >&6; }
12017
12018cat >>confdefs.h <<\_ACEOF
12019#define LIBWRAP 1
12020_ACEOF
12021
12022 SSHDLIBS="$SSHDLIBS -lwrap"
12023 TCPW_MSG="yes"
12024
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029
12030 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12031echo "$as_me: error: *** libwrap missing" >&2;}
12032 { (exit 1); exit 1; }; }
12033
12034
12035fi
12036
12037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12038 conftest$ac_exeext conftest.$ac_ext
12039 LIBS="$saved_LIBS"
12040 fi
12041
12042
12043fi
12044
12045
12046# Check whether user wants libedit support
12047LIBEDIT_MSG="no"
12048
12049# Check whether --with-libedit was given.
12050if test "${with_libedit+set}" = set; then
12051 withval=$with_libedit; if test "x$withval" != "xno" ; then
12052 if test "x$withval" != "xyes"; then
12053 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12054 if test -n "${need_dash_r}"; then
12055 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12056 else
12057 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12058 fi
12059 fi
12060 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12061echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12062if test "${ac_cv_lib_edit_el_init+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065 ac_check_lib_save_LIBS=$LIBS
12066LIBS="-ledit -lcurses
12067 $LIBS"
12068cat >conftest.$ac_ext <<_ACEOF
12069/* confdefs.h. */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
12073/* end confdefs.h. */
12074
12075/* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078#ifdef __cplusplus
12079extern "C"
12080#endif
12081char el_init ();
12082int
12083main ()
12084{
12085return el_init ();
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext conftest$ac_exeext
12091if { (ac_try="$ac_link"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && {
12104 test -z "$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 } && test -s conftest$ac_exeext &&
12107 $as_test_x conftest$ac_exeext; then
12108 ac_cv_lib_edit_el_init=yes
12109else
12110 echo "$as_me: failed program was:" >&5
12111sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_cv_lib_edit_el_init=no
12114fi
12115
12116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12117 conftest$ac_exeext conftest.$ac_ext
12118LIBS=$ac_check_lib_save_LIBS
12119fi
12120{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12121echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
12122if test $ac_cv_lib_edit_el_init = yes; then
12123
12124cat >>confdefs.h <<\_ACEOF
12125#define USE_LIBEDIT 1
12126_ACEOF
12127
12128 LIBEDIT="-ledit -lcurses"
12129 LIBEDIT_MSG="yes"
12130
12131
12132else
12133 { { echo "$as_me:$LINENO: error: libedit not found" >&5
12134echo "$as_me: error: libedit not found" >&2;}
12135 { (exit 1); exit 1; }; }
12136fi
12137
12138 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12139echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
12146
12147#include <histedit.h>
12148int main(void)
12149{
12150 int i = H_SETSIZE;
12151 el_init("", NULL, NULL, NULL);
12152 exit(0);
12153}
12154
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (ac_try="$ac_compile"
12158case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161esac
12162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_compile") 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } && {
12170 test -z "$ac_c_werror_flag" ||
12171 test ! -s conftest.err
12172 } && test -s conftest.$ac_objext; then
12173 { echo "$as_me:$LINENO: result: yes" >&5
12174echo "${ECHO_T}yes" >&6; }
12175else
12176 echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 { echo "$as_me:$LINENO: result: no" >&5
12180echo "${ECHO_T}no" >&6; }
12181 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
12182echo "$as_me: error: libedit version is not compatible" >&2;}
12183 { (exit 1); exit 1; }; }
12184
12185fi
12186
12187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 fi
12189
12190fi
12191
12192
12193AUDIT_MODULE=none
12194
12195# Check whether --with-audit was given.
12196if test "${with_audit+set}" = set; then
12197 withval=$with_audit;
12198 { echo "$as_me:$LINENO: checking for supported audit module" >&5
12199echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
12200 case "$withval" in
12201 bsm)
12202 { echo "$as_me:$LINENO: result: bsm" >&5
12203echo "${ECHO_T}bsm" >&6; }
12204 AUDIT_MODULE=bsm
12205
12206for ac_header in bsm/audit.h
12207do
12208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220
12221#ifdef HAVE_TIME_H
12222# include <time.h>
12223#endif
12224
12225
12226
12227#include <$ac_header>
12228_ACEOF
12229rm -f conftest.$ac_objext
12230if { (ac_try="$ac_compile"
12231case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compile") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
12246 eval "$as_ac_Header=yes"
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 eval "$as_ac_Header=no"
12252fi
12253
12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255fi
12256ac_res=`eval echo '${'$as_ac_Header'}'`
12257 { echo "$as_me:$LINENO: result: $ac_res" >&5
12258echo "${ECHO_T}$ac_res" >&6; }
12259if test `eval echo '${'$as_ac_Header'}'` = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12262_ACEOF
12263
12264else
12265 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12266echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12267 { (exit 1); exit 1; }; }
12268fi
12269
12270done
12271
12272
12273{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12274echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12275if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277else
12278 ac_check_lib_save_LIBS=$LIBS
12279LIBS="-lbsm $LIBS"
12280cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286
12287/* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290#ifdef __cplusplus
12291extern "C"
12292#endif
12293char getaudit ();
12294int
12295main ()
12296{
12297return getaudit ();
12298 ;
12299 return 0;
12300}
12301_ACEOF
12302rm -f conftest.$ac_objext conftest$ac_exeext
12303if { (ac_try="$ac_link"
12304case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_link") 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest$ac_exeext &&
12319 $as_test_x conftest$ac_exeext; then
12320 ac_cv_lib_bsm_getaudit=yes
12321else
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_lib_bsm_getaudit=no
12326fi
12327
12328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329 conftest$ac_exeext conftest.$ac_ext
12330LIBS=$ac_check_lib_save_LIBS
12331fi
12332{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12333echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12334if test $ac_cv_lib_bsm_getaudit = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336#define HAVE_LIBBSM 1
12337_ACEOF
12338
12339 LIBS="-lbsm $LIBS"
12340
12341else
12342 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12343echo "$as_me: error: BSM enabled and required library not found" >&2;}
12344 { (exit 1); exit 1; }; }
12345fi
12346
12347
12348for ac_func in getaudit
12349do
12350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356 cat >conftest.$ac_ext <<_ACEOF
12357/* confdefs.h. */
12358_ACEOF
12359cat confdefs.h >>conftest.$ac_ext
12360cat >>conftest.$ac_ext <<_ACEOF
12361/* end confdefs.h. */
12362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364#define $ac_func innocuous_$ac_func
12365
12366/* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12370
12371#ifdef __STDC__
12372# include <limits.h>
12373#else
12374# include <assert.h>
12375#endif
12376
12377#undef $ac_func
12378
12379/* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382#ifdef __cplusplus
12383extern "C"
12384#endif
12385char $ac_func ();
12386/* The GNU C library defines this for functions which it implements
12387 to always fail with ENOSYS. Some functions are actually named
12388 something starting with __ and the normal name is an alias. */
12389#if defined __stub_$ac_func || defined __stub___$ac_func
12390choke me
12391#endif
12392
12393int
12394main ()
12395{
12396return $ac_func ();
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401rm -f conftest.$ac_objext conftest$ac_exeext
12402if { (ac_try="$ac_link"
12403case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest$ac_exeext &&
12418 $as_test_x conftest$ac_exeext; then
12419 eval "$as_ac_var=yes"
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 eval "$as_ac_var=no"
12425fi
12426
12427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12428 conftest$ac_exeext conftest.$ac_ext
12429fi
12430ac_res=`eval echo '${'$as_ac_var'}'`
12431 { echo "$as_me:$LINENO: result: $ac_res" >&5
12432echo "${ECHO_T}$ac_res" >&6; }
12433if test `eval echo '${'$as_ac_var'}'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12436_ACEOF
12437
12438else
12439 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12440echo "$as_me: error: BSM enabled and required function not found" >&2;}
12441 { (exit 1); exit 1; }; }
12442fi
12443done
12444
12445 # These are optional
12446
12447
12448for ac_func in getaudit_addr aug_get_machine
12449do
12450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455else
12456 cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12464#define $ac_func innocuous_$ac_func
12465
12466/* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char $ac_func (); below.
12468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 <limits.h> exists even on freestanding compilers. */
12470
12471#ifdef __STDC__
12472# include <limits.h>
12473#else
12474# include <assert.h>
12475#endif
12476
12477#undef $ac_func
12478
12479/* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482#ifdef __cplusplus
12483extern "C"
12484#endif
12485char $ac_func ();
12486/* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489#if defined __stub_$ac_func || defined __stub___$ac_func
12490choke me
12491#endif
12492
12493int
12494main ()
12495{
12496return $ac_func ();
12497 ;
12498 return 0;
12499}
12500_ACEOF
12501rm -f conftest.$ac_objext conftest$ac_exeext
12502if { (ac_try="$ac_link"
12503case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506esac
12507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_link") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest$ac_exeext &&
12518 $as_test_x conftest$ac_exeext; then
12519 eval "$as_ac_var=yes"
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 eval "$as_ac_var=no"
12525fi
12526
12527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528 conftest$ac_exeext conftest.$ac_ext
12529fi
12530ac_res=`eval echo '${'$as_ac_var'}'`
12531 { echo "$as_me:$LINENO: result: $ac_res" >&5
12532echo "${ECHO_T}$ac_res" >&6; }
12533if test `eval echo '${'$as_ac_var'}'` = yes; then
12534 cat >>confdefs.h <<_ACEOF
12535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12536_ACEOF
12537
12538fi
12539done
12540
12541
12542cat >>confdefs.h <<\_ACEOF
12543#define USE_BSM_AUDIT 1
12544_ACEOF
12545
12546 ;;
12547 debug)
12548 AUDIT_MODULE=debug
12549 { echo "$as_me:$LINENO: result: debug" >&5
12550echo "${ECHO_T}debug" >&6; }
12551
12552cat >>confdefs.h <<\_ACEOF
12553#define SSH_AUDIT_EVENTS 1
12554_ACEOF
12555
12556 ;;
12557 no)
12558 { echo "$as_me:$LINENO: result: no" >&5
12559echo "${ECHO_T}no" >&6; }
12560 ;;
12561 *)
12562 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12563echo "$as_me: error: Unknown audit module $withval" >&2;}
12564 { (exit 1); exit 1; }; }
12565 ;;
12566 esac
12567
12568fi
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660for ac_func in \
12661 arc4random \
12662 arc4random_buf \
12663 arc4random_uniform \
12664 asprintf \
12665 b64_ntop \
12666 __b64_ntop \
12667 b64_pton \
12668 __b64_pton \
12669 bcopy \
12670 bindresvport_sa \
12671 clock \
12672 closefrom \
12673 dirfd \
12674 fchmod \
12675 fchown \
12676 freeaddrinfo \
12677 fstatvfs \
12678 futimes \
12679 getaddrinfo \
12680 getcwd \
12681 getgrouplist \
12682 getnameinfo \
12683 getopt \
12684 getpeereid \
12685 getpeerucred \
12686 _getpty \
12687 getrlimit \
12688 getttyent \
12689 glob \
12690 inet_aton \
12691 inet_ntoa \
12692 inet_ntop \
12693 innetgr \
12694 login_getcapbool \
12695 md5_crypt \
12696 memmove \
12697 mkdtemp \
12698 mmap \
12699 ngetaddrinfo \
12700 nsleep \
12701 ogetaddrinfo \
12702 openlog_r \
12703 openpty \
12704 poll \
12705 prctl \
12706 pstat \
12707 readpassphrase \
12708 realpath \
12709 recvmsg \
12710 rresvport_af \
12711 sendmsg \
12712 setdtablesize \
12713 setegid \
12714 setenv \
12715 seteuid \
12716 setgroups \
12717 setlogin \
12718 setpcred \
12719 setproctitle \
12720 setregid \
12721 setreuid \
12722 setrlimit \
12723 setsid \
12724 setvbuf \
12725 sigaction \
12726 sigvec \
12727 snprintf \
12728 socketpair \
12729 statfs \
12730 statvfs \
12731 strdup \
12732 strerror \
12733 strlcat \
12734 strlcpy \
12735 strmode \
12736 strnvis \
12737 strtonum \
12738 strtoll \
12739 strtoul \
12740 swap32 \
12741 sysconf \
12742 tcgetpgrp \
12743 truncate \
12744 unsetenv \
12745 updwtmpx \
12746 vasprintf \
12747 vhangup \
12748 vsnprintf \
12749 waitpid \
12750
12751do
12752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758 cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12766#define $ac_func innocuous_$ac_func
12767
12768/* System header to define __stub macros and hopefully few prototypes,
12769 which can conflict with char $ac_func (); below.
12770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771 <limits.h> exists even on freestanding compilers. */
12772
12773#ifdef __STDC__
12774# include <limits.h>
12775#else
12776# include <assert.h>
12777#endif
12778
12779#undef $ac_func
12780
12781/* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784#ifdef __cplusplus
12785extern "C"
12786#endif
12787char $ac_func ();
12788/* The GNU C library defines this for functions which it implements
12789 to always fail with ENOSYS. Some functions are actually named
12790 something starting with __ and the normal name is an alias. */
12791#if defined __stub_$ac_func || defined __stub___$ac_func
12792choke me
12793#endif
12794
12795int
12796main ()
12797{
12798return $ac_func ();
12799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext conftest$ac_exeext
12804if { (ac_try="$ac_link"
12805case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest$ac_exeext &&
12820 $as_test_x conftest$ac_exeext; then
12821 eval "$as_ac_var=yes"
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 eval "$as_ac_var=no"
12827fi
12828
12829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12830 conftest$ac_exeext conftest.$ac_ext
12831fi
12832ac_res=`eval echo '${'$as_ac_var'}'`
12833 { echo "$as_me:$LINENO: result: $ac_res" >&5
12834echo "${ECHO_T}$ac_res" >&6; }
12835if test `eval echo '${'$as_ac_var'}'` = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12838_ACEOF
12839
12840fi
12841done
12842
12843
12844# IRIX has a const char return value for gai_strerror()
12845
12846for ac_func in gai_strerror
12847do
12848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853else
12854 cat >conftest.$ac_ext <<_ACEOF
12855/* confdefs.h. */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
12859/* end confdefs.h. */
12860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12862#define $ac_func innocuous_$ac_func
12863
12864/* System header to define __stub macros and hopefully few prototypes,
12865 which can conflict with char $ac_func (); below.
12866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867 <limits.h> exists even on freestanding compilers. */
12868
12869#ifdef __STDC__
12870# include <limits.h>
12871#else
12872# include <assert.h>
12873#endif
12874
12875#undef $ac_func
12876
12877/* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880#ifdef __cplusplus
12881extern "C"
12882#endif
12883char $ac_func ();
12884/* The GNU C library defines this for functions which it implements
12885 to always fail with ENOSYS. Some functions are actually named
12886 something starting with __ and the normal name is an alias. */
12887#if defined __stub_$ac_func || defined __stub___$ac_func
12888choke me
12889#endif
12890
12891int
12892main ()
12893{
12894return $ac_func ();
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext conftest$ac_exeext
12900if { (ac_try="$ac_link"
12901case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest$ac_exeext &&
12916 $as_test_x conftest$ac_exeext; then
12917 eval "$as_ac_var=yes"
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 eval "$as_ac_var=no"
12923fi
12924
12925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12927fi
12928ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930echo "${ECHO_T}$ac_res" >&6; }
12931if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934_ACEOF
12935
12936 cat >>confdefs.h <<\_ACEOF
12937#define HAVE_GAI_STRERROR 1
12938_ACEOF
12939
12940 cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946
12947#include <sys/types.h>
12948#include <sys/socket.h>
12949#include <netdb.h>
12950
12951const char *gai_strerror(int);
12952int
12953main ()
12954{
12955
12956char *str;
12957
12958str = gai_strerror(0);
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963rm -f conftest.$ac_objext
12964if { (ac_try="$ac_compile"
12965case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968esac
12969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_compile") 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && {
12977 test -z "$ac_c_werror_flag" ||
12978 test ! -s conftest.err
12979 } && test -s conftest.$ac_objext; then
12980
12981
12982cat >>confdefs.h <<\_ACEOF
12983#define HAVE_CONST_GAI_STRERROR_PROTO 1
12984_ACEOF
12985
12986else
12987 echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990
12991fi
12992
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995done
12996
12997
12998{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
12999echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
13000if test "${ac_cv_search_nanosleep+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 ac_func_search_save_LIBS=$LIBS
13004cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010
13011/* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13014#ifdef __cplusplus
13015extern "C"
13016#endif
13017char nanosleep ();
13018int
13019main ()
13020{
13021return nanosleep ();
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026for ac_lib in '' rt posix4; do
13027 if test -z "$ac_lib"; then
13028 ac_res="none required"
13029 else
13030 ac_res=-l$ac_lib
13031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13032 fi
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest$ac_exeext &&
13050 $as_test_x conftest$ac_exeext; then
13051 ac_cv_search_nanosleep=$ac_res
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056
13057fi
13058
13059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13060 conftest$ac_exeext
13061 if test "${ac_cv_search_nanosleep+set}" = set; then
13062 break
13063fi
13064done
13065if test "${ac_cv_search_nanosleep+set}" = set; then
13066 :
13067else
13068 ac_cv_search_nanosleep=no
13069fi
13070rm conftest.$ac_ext
13071LIBS=$ac_func_search_save_LIBS
13072fi
13073{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13074echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
13075ac_res=$ac_cv_search_nanosleep
13076if test "$ac_res" != no; then
13077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13078
13079cat >>confdefs.h <<\_ACEOF
13080#define HAVE_NANOSLEEP 1
13081_ACEOF
13082
13083fi
13084
13085
13086{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13087echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
13088if test "${ac_cv_have_decl_getrusage+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
13091 cat >conftest.$ac_ext <<_ACEOF
13092/* confdefs.h. */
13093_ACEOF
13094cat confdefs.h >>conftest.$ac_ext
13095cat >>conftest.$ac_ext <<_ACEOF
13096/* end confdefs.h. */
13097$ac_includes_default
13098int
13099main ()
13100{
13101#ifndef getrusage
13102 (void) getrusage;
13103#endif
13104
13105 ;
13106 return 0;
13107}
13108_ACEOF
13109rm -f conftest.$ac_objext
13110if { (ac_try="$ac_compile"
13111case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114esac
13115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 ac_cv_have_decl_getrusage=yes
13127else
13128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 ac_cv_have_decl_getrusage=no
13132fi
13133
13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135fi
13136{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13137echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
13138if test $ac_cv_have_decl_getrusage = yes; then
13139
13140for ac_func in getrusage
13141do
13142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148 cat >conftest.$ac_ext <<_ACEOF
13149/* confdefs.h. */
13150_ACEOF
13151cat confdefs.h >>conftest.$ac_ext
13152cat >>conftest.$ac_ext <<_ACEOF
13153/* end confdefs.h. */
13154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156#define $ac_func innocuous_$ac_func
13157
13158/* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13162
13163#ifdef __STDC__
13164# include <limits.h>
13165#else
13166# include <assert.h>
13167#endif
13168
13169#undef $ac_func
13170
13171/* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174#ifdef __cplusplus
13175extern "C"
13176#endif
13177char $ac_func ();
13178/* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181#if defined __stub_$ac_func || defined __stub___$ac_func
13182choke me
13183#endif
13184
13185int
13186main ()
13187{
13188return $ac_func ();
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (ac_try="$ac_link"
13195case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest$ac_exeext &&
13210 $as_test_x conftest$ac_exeext; then
13211 eval "$as_ac_var=yes"
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 eval "$as_ac_var=no"
13217fi
13218
13219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13220 conftest$ac_exeext conftest.$ac_ext
13221fi
13222ac_res=`eval echo '${'$as_ac_var'}'`
13223 { echo "$as_me:$LINENO: result: $ac_res" >&5
13224echo "${ECHO_T}$ac_res" >&6; }
13225if test `eval echo '${'$as_ac_var'}'` = yes; then
13226 cat >>confdefs.h <<_ACEOF
13227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13228_ACEOF
13229
13230fi
13231done
13232
13233fi
13234
13235{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
13236echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
13237if test "${ac_cv_have_decl_strsep+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239else
13240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246
13247#ifdef HAVE_STRING_H
13248# include <string.h>
13249#endif
13250
13251
13252int
13253main ()
13254{
13255#ifndef strsep
13256 (void) strsep;
13257#endif
13258
13259 ;
13260 return 0;
13261}
13262_ACEOF
13263rm -f conftest.$ac_objext
13264if { (ac_try="$ac_compile"
13265case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268esac
13269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_compile") 2>conftest.er1
13271 ac_status=$?
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && {
13277 test -z "$ac_c_werror_flag" ||
13278 test ! -s conftest.err
13279 } && test -s conftest.$ac_objext; then
13280 ac_cv_have_decl_strsep=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_cv_have_decl_strsep=no
13286fi
13287
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13291echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13292if test $ac_cv_have_decl_strsep = yes; then
13293
13294for ac_func in strsep
13295do
13296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 cat >conftest.$ac_ext <<_ACEOF
13303/* confdefs.h. */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h. */
13308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13310#define $ac_func innocuous_$ac_func
13311
13312/* System header to define __stub macros and hopefully few prototypes,
13313 which can conflict with char $ac_func (); below.
13314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13315 <limits.h> exists even on freestanding compilers. */
13316
13317#ifdef __STDC__
13318# include <limits.h>
13319#else
13320# include <assert.h>
13321#endif
13322
13323#undef $ac_func
13324
13325/* Override any GCC internal prototype to avoid an error.
13326 Use char because int might match the return type of a GCC
13327 builtin and then its argument prototype would still apply. */
13328#ifdef __cplusplus
13329extern "C"
13330#endif
13331char $ac_func ();
13332/* The GNU C library defines this for functions which it implements
13333 to always fail with ENOSYS. Some functions are actually named
13334 something starting with __ and the normal name is an alias. */
13335#if defined __stub_$ac_func || defined __stub___$ac_func
13336choke me
13337#endif
13338
13339int
13340main ()
13341{
13342return $ac_func ();
13343 ;
13344 return 0;
13345}
13346_ACEOF
13347rm -f conftest.$ac_objext conftest$ac_exeext
13348if { (ac_try="$ac_link"
13349case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13365 eval "$as_ac_var=yes"
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 eval "$as_ac_var=no"
13371fi
13372
13373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374 conftest$ac_exeext conftest.$ac_ext
13375fi
13376ac_res=`eval echo '${'$as_ac_var'}'`
13377 { echo "$as_me:$LINENO: result: $ac_res" >&5
13378echo "${ECHO_T}$ac_res" >&6; }
13379if test `eval echo '${'$as_ac_var'}'` = yes; then
13380 cat >>confdefs.h <<_ACEOF
13381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13382_ACEOF
13383
13384fi
13385done
13386
13387fi
13388
13389
13390{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13391echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13392if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#include <termios.h>
13402
13403
13404int
13405main ()
13406{
13407#ifndef tcsendbreak
13408 (void) tcsendbreak;
13409#endif
13410
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (ac_try="$ac_compile"
13417case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_compile") 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_c_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest.$ac_objext; then
13432 ac_cv_have_decl_tcsendbreak=yes
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ac_cv_have_decl_tcsendbreak=no
13438fi
13439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441fi
13442{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13443echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13444if test $ac_cv_have_decl_tcsendbreak = yes; then
13445 cat >>confdefs.h <<\_ACEOF
13446#define HAVE_TCSENDBREAK 1
13447_ACEOF
13448
13449else
13450
13451for ac_func in tcsendbreak
13452do
13453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467#define $ac_func innocuous_$ac_func
13468
13469/* System header to define __stub macros and hopefully few prototypes,
13470 which can conflict with char $ac_func (); below.
13471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472 <limits.h> exists even on freestanding compilers. */
13473
13474#ifdef __STDC__
13475# include <limits.h>
13476#else
13477# include <assert.h>
13478#endif
13479
13480#undef $ac_func
13481
13482/* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485#ifdef __cplusplus
13486extern "C"
13487#endif
13488char $ac_func ();
13489/* The GNU C library defines this for functions which it implements
13490 to always fail with ENOSYS. Some functions are actually named
13491 something starting with __ and the normal name is an alias. */
13492#if defined __stub_$ac_func || defined __stub___$ac_func
13493choke me
13494#endif
13495
13496int
13497main ()
13498{
13499return $ac_func ();
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (ac_try="$ac_link"
13506case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest$ac_exeext &&
13521 $as_test_x conftest$ac_exeext; then
13522 eval "$as_ac_var=yes"
13523else
13524 echo "$as_me: failed program was:" >&5
13525sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 eval "$as_ac_var=no"
13528fi
13529
13530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13531 conftest$ac_exeext conftest.$ac_ext
13532fi
13533ac_res=`eval echo '${'$as_ac_var'}'`
13534 { echo "$as_me:$LINENO: result: $ac_res" >&5
13535echo "${ECHO_T}$ac_res" >&6; }
13536if test `eval echo '${'$as_ac_var'}'` = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13539_ACEOF
13540
13541fi
13542done
13543
13544fi
13545
13546
13547{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
13548echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
13549if test "${ac_cv_have_decl_h_errno+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558#include <netdb.h>
13559
13560int
13561main ()
13562{
13563#ifndef h_errno
13564 (void) h_errno;
13565#endif
13566
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571rm -f conftest.$ac_objext
13572if { (ac_try="$ac_compile"
13573case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_compile") 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest.$ac_objext; then
13588 ac_cv_have_decl_h_errno=yes
13589else
13590 echo "$as_me: failed program was:" >&5
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_have_decl_h_errno=no
13594fi
13595
13596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597fi
13598{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
13599echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
13600if test $ac_cv_have_decl_h_errno = yes; then
13601
13602cat >>confdefs.h <<_ACEOF
13603#define HAVE_DECL_H_ERRNO 1
13604_ACEOF
13605
13606
13607else
13608 cat >>confdefs.h <<_ACEOF
13609#define HAVE_DECL_H_ERRNO 0
13610_ACEOF
13611
13612
13613fi
13614
13615
13616
13617{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13618echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13619if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622 cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628
13629#include <sys/types.h>
13630#include <sys/socket.h>
13631
13632
13633int
13634main ()
13635{
13636#ifndef SHUT_RD
13637 (void) SHUT_RD;
13638#endif
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
13645if { (ac_try="$ac_compile"
13646case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compile") 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest.$ac_objext; then
13661 ac_cv_have_decl_SHUT_RD=yes
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 ac_cv_have_decl_SHUT_RD=no
13667fi
13668
13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670fi
13671{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
13672echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
13673if test $ac_cv_have_decl_SHUT_RD = yes; then
13674
13675cat >>confdefs.h <<_ACEOF
13676#define HAVE_DECL_SHUT_RD 1
13677_ACEOF
13678
13679
13680else
13681 cat >>confdefs.h <<_ACEOF
13682#define HAVE_DECL_SHUT_RD 0
13683_ACEOF
13684
13685
13686fi
13687
13688
13689
13690{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
13691echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
13692if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 cat >conftest.$ac_ext <<_ACEOF
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
13701
13702#include <sys/types.h>
13703#ifdef HAVE_SYS_STAT_H
13704# include <sys/stat.h>
13705#endif
13706#ifdef HAVE_FCNTL_H
13707# include <fcntl.h>
13708#endif
13709
13710
13711int
13712main ()
13713{
13714#ifndef O_NONBLOCK
13715 (void) O_NONBLOCK;
13716#endif
13717
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (ac_try="$ac_compile"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest.$ac_objext; then
13739 ac_cv_have_decl_O_NONBLOCK=yes
13740else
13741 echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 ac_cv_have_decl_O_NONBLOCK=no
13745fi
13746
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748fi
13749{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
13750echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
13751if test $ac_cv_have_decl_O_NONBLOCK = yes; then
13752
13753cat >>confdefs.h <<_ACEOF
13754#define HAVE_DECL_O_NONBLOCK 1
13755_ACEOF
13756
13757
13758else
13759 cat >>confdefs.h <<_ACEOF
13760#define HAVE_DECL_O_NONBLOCK 0
13761_ACEOF
13762
13763
13764fi
13765
13766
13767
13768{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
13769echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
13770if test "${ac_cv_have_decl_writev+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773 cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779
13780#include <sys/types.h>
13781#include <sys/uio.h>
13782#include <unistd.h>
13783
13784
13785int
13786main ()
13787{
13788#ifndef writev
13789 (void) writev;
13790#endif
13791
13792 ;
13793 return 0;
13794}
13795_ACEOF
13796rm -f conftest.$ac_objext
13797if { (ac_try="$ac_compile"
13798case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801esac
13802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_compile") 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } && {
13810 test -z "$ac_c_werror_flag" ||
13811 test ! -s conftest.err
13812 } && test -s conftest.$ac_objext; then
13813 ac_cv_have_decl_writev=yes
13814else
13815 echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818 ac_cv_have_decl_writev=no
13819fi
13820
13821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822fi
13823{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
13824echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
13825if test $ac_cv_have_decl_writev = yes; then
13826
13827cat >>confdefs.h <<_ACEOF
13828#define HAVE_DECL_WRITEV 1
13829_ACEOF
13830
13831
13832else
13833 cat >>confdefs.h <<_ACEOF
13834#define HAVE_DECL_WRITEV 0
13835_ACEOF
13836
13837
13838fi
13839
13840
13841
13842{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
13843echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
13844if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847 cat >conftest.$ac_ext <<_ACEOF
13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h. */
13853
13854#include <sys/param.h>
13855
13856
13857int
13858main ()
13859{
13860#ifndef MAXSYMLINKS
13861 (void) MAXSYMLINKS;
13862#endif
13863
13864 ;
13865 return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext
13869if { (ac_try="$ac_compile"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest.$ac_objext; then
13885 ac_cv_have_decl_MAXSYMLINKS=yes
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ac_cv_have_decl_MAXSYMLINKS=no
13891fi
13892
13893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894fi
13895{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
13896echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
13897if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
13898
13899cat >>confdefs.h <<_ACEOF
13900#define HAVE_DECL_MAXSYMLINKS 1
13901_ACEOF
13902
13903
13904else
13905 cat >>confdefs.h <<_ACEOF
13906#define HAVE_DECL_MAXSYMLINKS 0
13907_ACEOF
13908
13909
13910fi
13911
13912
13913
13914{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
13915echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
13916if test "${ac_cv_have_decl_offsetof+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 cat >conftest.$ac_ext <<_ACEOF
13920/* confdefs.h. */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h. */
13925
13926#include <stddef.h>
13927
13928
13929int
13930main ()
13931{
13932#ifndef offsetof
13933 (void) offsetof;
13934#endif
13935
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940rm -f conftest.$ac_objext
13941if { (ac_try="$ac_compile"
13942case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13945esac
13946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_compile") 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } && {
13954 test -z "$ac_c_werror_flag" ||
13955 test ! -s conftest.err
13956 } && test -s conftest.$ac_objext; then
13957 ac_cv_have_decl_offsetof=yes
13958else
13959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962 ac_cv_have_decl_offsetof=no
13963fi
13964
13965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966fi
13967{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
13968echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
13969if test $ac_cv_have_decl_offsetof = yes; then
13970
13971cat >>confdefs.h <<_ACEOF
13972#define HAVE_DECL_OFFSETOF 1
13973_ACEOF
13974
13975
13976else
13977 cat >>confdefs.h <<_ACEOF
13978#define HAVE_DECL_OFFSETOF 0
13979_ACEOF
13980
13981
13982fi
13983
13984
13985
13986
13987for ac_func in setresuid
13988do
13989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003#define $ac_func innocuous_$ac_func
14004
14005/* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14009
14010#ifdef __STDC__
14011# include <limits.h>
14012#else
14013# include <assert.h>
14014#endif
14015
14016#undef $ac_func
14017
14018/* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14021#ifdef __cplusplus
14022extern "C"
14023#endif
14024char $ac_func ();
14025/* The GNU C library defines this for functions which it implements
14026 to always fail with ENOSYS. Some functions are actually named
14027 something starting with __ and the normal name is an alias. */
14028#if defined __stub_$ac_func || defined __stub___$ac_func
14029choke me
14030#endif
14031
14032int
14033main ()
14034{
14035return $ac_func ();
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040rm -f conftest.$ac_objext conftest$ac_exeext
14041if { (ac_try="$ac_link"
14042case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_link") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest$ac_exeext &&
14057 $as_test_x conftest$ac_exeext; then
14058 eval "$as_ac_var=yes"
14059else
14060 echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 eval "$as_ac_var=no"
14064fi
14065
14066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14067 conftest$ac_exeext conftest.$ac_ext
14068fi
14069ac_res=`eval echo '${'$as_ac_var'}'`
14070 { echo "$as_me:$LINENO: result: $ac_res" >&5
14071echo "${ECHO_T}$ac_res" >&6; }
14072if test `eval echo '${'$as_ac_var'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14075_ACEOF
14076
14077 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14078echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
14079 if test "$cross_compiling" = yes; then
14080 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14081echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14082
14083else
14084 cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
14090
14091#include <stdlib.h>
14092#include <errno.h>
14093int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14094
14095_ACEOF
14096rm -f conftest$ac_exeext
14097if { (ac_try="$ac_link"
14098case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 { echo "$as_me:$LINENO: result: yes" >&5
14117echo "${ECHO_T}yes" >&6; }
14118else
14119 echo "$as_me: program exited with status $ac_status" >&5
14120echo "$as_me: failed program was:" >&5
14121sed 's/^/| /' conftest.$ac_ext >&5
14122
14123( exit $ac_status )
14124
14125cat >>confdefs.h <<\_ACEOF
14126#define BROKEN_SETRESUID 1
14127_ACEOF
14128
14129 { echo "$as_me:$LINENO: result: not implemented" >&5
14130echo "${ECHO_T}not implemented" >&6; }
14131fi
14132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14133fi
14134
14135
14136
14137fi
14138done
14139
14140
14141
14142for ac_func in setresgid
14143do
14144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14158#define $ac_func innocuous_$ac_func
14159
14160/* System header to define __stub macros and hopefully few prototypes,
14161 which can conflict with char $ac_func (); below.
14162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14163 <limits.h> exists even on freestanding compilers. */
14164
14165#ifdef __STDC__
14166# include <limits.h>
14167#else
14168# include <assert.h>
14169#endif
14170
14171#undef $ac_func
14172
14173/* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14176#ifdef __cplusplus
14177extern "C"
14178#endif
14179char $ac_func ();
14180/* The GNU C library defines this for functions which it implements
14181 to always fail with ENOSYS. Some functions are actually named
14182 something starting with __ and the normal name is an alias. */
14183#if defined __stub_$ac_func || defined __stub___$ac_func
14184choke me
14185#endif
14186
14187int
14188main ()
14189{
14190return $ac_func ();
14191 ;
14192 return 0;
14193}
14194_ACEOF
14195rm -f conftest.$ac_objext conftest$ac_exeext
14196if { (ac_try="$ac_link"
14197case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest$ac_exeext &&
14212 $as_test_x conftest$ac_exeext; then
14213 eval "$as_ac_var=yes"
14214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 eval "$as_ac_var=no"
14219fi
14220
14221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14222 conftest$ac_exeext conftest.$ac_ext
14223fi
14224ac_res=`eval echo '${'$as_ac_var'}'`
14225 { echo "$as_me:$LINENO: result: $ac_res" >&5
14226echo "${ECHO_T}$ac_res" >&6; }
14227if test `eval echo '${'$as_ac_var'}'` = yes; then
14228 cat >>confdefs.h <<_ACEOF
14229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14230_ACEOF
14231
14232 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
14233echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
14234 if test "$cross_compiling" = yes; then
14235 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14236echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14237
14238else
14239 cat >conftest.$ac_ext <<_ACEOF
14240/* confdefs.h. */
14241_ACEOF
14242cat confdefs.h >>conftest.$ac_ext
14243cat >>conftest.$ac_ext <<_ACEOF
14244/* end confdefs.h. */
14245
14246#include <stdlib.h>
14247#include <errno.h>
14248int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14249
14250_ACEOF
14251rm -f conftest$ac_exeext
14252if { (ac_try="$ac_link"
14253case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256esac
14257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_link") 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 { echo "$as_me:$LINENO: result: yes" >&5
14272echo "${ECHO_T}yes" >&6; }
14273else
14274 echo "$as_me: program exited with status $ac_status" >&5
14275echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278( exit $ac_status )
14279
14280cat >>confdefs.h <<\_ACEOF
14281#define BROKEN_SETRESGID 1
14282_ACEOF
14283
14284 { echo "$as_me:$LINENO: result: not implemented" >&5
14285echo "${ECHO_T}not implemented" >&6; }
14286fi
14287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14288fi
14289
14290
14291
14292fi
14293done
14294
14295
14296
14297
14298for ac_func in gettimeofday time
14299do
14300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14301{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306 cat >conftest.$ac_ext <<_ACEOF
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
14311/* end confdefs.h. */
14312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14314#define $ac_func innocuous_$ac_func
14315
14316/* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char $ac_func (); below.
14318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 <limits.h> exists even on freestanding compilers. */
14320
14321#ifdef __STDC__
14322# include <limits.h>
14323#else
14324# include <assert.h>
14325#endif
14326
14327#undef $ac_func
14328
14329/* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14332#ifdef __cplusplus
14333extern "C"
14334#endif
14335char $ac_func ();
14336/* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339#if defined __stub_$ac_func || defined __stub___$ac_func
14340choke me
14341#endif
14342
14343int
14344main ()
14345{
14346return $ac_func ();
14347 ;
14348 return 0;
14349}
14350_ACEOF
14351rm -f conftest.$ac_objext conftest$ac_exeext
14352if { (ac_try="$ac_link"
14353case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356esac
14357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest$ac_exeext &&
14368 $as_test_x conftest$ac_exeext; then
14369 eval "$as_ac_var=yes"
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 eval "$as_ac_var=no"
14375fi
14376
14377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378 conftest$ac_exeext conftest.$ac_ext
14379fi
14380ac_res=`eval echo '${'$as_ac_var'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382echo "${ECHO_T}$ac_res" >&6; }
14383if test `eval echo '${'$as_ac_var'}'` = yes; then
14384 cat >>confdefs.h <<_ACEOF
14385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14386_ACEOF
14387
14388fi
14389done
14390
14391
14392
14393
14394
14395
14396
14397for ac_func in endutent getutent getutid getutline pututline setutent
14398do
14399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14400{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14402if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 cat >conftest.$ac_ext <<_ACEOF
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
14411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14413#define $ac_func innocuous_$ac_func
14414
14415/* System header to define __stub macros and hopefully few prototypes,
14416 which can conflict with char $ac_func (); below.
14417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14418 <limits.h> exists even on freestanding compilers. */
14419
14420#ifdef __STDC__
14421# include <limits.h>
14422#else
14423# include <assert.h>
14424#endif
14425
14426#undef $ac_func
14427
14428/* Override any GCC internal prototype to avoid an error.
14429 Use char because int might match the return type of a GCC
14430 builtin and then its argument prototype would still apply. */
14431#ifdef __cplusplus
14432extern "C"
14433#endif
14434char $ac_func ();
14435/* The GNU C library defines this for functions which it implements
14436 to always fail with ENOSYS. Some functions are actually named
14437 something starting with __ and the normal name is an alias. */
14438#if defined __stub_$ac_func || defined __stub___$ac_func
14439choke me
14440#endif
14441
14442int
14443main ()
14444{
14445return $ac_func ();
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext conftest$ac_exeext
14451if { (ac_try="$ac_link"
14452case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_link") 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_c_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest$ac_exeext &&
14467 $as_test_x conftest$ac_exeext; then
14468 eval "$as_ac_var=yes"
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 eval "$as_ac_var=no"
14474fi
14475
14476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477 conftest$ac_exeext conftest.$ac_ext
14478fi
14479ac_res=`eval echo '${'$as_ac_var'}'`
14480 { echo "$as_me:$LINENO: result: $ac_res" >&5
14481echo "${ECHO_T}$ac_res" >&6; }
14482if test `eval echo '${'$as_ac_var'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14485_ACEOF
14486
14487fi
14488done
14489
14490
14491for ac_func in utmpname
14492do
14493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14507#define $ac_func innocuous_$ac_func
14508
14509/* System header to define __stub macros and hopefully few prototypes,
14510 which can conflict with char $ac_func (); below.
14511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14512 <limits.h> exists even on freestanding compilers. */
14513
14514#ifdef __STDC__
14515# include <limits.h>
14516#else
14517# include <assert.h>
14518#endif
14519
14520#undef $ac_func
14521
14522/* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525#ifdef __cplusplus
14526extern "C"
14527#endif
14528char $ac_func ();
14529/* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532#if defined __stub_$ac_func || defined __stub___$ac_func
14533choke me
14534#endif
14535
14536int
14537main ()
14538{
14539return $ac_func ();
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext conftest$ac_exeext
14545if { (ac_try="$ac_link"
14546case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_link") 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } && {
14558 test -z "$ac_c_werror_flag" ||
14559 test ! -s conftest.err
14560 } && test -s conftest$ac_exeext &&
14561 $as_test_x conftest$ac_exeext; then
14562 eval "$as_ac_var=yes"
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 eval "$as_ac_var=no"
14568fi
14569
14570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14571 conftest$ac_exeext conftest.$ac_ext
14572fi
14573ac_res=`eval echo '${'$as_ac_var'}'`
14574 { echo "$as_me:$LINENO: result: $ac_res" >&5
14575echo "${ECHO_T}$ac_res" >&6; }
14576if test `eval echo '${'$as_ac_var'}'` = yes; then
14577 cat >>confdefs.h <<_ACEOF
14578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14579_ACEOF
14580
14581fi
14582done
14583
14584
14585
14586
14587
14588
14589for ac_func in endutxent getutxent getutxid getutxline pututxline
14590do
14591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14592{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14594if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596else
14597 cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14605#define $ac_func innocuous_$ac_func
14606
14607/* System header to define __stub macros and hopefully few prototypes,
14608 which can conflict with char $ac_func (); below.
14609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14610 <limits.h> exists even on freestanding compilers. */
14611
14612#ifdef __STDC__
14613# include <limits.h>
14614#else
14615# include <assert.h>
14616#endif
14617
14618#undef $ac_func
14619
14620/* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623#ifdef __cplusplus
14624extern "C"
14625#endif
14626char $ac_func ();
14627/* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630#if defined __stub_$ac_func || defined __stub___$ac_func
14631choke me
14632#endif
14633
14634int
14635main ()
14636{
14637return $ac_func ();
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext conftest$ac_exeext
14643if { (ac_try="$ac_link"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest$ac_exeext &&
14659 $as_test_x conftest$ac_exeext; then
14660 eval "$as_ac_var=yes"
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 eval "$as_ac_var=no"
14666fi
14667
14668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14669 conftest$ac_exeext conftest.$ac_ext
14670fi
14671ac_res=`eval echo '${'$as_ac_var'}'`
14672 { echo "$as_me:$LINENO: result: $ac_res" >&5
14673echo "${ECHO_T}$ac_res" >&6; }
14674if test `eval echo '${'$as_ac_var'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677_ACEOF
14678
14679fi
14680done
14681
14682
14683
14684for ac_func in setutxent utmpxname
14685do
14686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 cat >conftest.$ac_ext <<_ACEOF
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
14698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700#define $ac_func innocuous_$ac_func
14701
14702/* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char $ac_func (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14706
14707#ifdef __STDC__
14708# include <limits.h>
14709#else
14710# include <assert.h>
14711#endif
14712
14713#undef $ac_func
14714
14715/* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718#ifdef __cplusplus
14719extern "C"
14720#endif
14721char $ac_func ();
14722/* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725#if defined __stub_$ac_func || defined __stub___$ac_func
14726choke me
14727#endif
14728
14729int
14730main ()
14731{
14732return $ac_func ();
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext conftest$ac_exeext
14738if { (ac_try="$ac_link"
14739case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_link") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest$ac_exeext &&
14754 $as_test_x conftest$ac_exeext; then
14755 eval "$as_ac_var=yes"
14756else
14757 echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 eval "$as_ac_var=no"
14761fi
14762
14763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764 conftest$ac_exeext conftest.$ac_ext
14765fi
14766ac_res=`eval echo '${'$as_ac_var'}'`
14767 { echo "$as_me:$LINENO: result: $ac_res" >&5
14768echo "${ECHO_T}$ac_res" >&6; }
14769if test `eval echo '${'$as_ac_var'}'` = yes; then
14770 cat >>confdefs.h <<_ACEOF
14771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14772_ACEOF
14773
14774fi
14775done
14776
14777
14778{ echo "$as_me:$LINENO: checking for daemon" >&5
14779echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
14780if test "${ac_cv_func_daemon+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783 cat >conftest.$ac_ext <<_ACEOF
14784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
14789/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
14790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14791#define daemon innocuous_daemon
14792
14793/* System header to define __stub macros and hopefully few prototypes,
14794 which can conflict with char daemon (); below.
14795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14796 <limits.h> exists even on freestanding compilers. */
14797
14798#ifdef __STDC__
14799# include <limits.h>
14800#else
14801# include <assert.h>
14802#endif
14803
14804#undef daemon
14805
14806/* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14809#ifdef __cplusplus
14810extern "C"
14811#endif
14812char daemon ();
14813/* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
14816#if defined __stub_daemon || defined __stub___daemon
14817choke me
14818#endif
14819
14820int
14821main ()
14822{
14823return daemon ();
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext conftest$ac_exeext
14829if { (ac_try="$ac_link"
14830case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833esac
14834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_link") 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest$ac_exeext &&
14845 $as_test_x conftest$ac_exeext; then
14846 ac_cv_func_daemon=yes
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_cv_func_daemon=no
14852fi
14853
14854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14855 conftest$ac_exeext conftest.$ac_ext
14856fi
14857{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
14858echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
14859if test $ac_cv_func_daemon = yes; then
14860
14861cat >>confdefs.h <<\_ACEOF
14862#define HAVE_DAEMON 1
14863_ACEOF
14864
14865else
14866 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
14867echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
14868if test "${ac_cv_lib_bsd_daemon+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870else
14871 ac_check_lib_save_LIBS=$LIBS
14872LIBS="-lbsd $LIBS"
14873cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879
14880/* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14883#ifdef __cplusplus
14884extern "C"
14885#endif
14886char daemon ();
14887int
14888main ()
14889{
14890return daemon ();
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext conftest$ac_exeext
14896if { (ac_try="$ac_link"
14897case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_link") 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest$ac_exeext &&
14912 $as_test_x conftest$ac_exeext; then
14913 ac_cv_lib_bsd_daemon=yes
14914else
14915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_cv_lib_bsd_daemon=no
14919fi
14920
14921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14922 conftest$ac_exeext conftest.$ac_ext
14923LIBS=$ac_check_lib_save_LIBS
14924fi
14925{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
14926echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
14927if test $ac_cv_lib_bsd_daemon = yes; then
14928 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
14929#define HAVE_DAEMON 1
14930_ACEOF
14931
14932fi
14933
14934
14935fi
14936
14937
14938{ echo "$as_me:$LINENO: checking for getpagesize" >&5
14939echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
14940if test "${ac_cv_func_getpagesize+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else
14943 cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
14950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14951#define getpagesize innocuous_getpagesize
14952
14953/* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char getpagesize (); below.
14955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14956 <limits.h> exists even on freestanding compilers. */
14957
14958#ifdef __STDC__
14959# include <limits.h>
14960#else
14961# include <assert.h>
14962#endif
14963
14964#undef getpagesize
14965
14966/* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14969#ifdef __cplusplus
14970extern "C"
14971#endif
14972char getpagesize ();
14973/* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976#if defined __stub_getpagesize || defined __stub___getpagesize
14977choke me
14978#endif
14979
14980int
14981main ()
14982{
14983return getpagesize ();
14984 ;
14985 return 0;
14986}
14987_ACEOF
14988rm -f conftest.$ac_objext conftest$ac_exeext
14989if { (ac_try="$ac_link"
14990case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_link") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest$ac_exeext &&
15005 $as_test_x conftest$ac_exeext; then
15006 ac_cv_func_getpagesize=yes
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_cv_func_getpagesize=no
15012fi
15013
15014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015 conftest$ac_exeext conftest.$ac_ext
15016fi
15017{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
15018echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
15019if test $ac_cv_func_getpagesize = yes; then
15020
15021cat >>confdefs.h <<\_ACEOF
15022#define HAVE_GETPAGESIZE 1
15023_ACEOF
15024
15025else
15026 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
15027echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
15028if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 ac_check_lib_save_LIBS=$LIBS
15032LIBS="-lucb $LIBS"
15033cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039
15040/* Override any GCC internal prototype to avoid an error.
15041 Use char because int might match the return type of a GCC
15042 builtin and then its argument prototype would still apply. */
15043#ifdef __cplusplus
15044extern "C"
15045#endif
15046char getpagesize ();
15047int
15048main ()
15049{
15050return getpagesize ();
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext conftest$ac_exeext
15056if { (ac_try="$ac_link"
15057case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_link") 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
15071 } && test -s conftest$ac_exeext &&
15072 $as_test_x conftest$ac_exeext; then
15073 ac_cv_lib_ucb_getpagesize=yes
15074else
15075 echo "$as_me: failed program was:" >&5
15076sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 ac_cv_lib_ucb_getpagesize=no
15079fi
15080
15081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15082 conftest$ac_exeext conftest.$ac_ext
15083LIBS=$ac_check_lib_save_LIBS
15084fi
15085{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
15086echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
15087if test $ac_cv_lib_ucb_getpagesize = yes; then
15088 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
15089#define HAVE_GETPAGESIZE 1
15090_ACEOF
15091
15092fi
15093
15094
15095fi
15096
15097
15098# Check for broken snprintf
15099if test "x$ac_cv_func_snprintf" = "xyes" ; then
15100 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
15101echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
15102 if test "$cross_compiling" = yes; then
15103 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
15104echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15105
15106else
15107 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
15113
15114#include <stdio.h>
15115int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
15116
15117_ACEOF
15118rm -f conftest$ac_exeext
15119if { (ac_try="$ac_link"
15120case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 { echo "$as_me:$LINENO: result: yes" >&5
15139echo "${ECHO_T}yes" >&6; }
15140else
15141 echo "$as_me: program exited with status $ac_status" >&5
15142echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145( exit $ac_status )
15146
15147 { echo "$as_me:$LINENO: result: no" >&5
15148echo "${ECHO_T}no" >&6; }
15149
15150cat >>confdefs.h <<\_ACEOF
15151#define BROKEN_SNPRINTF 1
15152_ACEOF
15153
15154 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
15155echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
15156
15157fi
15158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15159fi
15160
15161
15162fi
15163
15164# If we don't have a working asprintf, then we strongly depend on vsnprintf
15165# returning the right thing on overflow: the number of characters it tried to
15166# create (as per SUSv3)
15167if test "x$ac_cv_func_asprintf" != "xyes" && \
15168 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
15169 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
15170echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
15171 if test "$cross_compiling" = yes; then
15172 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
15173echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
15174
15175else
15176 cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
15181/* end confdefs.h. */
15182
15183#include <sys/types.h>
15184#include <stdio.h>
15185#include <stdarg.h>
15186
15187int x_snprintf(char *str,size_t count,const char *fmt,...)
15188{
15189 size_t ret; va_list ap;
15190 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
15191 return ret;
15192}
15193int main(void)
15194{
15195 char x[1];
15196 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
15197}
15198_ACEOF
15199rm -f conftest$ac_exeext
15200if { (ac_try="$ac_link"
15201case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 { echo "$as_me:$LINENO: result: yes" >&5
15220echo "${ECHO_T}yes" >&6; }
15221else
15222 echo "$as_me: program exited with status $ac_status" >&5
15223echo "$as_me: failed program was:" >&5
15224sed 's/^/| /' conftest.$ac_ext >&5
15225
15226( exit $ac_status )
15227
15228 { echo "$as_me:$LINENO: result: no" >&5
15229echo "${ECHO_T}no" >&6; }
15230
15231cat >>confdefs.h <<\_ACEOF
15232#define BROKEN_SNPRINTF 1
15233_ACEOF
15234
15235 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
15236echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
15237
15238fi
15239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15240fi
15241
15242
15243fi
15244
15245# On systems where [v]snprintf is broken, but is declared in stdio,
15246# check that the fmt argument is const char * or just char *.
15247# This is only useful for when BROKEN_SNPRINTF
15248{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
15249echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256#include <stdio.h>
15257 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
15258 int main(void) { snprintf(0, 0, 0); }
15259
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (ac_try="$ac_compile"
15263case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 { echo "$as_me:$LINENO: result: yes" >&5
15279echo "${ECHO_T}yes" >&6; }
15280
15281cat >>confdefs.h <<\_ACEOF
15282#define SNPRINTF_CONST const
15283_ACEOF
15284
15285else
15286 echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 { echo "$as_me:$LINENO: result: no" >&5
15290echo "${ECHO_T}no" >&6; }
15291 cat >>confdefs.h <<\_ACEOF
15292#define SNPRINTF_CONST /* not const */
15293_ACEOF
15294
15295fi
15296
15297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298
15299# Check for missing getpeereid (or equiv) support
15300NO_PEERCHECK=""
15301if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15302 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15303echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15304 cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310#include <sys/types.h>
15311 #include <sys/socket.h>
15312int
15313main ()
15314{
15315int i = SO_PEERCRED;
15316 ;
15317 return 0;
15318}
15319_ACEOF
15320rm -f conftest.$ac_objext
15321if { (ac_try="$ac_compile"
15322case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_compile") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && {
15334 test -z "$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15336 } && test -s conftest.$ac_objext; then
15337 { echo "$as_me:$LINENO: result: yes" >&5
15338echo "${ECHO_T}yes" >&6; }
15339
15340cat >>confdefs.h <<\_ACEOF
15341#define HAVE_SO_PEERCRED 1
15342_ACEOF
15343
15344
15345else
15346 echo "$as_me: failed program was:" >&5
15347sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 { echo "$as_me:$LINENO: result: no" >&5
15350echo "${ECHO_T}no" >&6; }
15351 NO_PEERCHECK=1
15352
15353fi
15354
15355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356fi
15357
15358if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15359{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15360echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15361if test "$cross_compiling" = yes; then
15362
15363 { echo "$as_me:$LINENO: result: yes" >&5
15364echo "${ECHO_T}yes" >&6; }
15365 cat >>confdefs.h <<\_ACEOF
15366#define HAVE_STRICT_MKSTEMP 1
15367_ACEOF
15368
15369
15370
15371else
15372 cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378
15379#include <stdlib.h>
15380main() { char template[]="conftest.mkstemp-test";
15381if (mkstemp(template) == -1)
15382 exit(1);
15383unlink(template); exit(0);
15384}
15385
15386_ACEOF
15387rm -f conftest$ac_exeext
15388if { (ac_try="$ac_link"
15389case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_link") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407
15408 { echo "$as_me:$LINENO: result: no" >&5
15409echo "${ECHO_T}no" >&6; }
15410
15411else
15412 echo "$as_me: program exited with status $ac_status" >&5
15413echo "$as_me: failed program was:" >&5
15414sed 's/^/| /' conftest.$ac_ext >&5
15415
15416( exit $ac_status )
15417
15418 { echo "$as_me:$LINENO: result: yes" >&5
15419echo "${ECHO_T}yes" >&6; }
15420
15421cat >>confdefs.h <<\_ACEOF
15422#define HAVE_STRICT_MKSTEMP 1
15423_ACEOF
15424
15425
15426fi
15427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15428fi
15429
15430
15431fi
15432
15433if test ! -z "$check_for_openpty_ctty_bug"; then
15434 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
15435echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
15436 if test "$cross_compiling" = yes; then
15437
15438 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15439echo "${ECHO_T}cross-compiling" >&6; }
15440
15441
15442else
15443 cat >conftest.$ac_ext <<_ACEOF
15444/* confdefs.h. */
15445_ACEOF
15446cat confdefs.h >>conftest.$ac_ext
15447cat >>conftest.$ac_ext <<_ACEOF
15448/* end confdefs.h. */
15449
15450#include <stdio.h>
15451#include <sys/fcntl.h>
15452#include <sys/types.h>
15453#include <sys/wait.h>
15454
15455int
15456main()
15457{
15458 pid_t pid;
15459 int fd, ptyfd, ttyfd, status;
15460
15461 pid = fork();
15462 if (pid < 0) { /* failed */
15463 exit(1);
15464 } else if (pid > 0) { /* parent */
15465 waitpid(pid, &status, 0);
15466 if (WIFEXITED(status))
15467 exit(WEXITSTATUS(status));
15468 else
15469 exit(2);
15470 } else { /* child */
15471 close(0); close(1); close(2);
15472 setsid();
15473 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
15474 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
15475 if (fd >= 0)
15476 exit(3); /* Acquired ctty: broken */
15477 else
15478 exit(0); /* Did not acquire ctty: OK */
15479 }
15480}
15481
15482_ACEOF
15483rm -f conftest$ac_exeext
15484if { (ac_try="$ac_link"
15485case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503
15504 { echo "$as_me:$LINENO: result: yes" >&5
15505echo "${ECHO_T}yes" >&6; }
15506
15507else
15508 echo "$as_me: program exited with status $ac_status" >&5
15509echo "$as_me: failed program was:" >&5
15510sed 's/^/| /' conftest.$ac_ext >&5
15511
15512( exit $ac_status )
15513
15514 { echo "$as_me:$LINENO: result: no" >&5
15515echo "${ECHO_T}no" >&6; }
15516 cat >>confdefs.h <<\_ACEOF
15517#define SSHD_ACQUIRES_CTTY 1
15518_ACEOF
15519
15520
15521fi
15522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15523fi
15524
15525
15526fi
15527
15528if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15529 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
15530 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15531echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15532 if test "$cross_compiling" = yes; then
15533
15534 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15535echo "${ECHO_T}cross-compiling" >&6; }
15536
15537
15538else
15539 cat >conftest.$ac_ext <<_ACEOF
15540/* confdefs.h. */
15541_ACEOF
15542cat confdefs.h >>conftest.$ac_ext
15543cat >>conftest.$ac_ext <<_ACEOF
15544/* end confdefs.h. */
15545
15546#include <stdio.h>
15547#include <sys/socket.h>
15548#include <netdb.h>
15549#include <errno.h>
15550#include <netinet/in.h>
15551
15552#define TEST_PORT "2222"
15553
15554int
15555main(void)
15556{
15557 int err, sock;
15558 struct addrinfo *gai_ai, *ai, hints;
15559 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15560
15561 memset(&hints, 0, sizeof(hints));
15562 hints.ai_family = PF_UNSPEC;
15563 hints.ai_socktype = SOCK_STREAM;
15564 hints.ai_flags = AI_PASSIVE;
15565
15566 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15567 if (err != 0) {
15568 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15569 exit(1);
15570 }
15571
15572 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15573 if (ai->ai_family != AF_INET6)
15574 continue;
15575
15576 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15577 sizeof(ntop), strport, sizeof(strport),
15578 NI_NUMERICHOST|NI_NUMERICSERV);
15579
15580 if (err != 0) {
15581 if (err == EAI_SYSTEM)
15582 perror("getnameinfo EAI_SYSTEM");
15583 else
15584 fprintf(stderr, "getnameinfo failed: %s\n",
15585 gai_strerror(err));
15586 exit(2);
15587 }
15588
15589 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
15590 if (sock < 0)
15591 perror("socket");
15592 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
15593 if (errno == EBADF)
15594 exit(3);
15595 }
15596 }
15597 exit(0);
15598}
15599
15600_ACEOF
15601rm -f 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>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15612 { (case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615esac
15616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_try") 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621
15622 { echo "$as_me:$LINENO: result: yes" >&5
15623echo "${ECHO_T}yes" >&6; }
15624
15625else
15626 echo "$as_me: program exited with status $ac_status" >&5
15627echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630( exit $ac_status )
15631
15632 { echo "$as_me:$LINENO: result: no" >&5
15633echo "${ECHO_T}no" >&6; }
15634 cat >>confdefs.h <<\_ACEOF
15635#define BROKEN_GETADDRINFO 1
15636_ACEOF
15637
15638
15639fi
15640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15641fi
15642
15643
15644fi
15645
15646if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15647 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
15648 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15649echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15650 if test "$cross_compiling" = yes; then
15651
15652 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15653echo "${ECHO_T}cross-compiling" >&6; }
15654
15655
15656else
15657 cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663
15664#include <stdio.h>
15665#include <sys/socket.h>
15666#include <netdb.h>
15667#include <errno.h>
15668#include <netinet/in.h>
15669
15670#define TEST_PORT "2222"
15671
15672int
15673main(void)
15674{
15675 int err, sock;
15676 struct addrinfo *gai_ai, *ai, hints;
15677 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15678
15679 memset(&hints, 0, sizeof(hints));
15680 hints.ai_family = PF_UNSPEC;
15681 hints.ai_socktype = SOCK_STREAM;
15682 hints.ai_flags = AI_PASSIVE;
15683
15684 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15685 if (err != 0) {
15686 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15687 exit(1);
15688 }
15689
15690 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15691 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
15692 continue;
15693
15694 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15695 sizeof(ntop), strport, sizeof(strport),
15696 NI_NUMERICHOST|NI_NUMERICSERV);
15697
15698 if (ai->ai_family == AF_INET && err != 0) {
15699 perror("getnameinfo");
15700 exit(2);
15701 }
15702 }
15703 exit(0);
15704}
15705
15706_ACEOF
15707rm -f conftest$ac_exeext
15708if { (ac_try="$ac_link"
15709case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712esac
15713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_link") 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15718 { (case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721esac
15722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_try") 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727
15728 { echo "$as_me:$LINENO: result: yes" >&5
15729echo "${ECHO_T}yes" >&6; }
15730
15731cat >>confdefs.h <<\_ACEOF
15732#define AIX_GETNAMEINFO_HACK 1
15733_ACEOF
15734
15735
15736else
15737 echo "$as_me: program exited with status $ac_status" >&5
15738echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741( exit $ac_status )
15742
15743 { echo "$as_me:$LINENO: result: no" >&5
15744echo "${ECHO_T}no" >&6; }
15745 cat >>confdefs.h <<\_ACEOF
15746#define BROKEN_GETADDRINFO 1
15747_ACEOF
15748
15749
15750fi
15751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15752fi
15753
15754
15755fi
15756
15757if test "x$check_for_conflicting_getspnam" = "x1"; then
15758 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
15759echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
15760 cat >conftest.$ac_ext <<_ACEOF
15761
15762#include <shadow.h>
15763int main(void) {exit(0);}
15764
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (ac_try="$ac_compile"
15768case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771esac
15772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest.$ac_objext; then
15783
15784 { echo "$as_me:$LINENO: result: no" >&5
15785echo "${ECHO_T}no" >&6; }
15786
15787else
15788 echo "$as_me: failed program was:" >&5
15789sed 's/^/| /' conftest.$ac_ext >&5
15790
15791
15792 { echo "$as_me:$LINENO: result: yes" >&5
15793echo "${ECHO_T}yes" >&6; }
15794
15795cat >>confdefs.h <<\_ACEOF
15796#define GETSPNAM_CONFLICTING_DEFS 1
15797_ACEOF
15798
15799
15800
15801fi
15802
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804fi
15805
15806{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15807echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
15808if test "${ac_cv_func_getpgrp_void+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811 # Use it with a single arg.
15812cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818$ac_includes_default
15819int
15820main ()
15821{
15822getpgrp (0);
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (ac_try="$ac_compile"
15829case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15832esac
15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_compile") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest.$ac_objext; then
15844 ac_cv_func_getpgrp_void=no
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_cv_func_getpgrp_void=yes
15850fi
15851
15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853
15854fi
15855{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15856echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
15857if test $ac_cv_func_getpgrp_void = yes; then
15858
15859cat >>confdefs.h <<\_ACEOF
15860#define GETPGRP_VOID 1
15861_ACEOF
15862
15863fi
15864
15865
15866# Search for OpenSSL
15867saved_CPPFLAGS="$CPPFLAGS"
15868saved_LDFLAGS="$LDFLAGS"
15869
15870# Check whether --with-ssl-dir was given.
15871if test "${with_ssl_dir+set}" = set; then
15872 withval=$with_ssl_dir;
15873 if test "x$withval" != "xno" ; then
15874 case "$withval" in
15875 # Relative paths
15876 ./*|../*) withval="`pwd`/$withval"
15877 esac
15878 if test -d "$withval/lib"; then
15879 if test -n "${need_dash_r}"; then
15880 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15881 else
15882 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15883 fi
15884 else
15885 if test -n "${need_dash_r}"; then
15886 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
15887 else
15888 LDFLAGS="-L${withval} ${LDFLAGS}"
15889 fi
15890 fi
15891 if test -d "$withval/include"; then
15892 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
15893 else
15894 CPPFLAGS="-I${withval} ${CPPFLAGS}"
15895 fi
15896 fi
15897
15898
15899fi
15900
15901LIBS="-lcrypto $LIBS"
15902cat >conftest.$ac_ext <<_ACEOF
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
15908
15909/* Override any GCC internal prototype to avoid an error.
15910 Use char because int might match the return type of a GCC
15911 builtin and then its argument prototype would still apply. */
15912#ifdef __cplusplus
15913extern "C"
15914#endif
15915char RAND_add ();
15916int
15917main ()
15918{
15919return RAND_add ();
15920 ;
15921 return 0;
15922}
15923_ACEOF
15924rm -f conftest.$ac_objext conftest$ac_exeext
15925if { (ac_try="$ac_link"
15926case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
15930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_link") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest$ac_exeext &&
15941 $as_test_x conftest$ac_exeext; then
15942
15943cat >>confdefs.h <<\_ACEOF
15944#define HAVE_OPENSSL 1
15945_ACEOF
15946
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951
15952 if test -n "${need_dash_r}"; then
15953 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
15954 else
15955 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
15956 fi
15957 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
15958 cat >conftest.$ac_ext <<_ACEOF
15959/* confdefs.h. */
15960_ACEOF
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964
15965/* Override any GCC internal prototype to avoid an error.
15966 Use char because int might match the return type of a GCC
15967 builtin and then its argument prototype would still apply. */
15968#ifdef __cplusplus
15969extern "C"
15970#endif
15971char RAND_add ();
15972int
15973main ()
15974{
15975return RAND_add ();
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext conftest$ac_exeext
15981if { (ac_try="$ac_link"
15982case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985esac
15986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 cat >>confdefs.h <<\_ACEOF
15999#define HAVE_OPENSSL 1
16000_ACEOF
16001
16002else
16003 echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006
16007 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
16008echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
16009 { (exit 1); exit 1; }; }
16010
16011
16012fi
16013
16014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16015 conftest$ac_exeext conftest.$ac_ext
16016
16017
16018fi
16019
16020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16021 conftest$ac_exeext conftest.$ac_ext
16022
16023# Determine OpenSSL header version
16024{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
16025echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
16026if test "$cross_compiling" = yes; then
16027
16028 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16029echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16030
16031
16032else
16033 cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039
16040#include <stdio.h>
16041#include <string.h>
16042#include <openssl/opensslv.h>
16043#define DATA "conftest.sslincver"
16044int main(void) {
16045 FILE *fd;
16046 int rc;
16047
16048 fd = fopen(DATA,"w");
16049 if(fd == NULL)
16050 exit(1);
16051
16052 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
16053 exit(1);
16054
16055 exit(0);
16056}
16057
16058_ACEOF
16059rm -f conftest$ac_exeext
16060if { (ac_try="$ac_link"
16061case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_link") 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079
16080 ssl_header_ver=`cat conftest.sslincver`
16081 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
16082echo "${ECHO_T}$ssl_header_ver" >&6; }
16083
16084else
16085 echo "$as_me: program exited with status $ac_status" >&5
16086echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089( exit $ac_status )
16090
16091 { echo "$as_me:$LINENO: result: not found" >&5
16092echo "${ECHO_T}not found" >&6; }
16093 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
16094echo "$as_me: error: OpenSSL version header not found." >&2;}
16095 { (exit 1); exit 1; }; }
16096
16097fi
16098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16099fi
16100
16101
16102
16103# Determine OpenSSL library version
16104{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
16105echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
16106if test "$cross_compiling" = yes; then
16107
16108 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16109echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16110
16111
16112else
16113 cat >conftest.$ac_ext <<_ACEOF
16114/* confdefs.h. */
16115_ACEOF
16116cat confdefs.h >>conftest.$ac_ext
16117cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */
16119
16120#include <stdio.h>
16121#include <string.h>
16122#include <openssl/opensslv.h>
16123#include <openssl/crypto.h>
16124#define DATA "conftest.ssllibver"
16125int main(void) {
16126 FILE *fd;
16127 int rc;
16128
16129 fd = fopen(DATA,"w");
16130 if(fd == NULL)
16131 exit(1);
16132
16133 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
16134 exit(1);
16135
16136 exit(0);
16137}
16138
16139_ACEOF
16140rm -f conftest$ac_exeext
16141if { (ac_try="$ac_link"
16142case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16151 { (case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154esac
16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_try") 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160
16161 ssl_library_ver=`cat conftest.ssllibver`
16162 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
16163echo "${ECHO_T}$ssl_library_ver" >&6; }
16164
16165else
16166 echo "$as_me: program exited with status $ac_status" >&5
16167echo "$as_me: failed program was:" >&5
16168sed 's/^/| /' conftest.$ac_ext >&5
16169
16170( exit $ac_status )
16171
16172 { echo "$as_me:$LINENO: result: not found" >&5
16173echo "${ECHO_T}not found" >&6; }
16174 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
16175echo "$as_me: error: OpenSSL library not found." >&2;}
16176 { (exit 1); exit 1; }; }
16177
16178fi
16179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16180fi
16181
16182
16183
16184
16185# Check whether --with-openssl-header-check was given.
16186if test "${with_openssl_header_check+set}" = set; then
16187 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
16188 openssl_check_nonfatal=1
16189 fi
16190
16191
16192fi
16193
16194
16195# Sanity check OpenSSL headers
16196{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
16197echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
16198if test "$cross_compiling" = yes; then
16199
16200 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16201echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16202
16203
16204else
16205 cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
16211
16212#include <string.h>
16213#include <openssl/opensslv.h>
16214int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
16215
16216_ACEOF
16217rm -f conftest$ac_exeext
16218if { (ac_try="$ac_link"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_link") 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237
16238 { echo "$as_me:$LINENO: result: yes" >&5
16239echo "${ECHO_T}yes" >&6; }
16240
16241else
16242 echo "$as_me: program exited with status $ac_status" >&5
16243echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246( exit $ac_status )
16247
16248 { echo "$as_me:$LINENO: result: no" >&5
16249echo "${ECHO_T}no" >&6; }
16250 if test "x$openssl_check_nonfatal" = "x"; then
16251 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
16252library. Check config.log for details.
16253If you are sure your installation is consistent, you can disable the check
16254by running \"./configure --without-openssl-header-check\".
16255Also see contrib/findssl.sh for help identifying header/library mismatches.
16256" >&5
16257echo "$as_me: error: Your OpenSSL headers do not match your
16258library. Check config.log for details.
16259If you are sure your installation is consistent, you can disable the check
16260by running \"./configure --without-openssl-header-check\".
16261Also see contrib/findssl.sh for help identifying header/library mismatches.
16262" >&2;}
16263 { (exit 1); exit 1; }; }
16264 else
16265 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
16266library. Check config.log for details.
16267Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
16268echo "$as_me: WARNING: Your OpenSSL headers do not match your
16269library. Check config.log for details.
16270Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
16271 fi
16272
16273fi
16274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16275fi
16276
16277
16278
16279{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
16280echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
16281cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287
16288#include <openssl/evp.h>
16289int main(void) { SSLeay_add_all_algorithms(); }
16290
16291_ACEOF
16292rm -f conftest.$ac_objext conftest$ac_exeext
16293if { (ac_try="$ac_link"
16294case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_link") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } && {
16306 test -z "$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16308 } && test -s conftest$ac_exeext &&
16309 $as_test_x conftest$ac_exeext; then
16310
16311 { echo "$as_me:$LINENO: result: yes" >&5
16312echo "${ECHO_T}yes" >&6; }
16313
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318
16319 { echo "$as_me:$LINENO: result: no" >&5
16320echo "${ECHO_T}no" >&6; }
16321 saved_LIBS="$LIBS"
16322 LIBS="$LIBS -ldl"
16323 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
16324echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331
16332#include <openssl/evp.h>
16333int main(void) { SSLeay_add_all_algorithms(); }
16334
16335_ACEOF
16336rm -f conftest.$ac_objext conftest$ac_exeext
16337if { (ac_try="$ac_link"
16338case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341esac
16342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext &&
16353 $as_test_x conftest$ac_exeext; then
16354
16355 { echo "$as_me:$LINENO: result: yes" >&5
16356echo "${ECHO_T}yes" >&6; }
16357
16358else
16359 echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
16362
16363 { echo "$as_me:$LINENO: result: no" >&5
16364echo "${ECHO_T}no" >&6; }
16365 LIBS="$saved_LIBS"
16366
16367
16368fi
16369
16370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16372
16373
16374fi
16375
16376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16378
16379
16380# Check whether --with-ssl-engine was given.
16381if test "${with_ssl_engine+set}" = set; then
16382 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
16383 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
16384echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
16385 cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h. */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h. */
16391 #include <openssl/engine.h>
16392int
16393main ()
16394{
16395
16396ENGINE_load_builtin_engines();ENGINE_register_all_complete();
16397
16398 ;
16399 return 0;
16400}
16401_ACEOF
16402rm -f conftest.$ac_objext
16403if { (ac_try="$ac_compile"
16404case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } && {
16416 test -z "$ac_c_werror_flag" ||
16417 test ! -s conftest.err
16418 } && test -s conftest.$ac_objext; then
16419 { echo "$as_me:$LINENO: result: yes" >&5
16420echo "${ECHO_T}yes" >&6; }
16421
16422cat >>confdefs.h <<\_ACEOF
16423#define USE_OPENSSL_ENGINE 1
16424_ACEOF
16425
16426
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
16432echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
16433 { (exit 1); exit 1; }; }
16434
16435fi
16436
16437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 fi
16439
16440fi
16441
16442
16443# Check for OpenSSL without EVP_aes_{192,256}_cbc
16444{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
16445echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
16446cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452
16453#include <string.h>
16454#include <openssl/evp.h>
16455int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
16456
16457_ACEOF
16458rm -f conftest.$ac_objext conftest$ac_exeext
16459if { (ac_try="$ac_link"
16460case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463esac
16464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_link") 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } && {
16472 test -z "$ac_c_werror_flag" ||
16473 test ! -s conftest.err
16474 } && test -s conftest$ac_exeext &&
16475 $as_test_x conftest$ac_exeext; then
16476
16477 { echo "$as_me:$LINENO: result: no" >&5
16478echo "${ECHO_T}no" >&6; }
16479
16480else
16481 echo "$as_me: failed program was:" >&5
16482sed 's/^/| /' conftest.$ac_ext >&5
16483
16484
16485 { echo "$as_me:$LINENO: result: yes" >&5
16486echo "${ECHO_T}yes" >&6; }
16487
16488cat >>confdefs.h <<\_ACEOF
16489#define OPENSSL_LOBOTOMISED_AES 1
16490_ACEOF
16491
16492
16493
16494fi
16495
16496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16497 conftest$ac_exeext conftest.$ac_ext
16498
16499# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
16500# because the system crypt() is more featureful.
16501if test "x$check_for_libcrypt_before" = "x1"; then
16502
16503{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16504echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16505if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507else
16508 ac_check_lib_save_LIBS=$LIBS
16509LIBS="-lcrypt $LIBS"
16510cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516
16517/* Override any GCC internal prototype to avoid an error.
16518 Use char because int might match the return type of a GCC
16519 builtin and then its argument prototype would still apply. */
16520#ifdef __cplusplus
16521extern "C"
16522#endif
16523char crypt ();
16524int
16525main ()
16526{
16527return crypt ();
16528 ;
16529 return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext conftest$ac_exeext
16533if { (ac_try="$ac_link"
16534case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_link") 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && {
16546 test -z "$ac_c_werror_flag" ||
16547 test ! -s conftest.err
16548 } && test -s conftest$ac_exeext &&
16549 $as_test_x conftest$ac_exeext; then
16550 ac_cv_lib_crypt_crypt=yes
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ac_cv_lib_crypt_crypt=no
16556fi
16557
16558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16559 conftest$ac_exeext conftest.$ac_ext
16560LIBS=$ac_check_lib_save_LIBS
16561fi
16562{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16563echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16564if test $ac_cv_lib_crypt_crypt = yes; then
16565 cat >>confdefs.h <<_ACEOF
16566#define HAVE_LIBCRYPT 1
16567_ACEOF
16568
16569 LIBS="-lcrypt $LIBS"
16570
16571fi
16572
16573fi
16574
16575# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
16576# version in OpenSSL.
16577if test "x$check_for_libcrypt_later" = "x1"; then
16578 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16579echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16580if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583 ac_check_lib_save_LIBS=$LIBS
16584LIBS="-lcrypt $LIBS"
16585cat >conftest.$ac_ext <<_ACEOF
16586/* confdefs.h. */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h. */
16591
16592/* Override any GCC internal prototype to avoid an error.
16593 Use char because int might match the return type of a GCC
16594 builtin and then its argument prototype would still apply. */
16595#ifdef __cplusplus
16596extern "C"
16597#endif
16598char crypt ();
16599int
16600main ()
16601{
16602return crypt ();
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607rm -f conftest.$ac_objext conftest$ac_exeext
16608if { (ac_try="$ac_link"
16609case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_link") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && {
16621 test -z "$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 } && test -s conftest$ac_exeext &&
16624 $as_test_x conftest$ac_exeext; then
16625 ac_cv_lib_crypt_crypt=yes
16626else
16627 echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_cv_lib_crypt_crypt=no
16631fi
16632
16633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16634 conftest$ac_exeext conftest.$ac_ext
16635LIBS=$ac_check_lib_save_LIBS
16636fi
16637{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16638echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16639if test $ac_cv_lib_crypt_crypt = yes; then
16640 LIBS="$LIBS -lcrypt"
16641fi
16642
16643fi
16644
16645# Search for SHA256 support in libc and/or OpenSSL
16646
16647
16648for ac_func in SHA256_Update EVP_sha256
16649do
16650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655else
16656 cat >conftest.$ac_ext <<_ACEOF
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
16662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664#define $ac_func innocuous_$ac_func
16665
16666/* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char $ac_func (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16670
16671#ifdef __STDC__
16672# include <limits.h>
16673#else
16674# include <assert.h>
16675#endif
16676
16677#undef $ac_func
16678
16679/* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16682#ifdef __cplusplus
16683extern "C"
16684#endif
16685char $ac_func ();
16686/* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689#if defined __stub_$ac_func || defined __stub___$ac_func
16690choke me
16691#endif
16692
16693int
16694main ()
16695{
16696return $ac_func ();
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext conftest$ac_exeext
16702if { (ac_try="$ac_link"
16703case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_link") 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } && {
16715 test -z "$ac_c_werror_flag" ||
16716 test ! -s conftest.err
16717 } && test -s conftest$ac_exeext &&
16718 $as_test_x conftest$ac_exeext; then
16719 eval "$as_ac_var=yes"
16720else
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 eval "$as_ac_var=no"
16725fi
16726
16727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16728 conftest$ac_exeext conftest.$ac_ext
16729fi
16730ac_res=`eval echo '${'$as_ac_var'}'`
16731 { echo "$as_me:$LINENO: result: $ac_res" >&5
16732echo "${ECHO_T}$ac_res" >&6; }
16733if test `eval echo '${'$as_ac_var'}'` = yes; then
16734 cat >>confdefs.h <<_ACEOF
16735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16736_ACEOF
16737
16738fi
16739done
16740
16741
16742saved_LIBS="$LIBS"
16743{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
16744echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
16745if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747else
16748 ac_check_lib_save_LIBS=$LIBS
16749LIBS="-liaf $LIBS"
16750cat >conftest.$ac_ext <<_ACEOF
16751/* confdefs.h. */
16752_ACEOF
16753cat confdefs.h >>conftest.$ac_ext
16754cat >>conftest.$ac_ext <<_ACEOF
16755/* end confdefs.h. */
16756
16757/* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760#ifdef __cplusplus
16761extern "C"
16762#endif
16763char ia_openinfo ();
16764int
16765main ()
16766{
16767return ia_openinfo ();
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest.$ac_objext conftest$ac_exeext
16773if { (ac_try="$ac_link"
16774case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_link") 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } && {
16786 test -z "$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16788 } && test -s conftest$ac_exeext &&
16789 $as_test_x conftest$ac_exeext; then
16790 ac_cv_lib_iaf_ia_openinfo=yes
16791else
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 ac_cv_lib_iaf_ia_openinfo=no
16796fi
16797
16798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16799 conftest$ac_exeext conftest.$ac_ext
16800LIBS=$ac_check_lib_save_LIBS
16801fi
16802{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
16803echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
16804if test $ac_cv_lib_iaf_ia_openinfo = yes; then
16805
16806 LIBS="$LIBS -liaf"
16807
16808for ac_func in set_id
16809do
16810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16813if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
16822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824#define $ac_func innocuous_$ac_func
16825
16826/* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char $ac_func (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16830
16831#ifdef __STDC__
16832# include <limits.h>
16833#else
16834# include <assert.h>
16835#endif
16836
16837#undef $ac_func
16838
16839/* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842#ifdef __cplusplus
16843extern "C"
16844#endif
16845char $ac_func ();
16846/* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849#if defined __stub_$ac_func || defined __stub___$ac_func
16850choke me
16851#endif
16852
16853int
16854main ()
16855{
16856return $ac_func ();
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext conftest$ac_exeext
16862if { (ac_try="$ac_link"
16863case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest$ac_exeext &&
16878 $as_test_x conftest$ac_exeext; then
16879 eval "$as_ac_var=yes"
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 eval "$as_ac_var=no"
16885fi
16886
16887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16889fi
16890ac_res=`eval echo '${'$as_ac_var'}'`
16891 { echo "$as_me:$LINENO: result: $ac_res" >&5
16892echo "${ECHO_T}$ac_res" >&6; }
16893if test `eval echo '${'$as_ac_var'}'` = yes; then
16894 cat >>confdefs.h <<_ACEOF
16895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16896_ACEOF
16897 SSHDLIBS="$SSHDLIBS -liaf"
16898
16899cat >>confdefs.h <<\_ACEOF
16900#define HAVE_LIBIAF 1
16901_ACEOF
16902
16903
16904fi
16905done
16906
16907
16908fi
16909
16910LIBS="$saved_LIBS"
16911
16912### Configure cryptographic random number support
16913
16914# Check wheter OpenSSL seeds itself
16915{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
16916echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
16917if test "$cross_compiling" = yes; then
16918
16919 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
16920echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
16921 # This is safe, since all recent OpenSSL versions will
16922 # complain at runtime if not seeded correctly.
16923 OPENSSL_SEEDS_ITSELF=yes
16924
16925
16926else
16927 cat >conftest.$ac_ext <<_ACEOF
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
16933
16934#include <string.h>
16935#include <openssl/rand.h>
16936int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
16937
16938_ACEOF
16939rm -f conftest$ac_exeext
16940if { (ac_try="$ac_link"
16941case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944esac
16945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16950 { (case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_try") 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959
16960 OPENSSL_SEEDS_ITSELF=yes
16961 { echo "$as_me:$LINENO: result: yes" >&5
16962echo "${ECHO_T}yes" >&6; }
16963
16964else
16965 echo "$as_me: program exited with status $ac_status" >&5
16966echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969( exit $ac_status )
16970
16971 { echo "$as_me:$LINENO: result: no" >&5
16972echo "${ECHO_T}no" >&6; }
16973 # Default to use of the rand helper if OpenSSL doesn't
16974 # seed itself
16975 USE_RAND_HELPER=yes
16976
16977fi
16978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16979fi
16980
16981
16982
16983# Check for PAM libs
16984PAM_MSG="no"
16985
16986# Check whether --with-pam was given.
16987if test "${with_pam+set}" = set; then
16988 withval=$with_pam;
16989 if test "x$withval" != "xno" ; then
16990 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
16991 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
16992 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
16993echo "$as_me: error: PAM headers not found" >&2;}
16994 { (exit 1); exit 1; }; }
16995 fi
16996
16997 saved_LIBS="$LIBS"
16998
16999{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17000echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17001if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003else
17004 ac_check_lib_save_LIBS=$LIBS
17005LIBS="-ldl $LIBS"
17006cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012
17013/* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
17016#ifdef __cplusplus
17017extern "C"
17018#endif
17019char dlopen ();
17020int
17021main ()
17022{
17023return dlopen ();
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext conftest$ac_exeext
17029if { (ac_try="$ac_link"
17030case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest$ac_exeext &&
17045 $as_test_x conftest$ac_exeext; then
17046 ac_cv_lib_dl_dlopen=yes
17047else
17048 echo "$as_me: failed program was:" >&5
17049sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ac_cv_lib_dl_dlopen=no
17052fi
17053
17054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17055 conftest$ac_exeext conftest.$ac_ext
17056LIBS=$ac_check_lib_save_LIBS
17057fi
17058{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17059echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17060if test $ac_cv_lib_dl_dlopen = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062#define HAVE_LIBDL 1
17063_ACEOF
17064
17065 LIBS="-ldl $LIBS"
17066
17067fi
17068
17069
17070{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
17071echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
17072if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
17075 ac_check_lib_save_LIBS=$LIBS
17076LIBS="-lpam $LIBS"
17077cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083
17084/* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090char pam_set_item ();
17091int
17092main ()
17093{
17094return pam_set_item ();
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext conftest$ac_exeext
17100if { (ac_try="$ac_link"
17101case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext &&
17116 $as_test_x conftest$ac_exeext; then
17117 ac_cv_lib_pam_pam_set_item=yes
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_cv_lib_pam_pam_set_item=no
17123fi
17124
17125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17126 conftest$ac_exeext conftest.$ac_ext
17127LIBS=$ac_check_lib_save_LIBS
17128fi
17129{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
17130echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
17131if test $ac_cv_lib_pam_pam_set_item = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133#define HAVE_LIBPAM 1
17134_ACEOF
17135
17136 LIBS="-lpam $LIBS"
17137
17138else
17139 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
17140echo "$as_me: error: *** libpam missing" >&2;}
17141 { (exit 1); exit 1; }; }
17142fi
17143
17144
17145for ac_func in pam_getenvlist
17146do
17147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153 cat >conftest.$ac_ext <<_ACEOF
17154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
17159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17161#define $ac_func innocuous_$ac_func
17162
17163/* System header to define __stub macros and hopefully few prototypes,
17164 which can conflict with char $ac_func (); below.
17165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166 <limits.h> exists even on freestanding compilers. */
17167
17168#ifdef __STDC__
17169# include <limits.h>
17170#else
17171# include <assert.h>
17172#endif
17173
17174#undef $ac_func
17175
17176/* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char $ac_func ();
17183/* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186#if defined __stub_$ac_func || defined __stub___$ac_func
17187choke me
17188#endif
17189
17190int
17191main ()
17192{
17193return $ac_func ();
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext conftest$ac_exeext
17199if { (ac_try="$ac_link"
17200case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && {
17212 test -z "$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 } && test -s conftest$ac_exeext &&
17215 $as_test_x conftest$ac_exeext; then
17216 eval "$as_ac_var=yes"
17217else
17218 echo "$as_me: failed program was:" >&5
17219sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 eval "$as_ac_var=no"
17222fi
17223
17224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225 conftest$ac_exeext conftest.$ac_ext
17226fi
17227ac_res=`eval echo '${'$as_ac_var'}'`
17228 { echo "$as_me:$LINENO: result: $ac_res" >&5
17229echo "${ECHO_T}$ac_res" >&6; }
17230if test `eval echo '${'$as_ac_var'}'` = yes; then
17231 cat >>confdefs.h <<_ACEOF
17232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17233_ACEOF
17234
17235fi
17236done
17237
17238
17239for ac_func in pam_putenv
17240do
17241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17242{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246else
17247 cat >conftest.$ac_ext <<_ACEOF
17248/* confdefs.h. */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h. */
17253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17255#define $ac_func innocuous_$ac_func
17256
17257/* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char $ac_func (); below.
17259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260 <limits.h> exists even on freestanding compilers. */
17261
17262#ifdef __STDC__
17263# include <limits.h>
17264#else
17265# include <assert.h>
17266#endif
17267
17268#undef $ac_func
17269
17270/* Override any GCC internal prototype to avoid an error.
17271 Use char because int might match the return type of a GCC
17272 builtin and then its argument prototype would still apply. */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276char $ac_func ();
17277/* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280#if defined __stub_$ac_func || defined __stub___$ac_func
17281choke me
17282#endif
17283
17284int
17285main ()
17286{
17287return $ac_func ();
17288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
17293if { (ac_try="$ac_link"
17294case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest$ac_exeext &&
17309 $as_test_x conftest$ac_exeext; then
17310 eval "$as_ac_var=yes"
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 eval "$as_ac_var=no"
17316fi
17317
17318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17319 conftest$ac_exeext conftest.$ac_ext
17320fi
17321ac_res=`eval echo '${'$as_ac_var'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323echo "${ECHO_T}$ac_res" >&6; }
17324if test `eval echo '${'$as_ac_var'}'` = yes; then
17325 cat >>confdefs.h <<_ACEOF
17326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17327_ACEOF
17328
17329fi
17330done
17331
17332 LIBS="$saved_LIBS"
17333
17334 PAM_MSG="yes"
17335
17336 SSHDLIBS="$SSHDLIBS -lpam"
17337
17338cat >>confdefs.h <<\_ACEOF
17339#define USE_PAM 1
17340_ACEOF
17341
17342
17343 if test $ac_cv_lib_dl_dlopen = yes; then
17344 case "$LIBS" in
17345 *-ldl*)
17346 # libdl already in LIBS
17347 ;;
17348 *)
17349 SSHDLIBS="$SSHDLIBS -ldl"
17350 ;;
17351 esac
17352 fi
17353 fi
17354
17355
17356fi
17357
17358
17359# Check for older PAM
17360if test "x$PAM_MSG" = "xyes" ; then
17361 # Check PAM strerror arguments (old PAM)
17362 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
17363echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
17364 cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370
17371#include <stdlib.h>
17372#if defined(HAVE_SECURITY_PAM_APPL_H)
17373#include <security/pam_appl.h>
17374#elif defined (HAVE_PAM_PAM_APPL_H)
17375#include <pam/pam_appl.h>
17376#endif
17377
17378int
17379main ()
17380{
17381(void)pam_strerror((pam_handle_t *)NULL, -1);
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386rm -f conftest.$ac_objext
17387if { (ac_try="$ac_compile"
17388case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_compile") 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && {
17400 test -z "$ac_c_werror_flag" ||
17401 test ! -s conftest.err
17402 } && test -s conftest.$ac_objext; then
17403 { echo "$as_me:$LINENO: result: no" >&5
17404echo "${ECHO_T}no" >&6; }
17405else
17406 echo "$as_me: failed program was:" >&5
17407sed 's/^/| /' conftest.$ac_ext >&5
17408
17409
17410
17411cat >>confdefs.h <<\_ACEOF
17412#define HAVE_OLD_PAM 1
17413_ACEOF
17414
17415 { echo "$as_me:$LINENO: result: yes" >&5
17416echo "${ECHO_T}yes" >&6; }
17417 PAM_MSG="yes (old library)"
17418
17419
17420fi
17421
17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423fi
17424
17425# Do we want to force the use of the rand helper?
17426
17427# Check whether --with-rand-helper was given.
17428if test "${with_rand_helper+set}" = set; then
17429 withval=$with_rand_helper;
17430 if test "x$withval" = "xno" ; then
17431 # Force use of OpenSSL's internal RNG, even if
17432 # the previous test showed it to be unseeded.
17433 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
17434 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
17435echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
17436 OPENSSL_SEEDS_ITSELF=yes
17437 USE_RAND_HELPER=""
17438 fi
17439 else
17440 USE_RAND_HELPER=yes
17441 fi
17442
17443fi
17444
17445
17446# Which randomness source do we use?
17447if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
17448 # OpenSSL only
17449
17450cat >>confdefs.h <<\_ACEOF
17451#define OPENSSL_PRNG_ONLY 1
17452_ACEOF
17453
17454 RAND_MSG="OpenSSL internal ONLY"
17455 INSTALL_SSH_RAND_HELPER=""
17456elif test ! -z "$USE_RAND_HELPER" ; then
17457 # install rand helper
17458 RAND_MSG="ssh-rand-helper"
17459 INSTALL_SSH_RAND_HELPER="yes"
17460fi
17461
17462
17463### Configuration of ssh-rand-helper
17464
17465# PRNGD TCP socket
17466
17467# Check whether --with-prngd-port was given.
17468if test "${with_prngd_port+set}" = set; then
17469 withval=$with_prngd_port;
17470 case "$withval" in
17471 no)
17472 withval=""
17473 ;;
17474 [0-9]*)
17475 ;;
17476 *)
17477 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
17478echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
17479 { (exit 1); exit 1; }; }
17480 ;;
17481 esac
17482 if test ! -z "$withval" ; then
17483 PRNGD_PORT="$withval"
17484
17485cat >>confdefs.h <<_ACEOF
17486#define PRNGD_PORT $PRNGD_PORT
17487_ACEOF
17488
17489 fi
17490
17491
17492fi
17493
17494
17495# PRNGD Unix domain socket
17496
17497# Check whether --with-prngd-socket was given.
17498if test "${with_prngd_socket+set}" = set; then
17499 withval=$with_prngd_socket;
17500 case "$withval" in
17501 yes)
17502 withval="/var/run/egd-pool"
17503 ;;
17504 no)
17505 withval=""
17506 ;;
17507 /*)
17508 ;;
17509 *)
17510 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
17511echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
17512 { (exit 1); exit 1; }; }
17513 ;;
17514 esac
17515
17516 if test ! -z "$withval" ; then
17517 if test ! -z "$PRNGD_PORT" ; then
17518 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
17519echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
17520 { (exit 1); exit 1; }; }
17521 fi
17522 if test ! -r "$withval" ; then
17523 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
17524echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
17525 fi
17526 PRNGD_SOCKET="$withval"
17527
17528cat >>confdefs.h <<_ACEOF
17529#define PRNGD_SOCKET "$PRNGD_SOCKET"
17530_ACEOF
17531
17532 fi
17533
17534else
17535
17536 # Check for existing socket only if we don't have a random device already
17537 if test "$USE_RAND_HELPER" = yes ; then
17538 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
17539echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
17540 # Insert other locations here
17541 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
17542 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
17543 PRNGD_SOCKET="$sock"
17544 cat >>confdefs.h <<_ACEOF
17545#define PRNGD_SOCKET "$PRNGD_SOCKET"
17546_ACEOF
17547
17548 break;
17549 fi
17550 done
17551 if test ! -z "$PRNGD_SOCKET" ; then
17552 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
17553echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
17554 else
17555 { echo "$as_me:$LINENO: result: not found" >&5
17556echo "${ECHO_T}not found" >&6; }
17557 fi
17558 fi
17559
17560
17561fi
17562
17563
17564# Change default command timeout for hashing entropy source
17565entropy_timeout=200
17566
17567# Check whether --with-entropy-timeout was given.
17568if test "${with_entropy_timeout+set}" = set; then
17569 withval=$with_entropy_timeout;
17570 if test -n "$withval" && test "x$withval" != "xno" && \
17571 test "x${withval}" != "xyes"; then
17572 entropy_timeout=$withval
17573 fi
17574
17575
17576fi
17577
17578
17579cat >>confdefs.h <<_ACEOF
17580#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
17581_ACEOF
17582
17583
17584SSH_PRIVSEP_USER=sshd
17585
17586# Check whether --with-privsep-user was given.
17587if test "${with_privsep_user+set}" = set; then
17588 withval=$with_privsep_user;
17589 if test -n "$withval" && test "x$withval" != "xno" && \
17590 test "x${withval}" != "xyes"; then
17591 SSH_PRIVSEP_USER=$withval
17592 fi
17593
17594
17595fi
17596
17597
17598cat >>confdefs.h <<_ACEOF
17599#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
17600_ACEOF
17601
17602
17603
17604# We do this little dance with the search path to insure
17605# that programs that we select for use by installed programs
17606# (which may be run by the super-user) come from trusted
17607# locations before they come from the user's private area.
17608# This should help avoid accidentally configuring some
17609# random version of a program in someone's personal bin.
17610
17611OPATH=$PATH
17612PATH=/bin:/usr/bin
17613test -h /bin 2> /dev/null && PATH=/usr/bin
17614test -d /sbin && PATH=$PATH:/sbin
17615test -d /usr/sbin && PATH=$PATH:/usr/sbin
17616PATH=$PATH:/etc:$OPATH
17617
17618# These programs are used by the command hashing source to gather entropy
17619
17620 # Extract the first word of "ls", so it can be a program name with args.
17621set dummy ls; ac_word=$2
17622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17624if test "${ac_cv_path_PROG_LS+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17626else
17627 case $PROG_LS in
17628 [\\/]* | ?:[\\/]*)
17629 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
17630 ;;
17631 *)
17632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17633for as_dir in $PATH
17634do
17635 IFS=$as_save_IFS
17636 test -z "$as_dir" && as_dir=.
17637 for ac_exec_ext in '' $ac_executable_extensions; do
17638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17639 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
17640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17641 break 2
17642 fi
17643done
17644done
17645IFS=$as_save_IFS
17646
17647 ;;
17648esac
17649fi
17650PROG_LS=$ac_cv_path_PROG_LS
17651if test -n "$PROG_LS"; then
17652 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
17653echo "${ECHO_T}$PROG_LS" >&6; }
17654else
17655 { echo "$as_me:$LINENO: result: no" >&5
17656echo "${ECHO_T}no" >&6; }
17657fi
17658
17659
17660 if test -z "$PROG_LS" ; then
17661 PROG_LS="undef"
17662 fi
17663
17664
17665
17666 # Extract the first word of "netstat", so it can be a program name with args.
17667set dummy netstat; ac_word=$2
17668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17670if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673 case $PROG_NETSTAT in
17674 [\\/]* | ?:[\\/]*)
17675 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
17676 ;;
17677 *)
17678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17679for as_dir in $PATH
17680do
17681 IFS=$as_save_IFS
17682 test -z "$as_dir" && as_dir=.
17683 for ac_exec_ext in '' $ac_executable_extensions; do
17684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17685 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
17686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17687 break 2
17688 fi
17689done
17690done
17691IFS=$as_save_IFS
17692
17693 ;;
17694esac
17695fi
17696PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
17697if test -n "$PROG_NETSTAT"; then
17698 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
17699echo "${ECHO_T}$PROG_NETSTAT" >&6; }
17700else
17701 { echo "$as_me:$LINENO: result: no" >&5
17702echo "${ECHO_T}no" >&6; }
17703fi
17704
17705
17706 if test -z "$PROG_NETSTAT" ; then
17707 PROG_NETSTAT="undef"
17708 fi
17709
17710
17711
17712 # Extract the first word of "arp", so it can be a program name with args.
17713set dummy arp; ac_word=$2
17714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17716if test "${ac_cv_path_PROG_ARP+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719 case $PROG_ARP in
17720 [\\/]* | ?:[\\/]*)
17721 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
17722 ;;
17723 *)
17724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17725for as_dir in $PATH
17726do
17727 IFS=$as_save_IFS
17728 test -z "$as_dir" && as_dir=.
17729 for ac_exec_ext in '' $ac_executable_extensions; do
17730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17731 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
17732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17733 break 2
17734 fi
17735done
17736done
17737IFS=$as_save_IFS
17738
17739 ;;
17740esac
17741fi
17742PROG_ARP=$ac_cv_path_PROG_ARP
17743if test -n "$PROG_ARP"; then
17744 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
17745echo "${ECHO_T}$PROG_ARP" >&6; }
17746else
17747 { echo "$as_me:$LINENO: result: no" >&5
17748echo "${ECHO_T}no" >&6; }
17749fi
17750
17751
17752 if test -z "$PROG_ARP" ; then
17753 PROG_ARP="undef"
17754 fi
17755
17756
17757
17758 # Extract the first word of "ifconfig", so it can be a program name with args.
17759set dummy ifconfig; ac_word=$2
17760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17762if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765 case $PROG_IFCONFIG in
17766 [\\/]* | ?:[\\/]*)
17767 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
17768 ;;
17769 *)
17770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17771for as_dir in $PATH
17772do
17773 IFS=$as_save_IFS
17774 test -z "$as_dir" && as_dir=.
17775 for ac_exec_ext in '' $ac_executable_extensions; do
17776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17777 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
17778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17779 break 2
17780 fi
17781done
17782done
17783IFS=$as_save_IFS
17784
17785 ;;
17786esac
17787fi
17788PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
17789if test -n "$PROG_IFCONFIG"; then
17790 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
17791echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
17792else
17793 { echo "$as_me:$LINENO: result: no" >&5
17794echo "${ECHO_T}no" >&6; }
17795fi
17796
17797
17798 if test -z "$PROG_IFCONFIG" ; then
17799 PROG_IFCONFIG="undef"
17800 fi
17801
17802
17803
17804 # Extract the first word of "jstat", so it can be a program name with args.
17805set dummy jstat; ac_word=$2
17806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17808if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 case $PROG_JSTAT in
17812 [\\/]* | ?:[\\/]*)
17813 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
17814 ;;
17815 *)
17816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17817for as_dir in $PATH
17818do
17819 IFS=$as_save_IFS
17820 test -z "$as_dir" && as_dir=.
17821 for ac_exec_ext in '' $ac_executable_extensions; do
17822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17823 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
17824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17825 break 2
17826 fi
17827done
17828done
17829IFS=$as_save_IFS
17830
17831 ;;
17832esac
17833fi
17834PROG_JSTAT=$ac_cv_path_PROG_JSTAT
17835if test -n "$PROG_JSTAT"; then
17836 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
17837echo "${ECHO_T}$PROG_JSTAT" >&6; }
17838else
17839 { echo "$as_me:$LINENO: result: no" >&5
17840echo "${ECHO_T}no" >&6; }
17841fi
17842
17843
17844 if test -z "$PROG_JSTAT" ; then
17845 PROG_JSTAT="undef"
17846 fi
17847
17848
17849
17850 # Extract the first word of "ps", so it can be a program name with args.
17851set dummy ps; ac_word=$2
17852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17854if test "${ac_cv_path_PROG_PS+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856else
17857 case $PROG_PS in
17858 [\\/]* | ?:[\\/]*)
17859 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
17860 ;;
17861 *)
17862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17863for as_dir in $PATH
17864do
17865 IFS=$as_save_IFS
17866 test -z "$as_dir" && as_dir=.
17867 for ac_exec_ext in '' $ac_executable_extensions; do
17868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17869 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
17870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17871 break 2
17872 fi
17873done
17874done
17875IFS=$as_save_IFS
17876
17877 ;;
17878esac
17879fi
17880PROG_PS=$ac_cv_path_PROG_PS
17881if test -n "$PROG_PS"; then
17882 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
17883echo "${ECHO_T}$PROG_PS" >&6; }
17884else
17885 { echo "$as_me:$LINENO: result: no" >&5
17886echo "${ECHO_T}no" >&6; }
17887fi
17888
17889
17890 if test -z "$PROG_PS" ; then
17891 PROG_PS="undef"
17892 fi
17893
17894
17895
17896 # Extract the first word of "sar", so it can be a program name with args.
17897set dummy sar; ac_word=$2
17898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17900if test "${ac_cv_path_PROG_SAR+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903 case $PROG_SAR in
17904 [\\/]* | ?:[\\/]*)
17905 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
17906 ;;
17907 *)
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909for as_dir in $PATH
17910do
17911 IFS=$as_save_IFS
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
17916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17917 break 2
17918 fi
17919done
17920done
17921IFS=$as_save_IFS
17922
17923 ;;
17924esac
17925fi
17926PROG_SAR=$ac_cv_path_PROG_SAR
17927if test -n "$PROG_SAR"; then
17928 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
17929echo "${ECHO_T}$PROG_SAR" >&6; }
17930else
17931 { echo "$as_me:$LINENO: result: no" >&5
17932echo "${ECHO_T}no" >&6; }
17933fi
17934
17935
17936 if test -z "$PROG_SAR" ; then
17937 PROG_SAR="undef"
17938 fi
17939
17940
17941
17942 # Extract the first word of "w", so it can be a program name with args.
17943set dummy w; ac_word=$2
17944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17946if test "${ac_cv_path_PROG_W+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948else
17949 case $PROG_W in
17950 [\\/]* | ?:[\\/]*)
17951 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
17952 ;;
17953 *)
17954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17955for as_dir in $PATH
17956do
17957 IFS=$as_save_IFS
17958 test -z "$as_dir" && as_dir=.
17959 for ac_exec_ext in '' $ac_executable_extensions; do
17960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17961 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
17962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17963 break 2
17964 fi
17965done
17966done
17967IFS=$as_save_IFS
17968
17969 ;;
17970esac
17971fi
17972PROG_W=$ac_cv_path_PROG_W
17973if test -n "$PROG_W"; then
17974 { echo "$as_me:$LINENO: result: $PROG_W" >&5
17975echo "${ECHO_T}$PROG_W" >&6; }
17976else
17977 { echo "$as_me:$LINENO: result: no" >&5
17978echo "${ECHO_T}no" >&6; }
17979fi
17980
17981
17982 if test -z "$PROG_W" ; then
17983 PROG_W="undef"
17984 fi
17985
17986
17987
17988 # Extract the first word of "who", so it can be a program name with args.
17989set dummy who; ac_word=$2
17990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17992if test "${ac_cv_path_PROG_WHO+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 case $PROG_WHO in
17996 [\\/]* | ?:[\\/]*)
17997 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
17998 ;;
17999 *)
18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18001for as_dir in $PATH
18002do
18003 IFS=$as_save_IFS
18004 test -z "$as_dir" && as_dir=.
18005 for ac_exec_ext in '' $ac_executable_extensions; do
18006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18007 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
18008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18009 break 2
18010 fi
18011done
18012done
18013IFS=$as_save_IFS
18014
18015 ;;
18016esac
18017fi
18018PROG_WHO=$ac_cv_path_PROG_WHO
18019if test -n "$PROG_WHO"; then
18020 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
18021echo "${ECHO_T}$PROG_WHO" >&6; }
18022else
18023 { echo "$as_me:$LINENO: result: no" >&5
18024echo "${ECHO_T}no" >&6; }
18025fi
18026
18027
18028 if test -z "$PROG_WHO" ; then
18029 PROG_WHO="undef"
18030 fi
18031
18032
18033
18034 # Extract the first word of "last", so it can be a program name with args.
18035set dummy last; ac_word=$2
18036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18038if test "${ac_cv_path_PROG_LAST+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040else
18041 case $PROG_LAST in
18042 [\\/]* | ?:[\\/]*)
18043 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
18044 ;;
18045 *)
18046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18047for as_dir in $PATH
18048do
18049 IFS=$as_save_IFS
18050 test -z "$as_dir" && as_dir=.
18051 for ac_exec_ext in '' $ac_executable_extensions; do
18052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18053 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
18054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18055 break 2
18056 fi
18057done
18058done
18059IFS=$as_save_IFS
18060
18061 ;;
18062esac
18063fi
18064PROG_LAST=$ac_cv_path_PROG_LAST
18065if test -n "$PROG_LAST"; then
18066 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
18067echo "${ECHO_T}$PROG_LAST" >&6; }
18068else
18069 { echo "$as_me:$LINENO: result: no" >&5
18070echo "${ECHO_T}no" >&6; }
18071fi
18072
18073
18074 if test -z "$PROG_LAST" ; then
18075 PROG_LAST="undef"
18076 fi
18077
18078
18079
18080 # Extract the first word of "lastlog", so it can be a program name with args.
18081set dummy lastlog; ac_word=$2
18082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18084if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086else
18087 case $PROG_LASTLOG in
18088 [\\/]* | ?:[\\/]*)
18089 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
18090 ;;
18091 *)
18092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18093for as_dir in $PATH
18094do
18095 IFS=$as_save_IFS
18096 test -z "$as_dir" && as_dir=.
18097 for ac_exec_ext in '' $ac_executable_extensions; do
18098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18099 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
18100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18101 break 2
18102 fi
18103done
18104done
18105IFS=$as_save_IFS
18106
18107 ;;
18108esac
18109fi
18110PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
18111if test -n "$PROG_LASTLOG"; then
18112 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
18113echo "${ECHO_T}$PROG_LASTLOG" >&6; }
18114else
18115 { echo "$as_me:$LINENO: result: no" >&5
18116echo "${ECHO_T}no" >&6; }
18117fi
18118
18119
18120 if test -z "$PROG_LASTLOG" ; then
18121 PROG_LASTLOG="undef"
18122 fi
18123
18124
18125
18126 # Extract the first word of "df", so it can be a program name with args.
18127set dummy df; ac_word=$2
18128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18130if test "${ac_cv_path_PROG_DF+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133 case $PROG_DF in
18134 [\\/]* | ?:[\\/]*)
18135 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
18136 ;;
18137 *)
18138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18139for as_dir in $PATH
18140do
18141 IFS=$as_save_IFS
18142 test -z "$as_dir" && as_dir=.
18143 for ac_exec_ext in '' $ac_executable_extensions; do
18144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18145 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
18146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18147 break 2
18148 fi
18149done
18150done
18151IFS=$as_save_IFS
18152
18153 ;;
18154esac
18155fi
18156PROG_DF=$ac_cv_path_PROG_DF
18157if test -n "$PROG_DF"; then
18158 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
18159echo "${ECHO_T}$PROG_DF" >&6; }
18160else
18161 { echo "$as_me:$LINENO: result: no" >&5
18162echo "${ECHO_T}no" >&6; }
18163fi
18164
18165
18166 if test -z "$PROG_DF" ; then
18167 PROG_DF="undef"
18168 fi
18169
18170
18171
18172 # Extract the first word of "vmstat", so it can be a program name with args.
18173set dummy vmstat; ac_word=$2
18174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18176if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178else
18179 case $PROG_VMSTAT in
18180 [\\/]* | ?:[\\/]*)
18181 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
18182 ;;
18183 *)
18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185for as_dir in $PATH
18186do
18187 IFS=$as_save_IFS
18188 test -z "$as_dir" && as_dir=.
18189 for ac_exec_ext in '' $ac_executable_extensions; do
18190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18191 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
18192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 break 2
18194 fi
18195done
18196done
18197IFS=$as_save_IFS
18198
18199 ;;
18200esac
18201fi
18202PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
18203if test -n "$PROG_VMSTAT"; then
18204 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
18205echo "${ECHO_T}$PROG_VMSTAT" >&6; }
18206else
18207 { echo "$as_me:$LINENO: result: no" >&5
18208echo "${ECHO_T}no" >&6; }
18209fi
18210
18211
18212 if test -z "$PROG_VMSTAT" ; then
18213 PROG_VMSTAT="undef"
18214 fi
18215
18216
18217
18218 # Extract the first word of "uptime", so it can be a program name with args.
18219set dummy uptime; ac_word=$2
18220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18222if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 case $PROG_UPTIME in
18226 [\\/]* | ?:[\\/]*)
18227 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
18228 ;;
18229 *)
18230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18231for as_dir in $PATH
18232do
18233 IFS=$as_save_IFS
18234 test -z "$as_dir" && as_dir=.
18235 for ac_exec_ext in '' $ac_executable_extensions; do
18236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18237 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
18238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18239 break 2
18240 fi
18241done
18242done
18243IFS=$as_save_IFS
18244
18245 ;;
18246esac
18247fi
18248PROG_UPTIME=$ac_cv_path_PROG_UPTIME
18249if test -n "$PROG_UPTIME"; then
18250 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
18251echo "${ECHO_T}$PROG_UPTIME" >&6; }
18252else
18253 { echo "$as_me:$LINENO: result: no" >&5
18254echo "${ECHO_T}no" >&6; }
18255fi
18256
18257
18258 if test -z "$PROG_UPTIME" ; then
18259 PROG_UPTIME="undef"
18260 fi
18261
18262
18263
18264 # Extract the first word of "ipcs", so it can be a program name with args.
18265set dummy ipcs; ac_word=$2
18266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18268if test "${ac_cv_path_PROG_IPCS+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18270else
18271 case $PROG_IPCS in
18272 [\\/]* | ?:[\\/]*)
18273 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
18274 ;;
18275 *)
18276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18277for as_dir in $PATH
18278do
18279 IFS=$as_save_IFS
18280 test -z "$as_dir" && as_dir=.
18281 for ac_exec_ext in '' $ac_executable_extensions; do
18282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18283 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
18284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18285 break 2
18286 fi
18287done
18288done
18289IFS=$as_save_IFS
18290
18291 ;;
18292esac
18293fi
18294PROG_IPCS=$ac_cv_path_PROG_IPCS
18295if test -n "$PROG_IPCS"; then
18296 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
18297echo "${ECHO_T}$PROG_IPCS" >&6; }
18298else
18299 { echo "$as_me:$LINENO: result: no" >&5
18300echo "${ECHO_T}no" >&6; }
18301fi
18302
18303
18304 if test -z "$PROG_IPCS" ; then
18305 PROG_IPCS="undef"
18306 fi
18307
18308
18309
18310 # Extract the first word of "tail", so it can be a program name with args.
18311set dummy tail; ac_word=$2
18312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18314if test "${ac_cv_path_PROG_TAIL+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316else
18317 case $PROG_TAIL in
18318 [\\/]* | ?:[\\/]*)
18319 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
18320 ;;
18321 *)
18322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18323for as_dir in $PATH
18324do
18325 IFS=$as_save_IFS
18326 test -z "$as_dir" && as_dir=.
18327 for ac_exec_ext in '' $ac_executable_extensions; do
18328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18329 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
18330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18331 break 2
18332 fi
18333done
18334done
18335IFS=$as_save_IFS
18336
18337 ;;
18338esac
18339fi
18340PROG_TAIL=$ac_cv_path_PROG_TAIL
18341if test -n "$PROG_TAIL"; then
18342 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
18343echo "${ECHO_T}$PROG_TAIL" >&6; }
18344else
18345 { echo "$as_me:$LINENO: result: no" >&5
18346echo "${ECHO_T}no" >&6; }
18347fi
18348
18349
18350 if test -z "$PROG_TAIL" ; then
18351 PROG_TAIL="undef"
18352 fi
18353
18354
18355# restore PATH
18356PATH=$OPATH
18357
18358# Where does ssh-rand-helper get its randomness from?
18359INSTALL_SSH_PRNG_CMDS=""
18360if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
18361 if test ! -z "$PRNGD_PORT" ; then
18362 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
18363 elif test ! -z "$PRNGD_SOCKET" ; then
18364 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
18365 else
18366 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
18367 RAND_HELPER_CMDHASH=yes
18368 INSTALL_SSH_PRNG_CMDS="yes"
18369 fi
18370fi
18371
18372
18373
18374# Cheap hack to ensure NEWS-OS libraries are arranged right.
18375if test ! -z "$SONY" ; then
18376 LIBS="$LIBS -liberty";
18377fi
18378
18379# Check for long long datatypes
18380{ echo "$as_me:$LINENO: checking for long long" >&5
18381echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18382if test "${ac_cv_type_long_long+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384else
18385 cat >conftest.$ac_ext <<_ACEOF
18386/* confdefs.h. */
18387_ACEOF
18388cat confdefs.h >>conftest.$ac_ext
18389cat >>conftest.$ac_ext <<_ACEOF
18390/* end confdefs.h. */
18391$ac_includes_default
18392typedef long long ac__type_new_;
18393int
18394main ()
18395{
18396if ((ac__type_new_ *) 0)
18397 return 0;
18398if (sizeof (ac__type_new_))
18399 return 0;
18400 ;
18401 return 0;
18402}
18403_ACEOF
18404rm -f conftest.$ac_objext
18405if { (ac_try="$ac_compile"
18406case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_cv_type_long_long=yes
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426 ac_cv_type_long_long=no
18427fi
18428
18429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430fi
18431{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18432echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18433if test $ac_cv_type_long_long = yes; then
18434
18435cat >>confdefs.h <<_ACEOF
18436#define HAVE_LONG_LONG 1
18437_ACEOF
18438
18439
18440fi
18441{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
18442echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
18443if test "${ac_cv_type_unsigned_long_long+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445else
18446 cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452$ac_includes_default
18453typedef unsigned long long ac__type_new_;
18454int
18455main ()
18456{
18457if ((ac__type_new_ *) 0)
18458 return 0;
18459if (sizeof (ac__type_new_))
18460 return 0;
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext
18466if { (ac_try="$ac_compile"
18467case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470esac
18471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_type_unsigned_long_long=yes
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 ac_cv_type_unsigned_long_long=no
18488fi
18489
18490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18491fi
18492{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
18493echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
18494if test $ac_cv_type_unsigned_long_long = yes; then
18495
18496cat >>confdefs.h <<_ACEOF
18497#define HAVE_UNSIGNED_LONG_LONG 1
18498_ACEOF
18499
18500
18501fi
18502{ echo "$as_me:$LINENO: checking for long double" >&5
18503echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18504if test "${ac_cv_type_long_double+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513$ac_includes_default
18514typedef long double ac__type_new_;
18515int
18516main ()
18517{
18518if ((ac__type_new_ *) 0)
18519 return 0;
18520if (sizeof (ac__type_new_))
18521 return 0;
18522 ;
18523 return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
18527if { (ac_try="$ac_compile"
18528case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.$ac_objext; then
18543 ac_cv_type_long_double=yes
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_type_long_double=no
18549fi
18550
18551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18552fi
18553{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
18554echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
18555if test $ac_cv_type_long_double = yes; then
18556
18557cat >>confdefs.h <<_ACEOF
18558#define HAVE_LONG_DOUBLE 1
18559_ACEOF
18560
18561
18562fi
18563
18564
18565# Check datatype sizes
18566{ echo "$as_me:$LINENO: checking for char" >&5
18567echo $ECHO_N "checking for char... $ECHO_C" >&6; }
18568if test "${ac_cv_type_char+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570else
18571 cat >conftest.$ac_ext <<_ACEOF
18572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
18577$ac_includes_default
18578typedef char ac__type_new_;
18579int
18580main ()
18581{
18582if ((ac__type_new_ *) 0)
18583 return 0;
18584if (sizeof (ac__type_new_))
18585 return 0;
18586 ;
18587 return 0;
18588}
18589_ACEOF
18590rm -f conftest.$ac_objext
18591if { (ac_try="$ac_compile"
18592case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595esac
18596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_compile") 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest.$ac_objext; then
18607 ac_cv_type_char=yes
18608else
18609 echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 ac_cv_type_char=no
18613fi
18614
18615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616fi
18617{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18618echo "${ECHO_T}$ac_cv_type_char" >&6; }
18619
18620# The cast to long int works around a bug in the HP C Compiler
18621# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18622# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18623# This bug is HP SR number 8606223364.
18624{ echo "$as_me:$LINENO: checking size of char" >&5
18625echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
18626if test "${ac_cv_sizeof_char+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628else
18629 if test "$cross_compiling" = yes; then
18630 # Depending upon the size, compute the lo and hi bounds.
18631cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637$ac_includes_default
18638 typedef char ac__type_sizeof_;
18639int
18640main ()
18641{
18642static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18643test_array [0] = 0
18644
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext
18650if { (ac_try="$ac_compile"
18651case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654esac
18655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_lo=0 ac_mid=0
18667 while :; do
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675 typedef char ac__type_sizeof_;
18676int
18677main ()
18678{
18679static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18680test_array [0] = 0
18681
18682 ;
18683 return 0;
18684}
18685_ACEOF
18686rm -f conftest.$ac_objext
18687if { (ac_try="$ac_compile"
18688case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_compile") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest.$ac_objext; then
18703 ac_hi=$ac_mid; break
18704else
18705 echo "$as_me: failed program was:" >&5
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_lo=`expr $ac_mid + 1`
18709 if test $ac_lo -le $ac_mid; then
18710 ac_lo= ac_hi=
18711 break
18712 fi
18713 ac_mid=`expr 2 '*' $ac_mid + 1`
18714fi
18715
18716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 done
18718else
18719 echo "$as_me: failed program was:" >&5
18720sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 cat >conftest.$ac_ext <<_ACEOF
18723/* confdefs.h. */
18724_ACEOF
18725cat confdefs.h >>conftest.$ac_ext
18726cat >>conftest.$ac_ext <<_ACEOF
18727/* end confdefs.h. */
18728$ac_includes_default
18729 typedef char ac__type_sizeof_;
18730int
18731main ()
18732{
18733static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18734test_array [0] = 0
18735
18736 ;
18737 return 0;
18738}
18739_ACEOF
18740rm -f conftest.$ac_objext
18741if { (ac_try="$ac_compile"
18742case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745esac
18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest.$ac_objext; then
18757 ac_hi=-1 ac_mid=-1
18758 while :; do
18759 cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
18765$ac_includes_default
18766 typedef char ac__type_sizeof_;
18767int
18768main ()
18769{
18770static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18771test_array [0] = 0
18772
18773 ;
18774 return 0;
18775}
18776_ACEOF
18777rm -f conftest.$ac_objext
18778if { (ac_try="$ac_compile"
18779case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782esac
18783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_compile") 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest.$ac_objext; then
18794 ac_lo=$ac_mid; break
18795else
18796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_hi=`expr '(' $ac_mid ')' - 1`
18800 if test $ac_mid -le $ac_hi; then
18801 ac_lo= ac_hi=
18802 break
18803 fi
18804 ac_mid=`expr 2 '*' $ac_mid`
18805fi
18806
18807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 done
18809else
18810 echo "$as_me: failed program was:" >&5
18811sed 's/^/| /' conftest.$ac_ext >&5
18812
18813 ac_lo= ac_hi=
18814fi
18815
18816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817fi
18818
18819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18820# Binary search between lo and hi bounds.
18821while test "x$ac_lo" != "x$ac_hi"; do
18822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18823 cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
18829$ac_includes_default
18830 typedef char ac__type_sizeof_;
18831int
18832main ()
18833{
18834static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18835test_array [0] = 0
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
18842if { (ac_try="$ac_compile"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_compile") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest.$ac_objext; then
18858 ac_hi=$ac_mid
18859else
18860 echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_lo=`expr '(' $ac_mid ')' + 1`
18864fi
18865
18866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867done
18868case $ac_lo in
18869?*) ac_cv_sizeof_char=$ac_lo;;
18870'') if test "$ac_cv_type_char" = yes; then
18871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18872See \`config.log' for more details." >&5
18873echo "$as_me: error: cannot compute sizeof (char)
18874See \`config.log' for more details." >&2;}
18875 { (exit 77); exit 77; }; }
18876 else
18877 ac_cv_sizeof_char=0
18878 fi ;;
18879esac
18880else
18881 cat >conftest.$ac_ext <<_ACEOF
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887$ac_includes_default
18888 typedef char ac__type_sizeof_;
18889static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18890static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18891#include <stdio.h>
18892#include <stdlib.h>
18893int
18894main ()
18895{
18896
18897 FILE *f = fopen ("conftest.val", "w");
18898 if (! f)
18899 return 1;
18900 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18901 {
18902 long int i = longval ();
18903 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18904 return 1;
18905 fprintf (f, "%ld\n", i);
18906 }
18907 else
18908 {
18909 unsigned long int i = ulongval ();
18910 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18911 return 1;
18912 fprintf (f, "%lu\n", i);
18913 }
18914 return ferror (f) || fclose (f) != 0;
18915
18916 ;
18917 return 0;
18918}
18919_ACEOF
18920rm -f conftest$ac_exeext
18921if { (ac_try="$ac_link"
18922case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18931 { (case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934esac
18935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_try") 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 ac_cv_sizeof_char=`cat conftest.val`
18941else
18942 echo "$as_me: program exited with status $ac_status" >&5
18943echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946( exit $ac_status )
18947if test "$ac_cv_type_char" = yes; then
18948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18949See \`config.log' for more details." >&5
18950echo "$as_me: error: cannot compute sizeof (char)
18951See \`config.log' for more details." >&2;}
18952 { (exit 77); exit 77; }; }
18953 else
18954 ac_cv_sizeof_char=0
18955 fi
18956fi
18957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18958fi
18959rm -f conftest.val
18960fi
18961{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18962echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18963
18964
18965
18966cat >>confdefs.h <<_ACEOF
18967#define SIZEOF_CHAR $ac_cv_sizeof_char
18968_ACEOF
18969
18970
18971{ echo "$as_me:$LINENO: checking for short int" >&5
18972echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
18973if test "${ac_cv_type_short_int+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976 cat >conftest.$ac_ext <<_ACEOF
18977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
18982$ac_includes_default
18983typedef short int ac__type_new_;
18984int
18985main ()
18986{
18987if ((ac__type_new_ *) 0)
18988 return 0;
18989if (sizeof (ac__type_new_))
18990 return 0;
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext
18996if { (ac_try="$ac_compile"
18997case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_compile") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest.$ac_objext; then
19012 ac_cv_type_short_int=yes
19013else
19014 echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017 ac_cv_type_short_int=no
19018fi
19019
19020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021fi
19022{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
19023echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
19024
19025# The cast to long int works around a bug in the HP C Compiler
19026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19028# This bug is HP SR number 8606223364.
19029{ echo "$as_me:$LINENO: checking size of short int" >&5
19030echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
19031if test "${ac_cv_sizeof_short_int+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 if test "$cross_compiling" = yes; then
19035 # Depending upon the size, compute the lo and hi bounds.
19036cat >conftest.$ac_ext <<_ACEOF
19037/* confdefs.h. */
19038_ACEOF
19039cat confdefs.h >>conftest.$ac_ext
19040cat >>conftest.$ac_ext <<_ACEOF
19041/* end confdefs.h. */
19042$ac_includes_default
19043 typedef short int ac__type_sizeof_;
19044int
19045main ()
19046{
19047static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19048test_array [0] = 0
19049
19050 ;
19051 return 0;
19052}
19053_ACEOF
19054rm -f conftest.$ac_objext
19055if { (ac_try="$ac_compile"
19056case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest.$ac_objext; then
19071 ac_lo=0 ac_mid=0
19072 while :; do
19073 cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079$ac_includes_default
19080 typedef short int ac__type_sizeof_;
19081int
19082main ()
19083{
19084static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19085test_array [0] = 0
19086
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (ac_try="$ac_compile"
19093case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_compile") 2>conftest.er1
19099 ac_status=$?
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } && {
19105 test -z "$ac_c_werror_flag" ||
19106 test ! -s conftest.err
19107 } && test -s conftest.$ac_objext; then
19108 ac_hi=$ac_mid; break
19109else
19110 echo "$as_me: failed program was:" >&5
19111sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_lo=`expr $ac_mid + 1`
19114 if test $ac_lo -le $ac_mid; then
19115 ac_lo= ac_hi=
19116 break
19117 fi
19118 ac_mid=`expr 2 '*' $ac_mid + 1`
19119fi
19120
19121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122 done
19123else
19124 echo "$as_me: failed program was:" >&5
19125sed 's/^/| /' conftest.$ac_ext >&5
19126
19127 cat >conftest.$ac_ext <<_ACEOF
19128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
19133$ac_includes_default
19134 typedef short int ac__type_sizeof_;
19135int
19136main ()
19137{
19138static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19139test_array [0] = 0
19140
19141 ;
19142 return 0;
19143}
19144_ACEOF
19145rm -f conftest.$ac_objext
19146if { (ac_try="$ac_compile"
19147case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 ac_hi=-1 ac_mid=-1
19163 while :; do
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170$ac_includes_default
19171 typedef short int ac__type_sizeof_;
19172int
19173main ()
19174{
19175static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19176test_array [0] = 0
19177
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (ac_try="$ac_compile"
19184case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_compile") 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest.$ac_objext; then
19199 ac_lo=$ac_mid; break
19200else
19201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_hi=`expr '(' $ac_mid ')' - 1`
19205 if test $ac_mid -le $ac_hi; then
19206 ac_lo= ac_hi=
19207 break
19208 fi
19209 ac_mid=`expr 2 '*' $ac_mid`
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 done
19214else
19215 echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218 ac_lo= ac_hi=
19219fi
19220
19221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222fi
19223
19224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225# Binary search between lo and hi bounds.
19226while test "x$ac_lo" != "x$ac_hi"; do
19227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19228 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234$ac_includes_default
19235 typedef short int ac__type_sizeof_;
19236int
19237main ()
19238{
19239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19240test_array [0] = 0
19241
19242 ;
19243 return 0;
19244}
19245_ACEOF
19246rm -f conftest.$ac_objext
19247if { (ac_try="$ac_compile"
19248case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251esac
19252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_compile") 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest.$ac_objext; then
19263 ac_hi=$ac_mid
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 ac_lo=`expr '(' $ac_mid ')' + 1`
19269fi
19270
19271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272done
19273case $ac_lo in
19274?*) ac_cv_sizeof_short_int=$ac_lo;;
19275'') if test "$ac_cv_type_short_int" = yes; then
19276 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19277See \`config.log' for more details." >&5
19278echo "$as_me: error: cannot compute sizeof (short int)
19279See \`config.log' for more details." >&2;}
19280 { (exit 77); exit 77; }; }
19281 else
19282 ac_cv_sizeof_short_int=0
19283 fi ;;
19284esac
19285else
19286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292$ac_includes_default
19293 typedef short int ac__type_sizeof_;
19294static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19295static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19296#include <stdio.h>
19297#include <stdlib.h>
19298int
19299main ()
19300{
19301
19302 FILE *f = fopen ("conftest.val", "w");
19303 if (! f)
19304 return 1;
19305 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19306 {
19307 long int i = longval ();
19308 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19309 return 1;
19310 fprintf (f, "%ld\n", i);
19311 }
19312 else
19313 {
19314 unsigned long int i = ulongval ();
19315 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19316 return 1;
19317 fprintf (f, "%lu\n", i);
19318 }
19319 return ferror (f) || fclose (f) != 0;
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest$ac_exeext
19326if { (ac_try="$ac_link"
19327case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19330esac
19331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_link") 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_cv_sizeof_short_int=`cat conftest.val`
19346else
19347 echo "$as_me: program exited with status $ac_status" >&5
19348echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351( exit $ac_status )
19352if test "$ac_cv_type_short_int" = yes; then
19353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19354See \`config.log' for more details." >&5
19355echo "$as_me: error: cannot compute sizeof (short int)
19356See \`config.log' for more details." >&2;}
19357 { (exit 77); exit 77; }; }
19358 else
19359 ac_cv_sizeof_short_int=0
19360 fi
19361fi
19362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19363fi
19364rm -f conftest.val
19365fi
19366{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
19367echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
19368
19369
19370
19371cat >>confdefs.h <<_ACEOF
19372#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
19373_ACEOF
19374
19375
19376{ echo "$as_me:$LINENO: checking for int" >&5
19377echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19378if test "${ac_cv_type_int+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380else
19381 cat >conftest.$ac_ext <<_ACEOF
19382/* confdefs.h. */
19383_ACEOF
19384cat confdefs.h >>conftest.$ac_ext
19385cat >>conftest.$ac_ext <<_ACEOF
19386/* end confdefs.h. */
19387$ac_includes_default
19388typedef int ac__type_new_;
19389int
19390main ()
19391{
19392if ((ac__type_new_ *) 0)
19393 return 0;
19394if (sizeof (ac__type_new_))
19395 return 0;
19396 ;
19397 return 0;
19398}
19399_ACEOF
19400rm -f conftest.$ac_objext
19401if { (ac_try="$ac_compile"
19402case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405esac
19406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.$ac_objext; then
19417 ac_cv_type_int=yes
19418else
19419 echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_cv_type_int=no
19423fi
19424
19425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426fi
19427{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19428echo "${ECHO_T}$ac_cv_type_int" >&6; }
19429
19430# The cast to long int works around a bug in the HP C Compiler
19431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19433# This bug is HP SR number 8606223364.
19434{ echo "$as_me:$LINENO: checking size of int" >&5
19435echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19436if test "${ac_cv_sizeof_int+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19438else
19439 if test "$cross_compiling" = yes; then
19440 # Depending upon the size, compute the lo and hi bounds.
19441cat >conftest.$ac_ext <<_ACEOF
19442/* confdefs.h. */
19443_ACEOF
19444cat confdefs.h >>conftest.$ac_ext
19445cat >>conftest.$ac_ext <<_ACEOF
19446/* end confdefs.h. */
19447$ac_includes_default
19448 typedef int ac__type_sizeof_;
19449int
19450main ()
19451{
19452static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19453test_array [0] = 0
19454
19455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext
19460if { (ac_try="$ac_compile"
19461case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464esac
19465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_compile") 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && {
19473 test -z "$ac_c_werror_flag" ||
19474 test ! -s conftest.err
19475 } && test -s conftest.$ac_objext; then
19476 ac_lo=0 ac_mid=0
19477 while :; do
19478 cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484$ac_includes_default
19485 typedef int ac__type_sizeof_;
19486int
19487main ()
19488{
19489static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19490test_array [0] = 0
19491
19492 ;
19493 return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (ac_try="$ac_compile"
19498case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_compile") 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } && {
19510 test -z "$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 } && test -s conftest.$ac_objext; then
19513 ac_hi=$ac_mid; break
19514else
19515 echo "$as_me: failed program was:" >&5
19516sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_lo=`expr $ac_mid + 1`
19519 if test $ac_lo -le $ac_mid; then
19520 ac_lo= ac_hi=
19521 break
19522 fi
19523 ac_mid=`expr 2 '*' $ac_mid + 1`
19524fi
19525
19526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 done
19528else
19529 echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 cat >conftest.$ac_ext <<_ACEOF
19533/* confdefs.h. */
19534_ACEOF
19535cat confdefs.h >>conftest.$ac_ext
19536cat >>conftest.$ac_ext <<_ACEOF
19537/* end confdefs.h. */
19538$ac_includes_default
19539 typedef int ac__type_sizeof_;
19540int
19541main ()
19542{
19543static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19544test_array [0] = 0
19545
19546 ;
19547 return 0;
19548}
19549_ACEOF
19550rm -f conftest.$ac_objext
19551if { (ac_try="$ac_compile"
19552case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_compile") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest.$ac_objext; then
19567 ac_hi=-1 ac_mid=-1
19568 while :; do
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
19576 typedef int ac__type_sizeof_;
19577int
19578main ()
19579{
19580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19581test_array [0] = 0
19582
19583 ;
19584 return 0;
19585}
19586_ACEOF
19587rm -f conftest.$ac_objext
19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
19604 ac_lo=$ac_mid; break
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_hi=`expr '(' $ac_mid ')' - 1`
19610 if test $ac_mid -le $ac_hi; then
19611 ac_lo= ac_hi=
19612 break
19613 fi
19614 ac_mid=`expr 2 '*' $ac_mid`
19615fi
19616
19617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19618 done
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_lo= ac_hi=
19624fi
19625
19626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627fi
19628
19629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630# Binary search between lo and hi bounds.
19631while test "x$ac_lo" != "x$ac_hi"; do
19632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19633 cat >conftest.$ac_ext <<_ACEOF
19634/* confdefs.h. */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h. */
19639$ac_includes_default
19640 typedef int ac__type_sizeof_;
19641int
19642main ()
19643{
19644static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19645test_array [0] = 0
19646
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (ac_try="$ac_compile"
19653case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_compile") 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest.$ac_objext; then
19668 ac_hi=$ac_mid
19669else
19670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 ac_lo=`expr '(' $ac_mid ')' + 1`
19674fi
19675
19676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677done
19678case $ac_lo in
19679?*) ac_cv_sizeof_int=$ac_lo;;
19680'') if test "$ac_cv_type_int" = yes; then
19681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19682See \`config.log' for more details." >&5
19683echo "$as_me: error: cannot compute sizeof (int)
19684See \`config.log' for more details." >&2;}
19685 { (exit 77); exit 77; }; }
19686 else
19687 ac_cv_sizeof_int=0
19688 fi ;;
19689esac
19690else
19691 cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h. */
19697$ac_includes_default
19698 typedef int ac__type_sizeof_;
19699static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19700static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19701#include <stdio.h>
19702#include <stdlib.h>
19703int
19704main ()
19705{
19706
19707 FILE *f = fopen ("conftest.val", "w");
19708 if (! f)
19709 return 1;
19710 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19711 {
19712 long int i = longval ();
19713 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19714 return 1;
19715 fprintf (f, "%ld\n", i);
19716 }
19717 else
19718 {
19719 unsigned long int i = ulongval ();
19720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19721 return 1;
19722 fprintf (f, "%lu\n", i);
19723 }
19724 return ferror (f) || fclose (f) != 0;
19725
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest$ac_exeext
19731if { (ac_try="$ac_link"
19732case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_sizeof_int=`cat conftest.val`
19751else
19752 echo "$as_me: program exited with status $ac_status" >&5
19753echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756( exit $ac_status )
19757if test "$ac_cv_type_int" = yes; then
19758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19759See \`config.log' for more details." >&5
19760echo "$as_me: error: cannot compute sizeof (int)
19761See \`config.log' for more details." >&2;}
19762 { (exit 77); exit 77; }; }
19763 else
19764 ac_cv_sizeof_int=0
19765 fi
19766fi
19767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19768fi
19769rm -f conftest.val
19770fi
19771{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19772echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19773
19774
19775
19776cat >>confdefs.h <<_ACEOF
19777#define SIZEOF_INT $ac_cv_sizeof_int
19778_ACEOF
19779
19780
19781{ echo "$as_me:$LINENO: checking for long int" >&5
19782echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
19783if test "${ac_cv_type_long_int+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785else
19786 cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h. */
19792$ac_includes_default
19793typedef long int ac__type_new_;
19794int
19795main ()
19796{
19797if ((ac__type_new_ *) 0)
19798 return 0;
19799if (sizeof (ac__type_new_))
19800 return 0;
19801 ;
19802 return 0;
19803}
19804_ACEOF
19805rm -f conftest.$ac_objext
19806if { (ac_try="$ac_compile"
19807case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_compile") 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest.$ac_objext; then
19822 ac_cv_type_long_int=yes
19823else
19824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 ac_cv_type_long_int=no
19828fi
19829
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831fi
19832{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
19833echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
19834
19835# The cast to long int works around a bug in the HP C Compiler
19836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19838# This bug is HP SR number 8606223364.
19839{ echo "$as_me:$LINENO: checking size of long int" >&5
19840echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
19841if test "${ac_cv_sizeof_long_int+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843else
19844 if test "$cross_compiling" = yes; then
19845 # Depending upon the size, compute the lo and hi bounds.
19846cat >conftest.$ac_ext <<_ACEOF
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852$ac_includes_default
19853 typedef long int ac__type_sizeof_;
19854int
19855main ()
19856{
19857static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19858test_array [0] = 0
19859
19860 ;
19861 return 0;
19862}
19863_ACEOF
19864rm -f conftest.$ac_objext
19865if { (ac_try="$ac_compile"
19866case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869esac
19870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_compile") 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest.$ac_objext; then
19881 ac_lo=0 ac_mid=0
19882 while :; do
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889$ac_includes_default
19890 typedef long int ac__type_sizeof_;
19891int
19892main ()
19893{
19894static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19895test_array [0] = 0
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (ac_try="$ac_compile"
19903case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_compile") 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest.$ac_objext; then
19918 ac_hi=$ac_mid; break
19919else
19920 echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_lo=`expr $ac_mid + 1`
19924 if test $ac_lo -le $ac_mid; then
19925 ac_lo= ac_hi=
19926 break
19927 fi
19928 ac_mid=`expr 2 '*' $ac_mid + 1`
19929fi
19930
19931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 done
19933else
19934 echo "$as_me: failed program was:" >&5
19935sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
19943$ac_includes_default
19944 typedef long int ac__type_sizeof_;
19945int
19946main ()
19947{
19948static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19949test_array [0] = 0
19950
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955rm -f conftest.$ac_objext
19956if { (ac_try="$ac_compile"
19957case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960esac
19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19963 ac_status=$?
19964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && {
19969 test -z "$ac_c_werror_flag" ||
19970 test ! -s conftest.err
19971 } && test -s conftest.$ac_objext; then
19972 ac_hi=-1 ac_mid=-1
19973 while :; do
19974 cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980$ac_includes_default
19981 typedef long int ac__type_sizeof_;
19982int
19983main ()
19984{
19985static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19986test_array [0] = 0
19987
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (ac_try="$ac_compile"
19994case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 ac_lo=$ac_mid; break
20010else
20011 echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_hi=`expr '(' $ac_mid ')' - 1`
20015 if test $ac_mid -le $ac_hi; then
20016 ac_lo= ac_hi=
20017 break
20018 fi
20019 ac_mid=`expr 2 '*' $ac_mid`
20020fi
20021
20022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 done
20024else
20025 echo "$as_me: failed program was:" >&5
20026sed 's/^/| /' conftest.$ac_ext >&5
20027
20028 ac_lo= ac_hi=
20029fi
20030
20031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20032fi
20033
20034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035# Binary search between lo and hi bounds.
20036while test "x$ac_lo" != "x$ac_hi"; do
20037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20038 cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h. */
20044$ac_includes_default
20045 typedef long int ac__type_sizeof_;
20046int
20047main ()
20048{
20049static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20050test_array [0] = 0
20051
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest.$ac_objext
20057if { (ac_try="$ac_compile"
20058case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest.$ac_objext; then
20073 ac_hi=$ac_mid
20074else
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ac_lo=`expr '(' $ac_mid ')' + 1`
20079fi
20080
20081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082done
20083case $ac_lo in
20084?*) ac_cv_sizeof_long_int=$ac_lo;;
20085'') if test "$ac_cv_type_long_int" = yes; then
20086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20087See \`config.log' for more details." >&5
20088echo "$as_me: error: cannot compute sizeof (long int)
20089See \`config.log' for more details." >&2;}
20090 { (exit 77); exit 77; }; }
20091 else
20092 ac_cv_sizeof_long_int=0
20093 fi ;;
20094esac
20095else
20096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
20102$ac_includes_default
20103 typedef long int ac__type_sizeof_;
20104static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20105static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20106#include <stdio.h>
20107#include <stdlib.h>
20108int
20109main ()
20110{
20111
20112 FILE *f = fopen ("conftest.val", "w");
20113 if (! f)
20114 return 1;
20115 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20116 {
20117 long int i = longval ();
20118 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20119 return 1;
20120 fprintf (f, "%ld\n", i);
20121 }
20122 else
20123 {
20124 unsigned long int i = ulongval ();
20125 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20126 return 1;
20127 fprintf (f, "%lu\n", i);
20128 }
20129 return ferror (f) || fclose (f) != 0;
20130
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135rm -f conftest$ac_exeext
20136if { (ac_try="$ac_link"
20137case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_sizeof_long_int=`cat conftest.val`
20156else
20157 echo "$as_me: program exited with status $ac_status" >&5
20158echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161( exit $ac_status )
20162if test "$ac_cv_type_long_int" = yes; then
20163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20164See \`config.log' for more details." >&5
20165echo "$as_me: error: cannot compute sizeof (long int)
20166See \`config.log' for more details." >&2;}
20167 { (exit 77); exit 77; }; }
20168 else
20169 ac_cv_sizeof_long_int=0
20170 fi
20171fi
20172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20173fi
20174rm -f conftest.val
20175fi
20176{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
20177echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
20178
20179
20180
20181cat >>confdefs.h <<_ACEOF
20182#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20183_ACEOF
20184
20185
20186{ echo "$as_me:$LINENO: checking for long long int" >&5
20187echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
20188if test "${ac_cv_type_long_long_int+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190else
20191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
20196/* end confdefs.h. */
20197$ac_includes_default
20198typedef long long int ac__type_new_;
20199int
20200main ()
20201{
20202if ((ac__type_new_ *) 0)
20203 return 0;
20204if (sizeof (ac__type_new_))
20205 return 0;
20206 ;
20207 return 0;
20208}
20209_ACEOF
20210rm -f conftest.$ac_objext
20211if { (ac_try="$ac_compile"
20212case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_compile") 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest.$ac_objext; then
20227 ac_cv_type_long_long_int=yes
20228else
20229 echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ac_cv_type_long_long_int=no
20233fi
20234
20235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236fi
20237{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20238echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
20239
20240# The cast to long int works around a bug in the HP C Compiler
20241# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20242# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20243# This bug is HP SR number 8606223364.
20244{ echo "$as_me:$LINENO: checking size of long long int" >&5
20245echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
20246if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248else
20249 if test "$cross_compiling" = yes; then
20250 # Depending upon the size, compute the lo and hi bounds.
20251cat >conftest.$ac_ext <<_ACEOF
20252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
20257$ac_includes_default
20258 typedef long long int ac__type_sizeof_;
20259int
20260main ()
20261{
20262static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20263test_array [0] = 0
20264
20265 ;
20266 return 0;
20267}
20268_ACEOF
20269rm -f conftest.$ac_objext
20270if { (ac_try="$ac_compile"
20271case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274esac
20275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_lo=0 ac_mid=0
20287 while :; do
20288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294$ac_includes_default
20295 typedef long long int ac__type_sizeof_;
20296int
20297main ()
20298{
20299static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20300test_array [0] = 0
20301
20302 ;
20303 return 0;
20304}
20305_ACEOF
20306rm -f conftest.$ac_objext
20307if { (ac_try="$ac_compile"
20308case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311esac
20312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20314 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } && {
20320 test -z "$ac_c_werror_flag" ||
20321 test ! -s conftest.err
20322 } && test -s conftest.$ac_objext; then
20323 ac_hi=$ac_mid; break
20324else
20325 echo "$as_me: failed program was:" >&5
20326sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_lo=`expr $ac_mid + 1`
20329 if test $ac_lo -le $ac_mid; then
20330 ac_lo= ac_hi=
20331 break
20332 fi
20333 ac_mid=`expr 2 '*' $ac_mid + 1`
20334fi
20335
20336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337 done
20338else
20339 echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 cat >conftest.$ac_ext <<_ACEOF
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348$ac_includes_default
20349 typedef long long int ac__type_sizeof_;
20350int
20351main ()
20352{
20353static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20354test_array [0] = 0
20355
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
20361if { (ac_try="$ac_compile"
20362case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20365esac
20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367 (eval "$ac_compile") 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } && {
20374 test -z "$ac_c_werror_flag" ||
20375 test ! -s conftest.err
20376 } && test -s conftest.$ac_objext; then
20377 ac_hi=-1 ac_mid=-1
20378 while :; do
20379 cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385$ac_includes_default
20386 typedef long long int ac__type_sizeof_;
20387int
20388main ()
20389{
20390static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20391test_array [0] = 0
20392
20393 ;
20394 return 0;
20395}
20396_ACEOF
20397rm -f conftest.$ac_objext
20398if { (ac_try="$ac_compile"
20399case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402esac
20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_compile") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest.$ac_objext; then
20414 ac_lo=$ac_mid; break
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_hi=`expr '(' $ac_mid ')' - 1`
20420 if test $ac_mid -le $ac_hi; then
20421 ac_lo= ac_hi=
20422 break
20423 fi
20424 ac_mid=`expr 2 '*' $ac_mid`
20425fi
20426
20427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 done
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ac_lo= ac_hi=
20434fi
20435
20436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20437fi
20438
20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440# Binary search between lo and hi bounds.
20441while test "x$ac_lo" != "x$ac_hi"; do
20442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20443 cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h. */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h. */
20449$ac_includes_default
20450 typedef long long int ac__type_sizeof_;
20451int
20452main ()
20453{
20454static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20455test_array [0] = 0
20456
20457 ;
20458 return 0;
20459}
20460_ACEOF
20461rm -f conftest.$ac_objext
20462if { (ac_try="$ac_compile"
20463case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466esac
20467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_hi=$ac_mid
20479else
20480 echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_lo=`expr '(' $ac_mid ')' + 1`
20484fi
20485
20486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487done
20488case $ac_lo in
20489?*) ac_cv_sizeof_long_long_int=$ac_lo;;
20490'') if test "$ac_cv_type_long_long_int" = yes; then
20491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20492See \`config.log' for more details." >&5
20493echo "$as_me: error: cannot compute sizeof (long long int)
20494See \`config.log' for more details." >&2;}
20495 { (exit 77); exit 77; }; }
20496 else
20497 ac_cv_sizeof_long_long_int=0
20498 fi ;;
20499esac
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
20502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
20507$ac_includes_default
20508 typedef long long int ac__type_sizeof_;
20509static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20510static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20511#include <stdio.h>
20512#include <stdlib.h>
20513int
20514main ()
20515{
20516
20517 FILE *f = fopen ("conftest.val", "w");
20518 if (! f)
20519 return 1;
20520 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20521 {
20522 long int i = longval ();
20523 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20524 return 1;
20525 fprintf (f, "%ld\n", i);
20526 }
20527 else
20528 {
20529 unsigned long int i = ulongval ();
20530 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20531 return 1;
20532 fprintf (f, "%lu\n", i);
20533 }
20534 return ferror (f) || fclose (f) != 0;
20535
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest$ac_exeext
20541if { (ac_try="$ac_link"
20542case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20545esac
20546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_link") 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_sizeof_long_long_int=`cat conftest.val`
20561else
20562 echo "$as_me: program exited with status $ac_status" >&5
20563echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566( exit $ac_status )
20567if test "$ac_cv_type_long_long_int" = yes; then
20568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20569See \`config.log' for more details." >&5
20570echo "$as_me: error: cannot compute sizeof (long long int)
20571See \`config.log' for more details." >&2;}
20572 { (exit 77); exit 77; }; }
20573 else
20574 ac_cv_sizeof_long_long_int=0
20575 fi
20576fi
20577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20578fi
20579rm -f conftest.val
20580fi
20581{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
20582echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
20583
20584
20585
20586cat >>confdefs.h <<_ACEOF
20587#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
20588_ACEOF
20589
20590
20591
20592# Sanity check long long for some platforms (AIX)
20593if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
20594 ac_cv_sizeof_long_long_int=0
20595fi
20596
20597# compute LLONG_MIN and LLONG_MAX if we don't know them.
20598if test -z "$have_llong_max"; then
20599 { echo "$as_me:$LINENO: checking for max value of long long" >&5
20600echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
20601 if test "$cross_compiling" = yes; then
20602
20603 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20604echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20605
20606
20607else
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614
20615#include <stdio.h>
20616/* Why is this so damn hard? */
20617#ifdef __GNUC__
20618# undef __GNUC__
20619#endif
20620#define __USE_ISOC99
20621#include <limits.h>
20622#define DATA "conftest.llminmax"
20623#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
20624
20625/*
20626 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
20627 * we do this the hard way.
20628 */
20629static int
20630fprint_ll(FILE *f, long long n)
20631{
20632 unsigned int i;
20633 int l[sizeof(long long) * 8];
20634
20635 if (n < 0)
20636 if (fprintf(f, "-") < 0)
20637 return -1;
20638 for (i = 0; n != 0; i++) {
20639 l[i] = my_abs(n % 10);
20640 n /= 10;
20641 }
20642 do {
20643 if (fprintf(f, "%d", l[--i]) < 0)
20644 return -1;
20645 } while (i != 0);
20646 if (fprintf(f, " ") < 0)
20647 return -1;
20648 return 0;
20649}
20650
20651int main(void) {
20652 FILE *f;
20653 long long i, llmin, llmax = 0;
20654
20655 if((f = fopen(DATA,"w")) == NULL)
20656 exit(1);
20657
20658#if defined(LLONG_MIN) && defined(LLONG_MAX)
20659 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
20660 llmin = LLONG_MIN;
20661 llmax = LLONG_MAX;
20662#else
20663 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
20664 /* This will work on one's complement and two's complement */
20665 for (i = 1; i > llmax; i <<= 1, i++)
20666 llmax = i;
20667 llmin = llmax + 1LL; /* wrap */
20668#endif
20669
20670 /* Sanity check */
20671 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
20672 || llmax - 1 > llmax || llmin == llmax || llmin == 0
20673 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
20674 fprintf(f, "unknown unknown\n");
20675 exit(2);
20676 }
20677
20678 if (fprint_ll(f, llmin) < 0)
20679 exit(3);
20680 if (fprint_ll(f, llmax) < 0)
20681 exit(4);
20682 if (fclose(f) < 0)
20683 exit(5);
20684 exit(0);
20685}
20686
20687_ACEOF
20688rm -f conftest$ac_exeext
20689if { (ac_try="$ac_link"
20690case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693esac
20694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702esac
20703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708
20709 llong_min=`$AWK '{print $1}' conftest.llminmax`
20710 llong_max=`$AWK '{print $2}' conftest.llminmax`
20711
20712 { echo "$as_me:$LINENO: result: $llong_max" >&5
20713echo "${ECHO_T}$llong_max" >&6; }
20714
20715cat >>confdefs.h <<_ACEOF
20716#define LLONG_MAX ${llong_max}LL
20717_ACEOF
20718
20719 { echo "$as_me:$LINENO: checking for min value of long long" >&5
20720echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
20721 { echo "$as_me:$LINENO: result: $llong_min" >&5
20722echo "${ECHO_T}$llong_min" >&6; }
20723
20724cat >>confdefs.h <<_ACEOF
20725#define LLONG_MIN ${llong_min}LL
20726_ACEOF
20727
20728
20729else
20730 echo "$as_me: program exited with status $ac_status" >&5
20731echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
20734( exit $ac_status )
20735
20736 { echo "$as_me:$LINENO: result: not found" >&5
20737echo "${ECHO_T}not found" >&6; }
20738
20739fi
20740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20741fi
20742
20743
20744fi
20745
20746
20747# More checks for data types
20748{ echo "$as_me:$LINENO: checking for u_int type" >&5
20749echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
20750if test "${ac_cv_have_u_int+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20752else
20753
20754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
20760 #include <sys/types.h>
20761int
20762main ()
20763{
20764 u_int a; a = 1;
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769rm -f conftest.$ac_objext
20770if { (ac_try="$ac_compile"
20771case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774esac
20775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_compile") 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest.$ac_objext; then
20786 ac_cv_have_u_int="yes"
20787else
20788 echo "$as_me: failed program was:" >&5
20789sed 's/^/| /' conftest.$ac_ext >&5
20790
20791 ac_cv_have_u_int="no"
20792
20793fi
20794
20795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796
20797fi
20798{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
20799echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
20800if test "x$ac_cv_have_u_int" = "xyes" ; then
20801
20802cat >>confdefs.h <<\_ACEOF
20803#define HAVE_U_INT 1
20804_ACEOF
20805
20806 have_u_int=1
20807fi
20808
20809{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
20810echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
20811if test "${ac_cv_have_intxx_t+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813else
20814
20815 cat >conftest.$ac_ext <<_ACEOF
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
20821 #include <sys/types.h>
20822int
20823main ()
20824{
20825 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20826 ;
20827 return 0;
20828}
20829_ACEOF
20830rm -f conftest.$ac_objext
20831if { (ac_try="$ac_compile"
20832case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835esac
20836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_compile") 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest.$ac_objext; then
20847 ac_cv_have_intxx_t="yes"
20848else
20849 echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 ac_cv_have_intxx_t="no"
20853
20854fi
20855
20856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857
20858fi
20859{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
20860echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
20861if test "x$ac_cv_have_intxx_t" = "xyes" ; then
20862
20863cat >>confdefs.h <<\_ACEOF
20864#define HAVE_INTXX_T 1
20865_ACEOF
20866
20867 have_intxx_t=1
20868fi
20869
20870if (test -z "$have_intxx_t" && \
20871 test "x$ac_cv_header_stdint_h" = "xyes")
20872then
20873 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
20874echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
20875 cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
20881 #include <stdint.h>
20882int
20883main ()
20884{
20885 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (ac_try="$ac_compile"
20892case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_compile") 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest.$ac_objext; then
20907
20908 cat >>confdefs.h <<\_ACEOF
20909#define HAVE_INTXX_T 1
20910_ACEOF
20911
20912 { echo "$as_me:$LINENO: result: yes" >&5
20913echo "${ECHO_T}yes" >&6; }
20914
20915else
20916 echo "$as_me: failed program was:" >&5
20917sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 { echo "$as_me:$LINENO: result: no" >&5
20920echo "${ECHO_T}no" >&6; }
20921
20922fi
20923
20924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925fi
20926
20927{ echo "$as_me:$LINENO: checking for int64_t type" >&5
20928echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
20929if test "${ac_cv_have_int64_t+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20931else
20932
20933 cat >conftest.$ac_ext <<_ACEOF
20934/* confdefs.h. */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h. */
20939
20940#include <sys/types.h>
20941#ifdef HAVE_STDINT_H
20942# include <stdint.h>
20943#endif
20944#include <sys/socket.h>
20945#ifdef HAVE_SYS_BITYPES_H
20946# include <sys/bitypes.h>
20947#endif
20948
20949int
20950main ()
20951{
20952 int64_t a; a = 1;
20953 ;
20954 return 0;
20955}
20956_ACEOF
20957rm -f conftest.$ac_objext
20958if { (ac_try="$ac_compile"
20959case "(($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_compile") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_cv_have_int64_t="yes"
20975else
20976 echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979 ac_cv_have_int64_t="no"
20980
20981fi
20982
20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984
20985fi
20986{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
20987echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
20988if test "x$ac_cv_have_int64_t" = "xyes" ; then
20989
20990cat >>confdefs.h <<\_ACEOF
20991#define HAVE_INT64_T 1
20992_ACEOF
20993
20994fi
20995
20996{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
20997echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
20998if test "${ac_cv_have_u_intxx_t+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001
21002 cat >conftest.$ac_ext <<_ACEOF
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008 #include <sys/types.h>
21009int
21010main ()
21011{
21012 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21013 ;
21014 return 0;
21015}
21016_ACEOF
21017rm -f conftest.$ac_objext
21018if { (ac_try="$ac_compile"
21019case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022esac
21023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_compile") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest.$ac_objext; then
21034 ac_cv_have_u_intxx_t="yes"
21035else
21036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 ac_cv_have_u_intxx_t="no"
21040
21041fi
21042
21043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044
21045fi
21046{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
21047echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
21048if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
21049
21050cat >>confdefs.h <<\_ACEOF
21051#define HAVE_U_INTXX_T 1
21052_ACEOF
21053
21054 have_u_intxx_t=1
21055fi
21056
21057if test -z "$have_u_intxx_t" ; then
21058 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
21059echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
21060 cat >conftest.$ac_ext <<_ACEOF
21061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
21066 #include <sys/socket.h>
21067int
21068main ()
21069{
21070 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21071 ;
21072 return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext
21076if { (ac_try="$ac_compile"
21077case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080esac
21081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092
21093 cat >>confdefs.h <<\_ACEOF
21094#define HAVE_U_INTXX_T 1
21095_ACEOF
21096
21097 { echo "$as_me:$LINENO: result: yes" >&5
21098echo "${ECHO_T}yes" >&6; }
21099
21100else
21101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 { echo "$as_me:$LINENO: result: no" >&5
21105echo "${ECHO_T}no" >&6; }
21106
21107fi
21108
21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110fi
21111
21112{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
21113echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
21114if test "${ac_cv_have_u_int64_t+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21116else
21117
21118 cat >conftest.$ac_ext <<_ACEOF
21119/* confdefs.h. */
21120_ACEOF
21121cat confdefs.h >>conftest.$ac_ext
21122cat >>conftest.$ac_ext <<_ACEOF
21123/* end confdefs.h. */
21124 #include <sys/types.h>
21125int
21126main ()
21127{
21128 u_int64_t a; a = 1;
21129 ;
21130 return 0;
21131}
21132_ACEOF
21133rm -f conftest.$ac_objext
21134if { (ac_try="$ac_compile"
21135case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138esac
21139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.$ac_objext; then
21150 ac_cv_have_u_int64_t="yes"
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_cv_have_u_int64_t="no"
21156
21157fi
21158
21159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160
21161fi
21162{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
21163echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
21164if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
21165
21166cat >>confdefs.h <<\_ACEOF
21167#define HAVE_U_INT64_T 1
21168_ACEOF
21169
21170 have_u_int64_t=1
21171fi
21172
21173if test -z "$have_u_int64_t" ; then
21174 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
21175echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
21176 cat >conftest.$ac_ext <<_ACEOF
21177/* confdefs.h. */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h. */
21182 #include <sys/bitypes.h>
21183int
21184main ()
21185{
21186 u_int64_t a; a = 1
21187 ;
21188 return 0;
21189}
21190_ACEOF
21191rm -f conftest.$ac_objext
21192if { (ac_try="$ac_compile"
21193case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196esac
21197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208
21209 cat >>confdefs.h <<\_ACEOF
21210#define HAVE_U_INT64_T 1
21211_ACEOF
21212
21213 { echo "$as_me:$LINENO: result: yes" >&5
21214echo "${ECHO_T}yes" >&6; }
21215
21216else
21217 echo "$as_me: failed program was:" >&5
21218sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 { echo "$as_me:$LINENO: result: no" >&5
21221echo "${ECHO_T}no" >&6; }
21222
21223fi
21224
21225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226fi
21227
21228if test -z "$have_u_intxx_t" ; then
21229 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
21230echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
21231if test "${ac_cv_have_uintxx_t+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233else
21234
21235 cat >conftest.$ac_ext <<_ACEOF
21236/* confdefs.h. */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
21240/* end confdefs.h. */
21241
21242#include <sys/types.h>
21243
21244int
21245main ()
21246{
21247 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (ac_try="$ac_compile"
21254case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21257esac
21258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_compile") 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest.$ac_objext; then
21269 ac_cv_have_uintxx_t="yes"
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 ac_cv_have_uintxx_t="no"
21275
21276fi
21277
21278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279
21280fi
21281{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
21282echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
21283 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
21284
21285cat >>confdefs.h <<\_ACEOF
21286#define HAVE_UINTXX_T 1
21287_ACEOF
21288
21289 fi
21290fi
21291
21292if test -z "$have_uintxx_t" ; then
21293 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
21294echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h. */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h. */
21301 #include <stdint.h>
21302int
21303main ()
21304{
21305 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext
21311if { (ac_try="$ac_compile"
21312case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315esac
21316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_compile") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest.$ac_objext; then
21327
21328 cat >>confdefs.h <<\_ACEOF
21329#define HAVE_UINTXX_T 1
21330_ACEOF
21331
21332 { echo "$as_me:$LINENO: result: yes" >&5
21333echo "${ECHO_T}yes" >&6; }
21334
21335else
21336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 { echo "$as_me:$LINENO: result: no" >&5
21340echo "${ECHO_T}no" >&6; }
21341
21342fi
21343
21344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345fi
21346
21347if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
21348 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
21349then
21350 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
21351echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21353/* confdefs.h. */
21354_ACEOF
21355cat confdefs.h >>conftest.$ac_ext
21356cat >>conftest.$ac_ext <<_ACEOF
21357/* end confdefs.h. */
21358
21359#include <sys/bitypes.h>
21360
21361int
21362main ()
21363{
21364
21365 int8_t a; int16_t b; int32_t c;
21366 u_int8_t e; u_int16_t f; u_int32_t g;
21367 a = b = c = e = f = g = 1;
21368
21369 ;
21370 return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (ac_try="$ac_compile"
21375case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378esac
21379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21390
21391 cat >>confdefs.h <<\_ACEOF
21392#define HAVE_U_INTXX_T 1
21393_ACEOF
21394
21395 cat >>confdefs.h <<\_ACEOF
21396#define HAVE_INTXX_T 1
21397_ACEOF
21398
21399 { echo "$as_me:$LINENO: result: yes" >&5
21400echo "${ECHO_T}yes" >&6; }
21401
21402else
21403 echo "$as_me: failed program was:" >&5
21404sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 { echo "$as_me:$LINENO: result: no" >&5
21407echo "${ECHO_T}no" >&6; }
21408
21409fi
21410
21411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412fi
21413
21414
21415{ echo "$as_me:$LINENO: checking for u_char" >&5
21416echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
21417if test "${ac_cv_have_u_char+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21419else
21420
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 <sys/types.h>
21429
21430int
21431main ()
21432{
21433 u_char foo; foo = 125;
21434 ;
21435 return 0;
21436}
21437_ACEOF
21438rm -f conftest.$ac_objext
21439if { (ac_try="$ac_compile"
21440case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21443esac
21444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21455 ac_cv_have_u_char="yes"
21456else
21457 echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 ac_cv_have_u_char="no"
21461
21462fi
21463
21464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465
21466fi
21467{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
21468echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
21469if test "x$ac_cv_have_u_char" = "xyes" ; then
21470
21471cat >>confdefs.h <<\_ACEOF
21472#define HAVE_U_CHAR 1
21473_ACEOF
21474
21475fi
21476
21477
21478 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21479echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21480if test "${ac_cv_type_socklen_t+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482else
21483 cat >conftest.$ac_ext <<_ACEOF
21484/* confdefs.h. */
21485_ACEOF
21486cat confdefs.h >>conftest.$ac_ext
21487cat >>conftest.$ac_ext <<_ACEOF
21488/* end confdefs.h. */
21489#include <sys/types.h>
21490#include <sys/socket.h>
21491
21492typedef socklen_t ac__type_new_;
21493int
21494main ()
21495{
21496if ((ac__type_new_ *) 0)
21497 return 0;
21498if (sizeof (ac__type_new_))
21499 return 0;
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext
21505if { (ac_try="$ac_compile"
21506case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509esac
21510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_cv_type_socklen_t=yes
21522else
21523 echo "$as_me: failed program was:" >&5
21524sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ac_cv_type_socklen_t=no
21527fi
21528
21529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530fi
21531{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21532echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21533if test $ac_cv_type_socklen_t = yes; then
21534 :
21535else
21536
21537 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
21538echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
21539 if test "${curl_cv_socklen_t_equiv+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542
21543 # Systems have either "struct sockaddr *" or
21544 # "void *" as the second argument to getpeername
21545 curl_cv_socklen_t_equiv=
21546 for arg2 in "struct sockaddr" void; do
21547 for t in int size_t unsigned long "unsigned long"; do
21548 cat >conftest.$ac_ext <<_ACEOF
21549/* confdefs.h. */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h. */
21554
21555 #include <sys/types.h>
21556 #include <sys/socket.h>
21557
21558 int getpeername (int, $arg2 *, $t *);
21559
21560int
21561main ()
21562{
21563
21564 $t len;
21565 getpeername(0,0,&len);
21566
21567 ;
21568 return 0;
21569}
21570_ACEOF
21571rm -f conftest.$ac_objext
21572if { (ac_try="$ac_compile"
21573case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21576esac
21577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21588
21589 curl_cv_socklen_t_equiv="$t"
21590 break
21591
21592else
21593 echo "$as_me: failed program was:" >&5
21594sed 's/^/| /' conftest.$ac_ext >&5
21595
21596
21597fi
21598
21599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 done
21601 done
21602
21603 if test "x$curl_cv_socklen_t_equiv" = x; then
21604 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
21605echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
21606 { (exit 1); exit 1; }; }
21607 fi
21608
21609fi
21610
21611 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
21612echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
21613
21614cat >>confdefs.h <<_ACEOF
21615#define socklen_t $curl_cv_socklen_t_equiv
21616_ACEOF
21617
21618fi
21619
21620
21621
21622{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21623echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
21624if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626else
21627 cat >conftest.$ac_ext <<_ACEOF
21628/* confdefs.h. */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h. */
21633#include <signal.h>
21634
21635typedef sig_atomic_t ac__type_new_;
21636int
21637main ()
21638{
21639if ((ac__type_new_ *) 0)
21640 return 0;
21641if (sizeof (ac__type_new_))
21642 return 0;
21643 ;
21644 return 0;
21645}
21646_ACEOF
21647rm -f conftest.$ac_objext
21648if { (ac_try="$ac_compile"
21649case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652esac
21653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_compile") 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest.$ac_objext; then
21664 ac_cv_type_sig_atomic_t=yes
21665else
21666 echo "$as_me: failed program was:" >&5
21667sed 's/^/| /' conftest.$ac_ext >&5
21668
21669 ac_cv_type_sig_atomic_t=no
21670fi
21671
21672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673fi
21674{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21675echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
21676if test $ac_cv_type_sig_atomic_t = yes; then
21677
21678cat >>confdefs.h <<_ACEOF
21679#define HAVE_SIG_ATOMIC_T 1
21680_ACEOF
21681
21682
21683fi
21684
21685{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
21686echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
21687if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690 cat >conftest.$ac_ext <<_ACEOF
21691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h. */
21696
21697#include <sys/types.h>
21698#ifdef HAVE_SYS_BITYPES_H
21699#include <sys/bitypes.h>
21700#endif
21701#ifdef HAVE_SYS_STATFS_H
21702#include <sys/statfs.h>
21703#endif
21704#ifdef HAVE_SYS_STATVFS_H
21705#include <sys/statvfs.h>
21706#endif
21707
21708
21709typedef fsblkcnt_t ac__type_new_;
21710int
21711main ()
21712{
21713if ((ac__type_new_ *) 0)
21714 return 0;
21715if (sizeof (ac__type_new_))
21716 return 0;
21717 ;
21718 return 0;
21719}
21720_ACEOF
21721rm -f conftest.$ac_objext
21722if { (ac_try="$ac_compile"
21723case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726esac
21727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21738 ac_cv_type_fsblkcnt_t=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_cv_type_fsblkcnt_t=no
21744fi
21745
21746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747fi
21748{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
21749echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
21750if test $ac_cv_type_fsblkcnt_t = yes; then
21751
21752cat >>confdefs.h <<_ACEOF
21753#define HAVE_FSBLKCNT_T 1
21754_ACEOF
21755
21756
21757fi
21758{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
21759echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
21760if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762else
21763 cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h. */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h. */
21769
21770#include <sys/types.h>
21771#ifdef HAVE_SYS_BITYPES_H
21772#include <sys/bitypes.h>
21773#endif
21774#ifdef HAVE_SYS_STATFS_H
21775#include <sys/statfs.h>
21776#endif
21777#ifdef HAVE_SYS_STATVFS_H
21778#include <sys/statvfs.h>
21779#endif
21780
21781
21782typedef fsfilcnt_t ac__type_new_;
21783int
21784main ()
21785{
21786if ((ac__type_new_ *) 0)
21787 return 0;
21788if (sizeof (ac__type_new_))
21789 return 0;
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext
21795if { (ac_try="$ac_compile"
21796case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21811 ac_cv_type_fsfilcnt_t=yes
21812else
21813 echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ac_cv_type_fsfilcnt_t=no
21817fi
21818
21819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820fi
21821{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
21822echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
21823if test $ac_cv_type_fsfilcnt_t = yes; then
21824
21825cat >>confdefs.h <<_ACEOF
21826#define HAVE_FSFILCNT_T 1
21827_ACEOF
21828
21829
21830fi
21831
21832
21833{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
21834echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
21835if test "${ac_cv_type_in_addr_t+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837else
21838 cat >conftest.$ac_ext <<_ACEOF
21839/* confdefs.h. */
21840_ACEOF
21841cat confdefs.h >>conftest.$ac_ext
21842cat >>conftest.$ac_ext <<_ACEOF
21843/* end confdefs.h. */
21844#include <sys/types.h>
21845#include <netinet/in.h>
21846
21847typedef in_addr_t ac__type_new_;
21848int
21849main ()
21850{
21851if ((ac__type_new_ *) 0)
21852 return 0;
21853if (sizeof (ac__type_new_))
21854 return 0;
21855 ;
21856 return 0;
21857}
21858_ACEOF
21859rm -f conftest.$ac_objext
21860if { (ac_try="$ac_compile"
21861case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864esac
21865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_cv_type_in_addr_t=yes
21877else
21878 echo "$as_me: failed program was:" >&5
21879sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 ac_cv_type_in_addr_t=no
21882fi
21883
21884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885fi
21886{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21887echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
21888if test $ac_cv_type_in_addr_t = yes; then
21889
21890cat >>confdefs.h <<_ACEOF
21891#define HAVE_IN_ADDR_T 1
21892_ACEOF
21893
21894
21895fi
21896
21897
21898{ echo "$as_me:$LINENO: checking for size_t" >&5
21899echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21900if test "${ac_cv_have_size_t+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21902else
21903
21904 cat >conftest.$ac_ext <<_ACEOF
21905/* confdefs.h. */
21906_ACEOF
21907cat confdefs.h >>conftest.$ac_ext
21908cat >>conftest.$ac_ext <<_ACEOF
21909/* end confdefs.h. */
21910
21911#include <sys/types.h>
21912
21913int
21914main ()
21915{
21916 size_t foo; foo = 1235;
21917 ;
21918 return 0;
21919}
21920_ACEOF
21921rm -f conftest.$ac_objext
21922if { (ac_try="$ac_compile"
21923case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926esac
21927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_cv_have_size_t="yes"
21939else
21940 echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ac_cv_have_size_t="no"
21944
21945fi
21946
21947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948
21949fi
21950{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
21951echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
21952if test "x$ac_cv_have_size_t" = "xyes" ; then
21953
21954cat >>confdefs.h <<\_ACEOF
21955#define HAVE_SIZE_T 1
21956_ACEOF
21957
21958fi
21959
21960{ echo "$as_me:$LINENO: checking for ssize_t" >&5
21961echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21962if test "${ac_cv_have_ssize_t+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964else
21965
21966 cat >conftest.$ac_ext <<_ACEOF
21967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
21972
21973#include <sys/types.h>
21974
21975int
21976main ()
21977{
21978 ssize_t foo; foo = 1235;
21979 ;
21980 return 0;
21981}
21982_ACEOF
21983rm -f conftest.$ac_objext
21984if { (ac_try="$ac_compile"
21985case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988esac
21989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22000 ac_cv_have_ssize_t="yes"
22001else
22002 echo "$as_me: failed program was:" >&5
22003sed 's/^/| /' conftest.$ac_ext >&5
22004
22005 ac_cv_have_ssize_t="no"
22006
22007fi
22008
22009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010
22011fi
22012{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
22013echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
22014if test "x$ac_cv_have_ssize_t" = "xyes" ; then
22015
22016cat >>confdefs.h <<\_ACEOF
22017#define HAVE_SSIZE_T 1
22018_ACEOF
22019
22020fi
22021
22022{ echo "$as_me:$LINENO: checking for clock_t" >&5
22023echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
22024if test "${ac_cv_have_clock_t+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22026else
22027
22028 cat >conftest.$ac_ext <<_ACEOF
22029/* confdefs.h. */
22030_ACEOF
22031cat confdefs.h >>conftest.$ac_ext
22032cat >>conftest.$ac_ext <<_ACEOF
22033/* end confdefs.h. */
22034
22035#include <time.h>
22036
22037int
22038main ()
22039{
22040 clock_t foo; foo = 1235;
22041 ;
22042 return 0;
22043}
22044_ACEOF
22045rm -f conftest.$ac_objext
22046if { (ac_try="$ac_compile"
22047case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050esac
22051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_compile") 2>conftest.er1
22053 ac_status=$?
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest.$ac_objext; then
22062 ac_cv_have_clock_t="yes"
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067 ac_cv_have_clock_t="no"
22068
22069fi
22070
22071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072
22073fi
22074{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
22075echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
22076if test "x$ac_cv_have_clock_t" = "xyes" ; then
22077
22078cat >>confdefs.h <<\_ACEOF
22079#define HAVE_CLOCK_T 1
22080_ACEOF
22081
22082fi
22083
22084{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
22085echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22086if test "${ac_cv_have_sa_family_t+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088else
22089
22090 cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22096
22097#include <sys/types.h>
22098#include <sys/socket.h>
22099
22100int
22101main ()
22102{
22103 sa_family_t foo; foo = 1235;
22104 ;
22105 return 0;
22106}
22107_ACEOF
22108rm -f conftest.$ac_objext
22109if { (ac_try="$ac_compile"
22110case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113esac
22114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_compile") 2>conftest.er1
22116 ac_status=$?
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest.$ac_objext; then
22125 ac_cv_have_sa_family_t="yes"
22126else
22127 echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130 cat >conftest.$ac_ext <<_ACEOF
22131/* confdefs.h. */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h. */
22136
22137#include <sys/types.h>
22138#include <sys/socket.h>
22139#include <netinet/in.h>
22140
22141int
22142main ()
22143{
22144 sa_family_t foo; foo = 1235;
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149rm -f conftest.$ac_objext
22150if { (ac_try="$ac_compile"
22151case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22154esac
22155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_compile") 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest.$ac_objext; then
22166 ac_cv_have_sa_family_t="yes"
22167else
22168 echo "$as_me: failed program was:" >&5
22169sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_cv_have_sa_family_t="no"
22172
22173fi
22174
22175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176
22177fi
22178
22179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180
22181fi
22182{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
22183echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
22184if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
22185
22186cat >>confdefs.h <<\_ACEOF
22187#define HAVE_SA_FAMILY_T 1
22188_ACEOF
22189
22190fi
22191
22192{ echo "$as_me:$LINENO: checking for pid_t" >&5
22193echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22194if test "${ac_cv_have_pid_t+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22196else
22197
22198 cat >conftest.$ac_ext <<_ACEOF
22199/* confdefs.h. */
22200_ACEOF
22201cat confdefs.h >>conftest.$ac_ext
22202cat >>conftest.$ac_ext <<_ACEOF
22203/* end confdefs.h. */
22204
22205#include <sys/types.h>
22206
22207int
22208main ()
22209{
22210 pid_t foo; foo = 1235;
22211 ;
22212 return 0;
22213}
22214_ACEOF
22215rm -f conftest.$ac_objext
22216if { (ac_try="$ac_compile"
22217case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220esac
22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22223 ac_status=$?
22224 grep -v '^ *+' conftest.er1 >conftest.err
22225 rm -f conftest.er1
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest.$ac_objext; then
22232 ac_cv_have_pid_t="yes"
22233else
22234 echo "$as_me: failed program was:" >&5
22235sed 's/^/| /' conftest.$ac_ext >&5
22236
22237 ac_cv_have_pid_t="no"
22238
22239fi
22240
22241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242
22243fi
22244{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
22245echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
22246if test "x$ac_cv_have_pid_t" = "xyes" ; then
22247
22248cat >>confdefs.h <<\_ACEOF
22249#define HAVE_PID_T 1
22250_ACEOF
22251
22252fi
22253
22254{ echo "$as_me:$LINENO: checking for mode_t" >&5
22255echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22256if test "${ac_cv_have_mode_t+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258else
22259
22260 cat >conftest.$ac_ext <<_ACEOF
22261/* confdefs.h. */
22262_ACEOF
22263cat confdefs.h >>conftest.$ac_ext
22264cat >>conftest.$ac_ext <<_ACEOF
22265/* end confdefs.h. */
22266
22267#include <sys/types.h>
22268
22269int
22270main ()
22271{
22272 mode_t foo; foo = 1235;
22273 ;
22274 return 0;
22275}
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (ac_try="$ac_compile"
22279case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22285 ac_status=$?
22286 grep -v '^ *+' conftest.er1 >conftest.err
22287 rm -f conftest.er1
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22294 ac_cv_have_mode_t="yes"
22295else
22296 echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299 ac_cv_have_mode_t="no"
22300
22301fi
22302
22303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304
22305fi
22306{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
22307echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
22308if test "x$ac_cv_have_mode_t" = "xyes" ; then
22309
22310cat >>confdefs.h <<\_ACEOF
22311#define HAVE_MODE_T 1
22312_ACEOF
22313
22314fi
22315
22316
22317{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22318echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
22319if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321else
22322
22323 cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
22329
22330#include <sys/types.h>
22331#include <sys/socket.h>
22332
22333int
22334main ()
22335{
22336 struct sockaddr_storage s;
22337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest.$ac_objext
22342if { (ac_try="$ac_compile"
22343case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346esac
22347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_compile") 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && {
22355 test -z "$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 } && test -s conftest.$ac_objext; then
22358 ac_cv_have_struct_sockaddr_storage="yes"
22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
22363 ac_cv_have_struct_sockaddr_storage="no"
22364
22365fi
22366
22367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368
22369fi
22370{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
22371echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
22372if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
22373
22374cat >>confdefs.h <<\_ACEOF
22375#define HAVE_STRUCT_SOCKADDR_STORAGE 1
22376_ACEOF
22377
22378fi
22379
22380{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22381echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
22382if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22384else
22385
22386 cat >conftest.$ac_ext <<_ACEOF
22387/* confdefs.h. */
22388_ACEOF
22389cat confdefs.h >>conftest.$ac_ext
22390cat >>conftest.$ac_ext <<_ACEOF
22391/* end confdefs.h. */
22392
22393#include <sys/types.h>
22394#include <netinet/in.h>
22395
22396int
22397main ()
22398{
22399 struct sockaddr_in6 s; s.sin6_family = 0;
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext
22405if { (ac_try="$ac_compile"
22406case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409esac
22410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_cv_have_struct_sockaddr_in6="yes"
22422else
22423 echo "$as_me: failed program was:" >&5
22424sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_cv_have_struct_sockaddr_in6="no"
22427
22428fi
22429
22430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431
22432fi
22433{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
22434echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
22435if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
22436
22437cat >>confdefs.h <<\_ACEOF
22438#define HAVE_STRUCT_SOCKADDR_IN6 1
22439_ACEOF
22440
22441fi
22442
22443{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22444echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22445if test "${ac_cv_have_struct_in6_addr+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447else
22448
22449 cat >conftest.$ac_ext <<_ACEOF
22450/* confdefs.h. */
22451_ACEOF
22452cat confdefs.h >>conftest.$ac_ext
22453cat >>conftest.$ac_ext <<_ACEOF
22454/* end confdefs.h. */
22455
22456#include <sys/types.h>
22457#include <netinet/in.h>
22458
22459int
22460main ()
22461{
22462 struct in6_addr s; s.s6_addr[0] = 0;
22463 ;
22464 return 0;
22465}
22466_ACEOF
22467rm -f conftest.$ac_objext
22468if { (ac_try="$ac_compile"
22469case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472esac
22473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 ac_cv_have_struct_in6_addr="yes"
22485else
22486 echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ac_cv_have_struct_in6_addr="no"
22490
22491fi
22492
22493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494
22495fi
22496{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
22497echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
22498if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
22499
22500cat >>confdefs.h <<\_ACEOF
22501#define HAVE_STRUCT_IN6_ADDR 1
22502_ACEOF
22503
22504fi
22505
22506{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22507echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
22508if test "${ac_cv_have_struct_addrinfo+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22510else
22511
22512 cat >conftest.$ac_ext <<_ACEOF
22513/* confdefs.h. */
22514_ACEOF
22515cat confdefs.h >>conftest.$ac_ext
22516cat >>conftest.$ac_ext <<_ACEOF
22517/* end confdefs.h. */
22518
22519#include <sys/types.h>
22520#include <sys/socket.h>
22521#include <netdb.h>
22522
22523int
22524main ()
22525{
22526 struct addrinfo s; s.ai_flags = AI_PASSIVE;
22527 ;
22528 return 0;
22529}
22530_ACEOF
22531rm -f conftest.$ac_objext
22532if { (ac_try="$ac_compile"
22533case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22536esac
22537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_compile") 2>conftest.er1
22539 ac_status=$?
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest.$ac_objext; then
22548 ac_cv_have_struct_addrinfo="yes"
22549else
22550 echo "$as_me: failed program was:" >&5
22551sed 's/^/| /' conftest.$ac_ext >&5
22552
22553 ac_cv_have_struct_addrinfo="no"
22554
22555fi
22556
22557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558
22559fi
22560{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
22561echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
22562if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
22563
22564cat >>confdefs.h <<\_ACEOF
22565#define HAVE_STRUCT_ADDRINFO 1
22566_ACEOF
22567
22568fi
22569
22570{ echo "$as_me:$LINENO: checking for struct timeval" >&5
22571echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
22572if test "${ac_cv_have_struct_timeval+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22574else
22575
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 #include <sys/time.h>
22583int
22584main ()
22585{
22586 struct timeval tv; tv.tv_sec = 1;
22587 ;
22588 return 0;
22589}
22590_ACEOF
22591rm -f conftest.$ac_objext
22592if { (ac_try="$ac_compile"
22593case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596esac
22597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_cv_have_struct_timeval="yes"
22609else
22610 echo "$as_me: failed program was:" >&5
22611sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 ac_cv_have_struct_timeval="no"
22614
22615fi
22616
22617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618
22619fi
22620{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
22621echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
22622if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
22623
22624cat >>confdefs.h <<\_ACEOF
22625#define HAVE_STRUCT_TIMEVAL 1
22626_ACEOF
22627
22628 have_struct_timeval=1
22629fi
22630
22631{ echo "$as_me:$LINENO: checking for struct timespec" >&5
22632echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
22633if test "${ac_cv_type_struct_timespec+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635else
22636 cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642$ac_includes_default
22643typedef struct timespec ac__type_new_;
22644int
22645main ()
22646{
22647if ((ac__type_new_ *) 0)
22648 return 0;
22649if (sizeof (ac__type_new_))
22650 return 0;
22651 ;
22652 return 0;
22653}
22654_ACEOF
22655rm -f conftest.$ac_objext
22656if { (ac_try="$ac_compile"
22657case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22660esac
22661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_compile") 2>conftest.er1
22663 ac_status=$?
22664 grep -v '^ *+' conftest.er1 >conftest.err
22665 rm -f conftest.er1
22666 cat conftest.err >&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } && {
22669 test -z "$ac_c_werror_flag" ||
22670 test ! -s conftest.err
22671 } && test -s conftest.$ac_objext; then
22672 ac_cv_type_struct_timespec=yes
22673else
22674 echo "$as_me: failed program was:" >&5
22675sed 's/^/| /' conftest.$ac_ext >&5
22676
22677 ac_cv_type_struct_timespec=no
22678fi
22679
22680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681fi
22682{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
22683echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
22684if test $ac_cv_type_struct_timespec = yes; then
22685
22686cat >>confdefs.h <<_ACEOF
22687#define HAVE_STRUCT_TIMESPEC 1
22688_ACEOF
22689
22690
22691fi
22692
22693
22694# We need int64_t or else certian parts of the compile will fail.
22695if test "x$ac_cv_have_int64_t" = "xno" && \
22696 test "x$ac_cv_sizeof_long_int" != "x8" && \
22697 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
22698 echo "OpenSSH requires int64_t support. Contact your vendor or install"
22699 echo "an alternative compiler (I.E., GCC) before continuing."
22700 echo ""
22701 exit 1;
22702else
22703 if test "$cross_compiling" = yes; then
22704 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
22705echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
22706
22707else
22708 cat >conftest.$ac_ext <<_ACEOF
22709/* confdefs.h. */
22710_ACEOF
22711cat confdefs.h >>conftest.$ac_ext
22712cat >>conftest.$ac_ext <<_ACEOF
22713/* end confdefs.h. */
22714
22715#include <stdio.h>
22716#include <string.h>
22717#ifdef HAVE_SNPRINTF
22718main()
22719{
22720 char buf[50];
22721 char expected_out[50];
22722 int mazsize = 50 ;
22723#if (SIZEOF_LONG_INT == 8)
22724 long int num = 0x7fffffffffffffff;
22725#else
22726 long long num = 0x7fffffffffffffffll;
22727#endif
22728 strcpy(expected_out, "9223372036854775807");
22729 snprintf(buf, mazsize, "%lld", num);
22730 if(strcmp(buf, expected_out) != 0)
22731 exit(1);
22732 exit(0);
22733}
22734#else
22735main() { exit(0); }
22736#endif
22737
22738_ACEOF
22739rm -f conftest$ac_exeext
22740if { (ac_try="$ac_link"
22741case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744esac
22745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_link") 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22750 { (case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22753esac
22754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_try") 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 true
22760else
22761 echo "$as_me: program exited with status $ac_status" >&5
22762echo "$as_me: failed program was:" >&5
22763sed 's/^/| /' conftest.$ac_ext >&5
22764
22765( exit $ac_status )
22766 cat >>confdefs.h <<\_ACEOF
22767#define BROKEN_SNPRINTF 1
22768_ACEOF
22769
22770fi
22771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22772fi
22773
22774
22775fi
22776
22777
22778# look for field 'ut_host' in header 'utmp.h'
22779 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22780 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22781 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
22782echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
22783 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785else
22786
22787 cat >conftest.$ac_ext <<_ACEOF
22788/* confdefs.h. */
22789_ACEOF
22790cat confdefs.h >>conftest.$ac_ext
22791cat >>conftest.$ac_ext <<_ACEOF
22792/* end confdefs.h. */
22793#include <utmp.h>
22794
22795_ACEOF
22796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22797 $EGREP "ut_host" >/dev/null 2>&1; then
22798 eval "$ossh_varname=yes"
22799else
22800 eval "$ossh_varname=no"
22801fi
22802rm -f conftest*
22803
22804fi
22805
22806 ossh_result=`eval 'echo $'"$ossh_varname"`
22807 if test -n "`echo $ossh_varname`"; then
22808 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22809echo "${ECHO_T}$ossh_result" >&6; }
22810 if test "x$ossh_result" = "xyes"; then
22811
22812cat >>confdefs.h <<\_ACEOF
22813#define HAVE_HOST_IN_UTMP 1
22814_ACEOF
22815
22816 fi
22817 else
22818 { echo "$as_me:$LINENO: result: no" >&5
22819echo "${ECHO_T}no" >&6; }
22820 fi
22821
22822
22823# look for field 'ut_host' in header 'utmpx.h'
22824 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22825 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22826 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
22827echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
22828 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22830else
22831
22832 cat >conftest.$ac_ext <<_ACEOF
22833/* confdefs.h. */
22834_ACEOF
22835cat confdefs.h >>conftest.$ac_ext
22836cat >>conftest.$ac_ext <<_ACEOF
22837/* end confdefs.h. */
22838#include <utmpx.h>
22839
22840_ACEOF
22841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22842 $EGREP "ut_host" >/dev/null 2>&1; then
22843 eval "$ossh_varname=yes"
22844else
22845 eval "$ossh_varname=no"
22846fi
22847rm -f conftest*
22848
22849fi
22850
22851 ossh_result=`eval 'echo $'"$ossh_varname"`
22852 if test -n "`echo $ossh_varname`"; then
22853 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22854echo "${ECHO_T}$ossh_result" >&6; }
22855 if test "x$ossh_result" = "xyes"; then
22856
22857cat >>confdefs.h <<\_ACEOF
22858#define HAVE_HOST_IN_UTMPX 1
22859_ACEOF
22860
22861 fi
22862 else
22863 { echo "$as_me:$LINENO: result: no" >&5
22864echo "${ECHO_T}no" >&6; }
22865 fi
22866
22867
22868# look for field 'syslen' in header 'utmpx.h'
22869 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22870 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
22871 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
22872echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
22873 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22875else
22876
22877 cat >conftest.$ac_ext <<_ACEOF
22878/* confdefs.h. */
22879_ACEOF
22880cat confdefs.h >>conftest.$ac_ext
22881cat >>conftest.$ac_ext <<_ACEOF
22882/* end confdefs.h. */
22883#include <utmpx.h>
22884
22885_ACEOF
22886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22887 $EGREP "syslen" >/dev/null 2>&1; then
22888 eval "$ossh_varname=yes"
22889else
22890 eval "$ossh_varname=no"
22891fi
22892rm -f conftest*
22893
22894fi
22895
22896 ossh_result=`eval 'echo $'"$ossh_varname"`
22897 if test -n "`echo $ossh_varname`"; then
22898 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22899echo "${ECHO_T}$ossh_result" >&6; }
22900 if test "x$ossh_result" = "xyes"; then
22901
22902cat >>confdefs.h <<\_ACEOF
22903#define HAVE_SYSLEN_IN_UTMPX 1
22904_ACEOF
22905
22906 fi
22907 else
22908 { echo "$as_me:$LINENO: result: no" >&5
22909echo "${ECHO_T}no" >&6; }
22910 fi
22911
22912
22913# look for field 'ut_pid' in header 'utmp.h'
22914 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22915 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
22916 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
22917echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
22918 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22919 echo $ECHO_N "(cached) $ECHO_C" >&6
22920else
22921
22922 cat >conftest.$ac_ext <<_ACEOF
22923/* confdefs.h. */
22924_ACEOF
22925cat confdefs.h >>conftest.$ac_ext
22926cat >>conftest.$ac_ext <<_ACEOF
22927/* end confdefs.h. */
22928#include <utmp.h>
22929
22930_ACEOF
22931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22932 $EGREP "ut_pid" >/dev/null 2>&1; then
22933 eval "$ossh_varname=yes"
22934else
22935 eval "$ossh_varname=no"
22936fi
22937rm -f conftest*
22938
22939fi
22940
22941 ossh_result=`eval 'echo $'"$ossh_varname"`
22942 if test -n "`echo $ossh_varname`"; then
22943 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22944echo "${ECHO_T}$ossh_result" >&6; }
22945 if test "x$ossh_result" = "xyes"; then
22946
22947cat >>confdefs.h <<\_ACEOF
22948#define HAVE_PID_IN_UTMP 1
22949_ACEOF
22950
22951 fi
22952 else
22953 { echo "$as_me:$LINENO: result: no" >&5
22954echo "${ECHO_T}no" >&6; }
22955 fi
22956
22957
22958# look for field 'ut_type' in header 'utmp.h'
22959 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22960 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22961 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
22962echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
22963 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965else
22966
22967 cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
22973#include <utmp.h>
22974
22975_ACEOF
22976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22977 $EGREP "ut_type" >/dev/null 2>&1; then
22978 eval "$ossh_varname=yes"
22979else
22980 eval "$ossh_varname=no"
22981fi
22982rm -f conftest*
22983
22984fi
22985
22986 ossh_result=`eval 'echo $'"$ossh_varname"`
22987 if test -n "`echo $ossh_varname`"; then
22988 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22989echo "${ECHO_T}$ossh_result" >&6; }
22990 if test "x$ossh_result" = "xyes"; then
22991
22992cat >>confdefs.h <<\_ACEOF
22993#define HAVE_TYPE_IN_UTMP 1
22994_ACEOF
22995
22996 fi
22997 else
22998 { echo "$as_me:$LINENO: result: no" >&5
22999echo "${ECHO_T}no" >&6; }
23000 fi
23001
23002
23003# look for field 'ut_type' in header 'utmpx.h'
23004 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23005 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23006 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
23007echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
23008 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010else
23011
23012 cat >conftest.$ac_ext <<_ACEOF
23013/* confdefs.h. */
23014_ACEOF
23015cat confdefs.h >>conftest.$ac_ext
23016cat >>conftest.$ac_ext <<_ACEOF
23017/* end confdefs.h. */
23018#include <utmpx.h>
23019
23020_ACEOF
23021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23022 $EGREP "ut_type" >/dev/null 2>&1; then
23023 eval "$ossh_varname=yes"
23024else
23025 eval "$ossh_varname=no"
23026fi
23027rm -f conftest*
23028
23029fi
23030
23031 ossh_result=`eval 'echo $'"$ossh_varname"`
23032 if test -n "`echo $ossh_varname`"; then
23033 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23034echo "${ECHO_T}$ossh_result" >&6; }
23035 if test "x$ossh_result" = "xyes"; then
23036
23037cat >>confdefs.h <<\_ACEOF
23038#define HAVE_TYPE_IN_UTMPX 1
23039_ACEOF
23040
23041 fi
23042 else
23043 { echo "$as_me:$LINENO: result: no" >&5
23044echo "${ECHO_T}no" >&6; }
23045 fi
23046
23047
23048# look for field 'ut_tv' in header 'utmp.h'
23049 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23050 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23051 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
23052echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
23053 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23055else
23056
23057 cat >conftest.$ac_ext <<_ACEOF
23058/* confdefs.h. */
23059_ACEOF
23060cat confdefs.h >>conftest.$ac_ext
23061cat >>conftest.$ac_ext <<_ACEOF
23062/* end confdefs.h. */
23063#include <utmp.h>
23064
23065_ACEOF
23066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23067 $EGREP "ut_tv" >/dev/null 2>&1; then
23068 eval "$ossh_varname=yes"
23069else
23070 eval "$ossh_varname=no"
23071fi
23072rm -f conftest*
23073
23074fi
23075
23076 ossh_result=`eval 'echo $'"$ossh_varname"`
23077 if test -n "`echo $ossh_varname`"; then
23078 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23079echo "${ECHO_T}$ossh_result" >&6; }
23080 if test "x$ossh_result" = "xyes"; then
23081
23082cat >>confdefs.h <<\_ACEOF
23083#define HAVE_TV_IN_UTMP 1
23084_ACEOF
23085
23086 fi
23087 else
23088 { echo "$as_me:$LINENO: result: no" >&5
23089echo "${ECHO_T}no" >&6; }
23090 fi
23091
23092
23093# look for field 'ut_id' in header 'utmp.h'
23094 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23095 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23096 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
23097echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
23098 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23100else
23101
23102 cat >conftest.$ac_ext <<_ACEOF
23103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
23108#include <utmp.h>
23109
23110_ACEOF
23111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23112 $EGREP "ut_id" >/dev/null 2>&1; then
23113 eval "$ossh_varname=yes"
23114else
23115 eval "$ossh_varname=no"
23116fi
23117rm -f conftest*
23118
23119fi
23120
23121 ossh_result=`eval 'echo $'"$ossh_varname"`
23122 if test -n "`echo $ossh_varname`"; then
23123 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23124echo "${ECHO_T}$ossh_result" >&6; }
23125 if test "x$ossh_result" = "xyes"; then
23126
23127cat >>confdefs.h <<\_ACEOF
23128#define HAVE_ID_IN_UTMP 1
23129_ACEOF
23130
23131 fi
23132 else
23133 { echo "$as_me:$LINENO: result: no" >&5
23134echo "${ECHO_T}no" >&6; }
23135 fi
23136
23137
23138# look for field 'ut_id' in header 'utmpx.h'
23139 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23140 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23141 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
23142echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
23143 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23145else
23146
23147 cat >conftest.$ac_ext <<_ACEOF
23148/* confdefs.h. */
23149_ACEOF
23150cat confdefs.h >>conftest.$ac_ext
23151cat >>conftest.$ac_ext <<_ACEOF
23152/* end confdefs.h. */
23153#include <utmpx.h>
23154
23155_ACEOF
23156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23157 $EGREP "ut_id" >/dev/null 2>&1; then
23158 eval "$ossh_varname=yes"
23159else
23160 eval "$ossh_varname=no"
23161fi
23162rm -f conftest*
23163
23164fi
23165
23166 ossh_result=`eval 'echo $'"$ossh_varname"`
23167 if test -n "`echo $ossh_varname`"; then
23168 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23169echo "${ECHO_T}$ossh_result" >&6; }
23170 if test "x$ossh_result" = "xyes"; then
23171
23172cat >>confdefs.h <<\_ACEOF
23173#define HAVE_ID_IN_UTMPX 1
23174_ACEOF
23175
23176 fi
23177 else
23178 { echo "$as_me:$LINENO: result: no" >&5
23179echo "${ECHO_T}no" >&6; }
23180 fi
23181
23182
23183# look for field 'ut_addr' in header 'utmp.h'
23184 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23185 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
23186 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
23187echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
23188 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190else
23191
23192 cat >conftest.$ac_ext <<_ACEOF
23193/* confdefs.h. */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h. */
23198#include <utmp.h>
23199
23200_ACEOF
23201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23202 $EGREP "ut_addr" >/dev/null 2>&1; then
23203 eval "$ossh_varname=yes"
23204else
23205 eval "$ossh_varname=no"
23206fi
23207rm -f conftest*
23208
23209fi
23210
23211 ossh_result=`eval 'echo $'"$ossh_varname"`
23212 if test -n "`echo $ossh_varname`"; then
23213 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23214echo "${ECHO_T}$ossh_result" >&6; }
23215 if test "x$ossh_result" = "xyes"; then
23216
23217cat >>confdefs.h <<\_ACEOF
23218#define HAVE_ADDR_IN_UTMP 1
23219_ACEOF
23220
23221 fi
23222 else
23223 { echo "$as_me:$LINENO: result: no" >&5
23224echo "${ECHO_T}no" >&6; }
23225 fi
23226
23227
23228# look for field 'ut_addr' in header 'utmpx.h'
23229 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23230 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
23231 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
23232echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
23233 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23235else
23236
23237 cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243#include <utmpx.h>
23244
23245_ACEOF
23246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23247 $EGREP "ut_addr" >/dev/null 2>&1; then
23248 eval "$ossh_varname=yes"
23249else
23250 eval "$ossh_varname=no"
23251fi
23252rm -f conftest*
23253
23254fi
23255
23256 ossh_result=`eval 'echo $'"$ossh_varname"`
23257 if test -n "`echo $ossh_varname`"; then
23258 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23259echo "${ECHO_T}$ossh_result" >&6; }
23260 if test "x$ossh_result" = "xyes"; then
23261
23262cat >>confdefs.h <<\_ACEOF
23263#define HAVE_ADDR_IN_UTMPX 1
23264_ACEOF
23265
23266 fi
23267 else
23268 { echo "$as_me:$LINENO: result: no" >&5
23269echo "${ECHO_T}no" >&6; }
23270 fi
23271
23272
23273# look for field 'ut_addr_v6' in header 'utmp.h'
23274 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23275 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23276 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
23277echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
23278 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280else
23281
23282 cat >conftest.$ac_ext <<_ACEOF
23283/* confdefs.h. */
23284_ACEOF
23285cat confdefs.h >>conftest.$ac_ext
23286cat >>conftest.$ac_ext <<_ACEOF
23287/* end confdefs.h. */
23288#include <utmp.h>
23289
23290_ACEOF
23291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23292 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23293 eval "$ossh_varname=yes"
23294else
23295 eval "$ossh_varname=no"
23296fi
23297rm -f conftest*
23298
23299fi
23300
23301 ossh_result=`eval 'echo $'"$ossh_varname"`
23302 if test -n "`echo $ossh_varname`"; then
23303 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23304echo "${ECHO_T}$ossh_result" >&6; }
23305 if test "x$ossh_result" = "xyes"; then
23306
23307cat >>confdefs.h <<\_ACEOF
23308#define HAVE_ADDR_V6_IN_UTMP 1
23309_ACEOF
23310
23311 fi
23312 else
23313 { echo "$as_me:$LINENO: result: no" >&5
23314echo "${ECHO_T}no" >&6; }
23315 fi
23316
23317
23318# look for field 'ut_addr_v6' in header 'utmpx.h'
23319 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23320 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23321 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
23322echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
23323 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325else
23326
23327 cat >conftest.$ac_ext <<_ACEOF
23328/* confdefs.h. */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h. */
23333#include <utmpx.h>
23334
23335_ACEOF
23336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23337 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23338 eval "$ossh_varname=yes"
23339else
23340 eval "$ossh_varname=no"
23341fi
23342rm -f conftest*
23343
23344fi
23345
23346 ossh_result=`eval 'echo $'"$ossh_varname"`
23347 if test -n "`echo $ossh_varname`"; then
23348 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23349echo "${ECHO_T}$ossh_result" >&6; }
23350 if test "x$ossh_result" = "xyes"; then
23351
23352cat >>confdefs.h <<\_ACEOF
23353#define HAVE_ADDR_V6_IN_UTMPX 1
23354_ACEOF
23355
23356 fi
23357 else
23358 { echo "$as_me:$LINENO: result: no" >&5
23359echo "${ECHO_T}no" >&6; }
23360 fi
23361
23362
23363# look for field 'ut_exit' in header 'utmp.h'
23364 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23365 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
23366 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
23367echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
23368 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370else
23371
23372 cat >conftest.$ac_ext <<_ACEOF
23373/* confdefs.h. */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h. */
23378#include <utmp.h>
23379
23380_ACEOF
23381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23382 $EGREP "ut_exit" >/dev/null 2>&1; then
23383 eval "$ossh_varname=yes"
23384else
23385 eval "$ossh_varname=no"
23386fi
23387rm -f conftest*
23388
23389fi
23390
23391 ossh_result=`eval 'echo $'"$ossh_varname"`
23392 if test -n "`echo $ossh_varname`"; then
23393 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23394echo "${ECHO_T}$ossh_result" >&6; }
23395 if test "x$ossh_result" = "xyes"; then
23396
23397cat >>confdefs.h <<\_ACEOF
23398#define HAVE_EXIT_IN_UTMP 1
23399_ACEOF
23400
23401 fi
23402 else
23403 { echo "$as_me:$LINENO: result: no" >&5
23404echo "${ECHO_T}no" >&6; }
23405 fi
23406
23407
23408# look for field 'ut_time' in header 'utmp.h'
23409 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23410 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23411 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
23412echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
23413 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23415else
23416
23417 cat >conftest.$ac_ext <<_ACEOF
23418/* confdefs.h. */
23419_ACEOF
23420cat confdefs.h >>conftest.$ac_ext
23421cat >>conftest.$ac_ext <<_ACEOF
23422/* end confdefs.h. */
23423#include <utmp.h>
23424
23425_ACEOF
23426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23427 $EGREP "ut_time" >/dev/null 2>&1; then
23428 eval "$ossh_varname=yes"
23429else
23430 eval "$ossh_varname=no"
23431fi
23432rm -f conftest*
23433
23434fi
23435
23436 ossh_result=`eval 'echo $'"$ossh_varname"`
23437 if test -n "`echo $ossh_varname`"; then
23438 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23439echo "${ECHO_T}$ossh_result" >&6; }
23440 if test "x$ossh_result" = "xyes"; then
23441
23442cat >>confdefs.h <<\_ACEOF
23443#define HAVE_TIME_IN_UTMP 1
23444_ACEOF
23445
23446 fi
23447 else
23448 { echo "$as_me:$LINENO: result: no" >&5
23449echo "${ECHO_T}no" >&6; }
23450 fi
23451
23452
23453# look for field 'ut_time' in header 'utmpx.h'
23454 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23455 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23456 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
23457echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
23458 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23460else
23461
23462 cat >conftest.$ac_ext <<_ACEOF
23463/* confdefs.h. */
23464_ACEOF
23465cat confdefs.h >>conftest.$ac_ext
23466cat >>conftest.$ac_ext <<_ACEOF
23467/* end confdefs.h. */
23468#include <utmpx.h>
23469
23470_ACEOF
23471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23472 $EGREP "ut_time" >/dev/null 2>&1; then
23473 eval "$ossh_varname=yes"
23474else
23475 eval "$ossh_varname=no"
23476fi
23477rm -f conftest*
23478
23479fi
23480
23481 ossh_result=`eval 'echo $'"$ossh_varname"`
23482 if test -n "`echo $ossh_varname`"; then
23483 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23484echo "${ECHO_T}$ossh_result" >&6; }
23485 if test "x$ossh_result" = "xyes"; then
23486
23487cat >>confdefs.h <<\_ACEOF
23488#define HAVE_TIME_IN_UTMPX 1
23489_ACEOF
23490
23491 fi
23492 else
23493 { echo "$as_me:$LINENO: result: no" >&5
23494echo "${ECHO_T}no" >&6; }
23495 fi
23496
23497
23498# look for field 'ut_tv' in header 'utmpx.h'
23499 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23500 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23501 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
23502echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
23503 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23505else
23506
23507 cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
23513#include <utmpx.h>
23514
23515_ACEOF
23516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517 $EGREP "ut_tv" >/dev/null 2>&1; then
23518 eval "$ossh_varname=yes"
23519else
23520 eval "$ossh_varname=no"
23521fi
23522rm -f conftest*
23523
23524fi
23525
23526 ossh_result=`eval 'echo $'"$ossh_varname"`
23527 if test -n "`echo $ossh_varname`"; then
23528 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23529echo "${ECHO_T}$ossh_result" >&6; }
23530 if test "x$ossh_result" = "xyes"; then
23531
23532cat >>confdefs.h <<\_ACEOF
23533#define HAVE_TV_IN_UTMPX 1
23534_ACEOF
23535
23536 fi
23537 else
23538 { echo "$as_me:$LINENO: result: no" >&5
23539echo "${ECHO_T}no" >&6; }
23540 fi
23541
23542
23543{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
23544echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
23545if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23547else
23548 cat >conftest.$ac_ext <<_ACEOF
23549/* confdefs.h. */
23550_ACEOF
23551cat confdefs.h >>conftest.$ac_ext
23552cat >>conftest.$ac_ext <<_ACEOF
23553/* end confdefs.h. */
23554$ac_includes_default
23555int
23556main ()
23557{
23558static struct stat ac_aggr;
23559if (ac_aggr.st_blksize)
23560return 0;
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext
23566if { (ac_try="$ac_compile"
23567case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570esac
23571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23573 ac_status=$?
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_member_struct_stat_st_blksize=yes
23583else
23584 echo "$as_me: failed program was:" >&5
23585sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 cat >conftest.$ac_ext <<_ACEOF
23588/* confdefs.h. */
23589_ACEOF
23590cat confdefs.h >>conftest.$ac_ext
23591cat >>conftest.$ac_ext <<_ACEOF
23592/* end confdefs.h. */
23593$ac_includes_default
23594int
23595main ()
23596{
23597static struct stat ac_aggr;
23598if (sizeof ac_aggr.st_blksize)
23599return 0;
23600 ;
23601 return 0;
23602}
23603_ACEOF
23604rm -f conftest.$ac_objext
23605if { (ac_try="$ac_compile"
23606case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609esac
23610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_compile") 2>conftest.er1
23612 ac_status=$?
23613 grep -v '^ *+' conftest.er1 >conftest.err
23614 rm -f conftest.er1
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } && {
23618 test -z "$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23620 } && test -s conftest.$ac_objext; then
23621 ac_cv_member_struct_stat_st_blksize=yes
23622else
23623 echo "$as_me: failed program was:" >&5
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
23626 ac_cv_member_struct_stat_st_blksize=no
23627fi
23628
23629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23630fi
23631
23632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633fi
23634{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
23635echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
23636if test $ac_cv_member_struct_stat_st_blksize = yes; then
23637
23638cat >>confdefs.h <<_ACEOF
23639#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23640_ACEOF
23641
23642
23643fi
23644
23645{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
23646echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
23647if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
23648 echo $ECHO_N "(cached) $ECHO_C" >&6
23649else
23650 cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656
23657#include <stdio.h>
23658#if HAVE_SYS_TYPES_H
23659# include <sys/types.h>
23660#endif
23661#include <netinet/in.h>
23662#include <arpa/nameser.h>
23663#include <resolv.h>
23664
23665
23666int
23667main ()
23668{
23669static struct __res_state ac_aggr;
23670if (ac_aggr.retrans)
23671return 0;
23672 ;
23673 return 0;
23674}
23675_ACEOF
23676rm -f conftest.$ac_objext
23677if { (ac_try="$ac_compile"
23678case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681esac
23682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_compile") 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest.$ac_objext; then
23693 ac_cv_member_struct___res_state_retrans=yes
23694else
23695 echo "$as_me: failed program was:" >&5
23696sed 's/^/| /' conftest.$ac_ext >&5
23697
23698 cat >conftest.$ac_ext <<_ACEOF
23699/* confdefs.h. */
23700_ACEOF
23701cat confdefs.h >>conftest.$ac_ext
23702cat >>conftest.$ac_ext <<_ACEOF
23703/* end confdefs.h. */
23704
23705#include <stdio.h>
23706#if HAVE_SYS_TYPES_H
23707# include <sys/types.h>
23708#endif
23709#include <netinet/in.h>
23710#include <arpa/nameser.h>
23711#include <resolv.h>
23712
23713
23714int
23715main ()
23716{
23717static struct __res_state ac_aggr;
23718if (sizeof ac_aggr.retrans)
23719return 0;
23720 ;
23721 return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext
23725if { (ac_try="$ac_compile"
23726case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729esac
23730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23731 (eval "$ac_compile") 2>conftest.er1
23732 ac_status=$?
23733 grep -v '^ *+' conftest.er1 >conftest.err
23734 rm -f conftest.er1
23735 cat conftest.err >&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); } && {
23738 test -z "$ac_c_werror_flag" ||
23739 test ! -s conftest.err
23740 } && test -s conftest.$ac_objext; then
23741 ac_cv_member_struct___res_state_retrans=yes
23742else
23743 echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ac_cv_member_struct___res_state_retrans=no
23747fi
23748
23749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750fi
23751
23752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753fi
23754{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
23755echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
23756if test $ac_cv_member_struct___res_state_retrans = yes; then
23757 :
23758else
23759
23760cat >>confdefs.h <<\_ACEOF
23761#define __res_state state
23762_ACEOF
23763
23764fi
23765
23766
23767{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
23768echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23769if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23771else
23772
23773 cat >conftest.$ac_ext <<_ACEOF
23774/* confdefs.h. */
23775_ACEOF
23776cat confdefs.h >>conftest.$ac_ext
23777cat >>conftest.$ac_ext <<_ACEOF
23778/* end confdefs.h. */
23779
23780#include <sys/types.h>
23781#include <sys/socket.h>
23782
23783int
23784main ()
23785{
23786 struct sockaddr_storage s; s.ss_family = 1;
23787 ;
23788 return 0;
23789}
23790_ACEOF
23791rm -f conftest.$ac_objext
23792if { (ac_try="$ac_compile"
23793case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23796esac
23797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 ac_cv_have_ss_family_in_struct_ss="yes"
23809else
23810 echo "$as_me: failed program was:" >&5
23811sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_cv_have_ss_family_in_struct_ss="no"
23814fi
23815
23816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817
23818fi
23819{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
23820echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
23821if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
23822
23823cat >>confdefs.h <<\_ACEOF
23824#define HAVE_SS_FAMILY_IN_SS 1
23825_ACEOF
23826
23827fi
23828
23829{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
23830echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23831if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833else
23834
23835 cat >conftest.$ac_ext <<_ACEOF
23836/* confdefs.h. */
23837_ACEOF
23838cat confdefs.h >>conftest.$ac_ext
23839cat >>conftest.$ac_ext <<_ACEOF
23840/* end confdefs.h. */
23841
23842#include <sys/types.h>
23843#include <sys/socket.h>
23844
23845int
23846main ()
23847{
23848 struct sockaddr_storage s; s.__ss_family = 1;
23849 ;
23850 return 0;
23851}
23852_ACEOF
23853rm -f conftest.$ac_objext
23854if { (ac_try="$ac_compile"
23855case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858esac
23859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_compile") 2>conftest.er1
23861 ac_status=$?
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest.$ac_objext; then
23870 ac_cv_have___ss_family_in_struct_ss="yes"
23871else
23872 echo "$as_me: failed program was:" >&5
23873sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ac_cv_have___ss_family_in_struct_ss="no"
23876
23877fi
23878
23879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880
23881fi
23882{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
23883echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
23884if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
23885
23886cat >>confdefs.h <<\_ACEOF
23887#define HAVE___SS_FAMILY_IN_SS 1
23888_ACEOF
23889
23890fi
23891
23892{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
23893echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
23894if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896else
23897
23898 cat >conftest.$ac_ext <<_ACEOF
23899/* confdefs.h. */
23900_ACEOF
23901cat confdefs.h >>conftest.$ac_ext
23902cat >>conftest.$ac_ext <<_ACEOF
23903/* end confdefs.h. */
23904
23905#include <pwd.h>
23906
23907int
23908main ()
23909{
23910 struct passwd p; p.pw_class = 0;
23911 ;
23912 return 0;
23913}
23914_ACEOF
23915rm -f conftest.$ac_objext
23916if { (ac_try="$ac_compile"
23917case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23920esac
23921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest.$ac_objext; then
23932 ac_cv_have_pw_class_in_struct_passwd="yes"
23933else
23934 echo "$as_me: failed program was:" >&5
23935sed 's/^/| /' conftest.$ac_ext >&5
23936
23937 ac_cv_have_pw_class_in_struct_passwd="no"
23938
23939fi
23940
23941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942
23943fi
23944{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
23945echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
23946if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
23947
23948cat >>confdefs.h <<\_ACEOF
23949#define HAVE_PW_CLASS_IN_PASSWD 1
23950_ACEOF
23951
23952fi
23953
23954{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
23955echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
23956if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23958else
23959
23960 cat >conftest.$ac_ext <<_ACEOF
23961/* confdefs.h. */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h. */
23966
23967#include <pwd.h>
23968
23969int
23970main ()
23971{
23972 struct passwd p; p.pw_expire = 0;
23973 ;
23974 return 0;
23975}
23976_ACEOF
23977rm -f conftest.$ac_objext
23978if { (ac_try="$ac_compile"
23979case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23982esac
23983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994 ac_cv_have_pw_expire_in_struct_passwd="yes"
23995else
23996 echo "$as_me: failed program was:" >&5
23997sed 's/^/| /' conftest.$ac_ext >&5
23998
23999 ac_cv_have_pw_expire_in_struct_passwd="no"
24000
24001fi
24002
24003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004
24005fi
24006{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
24007echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
24008if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
24009
24010cat >>confdefs.h <<\_ACEOF
24011#define HAVE_PW_EXPIRE_IN_PASSWD 1
24012_ACEOF
24013
24014fi
24015
24016{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
24017echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
24018if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020else
24021
24022 cat >conftest.$ac_ext <<_ACEOF
24023/* confdefs.h. */
24024_ACEOF
24025cat confdefs.h >>conftest.$ac_ext
24026cat >>conftest.$ac_ext <<_ACEOF
24027/* end confdefs.h. */
24028
24029#include <pwd.h>
24030
24031int
24032main ()
24033{
24034 struct passwd p; p.pw_change = 0;
24035 ;
24036 return 0;
24037}
24038_ACEOF
24039rm -f conftest.$ac_objext
24040if { (ac_try="$ac_compile"
24041case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24044esac
24045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_compile") 2>conftest.er1
24047 ac_status=$?
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest.$ac_objext; then
24056 ac_cv_have_pw_change_in_struct_passwd="yes"
24057else
24058 echo "$as_me: failed program was:" >&5
24059sed 's/^/| /' conftest.$ac_ext >&5
24060
24061 ac_cv_have_pw_change_in_struct_passwd="no"
24062
24063fi
24064
24065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066
24067fi
24068{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
24069echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
24070if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
24071
24072cat >>confdefs.h <<\_ACEOF
24073#define HAVE_PW_CHANGE_IN_PASSWD 1
24074_ACEOF
24075
24076fi
24077
24078{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
24079echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
24080if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
24081 echo $ECHO_N "(cached) $ECHO_C" >&6
24082else
24083
24084 cat >conftest.$ac_ext <<_ACEOF
24085
24086#include <sys/types.h>
24087#include <sys/socket.h>
24088#include <sys/uio.h>
24089int main() {
24090#ifdef msg_accrights
24091#error "msg_accrights is a macro"
24092exit(1);
24093#endif
24094struct msghdr m;
24095m.msg_accrights = 0;
24096exit(0);
24097}
24098
24099_ACEOF
24100rm -f conftest.$ac_objext
24101if { (ac_try="$ac_compile"
24102case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24105esac
24106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_compile") 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_c_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest.$ac_objext; then
24117 ac_cv_have_accrights_in_msghdr="yes"
24118else
24119 echo "$as_me: failed program was:" >&5
24120sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ac_cv_have_accrights_in_msghdr="no"
24123
24124fi
24125
24126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127
24128fi
24129{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
24130echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
24131if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
24132
24133cat >>confdefs.h <<\_ACEOF
24134#define HAVE_ACCRIGHTS_IN_MSGHDR 1
24135_ACEOF
24136
24137fi
24138
24139{ echo "$as_me:$LINENO: checking if f_fsid has val members" >&5
24140echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; }
24141cat >conftest.$ac_ext <<_ACEOF
24142/* confdefs.h. */
24143_ACEOF
24144cat confdefs.h >>conftest.$ac_ext
24145cat >>conftest.$ac_ext <<_ACEOF
24146/* end confdefs.h. */
24147
24148#include <sys/types.h>
24149#include <sys/statvfs.h>
24150int
24151main ()
24152{
24153struct fsid_t t; t.val[0] = 0;
24154 ;
24155 return 0;
24156}
24157_ACEOF
24158rm -f conftest.$ac_objext
24159if { (ac_try="$ac_compile"
24160case "(($ac_try" in
24161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24162 *) ac_try_echo=$ac_try;;
24163esac
24164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24165 (eval "$ac_compile") 2>conftest.er1
24166 ac_status=$?
24167 grep -v '^ *+' conftest.er1 >conftest.err
24168 rm -f conftest.er1
24169 cat conftest.err >&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } && {
24172 test -z "$ac_c_werror_flag" ||
24173 test ! -s conftest.err
24174 } && test -s conftest.$ac_objext; then
24175 { echo "$as_me:$LINENO: result: yes" >&5
24176echo "${ECHO_T}yes" >&6; }
24177
24178cat >>confdefs.h <<\_ACEOF
24179#define FSID_HAS_VAL 1
24180_ACEOF
24181
24182else
24183 echo "$as_me: failed program was:" >&5
24184sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 { echo "$as_me:$LINENO: result: no" >&5
24187echo "${ECHO_T}no" >&6; }
24188
24189fi
24190
24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192
24193{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
24194echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
24195if test "${ac_cv_have_control_in_msghdr+set}" = set; then
24196 echo $ECHO_N "(cached) $ECHO_C" >&6
24197else
24198
24199 cat >conftest.$ac_ext <<_ACEOF
24200
24201#include <sys/types.h>
24202#include <sys/socket.h>
24203#include <sys/uio.h>
24204int main() {
24205#ifdef msg_control
24206#error "msg_control is a macro"
24207exit(1);
24208#endif
24209struct msghdr m;
24210m.msg_control = 0;
24211exit(0);
24212}
24213
24214_ACEOF
24215rm -f conftest.$ac_objext
24216if { (ac_try="$ac_compile"
24217case "(($ac_try" in
24218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24219 *) ac_try_echo=$ac_try;;
24220esac
24221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24222 (eval "$ac_compile") 2>conftest.er1
24223 ac_status=$?
24224 grep -v '^ *+' conftest.er1 >conftest.err
24225 rm -f conftest.er1
24226 cat conftest.err >&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } && {
24229 test -z "$ac_c_werror_flag" ||
24230 test ! -s conftest.err
24231 } && test -s conftest.$ac_objext; then
24232 ac_cv_have_control_in_msghdr="yes"
24233else
24234 echo "$as_me: failed program was:" >&5
24235sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 ac_cv_have_control_in_msghdr="no"
24238
24239fi
24240
24241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24242
24243fi
24244{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
24245echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
24246if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
24247
24248cat >>confdefs.h <<\_ACEOF
24249#define HAVE_CONTROL_IN_MSGHDR 1
24250_ACEOF
24251
24252fi
24253
24254{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
24255echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
24256if test "${ac_cv_libc_defines___progname+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258else
24259
24260 cat >conftest.$ac_ext <<_ACEOF
24261/* confdefs.h. */
24262_ACEOF
24263cat confdefs.h >>conftest.$ac_ext
24264cat >>conftest.$ac_ext <<_ACEOF
24265/* end confdefs.h. */
24266
24267int
24268main ()
24269{
24270 extern char *__progname; printf("%s", __progname);
24271 ;
24272 return 0;
24273}
24274_ACEOF
24275rm -f conftest.$ac_objext conftest$ac_exeext
24276if { (ac_try="$ac_link"
24277case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24280esac
24281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282 (eval "$ac_link") 2>conftest.er1
24283 ac_status=$?
24284 grep -v '^ *+' conftest.er1 >conftest.err
24285 rm -f conftest.er1
24286 cat conftest.err >&5
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } && {
24289 test -z "$ac_c_werror_flag" ||
24290 test ! -s conftest.err
24291 } && test -s conftest$ac_exeext &&
24292 $as_test_x conftest$ac_exeext; then
24293 ac_cv_libc_defines___progname="yes"
24294else
24295 echo "$as_me: failed program was:" >&5
24296sed 's/^/| /' conftest.$ac_ext >&5
24297
24298 ac_cv_libc_defines___progname="no"
24299
24300fi
24301
24302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24303 conftest$ac_exeext conftest.$ac_ext
24304
24305fi
24306{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
24307echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
24308if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
24309
24310cat >>confdefs.h <<\_ACEOF
24311#define HAVE___PROGNAME 1
24312_ACEOF
24313
24314fi
24315
24316{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
24317echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
24318if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24320else
24321
24322 cat >conftest.$ac_ext <<_ACEOF
24323/* confdefs.h. */
24324_ACEOF
24325cat confdefs.h >>conftest.$ac_ext
24326cat >>conftest.$ac_ext <<_ACEOF
24327/* end confdefs.h. */
24328
24329#include <stdio.h>
24330
24331int
24332main ()
24333{
24334 printf("%s", __FUNCTION__);
24335 ;
24336 return 0;
24337}
24338_ACEOF
24339rm -f conftest.$ac_objext conftest$ac_exeext
24340if { (ac_try="$ac_link"
24341case "(($ac_try" in
24342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24344esac
24345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_link") 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && {
24353 test -z "$ac_c_werror_flag" ||
24354 test ! -s conftest.err
24355 } && test -s conftest$ac_exeext &&
24356 $as_test_x conftest$ac_exeext; then
24357 ac_cv_cc_implements___FUNCTION__="yes"
24358else
24359 echo "$as_me: failed program was:" >&5
24360sed 's/^/| /' conftest.$ac_ext >&5
24361
24362 ac_cv_cc_implements___FUNCTION__="no"
24363
24364fi
24365
24366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367 conftest$ac_exeext conftest.$ac_ext
24368
24369fi
24370{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
24371echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
24372if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
24373
24374cat >>confdefs.h <<\_ACEOF
24375#define HAVE___FUNCTION__ 1
24376_ACEOF
24377
24378fi
24379
24380{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
24381echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
24382if test "${ac_cv_cc_implements___func__+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24384else
24385
24386 cat >conftest.$ac_ext <<_ACEOF
24387/* confdefs.h. */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h. */
24392
24393#include <stdio.h>
24394
24395int
24396main ()
24397{
24398 printf("%s", __func__);
24399 ;
24400 return 0;
24401}
24402_ACEOF
24403rm -f conftest.$ac_objext conftest$ac_exeext
24404if { (ac_try="$ac_link"
24405case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24408esac
24409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_link") 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest$ac_exeext &&
24420 $as_test_x conftest$ac_exeext; then
24421 ac_cv_cc_implements___func__="yes"
24422else
24423 echo "$as_me: failed program was:" >&5
24424sed 's/^/| /' conftest.$ac_ext >&5
24425
24426 ac_cv_cc_implements___func__="no"
24427
24428fi
24429
24430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431 conftest$ac_exeext conftest.$ac_ext
24432
24433fi
24434{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
24435echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
24436if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
24437
24438cat >>confdefs.h <<\_ACEOF
24439#define HAVE___func__ 1
24440_ACEOF
24441
24442fi
24443
24444{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
24445echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
24446if test "${ac_cv_have_va_copy+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24448else
24449
24450 cat >conftest.$ac_ext <<_ACEOF
24451/* confdefs.h. */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h. */
24456#include <stdarg.h>
24457 va_list x,y;
24458int
24459main ()
24460{
24461va_copy(x,y);
24462 ;
24463 return 0;
24464}
24465_ACEOF
24466rm -f conftest.$ac_objext conftest$ac_exeext
24467if { (ac_try="$ac_link"
24468case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24471esac
24472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_link") 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest$ac_exeext &&
24483 $as_test_x conftest$ac_exeext; then
24484 ac_cv_have_va_copy="yes"
24485else
24486 echo "$as_me: failed program was:" >&5
24487sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_cv_have_va_copy="no"
24490
24491fi
24492
24493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24494 conftest$ac_exeext conftest.$ac_ext
24495
24496fi
24497{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
24498echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
24499if test "x$ac_cv_have_va_copy" = "xyes" ; then
24500
24501cat >>confdefs.h <<\_ACEOF
24502#define HAVE_VA_COPY 1
24503_ACEOF
24504
24505fi
24506
24507{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
24508echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
24509if test "${ac_cv_have___va_copy+set}" = set; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24511else
24512
24513 cat >conftest.$ac_ext <<_ACEOF
24514/* confdefs.h. */
24515_ACEOF
24516cat confdefs.h >>conftest.$ac_ext
24517cat >>conftest.$ac_ext <<_ACEOF
24518/* end confdefs.h. */
24519#include <stdarg.h>
24520 va_list x,y;
24521int
24522main ()
24523{
24524__va_copy(x,y);
24525 ;
24526 return 0;
24527}
24528_ACEOF
24529rm -f conftest.$ac_objext conftest$ac_exeext
24530if { (ac_try="$ac_link"
24531case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24534esac
24535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536 (eval "$ac_link") 2>conftest.er1
24537 ac_status=$?
24538 grep -v '^ *+' conftest.er1 >conftest.err
24539 rm -f conftest.er1
24540 cat conftest.err >&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } && {
24543 test -z "$ac_c_werror_flag" ||
24544 test ! -s conftest.err
24545 } && test -s conftest$ac_exeext &&
24546 $as_test_x conftest$ac_exeext; then
24547 ac_cv_have___va_copy="yes"
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_cv_have___va_copy="no"
24553
24554fi
24555
24556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24557 conftest$ac_exeext conftest.$ac_ext
24558
24559fi
24560{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
24561echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
24562if test "x$ac_cv_have___va_copy" = "xyes" ; then
24563
24564cat >>confdefs.h <<\_ACEOF
24565#define HAVE___VA_COPY 1
24566_ACEOF
24567
24568fi
24569
24570{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
24571echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
24572if test "${ac_cv_have_getopt_optreset+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24574else
24575
24576 cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582
24583#include <getopt.h>
24584
24585int
24586main ()
24587{
24588 extern int optreset; optreset = 0;
24589 ;
24590 return 0;
24591}
24592_ACEOF
24593rm -f conftest.$ac_objext conftest$ac_exeext
24594if { (ac_try="$ac_link"
24595case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24598esac
24599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_link") 2>conftest.er1
24601 ac_status=$?
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest$ac_exeext &&
24610 $as_test_x conftest$ac_exeext; then
24611 ac_cv_have_getopt_optreset="yes"
24612else
24613 echo "$as_me: failed program was:" >&5
24614sed 's/^/| /' conftest.$ac_ext >&5
24615
24616 ac_cv_have_getopt_optreset="no"
24617
24618fi
24619
24620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24621 conftest$ac_exeext conftest.$ac_ext
24622
24623fi
24624{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
24625echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
24626if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
24627
24628cat >>confdefs.h <<\_ACEOF
24629#define HAVE_GETOPT_OPTRESET 1
24630_ACEOF
24631
24632fi
24633
24634{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
24635echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
24636if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24638else
24639
24640 cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
24646
24647int
24648main ()
24649{
24650 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
24651 ;
24652 return 0;
24653}
24654_ACEOF
24655rm -f conftest.$ac_objext conftest$ac_exeext
24656if { (ac_try="$ac_link"
24657case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660esac
24661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_link") 2>conftest.er1
24663 ac_status=$?
24664 grep -v '^ *+' conftest.er1 >conftest.err
24665 rm -f conftest.er1
24666 cat conftest.err >&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } && {
24669 test -z "$ac_c_werror_flag" ||
24670 test ! -s conftest.err
24671 } && test -s conftest$ac_exeext &&
24672 $as_test_x conftest$ac_exeext; then
24673 ac_cv_libc_defines_sys_errlist="yes"
24674else
24675 echo "$as_me: failed program was:" >&5
24676sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ac_cv_libc_defines_sys_errlist="no"
24679
24680fi
24681
24682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24683 conftest$ac_exeext conftest.$ac_ext
24684
24685fi
24686{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
24687echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
24688if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
24689
24690cat >>confdefs.h <<\_ACEOF
24691#define HAVE_SYS_ERRLIST 1
24692_ACEOF
24693
24694fi
24695
24696
24697{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
24698echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
24699if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24701else
24702
24703 cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709
24710int
24711main ()
24712{
24713 extern int sys_nerr; printf("%i", sys_nerr);
24714 ;
24715 return 0;
24716}
24717_ACEOF
24718rm -f conftest.$ac_objext conftest$ac_exeext
24719if { (ac_try="$ac_link"
24720case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24723esac
24724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24725 (eval "$ac_link") 2>conftest.er1
24726 ac_status=$?
24727 grep -v '^ *+' conftest.er1 >conftest.err
24728 rm -f conftest.er1
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } && {
24732 test -z "$ac_c_werror_flag" ||
24733 test ! -s conftest.err
24734 } && test -s conftest$ac_exeext &&
24735 $as_test_x conftest$ac_exeext; then
24736 ac_cv_libc_defines_sys_nerr="yes"
24737else
24738 echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 ac_cv_libc_defines_sys_nerr="no"
24742
24743fi
24744
24745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24746 conftest$ac_exeext conftest.$ac_ext
24747
24748fi
24749{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
24750echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
24751if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
24752
24753cat >>confdefs.h <<\_ACEOF
24754#define HAVE_SYS_NERR 1
24755_ACEOF
24756
24757fi
24758
24759SCARD_MSG="no"
24760# Check whether user wants sectok support
24761
24762# Check whether --with-sectok was given.
24763if test "${with_sectok+set}" = set; then
24764 withval=$with_sectok;
24765 if test "x$withval" != "xno" ; then
24766 if test "x$withval" != "xyes" ; then
24767 CPPFLAGS="$CPPFLAGS -I${withval}"
24768 LDFLAGS="$LDFLAGS -L${withval}"
24769 if test ! -z "$need_dash_r" ; then
24770 LDFLAGS="$LDFLAGS -R${withval}"
24771 fi
24772 if test ! -z "$blibpath" ; then
24773 blibpath="$blibpath:${withval}"
24774 fi
24775 fi
24776
24777for ac_header in sectok.h
24778do
24779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785fi
24786ac_res=`eval echo '${'$as_ac_Header'}'`
24787 { echo "$as_me:$LINENO: result: $ac_res" >&5
24788echo "${ECHO_T}$ac_res" >&6; }
24789else
24790 # Is the header compilable?
24791{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24793cat >conftest.$ac_ext <<_ACEOF
24794/* confdefs.h. */
24795_ACEOF
24796cat confdefs.h >>conftest.$ac_ext
24797cat >>conftest.$ac_ext <<_ACEOF
24798/* end confdefs.h. */
24799$ac_includes_default
24800#include <$ac_header>
24801_ACEOF
24802rm -f conftest.$ac_objext
24803if { (ac_try="$ac_compile"
24804case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24807esac
24808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_header_compiler=yes
24820else
24821 echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_header_compiler=no
24825fi
24826
24827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24829echo "${ECHO_T}$ac_header_compiler" >&6; }
24830
24831# Is the header present?
24832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24834cat >conftest.$ac_ext <<_ACEOF
24835/* confdefs.h. */
24836_ACEOF
24837cat confdefs.h >>conftest.$ac_ext
24838cat >>conftest.$ac_ext <<_ACEOF
24839/* end confdefs.h. */
24840#include <$ac_header>
24841_ACEOF
24842if { (ac_try="$ac_cpp conftest.$ac_ext"
24843case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846esac
24847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } >/dev/null && {
24855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24857 }; then
24858 ac_header_preproc=yes
24859else
24860 echo "$as_me: failed program was:" >&5
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 ac_header_preproc=no
24864fi
24865
24866rm -f conftest.err conftest.$ac_ext
24867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868echo "${ECHO_T}$ac_header_preproc" >&6; }
24869
24870# So? What about this header?
24871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24872 yes:no: )
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877 ac_header_preproc=yes
24878 ;;
24879 no:yes:* )
24880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24892 ( cat <<\_ASBOX
24893## ------------------------------------------- ##
24894## Report this to openssh-unix-dev@mindrot.org ##
24895## ------------------------------------------- ##
24896_ASBOX
24897 ) | sed "s/^/$as_me: WARNING: /" >&2
24898 ;;
24899esac
24900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24904else
24905 eval "$as_ac_Header=\$ac_header_preproc"
24906fi
24907ac_res=`eval echo '${'$as_ac_Header'}'`
24908 { echo "$as_me:$LINENO: result: $ac_res" >&5
24909echo "${ECHO_T}$ac_res" >&6; }
24910
24911fi
24912if test `eval echo '${'$as_ac_Header'}'` = yes; then
24913 cat >>confdefs.h <<_ACEOF
24914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24915_ACEOF
24916
24917fi
24918
24919done
24920
24921 if test "$ac_cv_header_sectok_h" != yes; then
24922 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
24923echo "$as_me: error: Can't find sectok.h" >&2;}
24924 { (exit 1); exit 1; }; }
24925 fi
24926
24927{ echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
24928echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
24929if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931else
24932 ac_check_lib_save_LIBS=$LIBS
24933LIBS="-lsectok $LIBS"
24934cat >conftest.$ac_ext <<_ACEOF
24935/* confdefs.h. */
24936_ACEOF
24937cat confdefs.h >>conftest.$ac_ext
24938cat >>conftest.$ac_ext <<_ACEOF
24939/* end confdefs.h. */
24940
24941/* Override any GCC internal prototype to avoid an error.
24942 Use char because int might match the return type of a GCC
24943 builtin and then its argument prototype would still apply. */
24944#ifdef __cplusplus
24945extern "C"
24946#endif
24947char sectok_open ();
24948int
24949main ()
24950{
24951return sectok_open ();
24952 ;
24953 return 0;
24954}
24955_ACEOF
24956rm -f conftest.$ac_objext conftest$ac_exeext
24957if { (ac_try="$ac_link"
24958case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961esac
24962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_link") 2>conftest.er1
24964 ac_status=$?
24965 grep -v '^ *+' conftest.er1 >conftest.err
24966 rm -f conftest.er1
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } && {
24970 test -z "$ac_c_werror_flag" ||
24971 test ! -s conftest.err
24972 } && test -s conftest$ac_exeext &&
24973 $as_test_x conftest$ac_exeext; then
24974 ac_cv_lib_sectok_sectok_open=yes
24975else
24976 echo "$as_me: failed program was:" >&5
24977sed 's/^/| /' conftest.$ac_ext >&5
24978
24979 ac_cv_lib_sectok_sectok_open=no
24980fi
24981
24982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24983 conftest$ac_exeext conftest.$ac_ext
24984LIBS=$ac_check_lib_save_LIBS
24985fi
24986{ echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
24987echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
24988if test $ac_cv_lib_sectok_sectok_open = yes; then
24989 cat >>confdefs.h <<_ACEOF
24990#define HAVE_LIBSECTOK 1
24991_ACEOF
24992
24993 LIBS="-lsectok $LIBS"
24994
24995fi
24996
24997 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
24998 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
24999echo "$as_me: error: Can't find libsectok" >&2;}
25000 { (exit 1); exit 1; }; }
25001 fi
25002
25003cat >>confdefs.h <<\_ACEOF
25004#define SMARTCARD 1
25005_ACEOF
25006
25007
25008cat >>confdefs.h <<\_ACEOF
25009#define USE_SECTOK 1
25010_ACEOF
25011
25012 SCARD_MSG="yes, using sectok"
25013 fi
25014
25015
25016fi
25017
25018
25019# Check whether user wants OpenSC support
25020OPENSC_CONFIG="no"
25021
25022# Check whether --with-opensc was given.
25023if test "${with_opensc+set}" = set; then
25024 withval=$with_opensc;
25025 if test "x$withval" != "xno" ; then
25026 if test "x$withval" != "xyes" ; then
25027 OPENSC_CONFIG=$withval/bin/opensc-config
25028 else
25029 # Extract the first word of "opensc-config", so it can be a program name with args.
25030set dummy opensc-config; ac_word=$2
25031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25033if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25035else
25036 case $OPENSC_CONFIG in
25037 [\\/]* | ?:[\\/]*)
25038 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
25039 ;;
25040 *)
25041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25042for as_dir in $PATH
25043do
25044 IFS=$as_save_IFS
25045 test -z "$as_dir" && as_dir=.
25046 for ac_exec_ext in '' $ac_executable_extensions; do
25047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25048 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25050 break 2
25051 fi
25052done
25053done
25054IFS=$as_save_IFS
25055
25056 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
25057 ;;
25058esac
25059fi
25060OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
25061if test -n "$OPENSC_CONFIG"; then
25062 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
25063echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
25064else
25065 { echo "$as_me:$LINENO: result: no" >&5
25066echo "${ECHO_T}no" >&6; }
25067fi
25068
25069
25070 fi
25071 if test "$OPENSC_CONFIG" != "no"; then
25072 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
25073 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
25074 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
25075 LIBS="$LIBS $LIBOPENSC_LIBS"
25076 cat >>confdefs.h <<\_ACEOF
25077#define SMARTCARD 1
25078_ACEOF
25079
25080
25081cat >>confdefs.h <<\_ACEOF
25082#define USE_OPENSC 1
25083_ACEOF
25084
25085 SCARD_MSG="yes, using OpenSC"
25086 fi
25087 fi
25088
25089
25090fi
25091
25092
25093# Check libraries needed by DNS fingerprint support
25094{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
25095echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
25096if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098else
25099 ac_func_search_save_LIBS=$LIBS
25100cat >conftest.$ac_ext <<_ACEOF
25101/* confdefs.h. */
25102_ACEOF
25103cat confdefs.h >>conftest.$ac_ext
25104cat >>conftest.$ac_ext <<_ACEOF
25105/* end confdefs.h. */
25106
25107/* Override any GCC internal prototype to avoid an error.
25108 Use char because int might match the return type of a GCC
25109 builtin and then its argument prototype would still apply. */
25110#ifdef __cplusplus
25111extern "C"
25112#endif
25113char getrrsetbyname ();
25114int
25115main ()
25116{
25117return getrrsetbyname ();
25118 ;
25119 return 0;
25120}
25121_ACEOF
25122for ac_lib in '' resolv; do
25123 if test -z "$ac_lib"; then
25124 ac_res="none required"
25125 else
25126 ac_res=-l$ac_lib
25127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25128 fi
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130if { (ac_try="$ac_link"
25131case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25134esac
25135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136 (eval "$ac_link") 2>conftest.er1
25137 ac_status=$?
25138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } && {
25143 test -z "$ac_c_werror_flag" ||
25144 test ! -s conftest.err
25145 } && test -s conftest$ac_exeext &&
25146 $as_test_x conftest$ac_exeext; then
25147 ac_cv_search_getrrsetbyname=$ac_res
25148else
25149 echo "$as_me: failed program was:" >&5
25150sed 's/^/| /' conftest.$ac_ext >&5
25151
25152
25153fi
25154
25155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25156 conftest$ac_exeext
25157 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25158 break
25159fi
25160done
25161if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25162 :
25163else
25164 ac_cv_search_getrrsetbyname=no
25165fi
25166rm conftest.$ac_ext
25167LIBS=$ac_func_search_save_LIBS
25168fi
25169{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
25170echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
25171ac_res=$ac_cv_search_getrrsetbyname
25172if test "$ac_res" != no; then
25173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25174
25175cat >>confdefs.h <<\_ACEOF
25176#define HAVE_GETRRSETBYNAME 1
25177_ACEOF
25178
25179else
25180
25181 # Needed by our getrrsetbyname()
25182 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
25183echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
25184if test "${ac_cv_search_res_query+set}" = set; then
25185 echo $ECHO_N "(cached) $ECHO_C" >&6
25186else
25187 ac_func_search_save_LIBS=$LIBS
25188cat >conftest.$ac_ext <<_ACEOF
25189/* confdefs.h. */
25190_ACEOF
25191cat confdefs.h >>conftest.$ac_ext
25192cat >>conftest.$ac_ext <<_ACEOF
25193/* end confdefs.h. */
25194
25195/* Override any GCC internal prototype to avoid an error.
25196 Use char because int might match the return type of a GCC
25197 builtin and then its argument prototype would still apply. */
25198#ifdef __cplusplus
25199extern "C"
25200#endif
25201char res_query ();
25202int
25203main ()
25204{
25205return res_query ();
25206 ;
25207 return 0;
25208}
25209_ACEOF
25210for ac_lib in '' resolv; do
25211 if test -z "$ac_lib"; then
25212 ac_res="none required"
25213 else
25214 ac_res=-l$ac_lib
25215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25216 fi
25217 rm -f conftest.$ac_objext conftest$ac_exeext
25218if { (ac_try="$ac_link"
25219case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25222esac
25223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_link") 2>conftest.er1
25225 ac_status=$?
25226 grep -v '^ *+' conftest.er1 >conftest.err
25227 rm -f conftest.er1
25228 cat conftest.err >&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } && {
25231 test -z "$ac_c_werror_flag" ||
25232 test ! -s conftest.err
25233 } && test -s conftest$ac_exeext &&
25234 $as_test_x conftest$ac_exeext; then
25235 ac_cv_search_res_query=$ac_res
25236else
25237 echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
25239
25240
25241fi
25242
25243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25244 conftest$ac_exeext
25245 if test "${ac_cv_search_res_query+set}" = set; then
25246 break
25247fi
25248done
25249if test "${ac_cv_search_res_query+set}" = set; then
25250 :
25251else
25252 ac_cv_search_res_query=no
25253fi
25254rm conftest.$ac_ext
25255LIBS=$ac_func_search_save_LIBS
25256fi
25257{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
25258echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
25259ac_res=$ac_cv_search_res_query
25260if test "$ac_res" != no; then
25261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25262
25263fi
25264
25265 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
25266echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
25267if test "${ac_cv_search_dn_expand+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25269else
25270 ac_func_search_save_LIBS=$LIBS
25271cat >conftest.$ac_ext <<_ACEOF
25272/* confdefs.h. */
25273_ACEOF
25274cat confdefs.h >>conftest.$ac_ext
25275cat >>conftest.$ac_ext <<_ACEOF
25276/* end confdefs.h. */
25277
25278/* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25281#ifdef __cplusplus
25282extern "C"
25283#endif
25284char dn_expand ();
25285int
25286main ()
25287{
25288return dn_expand ();
25289 ;
25290 return 0;
25291}
25292_ACEOF
25293for ac_lib in '' resolv; do
25294 if test -z "$ac_lib"; then
25295 ac_res="none required"
25296 else
25297 ac_res=-l$ac_lib
25298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25299 fi
25300 rm -f conftest.$ac_objext conftest$ac_exeext
25301if { (ac_try="$ac_link"
25302case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25305esac
25306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_link") 2>conftest.er1
25308 ac_status=$?
25309 grep -v '^ *+' conftest.er1 >conftest.err
25310 rm -f conftest.er1
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest$ac_exeext &&
25317 $as_test_x conftest$ac_exeext; then
25318 ac_cv_search_dn_expand=$ac_res
25319else
25320 echo "$as_me: failed program was:" >&5
25321sed 's/^/| /' conftest.$ac_ext >&5
25322
25323
25324fi
25325
25326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25327 conftest$ac_exeext
25328 if test "${ac_cv_search_dn_expand+set}" = set; then
25329 break
25330fi
25331done
25332if test "${ac_cv_search_dn_expand+set}" = set; then
25333 :
25334else
25335 ac_cv_search_dn_expand=no
25336fi
25337rm conftest.$ac_ext
25338LIBS=$ac_func_search_save_LIBS
25339fi
25340{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
25341echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
25342ac_res=$ac_cv_search_dn_expand
25343if test "$ac_res" != no; then
25344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25345
25346fi
25347
25348 { echo "$as_me:$LINENO: checking if res_query will link" >&5
25349echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
25350 cat >conftest.$ac_ext <<_ACEOF
25351/* confdefs.h. */
25352_ACEOF
25353cat confdefs.h >>conftest.$ac_ext
25354cat >>conftest.$ac_ext <<_ACEOF
25355/* end confdefs.h. */
25356
25357/* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25360#ifdef __cplusplus
25361extern "C"
25362#endif
25363char res_query ();
25364int
25365main ()
25366{
25367return res_query ();
25368 ;
25369 return 0;
25370}
25371_ACEOF
25372rm -f conftest.$ac_objext conftest$ac_exeext
25373if { (ac_try="$ac_link"
25374case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25377esac
25378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_link") 2>conftest.er1
25380 ac_status=$?
25381 grep -v '^ *+' conftest.er1 >conftest.err
25382 rm -f conftest.er1
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } && {
25386 test -z "$ac_c_werror_flag" ||
25387 test ! -s conftest.err
25388 } && test -s conftest$ac_exeext &&
25389 $as_test_x conftest$ac_exeext; then
25390 { echo "$as_me:$LINENO: result: yes" >&5
25391echo "${ECHO_T}yes" >&6; }
25392else
25393 echo "$as_me: failed program was:" >&5
25394sed 's/^/| /' conftest.$ac_ext >&5
25395
25396 { echo "$as_me:$LINENO: result: no" >&5
25397echo "${ECHO_T}no" >&6; }
25398 saved_LIBS="$LIBS"
25399 LIBS="$LIBS -lresolv"
25400 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
25401echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25403
25404#include <resolv.h>
25405int main()
25406{
25407 res_query (0, 0, 0, 0, 0);
25408 return 0;
25409}
25410
25411_ACEOF
25412rm -f conftest.$ac_objext conftest$ac_exeext
25413if { (ac_try="$ac_link"
25414case "(($ac_try" in
25415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25416 *) ac_try_echo=$ac_try;;
25417esac
25418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25419 (eval "$ac_link") 2>conftest.er1
25420 ac_status=$?
25421 grep -v '^ *+' conftest.er1 >conftest.err
25422 rm -f conftest.er1
25423 cat conftest.err >&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } && {
25426 test -z "$ac_c_werror_flag" ||
25427 test ! -s conftest.err
25428 } && test -s conftest$ac_exeext &&
25429 $as_test_x conftest$ac_exeext; then
25430 LIBS="$LIBS -lresolv"
25431 { echo "$as_me:$LINENO: result: yes" >&5
25432echo "${ECHO_T}yes" >&6; }
25433else
25434 echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
25436
25437 LIBS="$saved_LIBS"
25438 { echo "$as_me:$LINENO: result: no" >&5
25439echo "${ECHO_T}no" >&6; }
25440fi
25441
25442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25443 conftest$ac_exeext conftest.$ac_ext
25444
25445fi
25446
25447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25448 conftest$ac_exeext conftest.$ac_ext
25449
25450
25451for ac_func in _getshort _getlong
25452do
25453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25458else
25459 cat >conftest.$ac_ext <<_ACEOF
25460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
25465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25467#define $ac_func innocuous_$ac_func
25468
25469/* System header to define __stub macros and hopefully few prototypes,
25470 which can conflict with char $ac_func (); below.
25471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25472 <limits.h> exists even on freestanding compilers. */
25473
25474#ifdef __STDC__
25475# include <limits.h>
25476#else
25477# include <assert.h>
25478#endif
25479
25480#undef $ac_func
25481
25482/* Override any GCC internal prototype to avoid an error.
25483 Use char because int might match the return type of a GCC
25484 builtin and then its argument prototype would still apply. */
25485#ifdef __cplusplus
25486extern "C"
25487#endif
25488char $ac_func ();
25489/* The GNU C library defines this for functions which it implements
25490 to always fail with ENOSYS. Some functions are actually named
25491 something starting with __ and the normal name is an alias. */
25492#if defined __stub_$ac_func || defined __stub___$ac_func
25493choke me
25494#endif
25495
25496int
25497main ()
25498{
25499return $ac_func ();
25500 ;
25501 return 0;
25502}
25503_ACEOF
25504rm -f conftest.$ac_objext conftest$ac_exeext
25505if { (ac_try="$ac_link"
25506case "(($ac_try" in
25507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25508 *) ac_try_echo=$ac_try;;
25509esac
25510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25511 (eval "$ac_link") 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } && {
25518 test -z "$ac_c_werror_flag" ||
25519 test ! -s conftest.err
25520 } && test -s conftest$ac_exeext &&
25521 $as_test_x conftest$ac_exeext; then
25522 eval "$as_ac_var=yes"
25523else
25524 echo "$as_me: failed program was:" >&5
25525sed 's/^/| /' conftest.$ac_ext >&5
25526
25527 eval "$as_ac_var=no"
25528fi
25529
25530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25531 conftest$ac_exeext conftest.$ac_ext
25532fi
25533ac_res=`eval echo '${'$as_ac_var'}'`
25534 { echo "$as_me:$LINENO: result: $ac_res" >&5
25535echo "${ECHO_T}$ac_res" >&6; }
25536if test `eval echo '${'$as_ac_var'}'` = yes; then
25537 cat >>confdefs.h <<_ACEOF
25538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25539_ACEOF
25540
25541fi
25542done
25543
25544 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
25545echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
25546if test "${ac_cv_have_decl__getshort+set}" = set; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25548else
25549 cat >conftest.$ac_ext <<_ACEOF
25550/* confdefs.h. */
25551_ACEOF
25552cat confdefs.h >>conftest.$ac_ext
25553cat >>conftest.$ac_ext <<_ACEOF
25554/* end confdefs.h. */
25555#include <sys/types.h>
25556 #include <arpa/nameser.h>
25557
25558int
25559main ()
25560{
25561#ifndef _getshort
25562 (void) _getshort;
25563#endif
25564
25565 ;
25566 return 0;
25567}
25568_ACEOF
25569rm -f conftest.$ac_objext
25570if { (ac_try="$ac_compile"
25571case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574esac
25575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25576 (eval "$ac_compile") 2>conftest.er1
25577 ac_status=$?
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } && {
25583 test -z "$ac_c_werror_flag" ||
25584 test ! -s conftest.err
25585 } && test -s conftest.$ac_objext; then
25586 ac_cv_have_decl__getshort=yes
25587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
25591 ac_cv_have_decl__getshort=no
25592fi
25593
25594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595fi
25596{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
25597echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
25598if test $ac_cv_have_decl__getshort = yes; then
25599
25600cat >>confdefs.h <<_ACEOF
25601#define HAVE_DECL__GETSHORT 1
25602_ACEOF
25603
25604
25605else
25606 cat >>confdefs.h <<_ACEOF
25607#define HAVE_DECL__GETSHORT 0
25608_ACEOF
25609
25610
25611fi
25612{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
25613echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
25614if test "${ac_cv_have_decl__getlong+set}" = set; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25616else
25617 cat >conftest.$ac_ext <<_ACEOF
25618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
25623#include <sys/types.h>
25624 #include <arpa/nameser.h>
25625
25626int
25627main ()
25628{
25629#ifndef _getlong
25630 (void) _getlong;
25631#endif
25632
25633 ;
25634 return 0;
25635}
25636_ACEOF
25637rm -f conftest.$ac_objext
25638if { (ac_try="$ac_compile"
25639case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25642esac
25643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 ac_cv_have_decl__getlong=yes
25655else
25656 echo "$as_me: failed program was:" >&5
25657sed 's/^/| /' conftest.$ac_ext >&5
25658
25659 ac_cv_have_decl__getlong=no
25660fi
25661
25662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663fi
25664{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
25665echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
25666if test $ac_cv_have_decl__getlong = yes; then
25667
25668cat >>confdefs.h <<_ACEOF
25669#define HAVE_DECL__GETLONG 1
25670_ACEOF
25671
25672
25673else
25674 cat >>confdefs.h <<_ACEOF
25675#define HAVE_DECL__GETLONG 0
25676_ACEOF
25677
25678
25679fi
25680
25681
25682 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
25683echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
25684if test "${ac_cv_member_HEADER_ad+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25686else
25687 cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h. */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h. */
25693#include <arpa/nameser.h>
25694
25695int
25696main ()
25697{
25698static HEADER ac_aggr;
25699if (ac_aggr.ad)
25700return 0;
25701 ;
25702 return 0;
25703}
25704_ACEOF
25705rm -f conftest.$ac_objext
25706if { (ac_try="$ac_compile"
25707case "(($ac_try" in
25708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25710esac
25711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712 (eval "$ac_compile") 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_c_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest.$ac_objext; then
25722 ac_cv_member_HEADER_ad=yes
25723else
25724 echo "$as_me: failed program was:" >&5
25725sed 's/^/| /' conftest.$ac_ext >&5
25726
25727 cat >conftest.$ac_ext <<_ACEOF
25728/* confdefs.h. */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
25732/* end confdefs.h. */
25733#include <arpa/nameser.h>
25734
25735int
25736main ()
25737{
25738static HEADER ac_aggr;
25739if (sizeof ac_aggr.ad)
25740return 0;
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (ac_try="$ac_compile"
25747case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25750esac
25751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752 (eval "$ac_compile") 2>conftest.er1
25753 ac_status=$?
25754 grep -v '^ *+' conftest.er1 >conftest.err
25755 rm -f conftest.er1
25756 cat conftest.err >&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest.$ac_objext; then
25762 ac_cv_member_HEADER_ad=yes
25763else
25764 echo "$as_me: failed program was:" >&5
25765sed 's/^/| /' conftest.$ac_ext >&5
25766
25767 ac_cv_member_HEADER_ad=no
25768fi
25769
25770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771fi
25772
25773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25774fi
25775{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
25776echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
25777if test $ac_cv_member_HEADER_ad = yes; then
25778
25779cat >>confdefs.h <<\_ACEOF
25780#define HAVE_HEADER_AD 1
25781_ACEOF
25782
25783fi
25784
25785
25786fi
25787
25788
25789{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
25790echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
25791cat >conftest.$ac_ext <<_ACEOF
25792
25793#include <stdio.h>
25794#if HAVE_SYS_TYPES_H
25795# include <sys/types.h>
25796#endif
25797#include <netinet/in.h>
25798#include <arpa/nameser.h>
25799#include <resolv.h>
25800extern struct __res_state _res;
25801int main() { return 0; }
25802
25803_ACEOF
25804rm -f conftest.$ac_objext conftest$ac_exeext
25805if { (ac_try="$ac_link"
25806case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25809esac
25810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811 (eval "$ac_link") 2>conftest.er1
25812 ac_status=$?
25813 grep -v '^ *+' conftest.er1 >conftest.err
25814 rm -f conftest.er1
25815 cat conftest.err >&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest$ac_exeext &&
25821 $as_test_x conftest$ac_exeext; then
25822 { echo "$as_me:$LINENO: result: yes" >&5
25823echo "${ECHO_T}yes" >&6; }
25824
25825cat >>confdefs.h <<\_ACEOF
25826#define HAVE__RES_EXTERN 1
25827_ACEOF
25828
25829
25830else
25831 echo "$as_me: failed program was:" >&5
25832sed 's/^/| /' conftest.$ac_ext >&5
25833
25834 { echo "$as_me:$LINENO: result: no" >&5
25835echo "${ECHO_T}no" >&6; }
25836
25837fi
25838
25839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25840 conftest$ac_exeext conftest.$ac_ext
25841
25842# Check whether user wants SELinux support
25843SELINUX_MSG="no"
25844LIBSELINUX=""
25845
25846# Check whether --with-selinux was given.
25847if test "${with_selinux+set}" = set; then
25848 withval=$with_selinux; if test "x$withval" != "xno" ; then
25849 save_LIBS="$LIBS"
25850
25851cat >>confdefs.h <<\_ACEOF
25852#define WITH_SELINUX 1
25853_ACEOF
25854
25855 SELINUX_MSG="yes"
25856 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25857 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25858echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25859if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25861fi
25862{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25863echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25864else
25865 # Is the header compilable?
25866{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
25867echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
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$ac_includes_default
25875#include <selinux/selinux.h>
25876_ACEOF
25877rm -f conftest.$ac_objext
25878if { (ac_try="$ac_compile"
25879case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25882esac
25883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25884 (eval "$ac_compile") 2>conftest.er1
25885 ac_status=$?
25886 grep -v '^ *+' conftest.er1 >conftest.err
25887 rm -f conftest.er1
25888 cat conftest.err >&5
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); } && {
25891 test -z "$ac_c_werror_flag" ||
25892 test ! -s conftest.err
25893 } && test -s conftest.$ac_objext; then
25894 ac_header_compiler=yes
25895else
25896 echo "$as_me: failed program was:" >&5
25897sed 's/^/| /' conftest.$ac_ext >&5
25898
25899 ac_header_compiler=no
25900fi
25901
25902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25904echo "${ECHO_T}$ac_header_compiler" >&6; }
25905
25906# Is the header present?
25907{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
25908echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
25909cat >conftest.$ac_ext <<_ACEOF
25910/* confdefs.h. */
25911_ACEOF
25912cat confdefs.h >>conftest.$ac_ext
25913cat >>conftest.$ac_ext <<_ACEOF
25914/* end confdefs.h. */
25915#include <selinux/selinux.h>
25916_ACEOF
25917if { (ac_try="$ac_cpp conftest.$ac_ext"
25918case "(($ac_try" in
25919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25920 *) ac_try_echo=$ac_try;;
25921esac
25922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25924 ac_status=$?
25925 grep -v '^ *+' conftest.er1 >conftest.err
25926 rm -f conftest.er1
25927 cat conftest.err >&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); } >/dev/null && {
25930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25931 test ! -s conftest.err
25932 }; then
25933 ac_header_preproc=yes
25934else
25935 echo "$as_me: failed program was:" >&5
25936sed 's/^/| /' conftest.$ac_ext >&5
25937
25938 ac_header_preproc=no
25939fi
25940
25941rm -f conftest.err conftest.$ac_ext
25942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25943echo "${ECHO_T}$ac_header_preproc" >&6; }
25944
25945# So? What about this header?
25946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25947 yes:no: )
25948 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25949echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25950 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25951echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25952 ac_header_preproc=yes
25953 ;;
25954 no:yes:* )
25955 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25956echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25957 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
25958echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
25959 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25960echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25961 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
25962echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
25963 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25964echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25965 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25966echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25967 ( cat <<\_ASBOX
25968## ------------------------------------------- ##
25969## Report this to openssh-unix-dev@mindrot.org ##
25970## ------------------------------------------- ##
25971_ASBOX
25972 ) | sed "s/^/$as_me: WARNING: /" >&2
25973 ;;
25974esac
25975{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25976echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25977if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25978 echo $ECHO_N "(cached) $ECHO_C" >&6
25979else
25980 ac_cv_header_selinux_selinux_h=$ac_header_preproc
25981fi
25982{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25983echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25984
25985fi
25986if test $ac_cv_header_selinux_selinux_h = yes; then
25987 :
25988else
25989 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
25990echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
25991 { (exit 1); exit 1; }; }
25992fi
25993
25994
25995 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
25996echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
25997if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
25999else
26000 ac_check_lib_save_LIBS=$LIBS
26001LIBS="-lselinux $LIBS"
26002cat >conftest.$ac_ext <<_ACEOF
26003/* confdefs.h. */
26004_ACEOF
26005cat confdefs.h >>conftest.$ac_ext
26006cat >>conftest.$ac_ext <<_ACEOF
26007/* end confdefs.h. */
26008
26009/* Override any GCC internal prototype to avoid an error.
26010 Use char because int might match the return type of a GCC
26011 builtin and then its argument prototype would still apply. */
26012#ifdef __cplusplus
26013extern "C"
26014#endif
26015char setexeccon ();
26016int
26017main ()
26018{
26019return setexeccon ();
26020 ;
26021 return 0;
26022}
26023_ACEOF
26024rm -f conftest.$ac_objext conftest$ac_exeext
26025if { (ac_try="$ac_link"
26026case "(($ac_try" in
26027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 *) ac_try_echo=$ac_try;;
26029esac
26030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031 (eval "$ac_link") 2>conftest.er1
26032 ac_status=$?
26033 grep -v '^ *+' conftest.er1 >conftest.err
26034 rm -f conftest.er1
26035 cat conftest.err >&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } && {
26038 test -z "$ac_c_werror_flag" ||
26039 test ! -s conftest.err
26040 } && test -s conftest$ac_exeext &&
26041 $as_test_x conftest$ac_exeext; then
26042 ac_cv_lib_selinux_setexeccon=yes
26043else
26044 echo "$as_me: failed program was:" >&5
26045sed 's/^/| /' conftest.$ac_ext >&5
26046
26047 ac_cv_lib_selinux_setexeccon=no
26048fi
26049
26050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26051 conftest$ac_exeext conftest.$ac_ext
26052LIBS=$ac_check_lib_save_LIBS
26053fi
26054{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
26055echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
26056if test $ac_cv_lib_selinux_setexeccon = yes; then
26057 LIBSELINUX="-lselinux"
26058else
26059 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
26060echo "$as_me: error: SELinux support requires libselinux library" >&2;}
26061 { (exit 1); exit 1; }; }
26062fi
26063
26064 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
26065
26066
26067for ac_func in getseuserbyname get_default_context_with_level
26068do
26069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26070{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26074else
26075 cat >conftest.$ac_ext <<_ACEOF
26076/* confdefs.h. */
26077_ACEOF
26078cat confdefs.h >>conftest.$ac_ext
26079cat >>conftest.$ac_ext <<_ACEOF
26080/* end confdefs.h. */
26081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26083#define $ac_func innocuous_$ac_func
26084
26085/* System header to define __stub macros and hopefully few prototypes,
26086 which can conflict with char $ac_func (); below.
26087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26088 <limits.h> exists even on freestanding compilers. */
26089
26090#ifdef __STDC__
26091# include <limits.h>
26092#else
26093# include <assert.h>
26094#endif
26095
26096#undef $ac_func
26097
26098/* Override any GCC internal prototype to avoid an error.
26099 Use char because int might match the return type of a GCC
26100 builtin and then its argument prototype would still apply. */
26101#ifdef __cplusplus
26102extern "C"
26103#endif
26104char $ac_func ();
26105/* The GNU C library defines this for functions which it implements
26106 to always fail with ENOSYS. Some functions are actually named
26107 something starting with __ and the normal name is an alias. */
26108#if defined __stub_$ac_func || defined __stub___$ac_func
26109choke me
26110#endif
26111
26112int
26113main ()
26114{
26115return $ac_func ();
26116 ;
26117 return 0;
26118}
26119_ACEOF
26120rm -f conftest.$ac_objext conftest$ac_exeext
26121if { (ac_try="$ac_link"
26122case "(($ac_try" in
26123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26124 *) ac_try_echo=$ac_try;;
26125esac
26126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26127 (eval "$ac_link") 2>conftest.er1
26128 ac_status=$?
26129 grep -v '^ *+' conftest.er1 >conftest.err
26130 rm -f conftest.er1
26131 cat conftest.err >&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); } && {
26134 test -z "$ac_c_werror_flag" ||
26135 test ! -s conftest.err
26136 } && test -s conftest$ac_exeext &&
26137 $as_test_x conftest$ac_exeext; then
26138 eval "$as_ac_var=yes"
26139else
26140 echo "$as_me: failed program was:" >&5
26141sed 's/^/| /' conftest.$ac_ext >&5
26142
26143 eval "$as_ac_var=no"
26144fi
26145
26146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26147 conftest$ac_exeext conftest.$ac_ext
26148fi
26149ac_res=`eval echo '${'$as_ac_var'}'`
26150 { echo "$as_me:$LINENO: result: $ac_res" >&5
26151echo "${ECHO_T}$ac_res" >&6; }
26152if test `eval echo '${'$as_ac_var'}'` = yes; then
26153 cat >>confdefs.h <<_ACEOF
26154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26155_ACEOF
26156
26157fi
26158done
26159
26160 LIBS="$save_LIBS"
26161 fi
26162
26163fi
26164
26165
26166# Check whether user wants Kerberos 5 support
26167KRB5_MSG="no"
26168
26169# Check whether --with-kerberos5 was given.
26170if test "${with_kerberos5+set}" = set; then
26171 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
26172 if test "x$withval" = "xyes" ; then
26173 KRB5ROOT="/usr/local"
26174 else
26175 KRB5ROOT=${withval}
26176 fi
26177
26178
26179cat >>confdefs.h <<\_ACEOF
26180#define KRB5 1
26181_ACEOF
26182
26183 KRB5_MSG="yes"
26184
26185 { echo "$as_me:$LINENO: checking for krb5-config" >&5
26186echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
26187 if test -x $KRB5ROOT/bin/krb5-config ; then
26188 KRB5CONF=$KRB5ROOT/bin/krb5-config
26189 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
26190echo "${ECHO_T}$KRB5CONF" >&6; }
26191
26192 { echo "$as_me:$LINENO: checking for gssapi support" >&5
26193echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
26194 if $KRB5CONF | grep gssapi >/dev/null ; then
26195 { echo "$as_me:$LINENO: result: yes" >&5
26196echo "${ECHO_T}yes" >&6; }
26197
26198cat >>confdefs.h <<\_ACEOF
26199#define GSSAPI 1
26200_ACEOF
26201
26202 k5confopts=gssapi
26203 else
26204 { echo "$as_me:$LINENO: result: no" >&5
26205echo "${ECHO_T}no" >&6; }
26206 k5confopts=""
26207 fi
26208 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
26209 K5LIBS="`$KRB5CONF --libs $k5confopts`"
26210 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
26211 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26212echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26213 cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219 #include <krb5.h>
26220int
26221main ()
26222{
26223 char *tmp = heimdal_version;
26224 ;
26225 return 0;
26226}
26227_ACEOF
26228rm -f conftest.$ac_objext
26229if { (ac_try="$ac_compile"
26230case "(($ac_try" in
26231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232 *) ac_try_echo=$ac_try;;
26233esac
26234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235 (eval "$ac_compile") 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } && {
26242 test -z "$ac_c_werror_flag" ||
26243 test ! -s conftest.err
26244 } && test -s conftest.$ac_objext; then
26245 { echo "$as_me:$LINENO: result: yes" >&5
26246echo "${ECHO_T}yes" >&6; }
26247
26248cat >>confdefs.h <<\_ACEOF
26249#define HEIMDAL 1
26250_ACEOF
26251
26252else
26253 echo "$as_me: failed program was:" >&5
26254sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 { echo "$as_me:$LINENO: result: no" >&5
26257echo "${ECHO_T}no" >&6; }
26258
26259fi
26260
26261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26262 else
26263 { echo "$as_me:$LINENO: result: no" >&5
26264echo "${ECHO_T}no" >&6; }
26265 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
26266 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
26267 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26268echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26269 cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275 #include <krb5.h>
26276int
26277main ()
26278{
26279 char *tmp = heimdal_version;
26280 ;
26281 return 0;
26282}
26283_ACEOF
26284rm -f conftest.$ac_objext
26285if { (ac_try="$ac_compile"
26286case "(($ac_try" in
26287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288 *) ac_try_echo=$ac_try;;
26289esac
26290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291 (eval "$ac_compile") 2>conftest.er1
26292 ac_status=$?
26293 grep -v '^ *+' conftest.er1 >conftest.err
26294 rm -f conftest.er1
26295 cat conftest.err >&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } && {
26298 test -z "$ac_c_werror_flag" ||
26299 test ! -s conftest.err
26300 } && test -s conftest.$ac_objext; then
26301 { echo "$as_me:$LINENO: result: yes" >&5
26302echo "${ECHO_T}yes" >&6; }
26303 cat >>confdefs.h <<\_ACEOF
26304#define HEIMDAL 1
26305_ACEOF
26306
26307 K5LIBS="-lkrb5 -ldes"
26308 K5LIBS="$K5LIBS -lcom_err -lasn1"
26309 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
26310echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
26311if test "${ac_cv_lib_roken_net_write+set}" = set; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26313else
26314 ac_check_lib_save_LIBS=$LIBS
26315LIBS="-lroken $LIBS"
26316cat >conftest.$ac_ext <<_ACEOF
26317/* confdefs.h. */
26318_ACEOF
26319cat confdefs.h >>conftest.$ac_ext
26320cat >>conftest.$ac_ext <<_ACEOF
26321/* end confdefs.h. */
26322
26323/* Override any GCC internal prototype to avoid an error.
26324 Use char because int might match the return type of a GCC
26325 builtin and then its argument prototype would still apply. */
26326#ifdef __cplusplus
26327extern "C"
26328#endif
26329char net_write ();
26330int
26331main ()
26332{
26333return net_write ();
26334 ;
26335 return 0;
26336}
26337_ACEOF
26338rm -f conftest.$ac_objext conftest$ac_exeext
26339if { (ac_try="$ac_link"
26340case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26343esac
26344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_link") 2>conftest.er1
26346 ac_status=$?
26347 grep -v '^ *+' conftest.er1 >conftest.err
26348 rm -f conftest.er1
26349 cat conftest.err >&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } && {
26352 test -z "$ac_c_werror_flag" ||
26353 test ! -s conftest.err
26354 } && test -s conftest$ac_exeext &&
26355 $as_test_x conftest$ac_exeext; then
26356 ac_cv_lib_roken_net_write=yes
26357else
26358 echo "$as_me: failed program was:" >&5
26359sed 's/^/| /' conftest.$ac_ext >&5
26360
26361 ac_cv_lib_roken_net_write=no
26362fi
26363
26364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26365 conftest$ac_exeext conftest.$ac_ext
26366LIBS=$ac_check_lib_save_LIBS
26367fi
26368{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
26369echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
26370if test $ac_cv_lib_roken_net_write = yes; then
26371 K5LIBS="$K5LIBS -lroken"
26372fi
26373
26374
26375else
26376 echo "$as_me: failed program was:" >&5
26377sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 { echo "$as_me:$LINENO: result: no" >&5
26380echo "${ECHO_T}no" >&6; }
26381 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
26382
26383
26384fi
26385
26386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
26388echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
26389if test "${ac_cv_search_dn_expand+set}" = set; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26391else
26392 ac_func_search_save_LIBS=$LIBS
26393cat >conftest.$ac_ext <<_ACEOF
26394/* confdefs.h. */
26395_ACEOF
26396cat confdefs.h >>conftest.$ac_ext
26397cat >>conftest.$ac_ext <<_ACEOF
26398/* end confdefs.h. */
26399
26400/* Override any GCC internal prototype to avoid an error.
26401 Use char because int might match the return type of a GCC
26402 builtin and then its argument prototype would still apply. */
26403#ifdef __cplusplus
26404extern "C"
26405#endif
26406char dn_expand ();
26407int
26408main ()
26409{
26410return dn_expand ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415for ac_lib in '' resolv; do
26416 if test -z "$ac_lib"; then
26417 ac_res="none required"
26418 else
26419 ac_res=-l$ac_lib
26420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26421 fi
26422 rm -f conftest.$ac_objext conftest$ac_exeext
26423if { (ac_try="$ac_link"
26424case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26427esac
26428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_link") 2>conftest.er1
26430 ac_status=$?
26431 grep -v '^ *+' conftest.er1 >conftest.err
26432 rm -f conftest.er1
26433 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && {
26436 test -z "$ac_c_werror_flag" ||
26437 test ! -s conftest.err
26438 } && test -s conftest$ac_exeext &&
26439 $as_test_x conftest$ac_exeext; then
26440 ac_cv_search_dn_expand=$ac_res
26441else
26442 echo "$as_me: failed program was:" >&5
26443sed 's/^/| /' conftest.$ac_ext >&5
26444
26445
26446fi
26447
26448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26449 conftest$ac_exeext
26450 if test "${ac_cv_search_dn_expand+set}" = set; then
26451 break
26452fi
26453done
26454if test "${ac_cv_search_dn_expand+set}" = set; then
26455 :
26456else
26457 ac_cv_search_dn_expand=no
26458fi
26459rm conftest.$ac_ext
26460LIBS=$ac_func_search_save_LIBS
26461fi
26462{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
26463echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
26464ac_res=$ac_cv_search_dn_expand
26465if test "$ac_res" != no; then
26466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26467
26468fi
26469
26470
26471 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
26472echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
26473if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26475else
26476 ac_check_lib_save_LIBS=$LIBS
26477LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
26478cat >conftest.$ac_ext <<_ACEOF
26479/* confdefs.h. */
26480_ACEOF
26481cat confdefs.h >>conftest.$ac_ext
26482cat >>conftest.$ac_ext <<_ACEOF
26483/* end confdefs.h. */
26484
26485/* Override any GCC internal prototype to avoid an error.
26486 Use char because int might match the return type of a GCC
26487 builtin and then its argument prototype would still apply. */
26488#ifdef __cplusplus
26489extern "C"
26490#endif
26491char gss_init_sec_context ();
26492int
26493main ()
26494{
26495return gss_init_sec_context ();
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext conftest$ac_exeext
26501if { (ac_try="$ac_link"
26502case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26505esac
26506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_link") 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } && {
26514 test -z "$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26516 } && test -s conftest$ac_exeext &&
26517 $as_test_x conftest$ac_exeext; then
26518 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
26519else
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
26524fi
26525
26526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26527 conftest$ac_exeext conftest.$ac_ext
26528LIBS=$ac_check_lib_save_LIBS
26529fi
26530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
26531echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
26532if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
26533 cat >>confdefs.h <<\_ACEOF
26534#define GSSAPI 1
26535_ACEOF
26536
26537 K5LIBS="-lgssapi_krb5 $K5LIBS"
26538else
26539 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
26540echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
26541if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
26542 echo $ECHO_N "(cached) $ECHO_C" >&6
26543else
26544 ac_check_lib_save_LIBS=$LIBS
26545LIBS="-lgssapi $K5LIBS $LIBS"
26546cat >conftest.$ac_ext <<_ACEOF
26547/* confdefs.h. */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
26551/* end confdefs.h. */
26552
26553/* Override any GCC internal prototype to avoid an error.
26554 Use char because int might match the return type of a GCC
26555 builtin and then its argument prototype would still apply. */
26556#ifdef __cplusplus
26557extern "C"
26558#endif
26559char gss_init_sec_context ();
26560int
26561main ()
26562{
26563return gss_init_sec_context ();
26564 ;
26565 return 0;
26566}
26567_ACEOF
26568rm -f conftest.$ac_objext conftest$ac_exeext
26569if { (ac_try="$ac_link"
26570case "(($ac_try" in
26571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572 *) ac_try_echo=$ac_try;;
26573esac
26574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575 (eval "$ac_link") 2>conftest.er1
26576 ac_status=$?
26577 grep -v '^ *+' conftest.er1 >conftest.err
26578 rm -f conftest.er1
26579 cat conftest.err >&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } && {
26582 test -z "$ac_c_werror_flag" ||
26583 test ! -s conftest.err
26584 } && test -s conftest$ac_exeext &&
26585 $as_test_x conftest$ac_exeext; then
26586 ac_cv_lib_gssapi_gss_init_sec_context=yes
26587else
26588 echo "$as_me: failed program was:" >&5
26589sed 's/^/| /' conftest.$ac_ext >&5
26590
26591 ac_cv_lib_gssapi_gss_init_sec_context=no
26592fi
26593
26594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26595 conftest$ac_exeext conftest.$ac_ext
26596LIBS=$ac_check_lib_save_LIBS
26597fi
26598{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
26599echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
26600if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
26601 cat >>confdefs.h <<\_ACEOF
26602#define GSSAPI 1
26603_ACEOF
26604
26605 K5LIBS="-lgssapi $K5LIBS"
26606else
26607 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
26608echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
26609fi
26610
26611
26612fi
26613
26614
26615 if test "${ac_cv_header_gssapi_h+set}" = set; then
26616 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
26617echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26618if test "${ac_cv_header_gssapi_h+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26620fi
26621{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26622echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26623else
26624 # Is the header compilable?
26625{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
26626echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
26627cat >conftest.$ac_ext <<_ACEOF
26628/* confdefs.h. */
26629_ACEOF
26630cat confdefs.h >>conftest.$ac_ext
26631cat >>conftest.$ac_ext <<_ACEOF
26632/* end confdefs.h. */
26633$ac_includes_default
26634#include <gssapi.h>
26635_ACEOF
26636rm -f conftest.$ac_objext
26637if { (ac_try="$ac_compile"
26638case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26641esac
26642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_compile") 2>conftest.er1
26644 ac_status=$?
26645 grep -v '^ *+' conftest.er1 >conftest.err
26646 rm -f conftest.er1
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } && {
26650 test -z "$ac_c_werror_flag" ||
26651 test ! -s conftest.err
26652 } && test -s conftest.$ac_objext; then
26653 ac_header_compiler=yes
26654else
26655 echo "$as_me: failed program was:" >&5
26656sed 's/^/| /' conftest.$ac_ext >&5
26657
26658 ac_header_compiler=no
26659fi
26660
26661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26663echo "${ECHO_T}$ac_header_compiler" >&6; }
26664
26665# Is the header present?
26666{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
26667echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
26668cat >conftest.$ac_ext <<_ACEOF
26669/* confdefs.h. */
26670_ACEOF
26671cat confdefs.h >>conftest.$ac_ext
26672cat >>conftest.$ac_ext <<_ACEOF
26673/* end confdefs.h. */
26674#include <gssapi.h>
26675_ACEOF
26676if { (ac_try="$ac_cpp conftest.$ac_ext"
26677case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26680esac
26681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26683 ac_status=$?
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } >/dev/null && {
26689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26690 test ! -s conftest.err
26691 }; then
26692 ac_header_preproc=yes
26693else
26694 echo "$as_me: failed program was:" >&5
26695sed 's/^/| /' conftest.$ac_ext >&5
26696
26697 ac_header_preproc=no
26698fi
26699
26700rm -f conftest.err conftest.$ac_ext
26701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26702echo "${ECHO_T}$ac_header_preproc" >&6; }
26703
26704# So? What about this header?
26705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26706 yes:no: )
26707 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
26708echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
26710echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
26711 ac_header_preproc=yes
26712 ;;
26713 no:yes:* )
26714 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
26715echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
26717echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
26719echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
26721echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
26723echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
26725echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
26726 ( cat <<\_ASBOX
26727## ------------------------------------------- ##
26728## Report this to openssh-unix-dev@mindrot.org ##
26729## ------------------------------------------- ##
26730_ASBOX
26731 ) | sed "s/^/$as_me: WARNING: /" >&2
26732 ;;
26733esac
26734{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
26735echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26736if test "${ac_cv_header_gssapi_h+set}" = set; then
26737 echo $ECHO_N "(cached) $ECHO_C" >&6
26738else
26739 ac_cv_header_gssapi_h=$ac_header_preproc
26740fi
26741{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26742echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26743
26744fi
26745if test $ac_cv_header_gssapi_h = yes; then
26746 :
26747else
26748 unset ac_cv_header_gssapi_h
26749 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26750
26751for ac_header in gssapi.h
26752do
26753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759fi
26760ac_res=`eval echo '${'$as_ac_Header'}'`
26761 { echo "$as_me:$LINENO: result: $ac_res" >&5
26762echo "${ECHO_T}$ac_res" >&6; }
26763else
26764 # Is the header compilable?
26765{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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$ac_includes_default
26774#include <$ac_header>
26775_ACEOF
26776rm -f conftest.$ac_objext
26777if { (ac_try="$ac_compile"
26778case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26781esac
26782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_compile") 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest.$ac_objext; then
26793 ac_header_compiler=yes
26794else
26795 echo "$as_me: failed program was:" >&5
26796sed 's/^/| /' conftest.$ac_ext >&5
26797
26798 ac_header_compiler=no
26799fi
26800
26801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26803echo "${ECHO_T}$ac_header_compiler" >&6; }
26804
26805# Is the header present?
26806{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26808cat >conftest.$ac_ext <<_ACEOF
26809/* confdefs.h. */
26810_ACEOF
26811cat confdefs.h >>conftest.$ac_ext
26812cat >>conftest.$ac_ext <<_ACEOF
26813/* end confdefs.h. */
26814#include <$ac_header>
26815_ACEOF
26816if { (ac_try="$ac_cpp conftest.$ac_ext"
26817case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26820esac
26821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26823 ac_status=$?
26824 grep -v '^ *+' conftest.er1 >conftest.err
26825 rm -f conftest.er1
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } >/dev/null && {
26829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26830 test ! -s conftest.err
26831 }; then
26832 ac_header_preproc=yes
26833else
26834 echo "$as_me: failed program was:" >&5
26835sed 's/^/| /' conftest.$ac_ext >&5
26836
26837 ac_header_preproc=no
26838fi
26839
26840rm -f conftest.err conftest.$ac_ext
26841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26842echo "${ECHO_T}$ac_header_preproc" >&6; }
26843
26844# So? What about this header?
26845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26846 yes:no: )
26847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26851 ac_header_preproc=yes
26852 ;;
26853 no:yes:* )
26854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26866 ( cat <<\_ASBOX
26867## ------------------------------------------- ##
26868## Report this to openssh-unix-dev@mindrot.org ##
26869## ------------------------------------------- ##
26870_ASBOX
26871 ) | sed "s/^/$as_me: WARNING: /" >&2
26872 ;;
26873esac
26874{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26878else
26879 eval "$as_ac_Header=\$ac_header_preproc"
26880fi
26881ac_res=`eval echo '${'$as_ac_Header'}'`
26882 { echo "$as_me:$LINENO: result: $ac_res" >&5
26883echo "${ECHO_T}$ac_res" >&6; }
26884
26885fi
26886if test `eval echo '${'$as_ac_Header'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26889_ACEOF
26890
26891else
26892 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
26893echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
26894
26895fi
26896
26897done
26898
26899
26900
26901fi
26902
26903
26904
26905 oldCPP="$CPPFLAGS"
26906 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26907 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26908 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26909echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26910if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26911 echo $ECHO_N "(cached) $ECHO_C" >&6
26912fi
26913{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26914echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26915else
26916 # Is the header compilable?
26917{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
26918echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
26919cat >conftest.$ac_ext <<_ACEOF
26920/* confdefs.h. */
26921_ACEOF
26922cat confdefs.h >>conftest.$ac_ext
26923cat >>conftest.$ac_ext <<_ACEOF
26924/* end confdefs.h. */
26925$ac_includes_default
26926#include <gssapi_krb5.h>
26927_ACEOF
26928rm -f conftest.$ac_objext
26929if { (ac_try="$ac_compile"
26930case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933esac
26934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_compile") 2>conftest.er1
26936 ac_status=$?
26937 grep -v '^ *+' conftest.er1 >conftest.err
26938 rm -f conftest.er1
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } && {
26942 test -z "$ac_c_werror_flag" ||
26943 test ! -s conftest.err
26944 } && test -s conftest.$ac_objext; then
26945 ac_header_compiler=yes
26946else
26947 echo "$as_me: failed program was:" >&5
26948sed 's/^/| /' conftest.$ac_ext >&5
26949
26950 ac_header_compiler=no
26951fi
26952
26953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26955echo "${ECHO_T}$ac_header_compiler" >&6; }
26956
26957# Is the header present?
26958{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
26959echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
26960cat >conftest.$ac_ext <<_ACEOF
26961/* confdefs.h. */
26962_ACEOF
26963cat confdefs.h >>conftest.$ac_ext
26964cat >>conftest.$ac_ext <<_ACEOF
26965/* end confdefs.h. */
26966#include <gssapi_krb5.h>
26967_ACEOF
26968if { (ac_try="$ac_cpp conftest.$ac_ext"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } >/dev/null && {
26981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26982 test ! -s conftest.err
26983 }; then
26984 ac_header_preproc=yes
26985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989 ac_header_preproc=no
26990fi
26991
26992rm -f conftest.err conftest.$ac_ext
26993{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994echo "${ECHO_T}$ac_header_preproc" >&6; }
26995
26996# So? What about this header?
26997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998 yes:no: )
26999 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
27000echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
27002echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
27003 ac_header_preproc=yes
27004 ;;
27005 no:yes:* )
27006 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
27007echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
27009echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
27010 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
27011echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
27013echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
27015echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
27017echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
27018 ( cat <<\_ASBOX
27019## ------------------------------------------- ##
27020## Report this to openssh-unix-dev@mindrot.org ##
27021## ------------------------------------------- ##
27022_ASBOX
27023 ) | sed "s/^/$as_me: WARNING: /" >&2
27024 ;;
27025esac
27026{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27027echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27028if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27030else
27031 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
27032fi
27033{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27034echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27035
27036fi
27037if test $ac_cv_header_gssapi_krb5_h = yes; then
27038 :
27039else
27040 CPPFLAGS="$oldCPP"
27041fi
27042
27043
27044
27045 fi
27046 if test ! -z "$need_dash_r" ; then
27047 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
27048 fi
27049 if test ! -z "$blibpath" ; then
27050 blibpath="$blibpath:${KRB5ROOT}/lib"
27051 fi
27052
27053
27054
27055for ac_header in gssapi.h gssapi/gssapi.h
27056do
27057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27063fi
27064ac_res=`eval echo '${'$as_ac_Header'}'`
27065 { echo "$as_me:$LINENO: result: $ac_res" >&5
27066echo "${ECHO_T}$ac_res" >&6; }
27067else
27068 # Is the header compilable?
27069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27071cat >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$ac_includes_default
27078#include <$ac_header>
27079_ACEOF
27080rm -f conftest.$ac_objext
27081if { (ac_try="$ac_compile"
27082case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085esac
27086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_compile") 2>conftest.er1
27088 ac_status=$?
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && {
27094 test -z "$ac_c_werror_flag" ||
27095 test ! -s conftest.err
27096 } && test -s conftest.$ac_objext; then
27097 ac_header_compiler=yes
27098else
27099 echo "$as_me: failed program was:" >&5
27100sed 's/^/| /' conftest.$ac_ext >&5
27101
27102 ac_header_compiler=no
27103fi
27104
27105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27107echo "${ECHO_T}$ac_header_compiler" >&6; }
27108
27109# Is the header present?
27110{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27112cat >conftest.$ac_ext <<_ACEOF
27113/* confdefs.h. */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h. */
27118#include <$ac_header>
27119_ACEOF
27120if { (ac_try="$ac_cpp conftest.$ac_ext"
27121case "(($ac_try" in
27122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123 *) ac_try_echo=$ac_try;;
27124esac
27125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27127 ac_status=$?
27128 grep -v '^ *+' conftest.er1 >conftest.err
27129 rm -f conftest.er1
27130 cat conftest.err >&5
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } >/dev/null && {
27133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27134 test ! -s conftest.err
27135 }; then
27136 ac_header_preproc=yes
27137else
27138 echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 ac_header_preproc=no
27142fi
27143
27144rm -f conftest.err conftest.$ac_ext
27145{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27146echo "${ECHO_T}$ac_header_preproc" >&6; }
27147
27148# So? What about this header?
27149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27150 yes:no: )
27151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27155 ac_header_preproc=yes
27156 ;;
27157 no:yes:* )
27158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27161echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27165echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27170 ( cat <<\_ASBOX
27171## ------------------------------------------- ##
27172## Report this to openssh-unix-dev@mindrot.org ##
27173## ------------------------------------------- ##
27174_ASBOX
27175 ) | sed "s/^/$as_me: WARNING: /" >&2
27176 ;;
27177esac
27178{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182else
27183 eval "$as_ac_Header=\$ac_header_preproc"
27184fi
27185ac_res=`eval echo '${'$as_ac_Header'}'`
27186 { echo "$as_me:$LINENO: result: $ac_res" >&5
27187echo "${ECHO_T}$ac_res" >&6; }
27188
27189fi
27190if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27193_ACEOF
27194
27195fi
27196
27197done
27198
27199
27200
27201for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
27202do
27203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209fi
27210ac_res=`eval echo '${'$as_ac_Header'}'`
27211 { echo "$as_me:$LINENO: result: $ac_res" >&5
27212echo "${ECHO_T}$ac_res" >&6; }
27213else
27214 # Is the header compilable?
27215{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27217cat >conftest.$ac_ext <<_ACEOF
27218/* confdefs.h. */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h. */
27223$ac_includes_default
27224#include <$ac_header>
27225_ACEOF
27226rm -f conftest.$ac_objext
27227if { (ac_try="$ac_compile"
27228case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27231esac
27232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_compile") 2>conftest.er1
27234 ac_status=$?
27235 grep -v '^ *+' conftest.er1 >conftest.err
27236 rm -f conftest.er1
27237 cat conftest.err >&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } && {
27240 test -z "$ac_c_werror_flag" ||
27241 test ! -s conftest.err
27242 } && test -s conftest.$ac_objext; then
27243 ac_header_compiler=yes
27244else
27245 echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248 ac_header_compiler=no
27249fi
27250
27251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27253echo "${ECHO_T}$ac_header_compiler" >&6; }
27254
27255# Is the header present?
27256{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27258cat >conftest.$ac_ext <<_ACEOF
27259/* confdefs.h. */
27260_ACEOF
27261cat confdefs.h >>conftest.$ac_ext
27262cat >>conftest.$ac_ext <<_ACEOF
27263/* end confdefs.h. */
27264#include <$ac_header>
27265_ACEOF
27266if { (ac_try="$ac_cpp conftest.$ac_ext"
27267case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27270esac
27271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27273 ac_status=$?
27274 grep -v '^ *+' conftest.er1 >conftest.err
27275 rm -f conftest.er1
27276 cat conftest.err >&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } >/dev/null && {
27279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27280 test ! -s conftest.err
27281 }; then
27282 ac_header_preproc=yes
27283else
27284 echo "$as_me: failed program was:" >&5
27285sed 's/^/| /' conftest.$ac_ext >&5
27286
27287 ac_header_preproc=no
27288fi
27289
27290rm -f conftest.err conftest.$ac_ext
27291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27292echo "${ECHO_T}$ac_header_preproc" >&6; }
27293
27294# So? What about this header?
27295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27296 yes:no: )
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27301 ac_header_preproc=yes
27302 ;;
27303 no:yes:* )
27304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27316 ( cat <<\_ASBOX
27317## ------------------------------------------- ##
27318## Report this to openssh-unix-dev@mindrot.org ##
27319## ------------------------------------------- ##
27320_ASBOX
27321 ) | sed "s/^/$as_me: WARNING: /" >&2
27322 ;;
27323esac
27324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27327 echo $ECHO_N "(cached) $ECHO_C" >&6
27328else
27329 eval "$as_ac_Header=\$ac_header_preproc"
27330fi
27331ac_res=`eval echo '${'$as_ac_Header'}'`
27332 { echo "$as_me:$LINENO: result: $ac_res" >&5
27333echo "${ECHO_T}$ac_res" >&6; }
27334
27335fi
27336if test `eval echo '${'$as_ac_Header'}'` = yes; then
27337 cat >>confdefs.h <<_ACEOF
27338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27339_ACEOF
27340
27341fi
27342
27343done
27344
27345
27346
27347for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
27348do
27349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355fi
27356ac_res=`eval echo '${'$as_ac_Header'}'`
27357 { echo "$as_me:$LINENO: result: $ac_res" >&5
27358echo "${ECHO_T}$ac_res" >&6; }
27359else
27360 # Is the header compilable?
27361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27363cat >conftest.$ac_ext <<_ACEOF
27364/* confdefs.h. */
27365_ACEOF
27366cat confdefs.h >>conftest.$ac_ext
27367cat >>conftest.$ac_ext <<_ACEOF
27368/* end confdefs.h. */
27369$ac_includes_default
27370#include <$ac_header>
27371_ACEOF
27372rm -f conftest.$ac_objext
27373if { (ac_try="$ac_compile"
27374case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } && {
27386 test -z "$ac_c_werror_flag" ||
27387 test ! -s conftest.err
27388 } && test -s conftest.$ac_objext; then
27389 ac_header_compiler=yes
27390else
27391 echo "$as_me: failed program was:" >&5
27392sed 's/^/| /' conftest.$ac_ext >&5
27393
27394 ac_header_compiler=no
27395fi
27396
27397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27399echo "${ECHO_T}$ac_header_compiler" >&6; }
27400
27401# Is the header present?
27402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27404cat >conftest.$ac_ext <<_ACEOF
27405/* confdefs.h. */
27406_ACEOF
27407cat confdefs.h >>conftest.$ac_ext
27408cat >>conftest.$ac_ext <<_ACEOF
27409/* end confdefs.h. */
27410#include <$ac_header>
27411_ACEOF
27412if { (ac_try="$ac_cpp conftest.$ac_ext"
27413case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27419 ac_status=$?
27420 grep -v '^ *+' conftest.er1 >conftest.err
27421 rm -f conftest.er1
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } >/dev/null && {
27425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27426 test ! -s conftest.err
27427 }; then
27428 ac_header_preproc=yes
27429else
27430 echo "$as_me: failed program was:" >&5
27431sed 's/^/| /' conftest.$ac_ext >&5
27432
27433 ac_header_preproc=no
27434fi
27435
27436rm -f conftest.err conftest.$ac_ext
27437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27438echo "${ECHO_T}$ac_header_preproc" >&6; }
27439
27440# So? What about this header?
27441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27442 yes:no: )
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27447 ac_header_preproc=yes
27448 ;;
27449 no:yes:* )
27450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27462 ( cat <<\_ASBOX
27463## ------------------------------------------- ##
27464## Report this to openssh-unix-dev@mindrot.org ##
27465## ------------------------------------------- ##
27466_ASBOX
27467 ) | sed "s/^/$as_me: WARNING: /" >&2
27468 ;;
27469esac
27470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27474else
27475 eval "$as_ac_Header=\$ac_header_preproc"
27476fi
27477ac_res=`eval echo '${'$as_ac_Header'}'`
27478 { echo "$as_me:$LINENO: result: $ac_res" >&5
27479echo "${ECHO_T}$ac_res" >&6; }
27480
27481fi
27482if test `eval echo '${'$as_ac_Header'}'` = yes; then
27483 cat >>confdefs.h <<_ACEOF
27484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27485_ACEOF
27486
27487fi
27488
27489done
27490
27491
27492 LIBS="$LIBS $K5LIBS"
27493 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
27494echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
27495if test "${ac_cv_search_k_hasafs+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27497else
27498 ac_func_search_save_LIBS=$LIBS
27499cat >conftest.$ac_ext <<_ACEOF
27500/* confdefs.h. */
27501_ACEOF
27502cat confdefs.h >>conftest.$ac_ext
27503cat >>conftest.$ac_ext <<_ACEOF
27504/* end confdefs.h. */
27505
27506/* Override any GCC internal prototype to avoid an error.
27507 Use char because int might match the return type of a GCC
27508 builtin and then its argument prototype would still apply. */
27509#ifdef __cplusplus
27510extern "C"
27511#endif
27512char k_hasafs ();
27513int
27514main ()
27515{
27516return k_hasafs ();
27517 ;
27518 return 0;
27519}
27520_ACEOF
27521for ac_lib in '' kafs; do
27522 if test -z "$ac_lib"; then
27523 ac_res="none required"
27524 else
27525 ac_res=-l$ac_lib
27526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27527 fi
27528 rm -f conftest.$ac_objext conftest$ac_exeext
27529if { (ac_try="$ac_link"
27530case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27533esac
27534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535 (eval "$ac_link") 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } && {
27542 test -z "$ac_c_werror_flag" ||
27543 test ! -s conftest.err
27544 } && test -s conftest$ac_exeext &&
27545 $as_test_x conftest$ac_exeext; then
27546 ac_cv_search_k_hasafs=$ac_res
27547else
27548 echo "$as_me: failed program was:" >&5
27549sed 's/^/| /' conftest.$ac_ext >&5
27550
27551
27552fi
27553
27554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27555 conftest$ac_exeext
27556 if test "${ac_cv_search_k_hasafs+set}" = set; then
27557 break
27558fi
27559done
27560if test "${ac_cv_search_k_hasafs+set}" = set; then
27561 :
27562else
27563 ac_cv_search_k_hasafs=no
27564fi
27565rm conftest.$ac_ext
27566LIBS=$ac_func_search_save_LIBS
27567fi
27568{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
27569echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
27570ac_res=$ac_cv_search_k_hasafs
27571if test "$ac_res" != no; then
27572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27573
27574cat >>confdefs.h <<\_ACEOF
27575#define USE_AFS 1
27576_ACEOF
27577
27578fi
27579
27580 fi
27581
27582
27583fi
27584
27585
27586# Looking for programs, paths and files
27587
27588PRIVSEP_PATH=/var/empty
27589
27590# Check whether --with-privsep-path was given.
27591if test "${with_privsep_path+set}" = set; then
27592 withval=$with_privsep_path;
27593 if test -n "$withval" && test "x$withval" != "xno" && \
27594 test "x${withval}" != "xyes"; then
27595 PRIVSEP_PATH=$withval
27596 fi
27597
27598
27599fi
27600
27601
27602
27603
27604# Check whether --with-xauth was given.
27605if test "${with_xauth+set}" = set; then
27606 withval=$with_xauth;
27607 if test -n "$withval" && test "x$withval" != "xno" && \
27608 test "x${withval}" != "xyes"; then
27609 xauth_path=$withval
27610 fi
27611
27612else
27613
27614 TestPath="$PATH"
27615 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
27616 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
27617 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
27618 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
27619 # Extract the first word of "xauth", so it can be a program name with args.
27620set dummy xauth; ac_word=$2
27621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27623if test "${ac_cv_path_xauth_path+set}" = set; then
27624 echo $ECHO_N "(cached) $ECHO_C" >&6
27625else
27626 case $xauth_path in
27627 [\\/]* | ?:[\\/]*)
27628 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
27629 ;;
27630 *)
27631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27632for as_dir in $TestPath
27633do
27634 IFS=$as_save_IFS
27635 test -z "$as_dir" && as_dir=.
27636 for ac_exec_ext in '' $ac_executable_extensions; do
27637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27638 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
27639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27640 break 2
27641 fi
27642done
27643done
27644IFS=$as_save_IFS
27645
27646 ;;
27647esac
27648fi
27649xauth_path=$ac_cv_path_xauth_path
27650if test -n "$xauth_path"; then
27651 { echo "$as_me:$LINENO: result: $xauth_path" >&5
27652echo "${ECHO_T}$xauth_path" >&6; }
27653else
27654 { echo "$as_me:$LINENO: result: no" >&5
27655echo "${ECHO_T}no" >&6; }
27656fi
27657
27658
27659 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
27660 xauth_path="/usr/openwin/bin/xauth"
27661 fi
27662
27663
27664fi
27665
27666
27667STRIP_OPT=-s
27668# Check whether --enable-strip was given.
27669if test "${enable_strip+set}" = set; then
27670 enableval=$enable_strip;
27671 if test "x$enableval" = "xno" ; then
27672 STRIP_OPT=
27673 fi
27674
27675
27676fi
27677
27678
27679
27680if test -z "$xauth_path" ; then
27681 XAUTH_PATH="undefined"
27682
27683else
27684
27685cat >>confdefs.h <<_ACEOF
27686#define XAUTH_PATH "$xauth_path"
27687_ACEOF
27688
27689 XAUTH_PATH=$xauth_path
27690
27691fi
27692
27693# Check for mail directory (last resort if we cannot get it from headers)
27694if test ! -z "$MAIL" ; then
27695 maildir=`dirname $MAIL`
27696
27697cat >>confdefs.h <<_ACEOF
27698#define MAIL_DIRECTORY "$maildir"
27699_ACEOF
27700
27701fi
27702
27703if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
27704 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
27705echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
27706 disable_ptmx_check=yes
27707fi
27708if test -z "$no_dev_ptmx" ; then
27709 if test "x$disable_ptmx_check" != "xyes" ; then
27710 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
27711echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
27712if test "${ac_cv_file___dev_ptmx_+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714else
27715 test "$cross_compiling" = yes &&
27716 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27717echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27718 { (exit 1); exit 1; }; }
27719if test -r ""/dev/ptmx""; then
27720 ac_cv_file___dev_ptmx_=yes
27721else
27722 ac_cv_file___dev_ptmx_=no
27723fi
27724fi
27725{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
27726echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
27727if test $ac_cv_file___dev_ptmx_ = yes; then
27728
27729
27730cat >>confdefs.h <<_ACEOF
27731#define HAVE_DEV_PTMX 1
27732_ACEOF
27733
27734 have_dev_ptmx=1
27735
27736
27737fi
27738
27739 fi
27740fi
27741
27742if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
27743 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
27744echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
27745if test "${ac_cv_file___dev_ptc_+set}" = set; then
27746 echo $ECHO_N "(cached) $ECHO_C" >&6
27747else
27748 test "$cross_compiling" = yes &&
27749 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27750echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27751 { (exit 1); exit 1; }; }
27752if test -r ""/dev/ptc""; then
27753 ac_cv_file___dev_ptc_=yes
27754else
27755 ac_cv_file___dev_ptc_=no
27756fi
27757fi
27758{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
27759echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
27760if test $ac_cv_file___dev_ptc_ = yes; then
27761
27762
27763cat >>confdefs.h <<_ACEOF
27764#define HAVE_DEV_PTS_AND_PTC 1
27765_ACEOF
27766
27767 have_dev_ptc=1
27768
27769
27770fi
27771
27772else
27773 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
27774echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
27775fi
27776
27777# Options from here on. Some of these are preset by platform above
27778
27779# Check whether --with-mantype was given.
27780if test "${with_mantype+set}" = set; then
27781 withval=$with_mantype;
27782 case "$withval" in
27783 man|cat|doc)
27784 MANTYPE=$withval
27785 ;;
27786 *)
27787 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
27788echo "$as_me: error: invalid man type: $withval" >&2;}
27789 { (exit 1); exit 1; }; }
27790 ;;
27791 esac
27792
27793
27794fi
27795
27796if test -z "$MANTYPE"; then
27797 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
27798 for ac_prog in nroff awf
27799do
27800 # Extract the first word of "$ac_prog", so it can be a program name with args.
27801set dummy $ac_prog; ac_word=$2
27802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27804if test "${ac_cv_path_NROFF+set}" = set; then
27805 echo $ECHO_N "(cached) $ECHO_C" >&6
27806else
27807 case $NROFF in
27808 [\\/]* | ?:[\\/]*)
27809 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27810 ;;
27811 *)
27812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27813for as_dir in $TestPath
27814do
27815 IFS=$as_save_IFS
27816 test -z "$as_dir" && as_dir=.
27817 for ac_exec_ext in '' $ac_executable_extensions; do
27818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27819 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27821 break 2
27822 fi
27823done
27824done
27825IFS=$as_save_IFS
27826
27827 ;;
27828esac
27829fi
27830NROFF=$ac_cv_path_NROFF
27831if test -n "$NROFF"; then
27832 { echo "$as_me:$LINENO: result: $NROFF" >&5
27833echo "${ECHO_T}$NROFF" >&6; }
27834else
27835 { echo "$as_me:$LINENO: result: no" >&5
27836echo "${ECHO_T}no" >&6; }
27837fi
27838
27839
27840 test -n "$NROFF" && break
27841done
27842test -n "$NROFF" || NROFF="/bin/false"
27843
27844 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
27845 MANTYPE=doc
27846 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
27847 MANTYPE=man
27848 else
27849 MANTYPE=cat
27850 fi
27851fi
27852
27853if test "$MANTYPE" = "doc"; then
27854 mansubdir=man;
27855else
27856 mansubdir=$MANTYPE;
27857fi
27858
27859
27860# Check whether to enable MD5 passwords
27861MD5_MSG="no"
27862
27863# Check whether --with-md5-passwords was given.
27864if test "${with_md5_passwords+set}" = set; then
27865 withval=$with_md5_passwords;
27866 if test "x$withval" != "xno" ; then
27867
27868cat >>confdefs.h <<\_ACEOF
27869#define HAVE_MD5_PASSWORDS 1
27870_ACEOF
27871
27872 MD5_MSG="yes"
27873 fi
27874
27875
27876fi
27877
27878
27879# Whether to disable shadow password support
27880
27881# Check whether --with-shadow was given.
27882if test "${with_shadow+set}" = set; then
27883 withval=$with_shadow;
27884 if test "x$withval" = "xno" ; then
27885 cat >>confdefs.h <<\_ACEOF
27886#define DISABLE_SHADOW 1
27887_ACEOF
27888
27889 disable_shadow=yes
27890 fi
27891
27892
27893fi
27894
27895
27896if test -z "$disable_shadow" ; then
27897 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
27898echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
27899 cat >conftest.$ac_ext <<_ACEOF
27900/* confdefs.h. */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h. */
27905
27906#include <sys/types.h>
27907#include <shadow.h>
27908 struct spwd sp;
27909
27910int
27911main ()
27912{
27913 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
27914 ;
27915 return 0;
27916}
27917_ACEOF
27918rm -f conftest.$ac_objext
27919if { (ac_try="$ac_compile"
27920case "(($ac_try" in
27921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922 *) ac_try_echo=$ac_try;;
27923esac
27924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_compile") 2>conftest.er1
27926 ac_status=$?
27927 grep -v '^ *+' conftest.er1 >conftest.err
27928 rm -f conftest.er1
27929 cat conftest.err >&5
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); } && {
27932 test -z "$ac_c_werror_flag" ||
27933 test ! -s conftest.err
27934 } && test -s conftest.$ac_objext; then
27935 sp_expire_available=yes
27936else
27937 echo "$as_me: failed program was:" >&5
27938sed 's/^/| /' conftest.$ac_ext >&5
27939
27940
27941
27942fi
27943
27944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945
27946 if test "x$sp_expire_available" = "xyes" ; then
27947 { echo "$as_me:$LINENO: result: yes" >&5
27948echo "${ECHO_T}yes" >&6; }
27949
27950cat >>confdefs.h <<\_ACEOF
27951#define HAS_SHADOW_EXPIRE 1
27952_ACEOF
27953
27954 else
27955 { echo "$as_me:$LINENO: result: no" >&5
27956echo "${ECHO_T}no" >&6; }
27957 fi
27958fi
27959
27960# Use ip address instead of hostname in $DISPLAY
27961if test ! -z "$IPADDR_IN_DISPLAY" ; then
27962 DISPLAY_HACK_MSG="yes"
27963
27964cat >>confdefs.h <<\_ACEOF
27965#define IPADDR_IN_DISPLAY 1
27966_ACEOF
27967
27968else
27969 DISPLAY_HACK_MSG="no"
27970
27971# Check whether --with-ipaddr-display was given.
27972if test "${with_ipaddr_display+set}" = set; then
27973 withval=$with_ipaddr_display;
27974 if test "x$withval" != "xno" ; then
27975 cat >>confdefs.h <<\_ACEOF
27976#define IPADDR_IN_DISPLAY 1
27977_ACEOF
27978
27979 DISPLAY_HACK_MSG="yes"
27980 fi
27981
27982
27983fi
27984
27985fi
27986
27987# check for /etc/default/login and use it if present.
27988# Check whether --enable-etc-default-login was given.
27989if test "${enable_etc_default_login+set}" = set; then
27990 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
27991 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
27992echo "$as_me: /etc/default/login handling disabled" >&6;}
27993 etc_default_login=no
27994 else
27995 etc_default_login=yes
27996 fi
27997else
27998 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
27999 then
28000 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
28001echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
28002 etc_default_login=no
28003 else
28004 etc_default_login=yes
28005 fi
28006
28007fi
28008
28009
28010if test "x$etc_default_login" != "xno"; then
28011 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
28012echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
28013if test "${ac_cv_file___etc_default_login_+set}" = set; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28015else
28016 test "$cross_compiling" = yes &&
28017 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28018echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28019 { (exit 1); exit 1; }; }
28020if test -r ""/etc/default/login""; then
28021 ac_cv_file___etc_default_login_=yes
28022else
28023 ac_cv_file___etc_default_login_=no
28024fi
28025fi
28026{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
28027echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
28028if test $ac_cv_file___etc_default_login_ = yes; then
28029 external_path_file=/etc/default/login
28030fi
28031
28032 if test "x$external_path_file" = "x/etc/default/login"; then
28033
28034cat >>confdefs.h <<\_ACEOF
28035#define HAVE_ETC_DEFAULT_LOGIN 1
28036_ACEOF
28037
28038 fi
28039fi
28040
28041if test $ac_cv_func_login_getcapbool = "yes" && \
28042 test $ac_cv_header_login_cap_h = "yes" ; then
28043 external_path_file=/etc/login.conf
28044fi
28045
28046# Whether to mess with the default path
28047SERVER_PATH_MSG="(default)"
28048
28049# Check whether --with-default-path was given.
28050if test "${with_default_path+set}" = set; then
28051 withval=$with_default_path;
28052 if test "x$external_path_file" = "x/etc/login.conf" ; then
28053 { echo "$as_me:$LINENO: WARNING:
28054--with-default-path=PATH has no effect on this system.
28055Edit /etc/login.conf instead." >&5
28056echo "$as_me: WARNING:
28057--with-default-path=PATH has no effect on this system.
28058Edit /etc/login.conf instead." >&2;}
28059 elif test "x$withval" != "xno" ; then
28060 if test ! -z "$external_path_file" ; then
28061 { echo "$as_me:$LINENO: WARNING:
28062--with-default-path=PATH will only be used if PATH is not defined in
28063$external_path_file ." >&5
28064echo "$as_me: WARNING:
28065--with-default-path=PATH will only be used if PATH is not defined in
28066$external_path_file ." >&2;}
28067 fi
28068 user_path="$withval"
28069 SERVER_PATH_MSG="$withval"
28070 fi
28071
28072else
28073 if test "x$external_path_file" = "x/etc/login.conf" ; then
28074 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
28075echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
28076 else
28077 if test ! -z "$external_path_file" ; then
28078 { echo "$as_me:$LINENO: WARNING:
28079If PATH is defined in $external_path_file, ensure the path to scp is included,
28080otherwise scp will not work." >&5
28081echo "$as_me: WARNING:
28082If PATH is defined in $external_path_file, ensure the path to scp is included,
28083otherwise scp will not work." >&2;}
28084 fi
28085 if test "$cross_compiling" = yes; then
28086 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28087
28088else
28089 cat >conftest.$ac_ext <<_ACEOF
28090/* confdefs.h. */
28091_ACEOF
28092cat confdefs.h >>conftest.$ac_ext
28093cat >>conftest.$ac_ext <<_ACEOF
28094/* end confdefs.h. */
28095
28096/* find out what STDPATH is */
28097#include <stdio.h>
28098#ifdef HAVE_PATHS_H
28099# include <paths.h>
28100#endif
28101#ifndef _PATH_STDPATH
28102# ifdef _PATH_USERPATH /* Irix */
28103# define _PATH_STDPATH _PATH_USERPATH
28104# else
28105# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
28106# endif
28107#endif
28108#include <sys/types.h>
28109#include <sys/stat.h>
28110#include <fcntl.h>
28111#define DATA "conftest.stdpath"
28112
28113main()
28114{
28115 FILE *fd;
28116 int rc;
28117
28118 fd = fopen(DATA,"w");
28119 if(fd == NULL)
28120 exit(1);
28121
28122 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
28123 exit(1);
28124
28125 exit(0);
28126}
28127
28128_ACEOF
28129rm -f conftest$ac_exeext
28130if { (ac_try="$ac_link"
28131case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28134esac
28135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_link") 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28140 { (case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28143esac
28144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_try") 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 user_path=`cat conftest.stdpath`
28150else
28151 echo "$as_me: program exited with status $ac_status" >&5
28152echo "$as_me: failed program was:" >&5
28153sed 's/^/| /' conftest.$ac_ext >&5
28154
28155( exit $ac_status )
28156 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28157fi
28158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28159fi
28160
28161
28162# make sure $bindir is in USER_PATH so scp will work
28163 t_bindir=`eval echo ${bindir}`
28164 case $t_bindir in
28165 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
28166 esac
28167 case $t_bindir in
28168 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
28169 esac
28170 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
28171 if test $? -ne 0 ; then
28172 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
28173 if test $? -ne 0 ; then
28174 user_path=$user_path:$t_bindir
28175 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
28176echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
28177 fi
28178 fi
28179 fi
28180
28181fi
28182
28183if test "x$external_path_file" != "x/etc/login.conf" ; then
28184
28185cat >>confdefs.h <<_ACEOF
28186#define USER_PATH "$user_path"
28187_ACEOF
28188
28189
28190fi
28191
28192# Set superuser path separately to user path
28193
28194# Check whether --with-superuser-path was given.
28195if test "${with_superuser_path+set}" = set; then
28196 withval=$with_superuser_path;
28197 if test -n "$withval" && test "x$withval" != "xno" && \
28198 test "x${withval}" != "xyes"; then
28199
28200cat >>confdefs.h <<_ACEOF
28201#define SUPERUSER_PATH "$withval"
28202_ACEOF
28203
28204 superuser_path=$withval
28205 fi
28206
28207
28208fi
28209
28210
28211
28212{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
28213echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
28214IPV4_IN6_HACK_MSG="no"
28215
28216# Check whether --with-4in6 was given.
28217if test "${with_4in6+set}" = set; then
28218 withval=$with_4in6;
28219 if test "x$withval" != "xno" ; then
28220 { echo "$as_me:$LINENO: result: yes" >&5
28221echo "${ECHO_T}yes" >&6; }
28222
28223cat >>confdefs.h <<\_ACEOF
28224#define IPV4_IN_IPV6 1
28225_ACEOF
28226
28227 IPV4_IN6_HACK_MSG="yes"
28228 else
28229 { echo "$as_me:$LINENO: result: no" >&5
28230echo "${ECHO_T}no" >&6; }
28231 fi
28232
28233else
28234
28235 if test "x$inet6_default_4in6" = "xyes"; then
28236 { echo "$as_me:$LINENO: result: yes (default)" >&5
28237echo "${ECHO_T}yes (default)" >&6; }
28238 cat >>confdefs.h <<\_ACEOF
28239#define IPV4_IN_IPV6 1
28240_ACEOF
28241
28242 IPV4_IN6_HACK_MSG="yes"
28243 else
28244 { echo "$as_me:$LINENO: result: no (default)" >&5
28245echo "${ECHO_T}no (default)" >&6; }
28246 fi
28247
28248
28249fi
28250
28251
28252# Whether to enable BSD auth support
28253BSD_AUTH_MSG=no
28254
28255# Check whether --with-bsd-auth was given.
28256if test "${with_bsd_auth+set}" = set; then
28257 withval=$with_bsd_auth;
28258 if test "x$withval" != "xno" ; then
28259
28260cat >>confdefs.h <<\_ACEOF
28261#define BSD_AUTH 1
28262_ACEOF
28263
28264 BSD_AUTH_MSG=yes
28265 fi
28266
28267
28268fi
28269
28270
28271# Where to place sshd.pid
28272piddir=/var/run
28273# make sure the directory exists
28274if test ! -d $piddir ; then
28275 piddir=`eval echo ${sysconfdir}`
28276 case $piddir in
28277 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
28278 esac
28279fi
28280
28281
28282# Check whether --with-pid-dir was given.
28283if test "${with_pid_dir+set}" = set; then
28284 withval=$with_pid_dir;
28285 if test -n "$withval" && test "x$withval" != "xno" && \
28286 test "x${withval}" != "xyes"; then
28287 piddir=$withval
28288 if test ! -d $piddir ; then
28289 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
28290echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
28291 fi
28292 fi
28293
28294
28295fi
28296
28297
28298
28299cat >>confdefs.h <<_ACEOF
28300#define _PATH_SSH_PIDDIR "$piddir"
28301_ACEOF
28302
28303
28304
28305# Check whether --enable-lastlog was given.
28306if test "${enable_lastlog+set}" = set; then
28307 enableval=$enable_lastlog;
28308 if test "x$enableval" = "xno" ; then
28309 cat >>confdefs.h <<\_ACEOF
28310#define DISABLE_LASTLOG 1
28311_ACEOF
28312
28313 fi
28314
28315
28316fi
28317
28318# Check whether --enable-utmp was given.
28319if test "${enable_utmp+set}" = set; then
28320 enableval=$enable_utmp;
28321 if test "x$enableval" = "xno" ; then
28322 cat >>confdefs.h <<\_ACEOF
28323#define DISABLE_UTMP 1
28324_ACEOF
28325
28326 fi
28327
28328
28329fi
28330
28331# Check whether --enable-utmpx was given.
28332if test "${enable_utmpx+set}" = set; then
28333 enableval=$enable_utmpx;
28334 if test "x$enableval" = "xno" ; then
28335
28336cat >>confdefs.h <<\_ACEOF
28337#define DISABLE_UTMPX 1
28338_ACEOF
28339
28340 fi
28341
28342
28343fi
28344
28345# Check whether --enable-wtmp was given.
28346if test "${enable_wtmp+set}" = set; then
28347 enableval=$enable_wtmp;
28348 if test "x$enableval" = "xno" ; then
28349 cat >>confdefs.h <<\_ACEOF
28350#define DISABLE_WTMP 1
28351_ACEOF
28352
28353 fi
28354
28355
28356fi
28357
28358# Check whether --enable-wtmpx was given.
28359if test "${enable_wtmpx+set}" = set; then
28360 enableval=$enable_wtmpx;
28361 if test "x$enableval" = "xno" ; then
28362
28363cat >>confdefs.h <<\_ACEOF
28364#define DISABLE_WTMPX 1
28365_ACEOF
28366
28367 fi
28368
28369
28370fi
28371
28372# Check whether --enable-libutil was given.
28373if test "${enable_libutil+set}" = set; then
28374 enableval=$enable_libutil;
28375 if test "x$enableval" = "xno" ; then
28376 cat >>confdefs.h <<\_ACEOF
28377#define DISABLE_LOGIN 1
28378_ACEOF
28379
28380 fi
28381
28382
28383fi
28384
28385# Check whether --enable-pututline was given.
28386if test "${enable_pututline+set}" = set; then
28387 enableval=$enable_pututline;
28388 if test "x$enableval" = "xno" ; then
28389
28390cat >>confdefs.h <<\_ACEOF
28391#define DISABLE_PUTUTLINE 1
28392_ACEOF
28393
28394 fi
28395
28396
28397fi
28398
28399# Check whether --enable-pututxline was given.
28400if test "${enable_pututxline+set}" = set; then
28401 enableval=$enable_pututxline;
28402 if test "x$enableval" = "xno" ; then
28403
28404cat >>confdefs.h <<\_ACEOF
28405#define DISABLE_PUTUTXLINE 1
28406_ACEOF
28407
28408 fi
28409
28410
28411fi
28412
28413
28414# Check whether --with-lastlog was given.
28415if test "${with_lastlog+set}" = set; then
28416 withval=$with_lastlog;
28417 if test "x$withval" = "xno" ; then
28418 cat >>confdefs.h <<\_ACEOF
28419#define DISABLE_LASTLOG 1
28420_ACEOF
28421
28422 elif test -n "$withval" && test "x${withval}" != "xyes"; then
28423 conf_lastlog_location=$withval
28424 fi
28425
28426
28427fi
28428
28429
28430
28431{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
28432echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
28433cat >conftest.$ac_ext <<_ACEOF
28434/* confdefs.h. */
28435_ACEOF
28436cat confdefs.h >>conftest.$ac_ext
28437cat >>conftest.$ac_ext <<_ACEOF
28438/* end confdefs.h. */
28439
28440#include <sys/types.h>
28441#include <utmp.h>
28442#ifdef HAVE_LASTLOG_H
28443# include <lastlog.h>
28444#endif
28445#ifdef HAVE_PATHS_H
28446# include <paths.h>
28447#endif
28448#ifdef HAVE_LOGIN_H
28449# include <login.h>
28450#endif
28451
28452int
28453main ()
28454{
28455 char *lastlog = LASTLOG_FILE;
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext
28461if { (ac_try="$ac_compile"
28462case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_compile") 2>conftest.er1
28468 ac_status=$?
28469 grep -v '^ *+' conftest.er1 >conftest.err
28470 rm -f conftest.er1
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } && {
28474 test -z "$ac_c_werror_flag" ||
28475 test ! -s conftest.err
28476 } && test -s conftest.$ac_objext; then
28477 { echo "$as_me:$LINENO: result: yes" >&5
28478echo "${ECHO_T}yes" >&6; }
28479else
28480 echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
28483
28484 { echo "$as_me:$LINENO: result: no" >&5
28485echo "${ECHO_T}no" >&6; }
28486 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
28487echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
28488 cat >conftest.$ac_ext <<_ACEOF
28489/* confdefs.h. */
28490_ACEOF
28491cat confdefs.h >>conftest.$ac_ext
28492cat >>conftest.$ac_ext <<_ACEOF
28493/* end confdefs.h. */
28494
28495#include <sys/types.h>
28496#include <utmp.h>
28497#ifdef HAVE_LASTLOG_H
28498# include <lastlog.h>
28499#endif
28500#ifdef HAVE_PATHS_H
28501# include <paths.h>
28502#endif
28503
28504int
28505main ()
28506{
28507 char *lastlog = _PATH_LASTLOG;
28508 ;
28509 return 0;
28510}
28511_ACEOF
28512rm -f conftest.$ac_objext
28513if { (ac_try="$ac_compile"
28514case "(($ac_try" in
28515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28516 *) ac_try_echo=$ac_try;;
28517esac
28518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519 (eval "$ac_compile") 2>conftest.er1
28520 ac_status=$?
28521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } && {
28526 test -z "$ac_c_werror_flag" ||
28527 test ! -s conftest.err
28528 } && test -s conftest.$ac_objext; then
28529 { echo "$as_me:$LINENO: result: yes" >&5
28530echo "${ECHO_T}yes" >&6; }
28531else
28532 echo "$as_me: failed program was:" >&5
28533sed 's/^/| /' conftest.$ac_ext >&5
28534
28535
28536 { echo "$as_me:$LINENO: result: no" >&5
28537echo "${ECHO_T}no" >&6; }
28538 system_lastlog_path=no
28539
28540fi
28541
28542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28543
28544
28545fi
28546
28547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28548
28549if test -z "$conf_lastlog_location"; then
28550 if test x"$system_lastlog_path" = x"no" ; then
28551 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
28552 if (test -d "$f" || test -f "$f") ; then
28553 conf_lastlog_location=$f
28554 fi
28555 done
28556 if test -z "$conf_lastlog_location"; then
28557 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
28558echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
28559 fi
28560 fi
28561fi
28562
28563if test -n "$conf_lastlog_location"; then
28564
28565cat >>confdefs.h <<_ACEOF
28566#define CONF_LASTLOG_FILE "$conf_lastlog_location"
28567_ACEOF
28568
28569fi
28570
28571{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
28572echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
28573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579
28580#include <sys/types.h>
28581#include <utmp.h>
28582#ifdef HAVE_PATHS_H
28583# include <paths.h>
28584#endif
28585
28586int
28587main ()
28588{
28589 char *utmp = UTMP_FILE;
28590 ;
28591 return 0;
28592}
28593_ACEOF
28594rm -f conftest.$ac_objext
28595if { (ac_try="$ac_compile"
28596case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_compile") 2>conftest.er1
28602 ac_status=$?
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && {
28608 test -z "$ac_c_werror_flag" ||
28609 test ! -s conftest.err
28610 } && test -s conftest.$ac_objext; then
28611 { echo "$as_me:$LINENO: result: yes" >&5
28612echo "${ECHO_T}yes" >&6; }
28613else
28614 echo "$as_me: failed program was:" >&5
28615sed 's/^/| /' conftest.$ac_ext >&5
28616
28617 { echo "$as_me:$LINENO: result: no" >&5
28618echo "${ECHO_T}no" >&6; }
28619 system_utmp_path=no
28620
28621fi
28622
28623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624if test -z "$conf_utmp_location"; then
28625 if test x"$system_utmp_path" = x"no" ; then
28626 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
28627 if test -f $f ; then
28628 conf_utmp_location=$f
28629 fi
28630 done
28631 if test -z "$conf_utmp_location"; then
28632 cat >>confdefs.h <<\_ACEOF
28633#define DISABLE_UTMP 1
28634_ACEOF
28635
28636 fi
28637 fi
28638fi
28639if test -n "$conf_utmp_location"; then
28640
28641cat >>confdefs.h <<_ACEOF
28642#define CONF_UTMP_FILE "$conf_utmp_location"
28643_ACEOF
28644
28645fi
28646
28647{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
28648echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
28649cat >conftest.$ac_ext <<_ACEOF
28650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
28655
28656#include <sys/types.h>
28657#include <utmp.h>
28658#ifdef HAVE_PATHS_H
28659# include <paths.h>
28660#endif
28661
28662int
28663main ()
28664{
28665 char *wtmp = WTMP_FILE;
28666 ;
28667 return 0;
28668}
28669_ACEOF
28670rm -f conftest.$ac_objext
28671if { (ac_try="$ac_compile"
28672case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28675esac
28676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_compile") 2>conftest.er1
28678 ac_status=$?
28679 grep -v '^ *+' conftest.er1 >conftest.err
28680 rm -f conftest.er1
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } && {
28684 test -z "$ac_c_werror_flag" ||
28685 test ! -s conftest.err
28686 } && test -s conftest.$ac_objext; then
28687 { echo "$as_me:$LINENO: result: yes" >&5
28688echo "${ECHO_T}yes" >&6; }
28689else
28690 echo "$as_me: failed program was:" >&5
28691sed 's/^/| /' conftest.$ac_ext >&5
28692
28693 { echo "$as_me:$LINENO: result: no" >&5
28694echo "${ECHO_T}no" >&6; }
28695 system_wtmp_path=no
28696
28697fi
28698
28699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28700if test -z "$conf_wtmp_location"; then
28701 if test x"$system_wtmp_path" = x"no" ; then
28702 for f in /usr/adm/wtmp /var/log/wtmp; do
28703 if test -f $f ; then
28704 conf_wtmp_location=$f
28705 fi
28706 done
28707 if test -z "$conf_wtmp_location"; then
28708 cat >>confdefs.h <<\_ACEOF
28709#define DISABLE_WTMP 1
28710_ACEOF
28711
28712 fi
28713 fi
28714fi
28715if test -n "$conf_wtmp_location"; then
28716
28717cat >>confdefs.h <<_ACEOF
28718#define CONF_WTMP_FILE "$conf_wtmp_location"
28719_ACEOF
28720
28721fi
28722
28723
28724{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
28725echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
28726cat >conftest.$ac_ext <<_ACEOF
28727/* confdefs.h. */
28728_ACEOF
28729cat confdefs.h >>conftest.$ac_ext
28730cat >>conftest.$ac_ext <<_ACEOF
28731/* end confdefs.h. */
28732
28733#include <sys/types.h>
28734#include <utmp.h>
28735#ifdef HAVE_UTMPX_H
28736#include <utmpx.h>
28737#endif
28738#ifdef HAVE_PATHS_H
28739# include <paths.h>
28740#endif
28741
28742int
28743main ()
28744{
28745 char *utmpx = UTMPX_FILE;
28746 ;
28747 return 0;
28748}
28749_ACEOF
28750rm -f conftest.$ac_objext
28751if { (ac_try="$ac_compile"
28752case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28755esac
28756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
28758 ac_status=$?
28759 grep -v '^ *+' conftest.er1 >conftest.err
28760 rm -f conftest.er1
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } && {
28764 test -z "$ac_c_werror_flag" ||
28765 test ! -s conftest.err
28766 } && test -s conftest.$ac_objext; then
28767 { echo "$as_me:$LINENO: result: yes" >&5
28768echo "${ECHO_T}yes" >&6; }
28769else
28770 echo "$as_me: failed program was:" >&5
28771sed 's/^/| /' conftest.$ac_ext >&5
28772
28773 { echo "$as_me:$LINENO: result: no" >&5
28774echo "${ECHO_T}no" >&6; }
28775 system_utmpx_path=no
28776
28777fi
28778
28779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780if test -z "$conf_utmpx_location"; then
28781 if test x"$system_utmpx_path" = x"no" ; then
28782 cat >>confdefs.h <<\_ACEOF
28783#define DISABLE_UTMPX 1
28784_ACEOF
28785
28786 fi
28787else
28788
28789cat >>confdefs.h <<_ACEOF
28790#define CONF_UTMPX_FILE "$conf_utmpx_location"
28791_ACEOF
28792
28793fi
28794
28795{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
28796echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
28797cat >conftest.$ac_ext <<_ACEOF
28798/* confdefs.h. */
28799_ACEOF
28800cat confdefs.h >>conftest.$ac_ext
28801cat >>conftest.$ac_ext <<_ACEOF
28802/* end confdefs.h. */
28803
28804#include <sys/types.h>
28805#include <utmp.h>
28806#ifdef HAVE_UTMPX_H
28807#include <utmpx.h>
28808#endif
28809#ifdef HAVE_PATHS_H
28810# include <paths.h>
28811#endif
28812
28813int
28814main ()
28815{
28816 char *wtmpx = WTMPX_FILE;
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext
28822if { (ac_try="$ac_compile"
28823case "(($ac_try" in
28824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28825 *) ac_try_echo=$ac_try;;
28826esac
28827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28828 (eval "$ac_compile") 2>conftest.er1
28829 ac_status=$?
28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } && {
28835 test -z "$ac_c_werror_flag" ||
28836 test ! -s conftest.err
28837 } && test -s conftest.$ac_objext; then
28838 { echo "$as_me:$LINENO: result: yes" >&5
28839echo "${ECHO_T}yes" >&6; }
28840else
28841 echo "$as_me: failed program was:" >&5
28842sed 's/^/| /' conftest.$ac_ext >&5
28843
28844 { echo "$as_me:$LINENO: result: no" >&5
28845echo "${ECHO_T}no" >&6; }
28846 system_wtmpx_path=no
28847
28848fi
28849
28850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28851if test -z "$conf_wtmpx_location"; then
28852 if test x"$system_wtmpx_path" = x"no" ; then
28853 cat >>confdefs.h <<\_ACEOF
28854#define DISABLE_WTMPX 1
28855_ACEOF
28856
28857 fi
28858else
28859
28860cat >>confdefs.h <<_ACEOF
28861#define CONF_WTMPX_FILE "$conf_wtmpx_location"
28862_ACEOF
28863
28864fi
28865
28866
28867if test ! -z "$blibpath" ; then
28868 LDFLAGS="$LDFLAGS $blibflags$blibpath"
28869 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
28870echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
28871fi
28872
28873CFLAGS="$CFLAGS $werror_flags"
28874
28875if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
28876 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
28877 TEST_SSH_IPV6=no
28878
28879else
28880 TEST_SSH_IPV6=yes
28881
28882fi
28883
28884
28885ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
28886
28887cat >confcache <<\_ACEOF
28888# This file is a shell script that caches the results of configure
28889# tests run on this system so they can be shared between configure
28890# scripts and configure runs, see configure's option --config-cache.
28891# It is not useful on other systems. If it contains results you don't
28892# want to keep, you may remove or edit it.
28893#
28894# config.status only pays attention to the cache file if you give it
28895# the --recheck option to rerun configure.
28896#
28897# `ac_cv_env_foo' variables (set or unset) will be overridden when
28898# loading this file, other *unset* `ac_cv_foo' will be assigned the
28899# following values.
28900
28901_ACEOF
28902
28903# The following way of writing the cache mishandles newlines in values,
28904# but we know of no workaround that is simple, portable, and efficient.
28905# So, we kill variables containing newlines.
28906# Ultrix sh set writes to stderr and can't be redirected directly,
28907# and sets the high bit in the cache file unless we assign to the vars.
28908(
28909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28910 eval ac_val=\$$ac_var
28911 case $ac_val in #(
28912 *${as_nl}*)
28913 case $ac_var in #(
28914 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28915echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28916 esac
28917 case $ac_var in #(
28918 _ | IFS | as_nl) ;; #(
28919 *) $as_unset $ac_var ;;
28920 esac ;;
28921 esac
28922 done
28923
28924 (set) 2>&1 |
28925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28926 *${as_nl}ac_space=\ *)
28927 # `set' does not quote correctly, so add quotes (double-quote
28928 # substitution turns \\\\ into \\, and sed turns \\ into \).
28929 sed -n \
28930 "s/'/'\\\\''/g;
28931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28932 ;; #(
28933 *)
28934 # `set' quotes correctly as required by POSIX, so do not add quotes.
28935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28936 ;;
28937 esac |
28938 sort
28939) |
28940 sed '
28941 /^ac_cv_env_/b end
28942 t clear
28943 :clear
28944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28945 t end
28946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28947 :end' >>confcache
28948if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28949 if test -w "$cache_file"; then
28950 test "x$cache_file" != "x/dev/null" &&
28951 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28952echo "$as_me: updating cache $cache_file" >&6;}
28953 cat confcache >$cache_file
28954 else
28955 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28956echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28957 fi
28958fi
28959rm -f confcache
28960
28961test "x$prefix" = xNONE && prefix=$ac_default_prefix
28962# Let make expand exec_prefix.
28963test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28964
28965DEFS=-DHAVE_CONFIG_H
28966
28967ac_libobjs=
28968ac_ltlibobjs=
28969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28970 # 1. Remove the extension, and $U if already installed.
28971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28972 ac_i=`echo "$ac_i" | sed "$ac_script"`
28973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28974 # will be set to the directory where LIBOBJS objects are built.
28975 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28976 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28977done
28978LIBOBJS=$ac_libobjs
28979
28980LTLIBOBJS=$ac_ltlibobjs
28981
28982
28983
28984: ${CONFIG_STATUS=./config.status}
28985ac_clean_files_save=$ac_clean_files
28986ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28987{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28988echo "$as_me: creating $CONFIG_STATUS" >&6;}
28989cat >$CONFIG_STATUS <<_ACEOF
28990#! $SHELL
28991# Generated by $as_me.
28992# Run this file to recreate the current configuration.
28993# Compiler output produced by configure, useful for debugging
28994# configure, is in config.log if it exists.
28995
28996debug=false
28997ac_cs_recheck=false
28998ac_cs_silent=false
28999SHELL=\${CONFIG_SHELL-$SHELL}
29000_ACEOF
29001
29002cat >>$CONFIG_STATUS <<\_ACEOF
29003## --------------------- ##
29004## M4sh Initialization. ##
29005## --------------------- ##
29006
29007# Be more Bourne compatible
29008DUALCASE=1; export DUALCASE # for MKS sh
29009if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29010 emulate sh
29011 NULLCMD=:
29012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29013 # is contrary to our usage. Disable this feature.
29014 alias -g '${1+"$@"}'='"$@"'
29015 setopt NO_GLOB_SUBST
29016else
29017 case `(set -o) 2>/dev/null` in
29018 *posix*) set -o posix ;;
29019esac
29020
29021fi
29022
29023
29024
29025
29026# PATH needs CR
29027# Avoid depending upon Character Ranges.
29028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29031as_cr_digits='0123456789'
29032as_cr_alnum=$as_cr_Letters$as_cr_digits
29033
29034# The user is always right.
29035if test "${PATH_SEPARATOR+set}" != set; then
29036 echo "#! /bin/sh" >conf$$.sh
29037 echo "exit 0" >>conf$$.sh
29038 chmod +x conf$$.sh
29039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29040 PATH_SEPARATOR=';'
29041 else
29042 PATH_SEPARATOR=:
29043 fi
29044 rm -f conf$$.sh
29045fi
29046
29047# Support unset when possible.
29048if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29049 as_unset=unset
29050else
29051 as_unset=false
29052fi
29053
29054
29055# IFS
29056# We need space, tab and new line, in precisely that order. Quoting is
29057# there to prevent editors from complaining about space-tab.
29058# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29059# splitting by setting IFS to empty value.)
29060as_nl='
29061'
29062IFS=" "" $as_nl"
29063
29064# Find who we are. Look in the path if we contain no directory separator.
29065case $0 in
29066 *[\\/]* ) as_myself=$0 ;;
29067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29068for as_dir in $PATH
29069do
29070 IFS=$as_save_IFS
29071 test -z "$as_dir" && as_dir=.
29072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29073done
29074IFS=$as_save_IFS
29075
29076 ;;
29077esac
29078# We did not find ourselves, most probably we were run as `sh COMMAND'
29079# in which case we are not to be found in the path.
29080if test "x$as_myself" = x; then
29081 as_myself=$0
29082fi
29083if test ! -f "$as_myself"; then
29084 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29085 { (exit 1); exit 1; }
29086fi
29087
29088# Work around bugs in pre-3.0 UWIN ksh.
29089for as_var in ENV MAIL MAILPATH
29090do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29091done
29092PS1='$ '
29093PS2='> '
29094PS4='+ '
29095
29096# NLS nuisances.
29097for as_var in \
29098 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29099 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29100 LC_TELEPHONE LC_TIME
29101do
29102 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29103 eval $as_var=C; export $as_var
29104 else
29105 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29106 fi
29107done
29108
29109# Required to use basename.
29110if expr a : '\(a\)' >/dev/null 2>&1 &&
29111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29112 as_expr=expr
29113else
29114 as_expr=false
29115fi
29116
29117if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29118 as_basename=basename
29119else
29120 as_basename=false
29121fi
29122
29123
29124# Name of the executable.
29125as_me=`$as_basename -- "$0" ||
29126$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29127 X"$0" : 'X\(//\)$' \| \
29128 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29129echo X/"$0" |
29130 sed '/^.*\/\([^/][^/]*\)\/*$/{
29131 s//\1/
29132 q
29133 }
29134 /^X\/\(\/\/\)$/{
29135 s//\1/
29136 q
29137 }
29138 /^X\/\(\/\).*/{
29139 s//\1/
29140 q
29141 }
29142 s/.*/./; q'`
29143
29144# CDPATH.
29145$as_unset CDPATH
29146
29147
29148
29149 as_lineno_1=$LINENO
29150 as_lineno_2=$LINENO
29151 test "x$as_lineno_1" != "x$as_lineno_2" &&
29152 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29153
29154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29155 # uniformly replaced by the line number. The first 'sed' inserts a
29156 # line-number line after each line using $LINENO; the second 'sed'
29157 # does the real work. The second script uses 'N' to pair each
29158 # line-number line with the line containing $LINENO, and appends
29159 # trailing '-' during substitution so that $LINENO is not a special
29160 # case at line end.
29161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29162 # scripts with optimization help from Paolo Bonzini. Blame Lee
29163 # E. McMahon (1931-1989) for sed's syntax. :-)
29164 sed -n '
29165 p
29166 /[$]LINENO/=
29167 ' <$as_myself |
29168 sed '
29169 s/[$]LINENO.*/&-/
29170 t lineno
29171 b
29172 :lineno
29173 N
29174 :loop
29175 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29176 t loop
29177 s/-\n.*//
29178 ' >$as_me.lineno &&
29179 chmod +x "$as_me.lineno" ||
29180 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29181 { (exit 1); exit 1; }; }
29182
29183 # Don't try to exec as it changes $[0], causing all sort of problems
29184 # (the dirname of $[0] is not the place where we might find the
29185 # original and so on. Autoconf is especially sensitive to this).
29186 . "./$as_me.lineno"
29187 # Exit status is that of the last command.
29188 exit
29189}
29190
29191
29192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29193 as_dirname=dirname
29194else
29195 as_dirname=false
29196fi
29197
29198ECHO_C= ECHO_N= ECHO_T=
29199case `echo -n x` in
29200-n*)
29201 case `echo 'x\c'` in
29202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29203 *) ECHO_C='\c';;
29204 esac;;
29205*)
29206 ECHO_N='-n';;
29207esac
29208
29209if expr a : '\(a\)' >/dev/null 2>&1 &&
29210 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29211 as_expr=expr
29212else
29213 as_expr=false
29214fi
29215
29216rm -f conf$$ conf$$.exe conf$$.file
29217if test -d conf$$.dir; then
29218 rm -f conf$$.dir/conf$$.file
29219else
29220 rm -f conf$$.dir
29221 mkdir conf$$.dir
29222fi
29223echo >conf$$.file
29224if ln -s conf$$.file conf$$ 2>/dev/null; then
29225 as_ln_s='ln -s'
29226 # ... but there are two gotchas:
29227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29229 # In both cases, we have to default to `cp -p'.
29230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29231 as_ln_s='cp -p'
29232elif ln conf$$.file conf$$ 2>/dev/null; then
29233 as_ln_s=ln
29234else
29235 as_ln_s='cp -p'
29236fi
29237rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29238rmdir conf$$.dir 2>/dev/null
29239
29240if mkdir -p . 2>/dev/null; then
29241 as_mkdir_p=:
29242else
29243 test -d ./-p && rmdir ./-p
29244 as_mkdir_p=false
29245fi
29246
29247if test -x / >/dev/null 2>&1; then
29248 as_test_x='test -x'
29249else
29250 if ls -dL / >/dev/null 2>&1; then
29251 as_ls_L_option=L
29252 else
29253 as_ls_L_option=
29254 fi
29255 as_test_x='
29256 eval sh -c '\''
29257 if test -d "$1"; then
29258 test -d "$1/.";
29259 else
29260 case $1 in
29261 -*)set "./$1";;
29262 esac;
29263 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29264 ???[sx]*):;;*)false;;esac;fi
29265 '\'' sh
29266 '
29267fi
29268as_executable_p=$as_test_x
29269
29270# Sed expression to map a string onto a valid CPP name.
29271as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29272
29273# Sed expression to map a string onto a valid variable name.
29274as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29275
29276
29277exec 6>&1
29278
29279# Save the log message, to keep $[0] and so on meaningful, and to
29280# report actual input values of CONFIG_FILES etc. instead of their
29281# values after options handling.
29282ac_log="
29283This file was extended by OpenSSH $as_me Portable, which was
29284generated by GNU Autoconf 2.61. Invocation command line was
29285
29286 CONFIG_FILES = $CONFIG_FILES
29287 CONFIG_HEADERS = $CONFIG_HEADERS
29288 CONFIG_LINKS = $CONFIG_LINKS
29289 CONFIG_COMMANDS = $CONFIG_COMMANDS
29290 $ $0 $@
29291
29292on `(hostname || uname -n) 2>/dev/null | sed 1q`
29293"
29294
29295_ACEOF
29296
29297cat >>$CONFIG_STATUS <<_ACEOF
29298# Files that config.status was made for.
29299config_files="$ac_config_files"
29300config_headers="$ac_config_headers"
29301
29302_ACEOF
29303
29304cat >>$CONFIG_STATUS <<\_ACEOF
29305ac_cs_usage="\
29306\`$as_me' instantiates files from templates according to the
29307current configuration.
29308
29309Usage: $0 [OPTIONS] [FILE]...
29310
29311 -h, --help print this help, then exit
29312 -V, --version print version number and configuration settings, then exit
29313 -q, --quiet do not print progress messages
29314 -d, --debug don't remove temporary files
29315 --recheck update $as_me by reconfiguring in the same conditions
29316 --file=FILE[:TEMPLATE]
29317 instantiate the configuration file FILE
29318 --header=FILE[:TEMPLATE]
29319 instantiate the configuration header FILE
29320
29321Configuration files:
29322$config_files
29323
29324Configuration headers:
29325$config_headers
29326
29327Report bugs to <bug-autoconf@gnu.org>."
29328
29329_ACEOF
29330cat >>$CONFIG_STATUS <<_ACEOF
29331ac_cs_version="\\
29332OpenSSH config.status Portable
29333configured by $0, generated by GNU Autoconf 2.61,
29334 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29335
29336Copyright (C) 2006 Free Software Foundation, Inc.
29337This config.status script is free software; the Free Software Foundation
29338gives unlimited permission to copy, distribute and modify it."
29339
29340ac_pwd='$ac_pwd'
29341srcdir='$srcdir'
29342INSTALL='$INSTALL'
29343_ACEOF
29344
29345cat >>$CONFIG_STATUS <<\_ACEOF
29346# If no file are specified by the user, then we need to provide default
29347# value. By we need to know if files were specified by the user.
29348ac_need_defaults=:
29349while test $# != 0
29350do
29351 case $1 in
29352 --*=*)
29353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29355 ac_shift=:
29356 ;;
29357 *)
29358 ac_option=$1
29359 ac_optarg=$2
29360 ac_shift=shift
29361 ;;
29362 esac
29363
29364 case $ac_option in
29365 # Handling of the options.
29366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29367 ac_cs_recheck=: ;;
29368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29369 echo "$ac_cs_version"; exit ;;
29370 --debug | --debu | --deb | --de | --d | -d )
29371 debug=: ;;
29372 --file | --fil | --fi | --f )
29373 $ac_shift
29374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29375 ac_need_defaults=false;;
29376 --header | --heade | --head | --hea )
29377 $ac_shift
29378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29379 ac_need_defaults=false;;
29380 --he | --h)
29381 # Conflict between --help and --header
29382 { echo "$as_me: error: ambiguous option: $1
29383Try \`$0 --help' for more information." >&2
29384 { (exit 1); exit 1; }; };;
29385 --help | --hel | -h )
29386 echo "$ac_cs_usage"; exit ;;
29387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29389 ac_cs_silent=: ;;
29390
29391 # This is an error.
29392 -*) { echo "$as_me: error: unrecognized option: $1
29393Try \`$0 --help' for more information." >&2
29394 { (exit 1); exit 1; }; } ;;
29395
29396 *) ac_config_targets="$ac_config_targets $1"
29397 ac_need_defaults=false ;;
29398
29399 esac
29400 shift
29401done
29402
29403ac_configure_extra_args=
29404
29405if $ac_cs_silent; then
29406 exec 6>/dev/null
29407 ac_configure_extra_args="$ac_configure_extra_args --silent"
29408fi
29409
29410_ACEOF
29411cat >>$CONFIG_STATUS <<_ACEOF
29412if \$ac_cs_recheck; then
29413 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29414 CONFIG_SHELL=$SHELL
29415 export CONFIG_SHELL
29416 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29417fi
29418
29419_ACEOF
29420cat >>$CONFIG_STATUS <<\_ACEOF
29421exec 5>>config.log
29422{
29423 echo
29424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29425## Running $as_me. ##
29426_ASBOX
29427 echo "$ac_log"
29428} >&5
29429
29430_ACEOF
29431cat >>$CONFIG_STATUS <<_ACEOF
29432_ACEOF
29433
29434cat >>$CONFIG_STATUS <<\_ACEOF
29435
29436# Handling of arguments.
29437for ac_config_target in $ac_config_targets
29438do
29439 case $ac_config_target in
29440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29442 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
29443 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
29444 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
29445 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
29446 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
29447 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
29448 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
29449 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
29450
29451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29452echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29453 { (exit 1); exit 1; }; };;
29454 esac
29455done
29456
29457
29458# If the user did not use the arguments to specify the items to instantiate,
29459# then the envvar interface is used. Set only those that are not.
29460# We use the long form for the default assignment because of an extremely
29461# bizarre bug on SunOS 4.1.3.
29462if $ac_need_defaults; then
29463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29465fi
29466
29467# Have a temporary directory for convenience. Make it in the build tree
29468# simply because there is no reason against having it here, and in addition,
29469# creating and moving files from /tmp can sometimes cause problems.
29470# Hook for its removal unless debugging.
29471# Note that there is a small window in which the directory will not be cleaned:
29472# after its creation but before its name has been assigned to `$tmp'.
29473$debug ||
29474{
29475 tmp=
29476 trap 'exit_status=$?
29477 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29478' 0
29479 trap '{ (exit 1); exit 1; }' 1 2 13 15
29480}
29481# Create a (secure) tmp directory for tmp files.
29482
29483{
29484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29485 test -n "$tmp" && test -d "$tmp"
29486} ||
29487{
29488 tmp=./conf$$-$RANDOM
29489 (umask 077 && mkdir "$tmp")
29490} ||
29491{
29492 echo "$me: cannot create a temporary directory in ." >&2
29493 { (exit 1); exit 1; }
29494}
29495
29496#
29497# Set up the sed scripts for CONFIG_FILES section.
29498#
29499
29500# No need to generate the scripts if there are no CONFIG_FILES.
29501# This happens for instance when ./config.status config.h
29502if test -n "$CONFIG_FILES"; then
29503
29504_ACEOF
29505
29506
29507
29508ac_delim='%!_!# '
29509for ac_last_try in false false false false false :; do
29510 cat >conf$$subs.sed <<_ACEOF
29511SHELL!$SHELL$ac_delim
29512PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29513PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29514PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29515PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29516PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29517PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29518exec_prefix!$exec_prefix$ac_delim
29519prefix!$prefix$ac_delim
29520program_transform_name!$program_transform_name$ac_delim
29521bindir!$bindir$ac_delim
29522sbindir!$sbindir$ac_delim
29523libexecdir!$libexecdir$ac_delim
29524datarootdir!$datarootdir$ac_delim
29525datadir!$datadir$ac_delim
29526sysconfdir!$sysconfdir$ac_delim
29527sharedstatedir!$sharedstatedir$ac_delim
29528localstatedir!$localstatedir$ac_delim
29529includedir!$includedir$ac_delim
29530oldincludedir!$oldincludedir$ac_delim
29531docdir!$docdir$ac_delim
29532infodir!$infodir$ac_delim
29533htmldir!$htmldir$ac_delim
29534dvidir!$dvidir$ac_delim
29535pdfdir!$pdfdir$ac_delim
29536psdir!$psdir$ac_delim
29537libdir!$libdir$ac_delim
29538localedir!$localedir$ac_delim
29539mandir!$mandir$ac_delim
29540DEFS!$DEFS$ac_delim
29541ECHO_C!$ECHO_C$ac_delim
29542ECHO_N!$ECHO_N$ac_delim
29543ECHO_T!$ECHO_T$ac_delim
29544LIBS!$LIBS$ac_delim
29545build_alias!$build_alias$ac_delim
29546host_alias!$host_alias$ac_delim
29547target_alias!$target_alias$ac_delim
29548CC!$CC$ac_delim
29549CFLAGS!$CFLAGS$ac_delim
29550LDFLAGS!$LDFLAGS$ac_delim
29551CPPFLAGS!$CPPFLAGS$ac_delim
29552ac_ct_CC!$ac_ct_CC$ac_delim
29553EXEEXT!$EXEEXT$ac_delim
29554OBJEXT!$OBJEXT$ac_delim
29555build!$build$ac_delim
29556build_cpu!$build_cpu$ac_delim
29557build_vendor!$build_vendor$ac_delim
29558build_os!$build_os$ac_delim
29559host!$host$ac_delim
29560host_cpu!$host_cpu$ac_delim
29561host_vendor!$host_vendor$ac_delim
29562host_os!$host_os$ac_delim
29563CPP!$CPP$ac_delim
29564GREP!$GREP$ac_delim
29565EGREP!$EGREP$ac_delim
29566AWK!$AWK$ac_delim
29567RANLIB!$RANLIB$ac_delim
29568INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29569INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29570INSTALL_DATA!$INSTALL_DATA$ac_delim
29571AR!$AR$ac_delim
29572CAT!$CAT$ac_delim
29573KILL!$KILL$ac_delim
29574PERL!$PERL$ac_delim
29575SED!$SED$ac_delim
29576ENT!$ENT$ac_delim
29577TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
29578SH!$SH$ac_delim
29579TEST_SHELL!$TEST_SHELL$ac_delim
29580PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
29581PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
29582MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
29583STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
29584LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
29585PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
29586LD!$LD$ac_delim
29587SSHDLIBS!$SSHDLIBS$ac_delim
29588LIBEDIT!$LIBEDIT$ac_delim
29589INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
29590SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
29591PROG_LS!$PROG_LS$ac_delim
29592PROG_NETSTAT!$PROG_NETSTAT$ac_delim
29593PROG_ARP!$PROG_ARP$ac_delim
29594PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
29595PROG_JSTAT!$PROG_JSTAT$ac_delim
29596PROG_PS!$PROG_PS$ac_delim
29597PROG_SAR!$PROG_SAR$ac_delim
29598PROG_W!$PROG_W$ac_delim
29599PROG_WHO!$PROG_WHO$ac_delim
29600PROG_LAST!$PROG_LAST$ac_delim
29601PROG_LASTLOG!$PROG_LASTLOG$ac_delim
29602PROG_DF!$PROG_DF$ac_delim
29603PROG_VMSTAT!$PROG_VMSTAT$ac_delim
29604PROG_UPTIME!$PROG_UPTIME$ac_delim
29605PROG_IPCS!$PROG_IPCS$ac_delim
29606PROG_TAIL!$PROG_TAIL$ac_delim
29607INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
29608_ACEOF
29609
29610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29611 break
29612 elif $ac_last_try; then
29613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29614echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29615 { (exit 1); exit 1; }; }
29616 else
29617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29618 fi
29619done
29620
29621ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29622if test -n "$ac_eof"; then
29623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29624 ac_eof=`expr $ac_eof + 1`
29625fi
29626
29627cat >>$CONFIG_STATUS <<_ACEOF
29628cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29629/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29630_ACEOF
29631sed '
29632s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29633s/^/s,@/; s/!/@,|#_!!_#|/
29634:n
29635t n
29636s/'"$ac_delim"'$/,g/; t
29637s/$/\\/; p
29638N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29639' >>$CONFIG_STATUS <conf$$subs.sed
29640rm -f conf$$subs.sed
29641cat >>$CONFIG_STATUS <<_ACEOF
29642CEOF$ac_eof
29643_ACEOF
29644
29645
29646ac_delim='%!_!# '
29647for ac_last_try in false false false false false :; do
29648 cat >conf$$subs.sed <<_ACEOF
29649OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
29650PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
29651xauth_path!$xauth_path$ac_delim
29652STRIP_OPT!$STRIP_OPT$ac_delim
29653XAUTH_PATH!$XAUTH_PATH$ac_delim
29654NROFF!$NROFF$ac_delim
29655MANTYPE!$MANTYPE$ac_delim
29656mansubdir!$mansubdir$ac_delim
29657user_path!$user_path$ac_delim
29658piddir!$piddir$ac_delim
29659TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
29660LIBOBJS!$LIBOBJS$ac_delim
29661LTLIBOBJS!$LTLIBOBJS$ac_delim
29662_ACEOF
29663
29664 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
29665 break
29666 elif $ac_last_try; then
29667 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29668echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29669 { (exit 1); exit 1; }; }
29670 else
29671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29672 fi
29673done
29674
29675ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29676if test -n "$ac_eof"; then
29677 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29678 ac_eof=`expr $ac_eof + 1`
29679fi
29680
29681cat >>$CONFIG_STATUS <<_ACEOF
29682cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29684_ACEOF
29685sed '
29686s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29687s/^/s,@/; s/!/@,|#_!!_#|/
29688:n
29689t n
29690s/'"$ac_delim"'$/,g/; t
29691s/$/\\/; p
29692N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29693' >>$CONFIG_STATUS <conf$$subs.sed
29694rm -f conf$$subs.sed
29695cat >>$CONFIG_STATUS <<_ACEOF
29696:end
29697s/|#_!!_#|//g
29698CEOF$ac_eof
29699_ACEOF
29700
29701
29702# VPATH may cause trouble with some makes, so we remove $(srcdir),
29703# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29704# trailing colons and then remove the whole line if VPATH becomes empty
29705# (actually we leave an empty line to preserve line numbers).
29706if test "x$srcdir" = x.; then
29707 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29708s/:*\$(srcdir):*/:/
29709s/:*\${srcdir}:*/:/
29710s/:*@srcdir@:*/:/
29711s/^\([^=]*=[ ]*\):*/\1/
29712s/:*$//
29713s/^[^=]*=[ ]*$//
29714}'
29715fi
29716
29717cat >>$CONFIG_STATUS <<\_ACEOF
29718fi # test -n "$CONFIG_FILES"
29719
29720
29721for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29722do
29723 case $ac_tag in
29724 :[FHLC]) ac_mode=$ac_tag; continue;;
29725 esac
29726 case $ac_mode$ac_tag in
29727 :[FHL]*:*);;
29728 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29729echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29730 { (exit 1); exit 1; }; };;
29731 :[FH]-) ac_tag=-:-;;
29732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29733 esac
29734 ac_save_IFS=$IFS
29735 IFS=:
29736 set x $ac_tag
29737 IFS=$ac_save_IFS
29738 shift
29739 ac_file=$1
29740 shift
29741
29742 case $ac_mode in
29743 :L) ac_source=$1;;
29744 :[FH])
29745 ac_file_inputs=
29746 for ac_f
29747 do
29748 case $ac_f in
29749 -) ac_f="$tmp/stdin";;
29750 *) # Look for the file first in the build tree, then in the source tree
29751 # (if the path is not absolute). The absolute path cannot be DOS-style,
29752 # because $ac_f cannot contain `:'.
29753 test -f "$ac_f" ||
29754 case $ac_f in
29755 [\\/$]*) false;;
29756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29757 esac ||
29758 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29759echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29760 { (exit 1); exit 1; }; };;
29761 esac
29762 ac_file_inputs="$ac_file_inputs $ac_f"
29763 done
29764
29765 # Let's still pretend it is `configure' which instantiates (i.e., don't
29766 # use $as_me), people would be surprised to read:
29767 # /* config.h. Generated by config.status. */
29768 configure_input="Generated from "`IFS=:
29769 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29770 if test x"$ac_file" != x-; then
29771 configure_input="$ac_file. $configure_input"
29772 { echo "$as_me:$LINENO: creating $ac_file" >&5
29773echo "$as_me: creating $ac_file" >&6;}
29774 fi
29775
29776 case $ac_tag in
29777 *:-:* | *:-) cat >"$tmp/stdin";;
29778 esac
29779 ;;
29780 esac
29781
29782 ac_dir=`$as_dirname -- "$ac_file" ||
29783$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29784 X"$ac_file" : 'X\(//\)[^/]' \| \
29785 X"$ac_file" : 'X\(//\)$' \| \
29786 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29787echo X"$ac_file" |
29788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29789 s//\1/
29790 q
29791 }
29792 /^X\(\/\/\)[^/].*/{
29793 s//\1/
29794 q
29795 }
29796 /^X\(\/\/\)$/{
29797 s//\1/
29798 q
29799 }
29800 /^X\(\/\).*/{
29801 s//\1/
29802 q
29803 }
29804 s/.*/./; q'`
29805 { as_dir="$ac_dir"
29806 case $as_dir in #(
29807 -*) as_dir=./$as_dir;;
29808 esac
29809 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29810 as_dirs=
29811 while :; do
29812 case $as_dir in #(
29813 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29814 *) as_qdir=$as_dir;;
29815 esac
29816 as_dirs="'$as_qdir' $as_dirs"
29817 as_dir=`$as_dirname -- "$as_dir" ||
29818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29819 X"$as_dir" : 'X\(//\)[^/]' \| \
29820 X"$as_dir" : 'X\(//\)$' \| \
29821 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29822echo X"$as_dir" |
29823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29824 s//\1/
29825 q
29826 }
29827 /^X\(\/\/\)[^/].*/{
29828 s//\1/
29829 q
29830 }
29831 /^X\(\/\/\)$/{
29832 s//\1/
29833 q
29834 }
29835 /^X\(\/\).*/{
29836 s//\1/
29837 q
29838 }
29839 s/.*/./; q'`
29840 test -d "$as_dir" && break
29841 done
29842 test -z "$as_dirs" || eval "mkdir $as_dirs"
29843 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29844echo "$as_me: error: cannot create directory $as_dir" >&2;}
29845 { (exit 1); exit 1; }; }; }
29846 ac_builddir=.
29847
29848case "$ac_dir" in
29849.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29850*)
29851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29852 # A ".." for each directory in $ac_dir_suffix.
29853 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29854 case $ac_top_builddir_sub in
29855 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29856 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29857 esac ;;
29858esac
29859ac_abs_top_builddir=$ac_pwd
29860ac_abs_builddir=$ac_pwd$ac_dir_suffix
29861# for backward compatibility:
29862ac_top_builddir=$ac_top_build_prefix
29863
29864case $srcdir in
29865 .) # We are building in place.
29866 ac_srcdir=.
29867 ac_top_srcdir=$ac_top_builddir_sub
29868 ac_abs_top_srcdir=$ac_pwd ;;
29869 [\\/]* | ?:[\\/]* ) # Absolute name.
29870 ac_srcdir=$srcdir$ac_dir_suffix;
29871 ac_top_srcdir=$srcdir
29872 ac_abs_top_srcdir=$srcdir ;;
29873 *) # Relative name.
29874 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29875 ac_top_srcdir=$ac_top_build_prefix$srcdir
29876 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29877esac
29878ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29879
29880
29881 case $ac_mode in
29882 :F)
29883 #
29884 # CONFIG_FILE
29885 #
29886
29887 case $INSTALL in
29888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29889 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29890 esac
29891_ACEOF
29892
29893cat >>$CONFIG_STATUS <<\_ACEOF
29894# If the template does not know about datarootdir, expand it.
29895# FIXME: This hack should be removed a few years after 2.60.
29896ac_datarootdir_hack=; ac_datarootdir_seen=
29897
29898case `sed -n '/datarootdir/ {
29899 p
29900 q
29901}
29902/@datadir@/p
29903/@docdir@/p
29904/@infodir@/p
29905/@localedir@/p
29906/@mandir@/p
29907' $ac_file_inputs` in
29908*datarootdir*) ac_datarootdir_seen=yes;;
29909*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29910 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29911echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29912_ACEOF
29913cat >>$CONFIG_STATUS <<_ACEOF
29914 ac_datarootdir_hack='
29915 s&@datadir@&$datadir&g
29916 s&@docdir@&$docdir&g
29917 s&@infodir@&$infodir&g
29918 s&@localedir@&$localedir&g
29919 s&@mandir@&$mandir&g
29920 s&\\\${datarootdir}&$datarootdir&g' ;;
29921esac
29922_ACEOF
29923
29924# Neutralize VPATH when `$srcdir' = `.'.
29925# Shell code in configure.ac might set extrasub.
29926# FIXME: do we really want to maintain this feature?
29927cat >>$CONFIG_STATUS <<_ACEOF
29928 sed "$ac_vpsub
29929$extrasub
29930_ACEOF
29931cat >>$CONFIG_STATUS <<\_ACEOF
29932:t
29933/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29934s&@configure_input@&$configure_input&;t t
29935s&@top_builddir@&$ac_top_builddir_sub&;t t
29936s&@srcdir@&$ac_srcdir&;t t
29937s&@abs_srcdir@&$ac_abs_srcdir&;t t
29938s&@top_srcdir@&$ac_top_srcdir&;t t
29939s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29940s&@builddir@&$ac_builddir&;t t
29941s&@abs_builddir@&$ac_abs_builddir&;t t
29942s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29943s&@INSTALL@&$ac_INSTALL&;t t
29944$ac_datarootdir_hack
29945" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29946
29947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29948 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29950 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29951which seems to be undefined. Please make sure it is defined." >&5
29952echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29953which seems to be undefined. Please make sure it is defined." >&2;}
29954
29955 rm -f "$tmp/stdin"
29956 case $ac_file in
29957 -) cat "$tmp/out"; rm -f "$tmp/out";;
29958 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29959 esac
29960 ;;
29961 :H)
29962 #
29963 # CONFIG_HEADER
29964 #
29965_ACEOF
29966
29967# Transform confdefs.h into a sed script `conftest.defines', that
29968# substitutes the proper values into config.h.in to produce config.h.
29969rm -f conftest.defines conftest.tail
29970# First, append a space to every undef/define line, to ease matching.
29971echo 's/$/ /' >conftest.defines
29972# Then, protect against being on the right side of a sed subst, or in
29973# an unquoted here document, in config.status. If some macros were
29974# called several times there might be several #defines for the same
29975# symbol, which is useless. But do not sort them, since the last
29976# AC_DEFINE must be honored.
29977ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29978# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29979# NAME is the cpp macro being defined, VALUE is the value it is being given.
29980# PARAMS is the parameter list in the macro definition--in most cases, it's
29981# just an empty string.
29982ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29983ac_dB='\\)[ (].*,\\1define\\2'
29984ac_dC=' '
29985ac_dD=' ,'
29986
29987uniq confdefs.h |
29988 sed -n '
29989 t rset
29990 :rset
29991 s/^[ ]*#[ ]*define[ ][ ]*//
29992 t ok
29993 d
29994 :ok
29995 s/[\\&,]/\\&/g
29996 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29997 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29998 ' >>conftest.defines
29999
30000# Remove the space that was appended to ease matching.
30001# Then replace #undef with comments. This is necessary, for
30002# example, in the case of _POSIX_SOURCE, which is predefined and required
30003# on some systems where configure will not decide to define it.
30004# (The regexp can be short, since the line contains either #define or #undef.)
30005echo 's/ $//
30006s,^[ #]*u.*,/* & */,' >>conftest.defines
30007
30008# Break up conftest.defines:
30009ac_max_sed_lines=50
30010
30011# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30012# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30013# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30014# et cetera.
30015ac_in='$ac_file_inputs'
30016ac_out='"$tmp/out1"'
30017ac_nxt='"$tmp/out2"'
30018
30019while :
30020do
30021 # Write a here document:
30022 cat >>$CONFIG_STATUS <<_ACEOF
30023 # First, check the format of the line:
30024 cat >"\$tmp/defines.sed" <<\\CEOF
30025/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30026/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30027b
30028:def
30029_ACEOF
30030 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30031 echo 'CEOF
30032 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30033 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30034 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30035 grep . conftest.tail >/dev/null || break
30036 rm -f conftest.defines
30037 mv conftest.tail conftest.defines
30038done
30039rm -f conftest.defines conftest.tail
30040
30041echo "ac_result=$ac_in" >>$CONFIG_STATUS
30042cat >>$CONFIG_STATUS <<\_ACEOF
30043 if test x"$ac_file" != x-; then
30044 echo "/* $configure_input */" >"$tmp/config.h"
30045 cat "$ac_result" >>"$tmp/config.h"
30046 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30047 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30048echo "$as_me: $ac_file is unchanged" >&6;}
30049 else
30050 rm -f $ac_file
30051 mv "$tmp/config.h" $ac_file
30052 fi
30053 else
30054 echo "/* $configure_input */"
30055 cat "$ac_result"
30056 fi
30057 rm -f "$tmp/out12"
30058 ;;
30059
30060
30061 esac
30062
30063done # for ac_tag
30064
30065
30066{ (exit 0); exit 0; }
30067_ACEOF
30068chmod +x $CONFIG_STATUS
30069ac_clean_files=$ac_clean_files_save
30070
30071
30072# configure is writing to config.log, and then calls config.status.
30073# config.status does its own redirection, appending to config.log.
30074# Unfortunately, on DOS this fails, as config.log is still kept open
30075# by configure, so config.status won't be able to write to it; its
30076# output is simply discarded. So we exec the FD to /dev/null,
30077# effectively closing config.log, so it can be properly (re)opened and
30078# appended to by config.status. When coming back to configure, we
30079# need to make the FD available again.
30080if test "$no_create" != yes; then
30081 ac_cs_success=:
30082 ac_config_status_args=
30083 test "$silent" = yes &&
30084 ac_config_status_args="$ac_config_status_args --quiet"
30085 exec 5>/dev/null
30086 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30087 exec 5>>config.log
30088 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30089 # would make configure fail if this is the last instruction.
30090 $ac_cs_success || { (exit 1); exit 1; }
30091fi
30092
30093
30094# Print summary of options
30095
30096# Someone please show me a better way :)
30097A=`eval echo ${prefix}` ; A=`eval echo ${A}`
30098B=`eval echo ${bindir}` ; B=`eval echo ${B}`
30099C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
30100D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
30101E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
30102F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
30103G=`eval echo ${piddir}` ; G=`eval echo ${G}`
30104H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
30105I=`eval echo ${user_path}` ; I=`eval echo ${I}`
30106J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
30107
30108echo ""
30109echo "OpenSSH has been configured with the following options:"
30110echo " User binaries: $B"
30111echo " System binaries: $C"
30112echo " Configuration files: $D"
30113echo " Askpass program: $E"
30114echo " Manual pages: $F"
30115echo " PID file: $G"
30116echo " Privilege separation chroot path: $H"
30117if test "x$external_path_file" = "x/etc/login.conf" ; then
30118echo " At runtime, sshd will use the path defined in $external_path_file"
30119echo " Make sure the path to scp is present, otherwise scp will not work"
30120else
30121echo " sshd default user PATH: $I"
30122 if test ! -z "$external_path_file"; then
30123echo " (If PATH is set in $external_path_file it will be used instead. If"
30124echo " used, ensure the path to scp is present, otherwise scp will not work.)"
30125 fi
30126fi
30127if test ! -z "$superuser_path" ; then
30128echo " sshd superuser user PATH: $J"
30129fi
30130echo " Manpage format: $MANTYPE"
30131echo " PAM support: $PAM_MSG"
30132echo " OSF SIA support: $SIA_MSG"
30133echo " KerberosV support: $KRB5_MSG"
30134echo " SELinux support: $SELINUX_MSG"
30135echo " Smartcard support: $SCARD_MSG"
30136echo " S/KEY support: $SKEY_MSG"
30137echo " TCP Wrappers support: $TCPW_MSG"
30138echo " MD5 password support: $MD5_MSG"
30139echo " libedit support: $LIBEDIT_MSG"
30140echo " Solaris process contract support: $SPC_MSG"
30141echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
30142echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
30143echo " BSD Auth support: $BSD_AUTH_MSG"
30144echo " Random number source: $RAND_MSG"
30145if test ! -z "$USE_RAND_HELPER" ; then
30146echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
30147fi
30148
30149echo ""
30150
30151echo " Host: ${host}"
30152echo " Compiler: ${CC}"
30153echo " Compiler flags: ${CFLAGS}"
30154echo "Preprocessor flags: ${CPPFLAGS}"
30155echo " Linker flags: ${LDFLAGS}"
30156echo " Libraries: ${LIBS}"
30157if test ! -z "${SSHDLIBS}"; then
30158echo " +for sshd: ${SSHDLIBS}"
30159fi
30160
30161echo ""
30162
30163if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
30164 echo "SVR4 style packages are supported with \"make package\""
30165 echo ""
30166fi
30167
30168if test "x$PAM_MSG" = "xyes" ; then
30169 echo "PAM is enabled. You may need to install a PAM control file "
30170 echo "for sshd, otherwise password authentication may fail. "
30171 echo "Example PAM control files can be found in the contrib/ "
30172 echo "subdirectory"
30173 echo ""
30174fi
30175
30176if test ! -z "$RAND_HELPER_CMDHASH" ; then
30177 echo "WARNING: you are using the builtin random number collection "
30178 echo "service. Please read WARNING.RNG and request that your OS "
30179 echo "vendor includes kernel-based random number collection in "
30180 echo "future versions of your OS."
30181 echo ""
30182fi
30183
30184if test ! -z "$NO_PEERCHECK" ; then
30185 echo "WARNING: the operating system that you are using does not"
30186 echo "appear to support getpeereid(), getpeerucred() or the"
30187 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
30188 echo "enforce security checks to prevent unauthorised connections to"
30189 echo "ssh-agent. Their absence increases the risk that a malicious"
30190 echo "user can connect to your agent."
30191 echo ""
30192fi
30193
30194if test "$AUDIT_MODULE" = "bsm" ; then
30195 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
30196 echo "See the Solaris section in README.platform for details."
30197fi