summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2007-06-12 11:03:36 +0000
committerColin Watson <cjwatson@debian.org>2007-06-12 11:03:36 +0000
commit086ea76990b1e6287c24b6db74adffd4605eb3b0 (patch)
tree4650093038f9f66b02823fb07f49d6a4becd1667 /configure
parent4ee72c71e31226c81743439fe1ed2b521b5ddb7e (diff)
parent3e2e0ac10674d77618c4c7339e18b83ced247492 (diff)
Import OpenSSH 4.6p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29392
1 files changed, 29392 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..99782f37e
--- /dev/null
+++ b/configure
@@ -0,0 +1,29392 @@
1#! /bin/sh
2# From configure.ac Revision: 1.372 .
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
696LIBWRAP
697LIBEDIT
698LIBPAM
699INSTALL_SSH_RAND_HELPER
700SSH_PRIVSEP_USER
701PROG_LS
702PROG_NETSTAT
703PROG_ARP
704PROG_IFCONFIG
705PROG_JSTAT
706PROG_PS
707PROG_SAR
708PROG_W
709PROG_WHO
710PROG_LAST
711PROG_LASTLOG
712PROG_DF
713PROG_VMSTAT
714PROG_UPTIME
715PROG_IPCS
716PROG_TAIL
717INSTALL_SSH_PRNG_CMDS
718OPENSC_CONFIG
719LIBSELINUX
720PRIVSEP_PATH
721xauth_path
722STRIP_OPT
723XAUTH_PATH
724NROFF
725MANTYPE
726mansubdir
727user_path
728piddir
729LIBOBJS
730LTLIBOBJS'
731ac_subst_files=''
732 ac_precious_vars='build_alias
733host_alias
734target_alias
735CC
736CFLAGS
737LDFLAGS
738LIBS
739CPPFLAGS
740CPP'
741
742
743# Initialize some variables set by options.
744ac_init_help=
745ac_init_version=false
746# The variables have the same names as the options, with
747# dashes changed to underlines.
748cache_file=/dev/null
749exec_prefix=NONE
750no_create=
751no_recursion=
752prefix=NONE
753program_prefix=NONE
754program_suffix=NONE
755program_transform_name=s,x,x,
756silent=
757site=
758srcdir=
759verbose=
760x_includes=NONE
761x_libraries=NONE
762
763# Installation directory options.
764# These are left unexpanded so users can "make install exec_prefix=/foo"
765# and all the variables that are supposed to be based on exec_prefix
766# by default will actually change.
767# Use braces instead of parens because sh, perl, etc. also accept them.
768# (The list follows the same order as the GNU Coding Standards.)
769bindir='${exec_prefix}/bin'
770sbindir='${exec_prefix}/sbin'
771libexecdir='${exec_prefix}/libexec'
772datarootdir='${prefix}/share'
773datadir='${datarootdir}'
774sysconfdir='${prefix}/etc'
775sharedstatedir='${prefix}/com'
776localstatedir='${prefix}/var'
777includedir='${prefix}/include'
778oldincludedir='/usr/include'
779docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
780infodir='${datarootdir}/info'
781htmldir='${docdir}'
782dvidir='${docdir}'
783pdfdir='${docdir}'
784psdir='${docdir}'
785libdir='${exec_prefix}/lib'
786localedir='${datarootdir}/locale'
787mandir='${datarootdir}/man'
788
789ac_prev=
790ac_dashdash=
791for ac_option
792do
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\$ac_option
796 ac_prev=
797 continue
798 fi
799
800 case $ac_option in
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 *) ac_optarg=yes ;;
803 esac
804
805 # Accept the important Cygnus configure options, so we can diagnose typos.
806
807 case $ac_dashdash$ac_option in
808 --)
809 ac_dashdash=yes ;;
810
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 ac_prev=bindir ;;
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 bindir=$ac_optarg ;;
815
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
820
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
827
828 --config-cache | -C)
829 cache_file=config.cache ;;
830
831 -datadir | --datadir | --datadi | --datad)
832 ac_prev=datadir ;;
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
835
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
842
843 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=no ;;
851
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
856
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
861
862 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_$ac_feature=\$ac_optarg ;;
870
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
879
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
883
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
890
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
895
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
901
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
908
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
913
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 libdir=$ac_optarg ;;
918
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
925
926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
930
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
937
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 mandir=$ac_optarg ;;
942
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
946
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
949 no_create=yes ;;
950
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
954
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
963
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 prefix=$ac_optarg ;;
968
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
975
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
982
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
999
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1004
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1009
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1013
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
1018 sbindir=$ac_optarg ;;
1019
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
1029 sharedstatedir=$ac_optarg ;;
1030
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
1034 site=$ac_optarg ;;
1035
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1040
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1047
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1052
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1055
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1058
1059 -with-* | --with-*)
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=\$ac_optarg ;;
1067
1068 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=no ;;
1076
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1080
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1087
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1094
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1098 ;;
1099
1100 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1108
1109 *)
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 ;;
1116
1117 esac
1118done
1119
1120if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1124fi
1125
1126# Be sure to have absolute directory names.
1127for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1131do
1132 eval ac_val=\$$ac_var
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1139done
1140
1141# There might be people who depend on the old broken behavior: `$host'
1142# used to hold the argument of --host etc.
1143# FIXME: To remove some day.
1144build=$build_alias
1145host=$host_alias
1146target=$target_alias
1147
1148# FIXME: To remove some day.
1149if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1155 cross_compiling=yes
1156 fi
1157fi
1158
1159ac_tool_prefix=
1160test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161
1162test "$silent" = yes && exec 6>/dev/null
1163
1164
1165ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166ac_ls_di=`ls -di .` &&
1167ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1173
1174
1175# Find the source files, if location was not specified.
1176if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" ||
1180$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184echo X"$0" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\).*/{
1198 s//\1/
1199 q
1200 }
1201 s/.*/./; q'`
1202 srcdir=$ac_confdir
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 srcdir=..
1205 fi
1206else
1207 ac_srcdir_defaulted=no
1208fi
1209if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1213fi
1214ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1218 pwd)`
1219# When building in place, set srcdir=.
1220if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 srcdir=.
1222fi
1223# Remove unnecessary trailing slashes from srcdir.
1224# Double slashes in file names in object file debugging info
1225# mess up M-x gdb in Emacs.
1226case $srcdir in
1227*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228esac
1229for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234done
1235
1236#
1237# Report the --help message.
1238#
1239if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1242 cat <<_ACEOF
1243\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1244
1245Usage: $0 [OPTION]... [VAR=VALUE]...
1246
1247To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248VAR=VALUE. See below for descriptions of some of the useful variables.
1249
1250Defaults for the options are specified in brackets.
1251
1252Configuration:
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262
1263Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 [PREFIX]
1268
1269By default, \`make install' will install all the files in
1270\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272for instance \`--prefix=\$HOME'.
1273
1274For better control, use the options below.
1275
1276Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1296_ACEOF
1297
1298 cat <<\_ACEOF
1299
1300System types:
1301 --build=BUILD configure for building on BUILD [guessed]
1302 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1303_ACEOF
1304fi
1305
1306if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1309 esac
1310 cat <<\_ACEOF
1311
1312Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --disable-largefile omit support for large files
1316 --disable-strip Disable calling strip(1) on install
1317 --disable-etc-default-login Disable using PATH from /etc/default/login no
1318 --disable-lastlog disable use of lastlog even if detected no
1319 --disable-utmp disable use of utmp even if detected no
1320 --disable-utmpx disable use of utmpx even if detected no
1321 --disable-wtmp disable use of wtmp even if detected no
1322 --disable-wtmpx disable use of wtmpx even if detected no
1323 --disable-libutil disable use of libutil (login() etc.) no
1324 --disable-pututline disable use of pututline() etc. (uwtmp) no
1325 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1326
1327Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-rpath Disable auto-added -R linker paths
1331 --with-cflags Specify additional flags to pass to compiler
1332 --with-cppflags Specify additional flags to pass to preprocessor
1333 --with-ldflags Specify additional flags to pass to linker
1334 --with-libs Specify additional libraries to link with
1335 --with-Werror Build main code with -Werror
1336 --with-solaris-contracts Enable Solaris process contracts (experimental)
1337 --with-osfsia Enable Digital Unix SIA
1338 --with-zlib=PATH Use zlib in PATH
1339 --without-zlib-version-check Disable zlib version check
1340 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1341 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1342 --with-libedit[=PATH] Enable libedit support for sftp
1343 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1344 --with-ssl-dir=PATH Specify path to OpenSSL installation
1345 --without-openssl-header-check Disable OpenSSL version consistency check
1346 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1347 --with-pam Enable PAM support
1348 --with-rand-helper Use subprocess to gather strong randomness
1349 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1350 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1351 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1352 --with-privsep-user=user Specify non-privileged user for privilege separation
1353 --with-sectok Enable smartcard support using libsectok
1354 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1355 --with-selinux Enable SELinux support
1356 --with-kerberos5=PATH Enable Kerberos 5 support
1357 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1358 --with-xauth=PATH Specify path to xauth program
1359 --with-mantype=man|cat|doc Set man page type
1360 --with-md5-passwords Enable use of MD5 passwords
1361 --without-shadow Disable shadow password support
1362 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1363 --with-default-path= Specify default \$PATH environment for server
1364 --with-superuser-path= Specify different path for super-user
1365 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1366 --with-bsd-auth Enable BSD auth support
1367 --with-pid-dir=PATH Specify location of ssh.pid file
1368 --with-lastlog=FILE|DIR specify lastlog location common locations
1369
1370Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 CPP C preprocessor
1379
1380Use these variables to override the choices made by `configure' or to help
1381it to find libraries and programs with nonstandard names/locations.
1382
1383Report bugs to <openssh-unix-dev@mindrot.org>.
1384_ACEOF
1385ac_status=$?
1386fi
1387
1388if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1392 ac_builddir=.
1393
1394case "$ac_dir" in
1395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396*)
1397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404esac
1405ac_abs_top_builddir=$ac_pwd
1406ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407# for backward compatibility:
1408ac_top_builddir=$ac_top_build_prefix
1409
1410case $srcdir in
1411 .) # We are building in place.
1412 ac_srcdir=.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423esac
1424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1434 else
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1438 done
1439fi
1440
1441test -n "$ac_init_help" && exit $ac_status
1442if $ac_init_version; then
1443 cat <<\_ACEOF
1444OpenSSH configure Portable
1445generated by GNU Autoconf 2.61
1446
1447Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449This configure script is free software; the Free Software Foundation
1450gives unlimited permission to copy, distribute and modify it.
1451_ACEOF
1452 exit
1453fi
1454cat >config.log <<_ACEOF
1455This file contains any messages produced by compilers while
1456running configure, to aid debugging if configure makes a mistake.
1457
1458It was created by OpenSSH $as_me Portable, which was
1459generated by GNU Autoconf 2.61. Invocation command line was
1460
1461 $ $0 $@
1462
1463_ACEOF
1464exec 5>>config.log
1465{
1466cat <<_ASUNAME
1467## --------- ##
1468## Platform. ##
1469## --------- ##
1470
1471hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476
1477/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479
1480/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1484/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1487
1488_ASUNAME
1489
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1496done
1497IFS=$as_save_IFS
1498
1499} >&5
1500
1501cat >&5 <<_ACEOF
1502
1503
1504## ----------- ##
1505## Core tests. ##
1506## ----------- ##
1507
1508_ACEOF
1509
1510
1511# Keep a trace of the command line.
1512# Strip out --no-create and --no-recursion so they do not pile up.
1513# Strip out --silent because we don't want to record it for future runs.
1514# Also quote any args containing shell meta-characters.
1515# Make two passes to allow for proper duplicate-argument suppression.
1516ac_configure_args=
1517ac_configure_args0=
1518ac_configure_args1=
1519ac_must_keep_next=false
1520for ac_pass in 1 2
1521do
1522 for ac_arg
1523 do
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
1529 *\'*)
1530 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 2)
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1538 else
1539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1547 ;;
1548 -* ) ac_must_keep_next=true ;;
1549 esac
1550 fi
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1552 ;;
1553 esac
1554 done
1555done
1556$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558
1559# When interrupted or exit'd, cleanup temporary files, and complete
1560# config.log. We remove comments because anyway the quotes in there
1561# would cause problems or look ugly.
1562# WARNING: Use '\'' to represent an apostrophe within the trap.
1563# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1566 {
1567 echo
1568
1569 cat <<\_ASBOX
1570## ---------------- ##
1571## Cache variables. ##
1572## ---------------- ##
1573_ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
1576(
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1598 *)
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 ;;
1601 esac |
1602 sort
1603)
1604 echo
1605
1606 cat <<\_ASBOX
1607## ----------------- ##
1608## Output variables. ##
1609## ----------------- ##
1610_ASBOX
1611 echo
1612 for ac_var in $ac_subst_vars
1613 do
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1621
1622 if test -n "$ac_subst_files"; then
1623 cat <<\_ASBOX
1624## ------------------- ##
1625## File substitutions. ##
1626## ------------------- ##
1627_ASBOX
1628 echo
1629 for ac_var in $ac_subst_files
1630 do
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1638 fi
1639
1640 if test -s confdefs.h; then
1641 cat <<\_ASBOX
1642## ----------- ##
1643## confdefs.h. ##
1644## ----------- ##
1645_ASBOX
1646 echo
1647 cat confdefs.h
1648 echo
1649 fi
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1653 } >&5
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656 exit $exit_status
1657' 0
1658for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660done
1661ac_signal=0
1662
1663# confdefs.h avoids OS command line length limits that DEFS can exceed.
1664rm -f -r conftest* confdefs.h
1665
1666# Predefined preprocessor variables.
1667
1668cat >>confdefs.h <<_ACEOF
1669#define PACKAGE_NAME "$PACKAGE_NAME"
1670_ACEOF
1671
1672
1673cat >>confdefs.h <<_ACEOF
1674#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675_ACEOF
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_STRING "$PACKAGE_STRING"
1685_ACEOF
1686
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690_ACEOF
1691
1692
1693# Let the site file select an alternate cache file if it wants to.
1694# Prefer explicitly selected file to automatically selected ones.
1695if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699else
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1702fi
1703shift
1704for ac_site_file
1705do
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1710 . "$ac_site_file"
1711 fi
1712done
1713
1714if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1723 esac
1724 fi
1725else
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1729fi
1730
1731# Check that the precious variables saved in the cache have kept the same
1732# value.
1733ac_cache_corrupted=false
1734for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1740 set,)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1749 *)
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1754echo "$as_me: former value: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1756echo "$as_me: current value: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 esac
1770 fi
1771done
1772if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1778fi
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804ac_ext=c
1805ac_cpp='$CPP $CPPFLAGS'
1806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809
1810
1811
1812
1813
1814ac_config_headers="$ac_config_headers config.h"
1815
1816ac_ext=c
1817ac_cpp='$CPP $CPPFLAGS'
1818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821if test -n "$ac_tool_prefix"; then
1822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1826if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843done
1844done
1845IFS=$as_save_IFS
1846
1847fi
1848fi
1849CC=$ac_cv_prog_CC
1850if test -n "$CC"; then
1851 { echo "$as_me:$LINENO: result: $CC" >&5
1852echo "${ECHO_T}$CC" >&6; }
1853else
1854 { echo "$as_me:$LINENO: result: no" >&5
1855echo "${ECHO_T}no" >&6; }
1856fi
1857
1858
1859fi
1860if test -z "$ac_cv_prog_CC"; then
1861 ac_ct_CC=$CC
1862 # Extract the first word of "gcc", so it can be a program name with args.
1863set dummy gcc; ac_word=$2
1864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869 if test -n "$ac_ct_CC"; then
1870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1871else
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1879 ac_cv_prog_ac_ct_CC="gcc"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883done
1884done
1885IFS=$as_save_IFS
1886
1887fi
1888fi
1889ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890if test -n "$ac_ct_CC"; then
1891 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892echo "${ECHO_T}$ac_ct_CC" >&6; }
1893else
1894 { echo "$as_me:$LINENO: result: no" >&5
1895echo "${ECHO_T}no" >&6; }
1896fi
1897
1898 if test "x$ac_ct_CC" = x; then
1899 CC=""
1900 else
1901 case $cross_compiling:$ac_tool_warned in
1902yes:)
1903{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1904whose name does not start with the host triplet. If you think this
1905configuration is useful to you, please write to autoconf@gnu.org." >&5
1906echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1907whose name does not start with the host triplet. If you think this
1908configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1909ac_tool_warned=yes ;;
1910esac
1911 CC=$ac_ct_CC
1912 fi
1913else
1914 CC="$ac_cv_prog_CC"
1915fi
1916
1917if test -z "$CC"; then
1918 if test -n "$ac_tool_prefix"; then
1919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1920set dummy ${ac_tool_prefix}cc; ac_word=$2
1921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1923if test "${ac_cv_prog_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925else
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1928else
1929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930for as_dir in $PATH
1931do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1936 ac_cv_prog_CC="${ac_tool_prefix}cc"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 break 2
1939 fi
1940done
1941done
1942IFS=$as_save_IFS
1943
1944fi
1945fi
1946CC=$ac_cv_prog_CC
1947if test -n "$CC"; then
1948 { echo "$as_me:$LINENO: result: $CC" >&5
1949echo "${ECHO_T}$CC" >&6; }
1950else
1951 { echo "$as_me:$LINENO: result: no" >&5
1952echo "${ECHO_T}no" >&6; }
1953fi
1954
1955
1956 fi
1957fi
1958if test -z "$CC"; then
1959 # Extract the first word of "cc", so it can be a program name with args.
1960set dummy cc; ac_word=$2
1961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1968else
1969 ac_prog_rejected=no
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1978 ac_prog_rejected=yes
1979 continue
1980 fi
1981 ac_cv_prog_CC="cc"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1984 fi
1985done
1986done
1987IFS=$as_save_IFS
1988
1989if test $ac_prog_rejected = yes; then
1990 # We found a bogon in the path, so make sure we never use it.
1991 set dummy $ac_cv_prog_CC
1992 shift
1993 if test $# != 0; then
1994 # We chose a different compiler from the bogus one.
1995 # However, it has the same basename, so the bogon will be chosen
1996 # first if we set CC to just the basename; use the full file name.
1997 shift
1998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1999 fi
2000fi
2001fi
2002fi
2003CC=$ac_cv_prog_CC
2004if test -n "$CC"; then
2005 { echo "$as_me:$LINENO: result: $CC" >&5
2006echo "${ECHO_T}$CC" >&6; }
2007else
2008 { echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6; }
2010fi
2011
2012
2013fi
2014if test -z "$CC"; then
2015 if test -n "$ac_tool_prefix"; then
2016 for ac_prog in cl.exe
2017 do
2018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041IFS=$as_save_IFS
2042
2043fi
2044fi
2045CC=$ac_cv_prog_CC
2046if test -n "$CC"; then
2047 { echo "$as_me:$LINENO: result: $CC" >&5
2048echo "${ECHO_T}$CC" >&6; }
2049else
2050 { echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6; }
2052fi
2053
2054
2055 test -n "$CC" && break
2056 done
2057fi
2058if test -z "$CC"; then
2059 ac_ct_CC=$CC
2060 for ac_prog in cl.exe
2061do
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063set dummy $ac_prog; ac_word=$2
2064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071else
2072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073for as_dir in $PATH
2074do
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2082 fi
2083done
2084done
2085IFS=$as_save_IFS
2086
2087fi
2088fi
2089ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090if test -n "$ac_ct_CC"; then
2091 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092echo "${ECHO_T}$ac_ct_CC" >&6; }
2093else
2094 { echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6; }
2096fi
2097
2098
2099 test -n "$ac_ct_CC" && break
2100done
2101
2102 if test "x$ac_ct_CC" = x; then
2103 CC=""
2104 else
2105 case $cross_compiling:$ac_tool_warned in
2106yes:)
2107{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2108whose name does not start with the host triplet. If you think this
2109configuration is useful to you, please write to autoconf@gnu.org." >&5
2110echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2111whose name does not start with the host triplet. If you think this
2112configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2113ac_tool_warned=yes ;;
2114esac
2115 CC=$ac_ct_CC
2116 fi
2117fi
2118
2119fi
2120
2121
2122test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&5
2124echo "$as_me: error: no acceptable C compiler found in \$PATH
2125See \`config.log' for more details." >&2;}
2126 { (exit 1); exit 1; }; }
2127
2128# Provide some information about the compiler.
2129echo "$as_me:$LINENO: checking for C compiler version" >&5
2130ac_compiler=`set X $ac_compile; echo $2`
2131{ (ac_try="$ac_compiler --version >&5"
2132case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135esac
2136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2137 (eval "$ac_compiler --version >&5") 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141{ (ac_try="$ac_compiler -v >&5"
2142case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145esac
2146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2147 (eval "$ac_compiler -v >&5") 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151{ (ac_try="$ac_compiler -V >&5"
2152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
2156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_compiler -V >&5") 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2161
2162cat >conftest.$ac_ext <<_ACEOF
2163/* confdefs.h. */
2164_ACEOF
2165cat confdefs.h >>conftest.$ac_ext
2166cat >>conftest.$ac_ext <<_ACEOF
2167/* end confdefs.h. */
2168
2169int
2170main ()
2171{
2172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177ac_clean_files_save=$ac_clean_files
2178ac_clean_files="$ac_clean_files a.out a.exe b.out"
2179# Try to create an executable without -o first, disregard a.out.
2180# It will help us diagnose broken compilers, and finding out an intuition
2181# of exeext.
2182{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2183echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2184ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2185#
2186# List of possible output files, starting from the most likely.
2187# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2188# only as a last resort. b.out is created by i960 compilers.
2189ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2190#
2191# The IRIX 6 linker writes into existing files which may not be
2192# executable, retaining their permissions. Remove them first so a
2193# subsequent execution test works.
2194ac_rmfiles=
2195for ac_file in $ac_files
2196do
2197 case $ac_file in
2198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2200 esac
2201done
2202rm -f $ac_rmfiles
2203
2204if { (ac_try="$ac_link_default"
2205case "(($ac_try" in
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2208esac
2209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2210 (eval "$ac_link_default") 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; then
2214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2215# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2216# in a Makefile. We should not override ac_cv_exeext if it was cached,
2217# so that the user can short-circuit this test for compilers unknown to
2218# Autoconf.
2219for ac_file in $ac_files ''
2220do
2221 test -f "$ac_file" || continue
2222 case $ac_file in
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2224 ;;
2225 [ab].out )
2226 # We found the default executable, but exeext='' is most
2227 # certainly right.
2228 break;;
2229 *.* )
2230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2231 then :; else
2232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233 fi
2234 # We set ac_cv_exeext here because the later test for it is not
2235 # safe: cross compilers may not add the suffix if given an `-o'
2236 # argument, so we may need to know it at that point already.
2237 # Even if this section looks crufty: it has the advantage of
2238 # actually working.
2239 break;;
2240 * )
2241 break;;
2242 esac
2243done
2244test "$ac_cv_exeext" = no && ac_cv_exeext=
2245
2246else
2247 ac_file=''
2248fi
2249
2250{ echo "$as_me:$LINENO: result: $ac_file" >&5
2251echo "${ECHO_T}$ac_file" >&6; }
2252if test -z "$ac_file"; then
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2257See \`config.log' for more details." >&5
2258echo "$as_me: error: C compiler cannot create executables
2259See \`config.log' for more details." >&2;}
2260 { (exit 77); exit 77; }; }
2261fi
2262
2263ac_exeext=$ac_cv_exeext
2264
2265# Check that the compiler produces executables we can run. If not, either
2266# the compiler is broken, or we cross compile.
2267{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2268echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2269# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2270# If not cross compiling, check that we can run a simple program.
2271if test "$cross_compiling" != yes; then
2272 if { ac_try='./$ac_file'
2273 { (case "(($ac_try" in
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2276esac
2277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2278 (eval "$ac_try") 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 cross_compiling=no
2283 else
2284 if test "$cross_compiling" = maybe; then
2285 cross_compiling=yes
2286 else
2287 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2288If you meant to cross compile, use \`--host'.
2289See \`config.log' for more details." >&5
2290echo "$as_me: error: cannot run C compiled programs.
2291If you meant to cross compile, use \`--host'.
2292See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2294 fi
2295 fi
2296fi
2297{ echo "$as_me:$LINENO: result: yes" >&5
2298echo "${ECHO_T}yes" >&6; }
2299
2300rm -f a.out a.exe conftest$ac_cv_exeext b.out
2301ac_clean_files=$ac_clean_files_save
2302# Check that the compiler produces executables we can run. If not, either
2303# the compiler is broken, or we cross compile.
2304{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2305echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2306{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2307echo "${ECHO_T}$cross_compiling" >&6; }
2308
2309{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2310echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2311if { (ac_try="$ac_link"
2312case "(($ac_try" in
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2315esac
2316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2317 (eval "$ac_link") 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2322# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2323# work properly (i.e., refer to `conftest.exe'), while it won't with
2324# `rm'.
2325for ac_file in conftest.exe conftest conftest.*; do
2326 test -f "$ac_file" || continue
2327 case $ac_file in
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 break;;
2331 * ) break;;
2332 esac
2333done
2334else
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2338See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2340fi
2341
2342rm -f conftest$ac_cv_exeext
2343{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2344echo "${ECHO_T}$ac_cv_exeext" >&6; }
2345
2346rm -f conftest.$ac_ext
2347EXEEXT=$ac_cv_exeext
2348ac_exeext=$EXEEXT
2349{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2351if test "${ac_cv_objext+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354 cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h. */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h. */
2360
2361int
2362main ()
2363{
2364
2365 ;
2366 return 0;
2367}
2368_ACEOF
2369rm -f conftest.o conftest.obj
2370if { (ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2376 (eval "$ac_compile") 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; then
2380 for ac_file in conftest.o conftest.obj conftest.*; do
2381 test -f "$ac_file" || continue;
2382 case $ac_file in
2383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2385 break;;
2386 esac
2387done
2388else
2389 echo "$as_me: failed program was:" >&5
2390sed 's/^/| /' conftest.$ac_ext >&5
2391
2392{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&5
2394echo "$as_me: error: cannot compute suffix of object files: cannot compile
2395See \`config.log' for more details." >&2;}
2396 { (exit 1); exit 1; }; }
2397fi
2398
2399rm -f conftest.$ac_cv_objext conftest.$ac_ext
2400fi
2401{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2402echo "${ECHO_T}$ac_cv_objext" >&6; }
2403OBJEXT=$ac_cv_objext
2404ac_objext=$OBJEXT
2405{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2406echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2407if test "${ac_cv_c_compiler_gnu+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410 cat >conftest.$ac_ext <<_ACEOF
2411/* confdefs.h. */
2412_ACEOF
2413cat confdefs.h >>conftest.$ac_ext
2414cat >>conftest.$ac_ext <<_ACEOF
2415/* end confdefs.h. */
2416
2417int
2418main ()
2419{
2420#ifndef __GNUC__
2421 choke me
2422#endif
2423
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (ac_try="$ac_compile"
2430case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433esac
2434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_compile") 2>conftest.er1
2436 ac_status=$?
2437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } && {
2442 test -z "$ac_c_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest.$ac_objext; then
2445 ac_compiler_gnu=yes
2446else
2447 echo "$as_me: failed program was:" >&5
2448sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 ac_compiler_gnu=no
2451fi
2452
2453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454ac_cv_c_compiler_gnu=$ac_compiler_gnu
2455
2456fi
2457{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2458echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2459GCC=`test $ac_compiler_gnu = yes && echo yes`
2460ac_test_CFLAGS=${CFLAGS+set}
2461ac_save_CFLAGS=$CFLAGS
2462{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2463echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2464if test "${ac_cv_prog_cc_g+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467 ac_save_c_werror_flag=$ac_c_werror_flag
2468 ac_c_werror_flag=yes
2469 ac_cv_prog_cc_g=no
2470 CFLAGS="-g"
2471 cat >conftest.$ac_ext <<_ACEOF
2472/* confdefs.h. */
2473_ACEOF
2474cat confdefs.h >>conftest.$ac_ext
2475cat >>conftest.$ac_ext <<_ACEOF
2476/* end confdefs.h. */
2477
2478int
2479main ()
2480{
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486rm -f conftest.$ac_objext
2487if { (ac_try="$ac_compile"
2488case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
2492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_compile") 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } && {
2500 test -z "$ac_c_werror_flag" ||
2501 test ! -s conftest.err
2502 } && test -s conftest.$ac_objext; then
2503 ac_cv_prog_cc_g=yes
2504else
2505 echo "$as_me: failed program was:" >&5
2506sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 CFLAGS=""
2509 cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h. */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h. */
2515
2516int
2517main ()
2518{
2519
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524rm -f conftest.$ac_objext
2525if { (ac_try="$ac_compile"
2526case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_compile") 2>conftest.er1
2532 ac_status=$?
2533 grep -v '^ *+' conftest.er1 >conftest.err
2534 rm -f conftest.er1
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } && {
2538 test -z "$ac_c_werror_flag" ||
2539 test ! -s conftest.err
2540 } && test -s conftest.$ac_objext; then
2541 :
2542else
2543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 ac_c_werror_flag=$ac_save_c_werror_flag
2547 CFLAGS="-g"
2548 cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h. */
2554
2555int
2556main ()
2557{
2558
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563rm -f conftest.$ac_objext
2564if { (ac_try="$ac_compile"
2565case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568esac
2569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compile") 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } && {
2577 test -z "$ac_c_werror_flag" ||
2578 test ! -s conftest.err
2579 } && test -s conftest.$ac_objext; then
2580 ac_cv_prog_cc_g=yes
2581else
2582 echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585
2586fi
2587
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589fi
2590
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592fi
2593
2594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_c_werror_flag=$ac_save_c_werror_flag
2596fi
2597{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2598echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2599if test "$ac_test_CFLAGS" = set; then
2600 CFLAGS=$ac_save_CFLAGS
2601elif test $ac_cv_prog_cc_g = yes; then
2602 if test "$GCC" = yes; then
2603 CFLAGS="-g -O2"
2604 else
2605 CFLAGS="-g"
2606 fi
2607else
2608 if test "$GCC" = yes; then
2609 CFLAGS="-O2"
2610 else
2611 CFLAGS=
2612 fi
2613fi
2614{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2615echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2616if test "${ac_cv_prog_cc_c89+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619 ac_cv_prog_cc_c89=no
2620ac_save_CC=$CC
2621cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h. */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
2627#include <stdarg.h>
2628#include <stdio.h>
2629#include <sys/types.h>
2630#include <sys/stat.h>
2631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2632struct buf { int x; };
2633FILE * (*rcsopen) (struct buf *, struct stat *, int);
2634static char *e (p, i)
2635 char **p;
2636 int i;
2637{
2638 return p[i];
2639}
2640static char *f (char * (*g) (char **, int), char **p, ...)
2641{
2642 char *s;
2643 va_list v;
2644 va_start (v,p);
2645 s = g (p, va_arg (v,int));
2646 va_end (v);
2647 return s;
2648}
2649
2650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2651 function prototypes and stuff, but not '\xHH' hex character constants.
2652 These don't provoke an error unfortunately, instead are silently treated
2653 as 'x'. The following induces an error, until -std is added to get
2654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2655 array size at least. It's necessary to write '\x00'==0 to get something
2656 that's true only with -std. */
2657int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2658
2659/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2660 inside strings and character constants. */
2661#define FOO(x) 'x'
2662int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2663
2664int test (int i, double x);
2665struct s1 {int (*f) (int a);};
2666struct s2 {int (*f) (double a);};
2667int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2668int argc;
2669char **argv;
2670int
2671main ()
2672{
2673return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2680do
2681 CC="$ac_save_CC $ac_arg"
2682 rm -f conftest.$ac_objext
2683if { (ac_try="$ac_compile"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compile") 2>conftest.er1
2690 ac_status=$?
2691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
2693 cat conftest.err >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } && {
2696 test -z "$ac_c_werror_flag" ||
2697 test ! -s conftest.err
2698 } && test -s conftest.$ac_objext; then
2699 ac_cv_prog_cc_c89=$ac_arg
2700else
2701 echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704
2705fi
2706
2707rm -f core conftest.err conftest.$ac_objext
2708 test "x$ac_cv_prog_cc_c89" != "xno" && break
2709done
2710rm -f conftest.$ac_ext
2711CC=$ac_save_CC
2712
2713fi
2714# AC_CACHE_VAL
2715case "x$ac_cv_prog_cc_c89" in
2716 x)
2717 { echo "$as_me:$LINENO: result: none needed" >&5
2718echo "${ECHO_T}none needed" >&6; } ;;
2719 xno)
2720 { echo "$as_me:$LINENO: result: unsupported" >&5
2721echo "${ECHO_T}unsupported" >&6; } ;;
2722 *)
2723 CC="$CC $ac_cv_prog_cc_c89"
2724 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2725echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2726esac
2727
2728
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735ac_aux_dir=
2736for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2737 if test -f "$ac_dir/install-sh"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/install-sh -c"
2740 break
2741 elif test -f "$ac_dir/install.sh"; then
2742 ac_aux_dir=$ac_dir
2743 ac_install_sh="$ac_aux_dir/install.sh -c"
2744 break
2745 elif test -f "$ac_dir/shtool"; then
2746 ac_aux_dir=$ac_dir
2747 ac_install_sh="$ac_aux_dir/shtool install -c"
2748 break
2749 fi
2750done
2751if test -z "$ac_aux_dir"; then
2752 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2753echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2754 { (exit 1); exit 1; }; }
2755fi
2756
2757# These three variables are undocumented and unsupported,
2758# and are intended to be withdrawn in a future Autoconf release.
2759# They can cause serious problems if a builder's source tree is in a directory
2760# whose full name contains unusual characters.
2761ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2764
2765
2766# Make sure we can run config.sub.
2767$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2769echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2770 { (exit 1); exit 1; }; }
2771
2772{ echo "$as_me:$LINENO: checking build system type" >&5
2773echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2774if test "${ac_cv_build+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 ac_build_alias=$build_alias
2778test "x$ac_build_alias" = x &&
2779 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2780test "x$ac_build_alias" = x &&
2781 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2782echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2783 { (exit 1); exit 1; }; }
2784ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2786echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2787 { (exit 1); exit 1; }; }
2788
2789fi
2790{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2791echo "${ECHO_T}$ac_cv_build" >&6; }
2792case $ac_cv_build in
2793*-*-*) ;;
2794*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2795echo "$as_me: error: invalid value of canonical build" >&2;}
2796 { (exit 1); exit 1; }; };;
2797esac
2798build=$ac_cv_build
2799ac_save_IFS=$IFS; IFS='-'
2800set x $ac_cv_build
2801shift
2802build_cpu=$1
2803build_vendor=$2
2804shift; shift
2805# Remember, the first character of IFS is used to create $*,
2806# except with old shells:
2807build_os=$*
2808IFS=$ac_save_IFS
2809case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2810
2811
2812{ echo "$as_me:$LINENO: checking host system type" >&5
2813echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2814if test "${ac_cv_host+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817 if test "x$host_alias" = x; then
2818 ac_cv_host=$ac_cv_build
2819else
2820 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2821 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2822echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2823 { (exit 1); exit 1; }; }
2824fi
2825
2826fi
2827{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2828echo "${ECHO_T}$ac_cv_host" >&6; }
2829case $ac_cv_host in
2830*-*-*) ;;
2831*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2832echo "$as_me: error: invalid value of canonical host" >&2;}
2833 { (exit 1); exit 1; }; };;
2834esac
2835host=$ac_cv_host
2836ac_save_IFS=$IFS; IFS='-'
2837set x $ac_cv_host
2838shift
2839host_cpu=$1
2840host_vendor=$2
2841shift; shift
2842# Remember, the first character of IFS is used to create $*,
2843# except with old shells:
2844host_os=$*
2845IFS=$ac_save_IFS
2846case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2847
2848
2849
2850ac_ext=c
2851ac_cpp='$CPP $CPPFLAGS'
2852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2856echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2857# On Suns, sometimes $CPP names a directory.
2858if test -n "$CPP" && test -d "$CPP"; then
2859 CPP=
2860fi
2861if test -z "$CPP"; then
2862 if test "${ac_cv_prog_CPP+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865 # Double quotes because CPP needs to be expanded
2866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2867 do
2868 ac_preproc_ok=false
2869for ac_c_preproc_warn_flag in '' yes
2870do
2871 # Use a header file that comes with gcc, so configuring glibc
2872 # with a fresh cross-compiler works.
2873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2874 # <limits.h> exists even on freestanding compilers.
2875 # On the NeXT, cc -E runs the code through the compiler's parser,
2876 # not just through cpp. "Syntax error" is here to catch this case.
2877 cat >conftest.$ac_ext <<_ACEOF
2878/* confdefs.h. */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h. */
2883#ifdef __STDC__
2884# include <limits.h>
2885#else
2886# include <assert.h>
2887#endif
2888 Syntax error
2889_ACEOF
2890if { (ac_try="$ac_cpp conftest.$ac_ext"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null && {
2903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 }; then
2906 :
2907else
2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 # Broken: fails on valid input.
2912continue
2913fi
2914
2915rm -f conftest.err conftest.$ac_ext
2916
2917 # OK, works on sane cases. Now check whether nonexistent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
2925#include <ac_nonexistent.h>
2926_ACEOF
2927if { (ac_try="$ac_cpp conftest.$ac_ext"
2928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } >/dev/null && {
2940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 }; then
2943 # Broken: success on invalid input.
2944continue
2945else
2946 echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 # Passes both tests.
2950ac_preproc_ok=:
2951break
2952fi
2953
2954rm -f conftest.err conftest.$ac_ext
2955
2956done
2957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2958rm -f conftest.err conftest.$ac_ext
2959if $ac_preproc_ok; then
2960 break
2961fi
2962
2963 done
2964 ac_cv_prog_CPP=$CPP
2965
2966fi
2967 CPP=$ac_cv_prog_CPP
2968else
2969 ac_cv_prog_CPP=$CPP
2970fi
2971{ echo "$as_me:$LINENO: result: $CPP" >&5
2972echo "${ECHO_T}$CPP" >&6; }
2973ac_preproc_ok=false
2974for ac_c_preproc_warn_flag in '' yes
2975do
2976 # Use a header file that comes with gcc, so configuring glibc
2977 # with a fresh cross-compiler works.
2978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2979 # <limits.h> exists even on freestanding compilers.
2980 # On the NeXT, cc -E runs the code through the compiler's parser,
2981 # not just through cpp. "Syntax error" is here to catch this case.
2982 cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
2988#ifdef __STDC__
2989# include <limits.h>
2990#else
2991# include <assert.h>
2992#endif
2993 Syntax error
2994_ACEOF
2995if { (ac_try="$ac_cpp conftest.$ac_ext"
2996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev/null && {
3008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3009 test ! -s conftest.err
3010 }; then
3011 :
3012else
3013 echo "$as_me: failed program was:" >&5
3014sed 's/^/| /' conftest.$ac_ext >&5
3015
3016 # Broken: fails on valid input.
3017continue
3018fi
3019
3020rm -f conftest.err conftest.$ac_ext
3021
3022 # OK, works on sane cases. Now check whether nonexistent headers
3023 # can be detected and how.
3024 cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h. */
3030#include <ac_nonexistent.h>
3031_ACEOF
3032if { (ac_try="$ac_cpp conftest.$ac_ext"
3033case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } >/dev/null && {
3045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3046 test ! -s conftest.err
3047 }; then
3048 # Broken: success on invalid input.
3049continue
3050else
3051 echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 # Passes both tests.
3055ac_preproc_ok=:
3056break
3057fi
3058
3059rm -f conftest.err conftest.$ac_ext
3060
3061done
3062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3063rm -f conftest.err conftest.$ac_ext
3064if $ac_preproc_ok; then
3065 :
3066else
3067 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3068See \`config.log' for more details." >&5
3069echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3070See \`config.log' for more details." >&2;}
3071 { (exit 1); exit 1; }; }
3072fi
3073
3074ac_ext=c
3075ac_cpp='$CPP $CPPFLAGS'
3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079
3080
3081{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3082echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3083if test "${ac_cv_path_GREP+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 # Extract the first word of "grep ggrep" to use in msg output
3087if test -z "$GREP"; then
3088set dummy grep ggrep; ac_prog_name=$2
3089if test "${ac_cv_path_GREP+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091else
3092 ac_path_GREP_found=false
3093# Loop through the user's path and test for each of PROGNAME-LIST
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in grep ggrep; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3102 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3103 # Check for GNU ac_path_GREP and select it if it is found.
3104 # Check for GNU $ac_path_GREP
3105case `"$ac_path_GREP" --version 2>&1` in
3106*GNU*)
3107 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3108*)
3109 ac_count=0
3110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3111 while :
3112 do
3113 cat "conftest.in" "conftest.in" >"conftest.tmp"
3114 mv "conftest.tmp" "conftest.in"
3115 cp "conftest.in" "conftest.nl"
3116 echo 'GREP' >> "conftest.nl"
3117 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3119 ac_count=`expr $ac_count + 1`
3120 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3121 # Best one so far, save it but keep looking for a better one
3122 ac_cv_path_GREP="$ac_path_GREP"
3123 ac_path_GREP_max=$ac_count
3124 fi
3125 # 10*(2^10) chars as input seems more than enough
3126 test $ac_count -gt 10 && break
3127 done
3128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3129esac
3130
3131
3132 $ac_path_GREP_found && break 3
3133 done
3134done
3135
3136done
3137IFS=$as_save_IFS
3138
3139
3140fi
3141
3142GREP="$ac_cv_path_GREP"
3143if test -z "$GREP"; then
3144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3145echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3146 { (exit 1); exit 1; }; }
3147fi
3148
3149else
3150 ac_cv_path_GREP=$GREP
3151fi
3152
3153
3154fi
3155{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3156echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3157 GREP="$ac_cv_path_GREP"
3158
3159
3160{ echo "$as_me:$LINENO: checking for egrep" >&5
3161echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3162if test "${ac_cv_path_EGREP+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164else
3165 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3166 then ac_cv_path_EGREP="$GREP -E"
3167 else
3168 # Extract the first word of "egrep" to use in msg output
3169if test -z "$EGREP"; then
3170set dummy egrep; ac_prog_name=$2
3171if test "${ac_cv_path_EGREP+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174 ac_path_EGREP_found=false
3175# Loop through the user's path and test for each of PROGNAME-LIST
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_prog in egrep; do
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3185 # Check for GNU ac_path_EGREP and select it if it is found.
3186 # Check for GNU $ac_path_EGREP
3187case `"$ac_path_EGREP" --version 2>&1` in
3188*GNU*)
3189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3190*)
3191 ac_count=0
3192 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3193 while :
3194 do
3195 cat "conftest.in" "conftest.in" >"conftest.tmp"
3196 mv "conftest.tmp" "conftest.in"
3197 cp "conftest.in" "conftest.nl"
3198 echo 'EGREP' >> "conftest.nl"
3199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3201 ac_count=`expr $ac_count + 1`
3202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3203 # Best one so far, save it but keep looking for a better one
3204 ac_cv_path_EGREP="$ac_path_EGREP"
3205 ac_path_EGREP_max=$ac_count
3206 fi
3207 # 10*(2^10) chars as input seems more than enough
3208 test $ac_count -gt 10 && break
3209 done
3210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3211esac
3212
3213
3214 $ac_path_EGREP_found && break 3
3215 done
3216done
3217
3218done
3219IFS=$as_save_IFS
3220
3221
3222fi
3223
3224EGREP="$ac_cv_path_EGREP"
3225if test -z "$EGREP"; then
3226 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3227echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3228 { (exit 1); exit 1; }; }
3229fi
3230
3231else
3232 ac_cv_path_EGREP=$EGREP
3233fi
3234
3235
3236 fi
3237fi
3238{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3239echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3240 EGREP="$ac_cv_path_EGREP"
3241
3242
3243{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3244echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3245if test "${ac_cv_header_stdc+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248 cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h. */
3254#include <stdlib.h>
3255#include <stdarg.h>
3256#include <string.h>
3257#include <float.h>
3258
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext
3268if { (ac_try="$ac_compile"
3269case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272esac
3273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } && {
3281 test -z "$ac_c_werror_flag" ||
3282 test ! -s conftest.err
3283 } && test -s conftest.$ac_objext; then
3284 ac_cv_header_stdc=yes
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 ac_cv_header_stdc=no
3290fi
3291
3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293
3294if test $ac_cv_header_stdc = yes; then
3295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3296 cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
3302#include <string.h>
3303
3304_ACEOF
3305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3306 $EGREP "memchr" >/dev/null 2>&1; then
3307 :
3308else
3309 ac_cv_header_stdc=no
3310fi
3311rm -f conftest*
3312
3313fi
3314
3315if test $ac_cv_header_stdc = yes; then
3316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323#include <stdlib.h>
3324
3325_ACEOF
3326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 $EGREP "free" >/dev/null 2>&1; then
3328 :
3329else
3330 ac_cv_header_stdc=no
3331fi
3332rm -f conftest*
3333
3334fi
3335
3336if test $ac_cv_header_stdc = yes; then
3337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3338 if test "$cross_compiling" = yes; then
3339 :
3340else
3341 cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h. */
3347#include <ctype.h>
3348#include <stdlib.h>
3349#if ((' ' & 0x0FF) == 0x020)
3350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3352#else
3353# define ISLOWER(c) \
3354 (('a' <= (c) && (c) <= 'i') \
3355 || ('j' <= (c) && (c) <= 'r') \
3356 || ('s' <= (c) && (c) <= 'z'))
3357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3358#endif
3359
3360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3361int
3362main ()
3363{
3364 int i;
3365 for (i = 0; i < 256; i++)
3366 if (XOR (islower (i), ISLOWER (i))
3367 || toupper (i) != TOUPPER (i))
3368 return 2;
3369 return 0;
3370}
3371_ACEOF
3372rm -f conftest$ac_exeext
3373if { (ac_try="$ac_link"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_try") 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 :
3393else
3394 echo "$as_me: program exited with status $ac_status" >&5
3395echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398( exit $ac_status )
3399ac_cv_header_stdc=no
3400fi
3401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3402fi
3403
3404
3405fi
3406fi
3407{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3408echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3409if test $ac_cv_header_stdc = yes; then
3410
3411cat >>confdefs.h <<\_ACEOF
3412#define STDC_HEADERS 1
3413_ACEOF
3414
3415fi
3416
3417# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3428 inttypes.h stdint.h unistd.h
3429do
3430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442$ac_includes_default
3443
3444#include <$ac_header>
3445_ACEOF
3446rm -f conftest.$ac_objext
3447if { (ac_try="$ac_compile"
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
3452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_compile") 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } && {
3460 test -z "$ac_c_werror_flag" ||
3461 test ! -s conftest.err
3462 } && test -s conftest.$ac_objext; then
3463 eval "$as_ac_Header=yes"
3464else
3465 echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 eval "$as_ac_Header=no"
3469fi
3470
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472fi
3473ac_res=`eval echo '${'$as_ac_Header'}'`
3474 { echo "$as_me:$LINENO: result: $ac_res" >&5
3475echo "${ECHO_T}$ac_res" >&6; }
3476if test `eval echo '${'$as_ac_Header'}'` = yes; then
3477 cat >>confdefs.h <<_ACEOF
3478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3479_ACEOF
3480
3481fi
3482
3483done
3484
3485
3486{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3487echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3488if test "${ac_cv_c_bigendian+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490else
3491 # See if sys/param.h defines the BYTE_ORDER macro.
3492cat >conftest.$ac_ext <<_ACEOF
3493/* confdefs.h. */
3494_ACEOF
3495cat confdefs.h >>conftest.$ac_ext
3496cat >>conftest.$ac_ext <<_ACEOF
3497/* end confdefs.h. */
3498#include <sys/types.h>
3499#include <sys/param.h>
3500
3501int
3502main ()
3503{
3504#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3505 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3506 bogus endian macros
3507#endif
3508
3509 ;
3510 return 0;
3511}
3512_ACEOF
3513rm -f conftest.$ac_objext
3514if { (ac_try="$ac_compile"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } && {
3527 test -z "$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 } && test -s conftest.$ac_objext; then
3530 # It does; now see whether it defined to BIG_ENDIAN or not.
3531cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h. */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h. */
3537#include <sys/types.h>
3538#include <sys/param.h>
3539
3540int
3541main ()
3542{
3543#if BYTE_ORDER != BIG_ENDIAN
3544 not big endian
3545#endif
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
3551rm -f conftest.$ac_objext
3552if { (ac_try="$ac_compile"
3553case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556esac
3557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3568 ac_cv_c_bigendian=yes
3569else
3570 echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 ac_cv_c_bigendian=no
3574fi
3575
3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 # It does not; compile a test program.
3582if test "$cross_compiling" = yes; then
3583 # try to guess the endianness by grepping values into an object file
3584 ac_cv_c_bigendian=unknown
3585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
3591short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3592short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3593void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3594short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3595short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3596void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3597int
3598main ()
3599{
3600 _ascii (); _ebcdic ();
3601 ;
3602 return 0;
3603}
3604_ACEOF
3605rm -f conftest.$ac_objext
3606if { (ac_try="$ac_compile"
3607case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610esac
3611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_compile") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } && {
3619 test -z "$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 } && test -s conftest.$ac_objext; then
3622 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3623 ac_cv_c_bigendian=yes
3624fi
3625if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3626 if test "$ac_cv_c_bigendian" = unknown; then
3627 ac_cv_c_bigendian=no
3628 else
3629 # finding both strings is unlikely to happen, but who knows?
3630 ac_cv_c_bigendian=unknown
3631 fi
3632fi
3633else
3634 echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637
3638fi
3639
3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641else
3642 cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
3648$ac_includes_default
3649int
3650main ()
3651{
3652
3653 /* Are we little or big endian? From Harbison&Steele. */
3654 union
3655 {
3656 long int l;
3657 char c[sizeof (long int)];
3658 } u;
3659 u.l = 1;
3660 return u.c[sizeof (long int) - 1] == 1;
3661
3662 ;
3663 return 0;
3664}
3665_ACEOF
3666rm -f conftest$ac_exeext
3667if { (ac_try="$ac_link"
3668case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671esac
3672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_link") 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3677 { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680esac
3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 ac_cv_c_bigendian=no
3687else
3688 echo "$as_me: program exited with status $ac_status" >&5
3689echo "$as_me: failed program was:" >&5
3690sed 's/^/| /' conftest.$ac_ext >&5
3691
3692( exit $ac_status )
3693ac_cv_c_bigendian=yes
3694fi
3695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3696fi
3697
3698
3699fi
3700
3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702fi
3703{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3704echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3705case $ac_cv_c_bigendian in
3706 yes)
3707
3708cat >>confdefs.h <<\_ACEOF
3709#define WORDS_BIGENDIAN 1
3710_ACEOF
3711 ;;
3712 no)
3713 ;;
3714 *)
3715 { { echo "$as_me:$LINENO: error: unknown endianness
3716presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3717echo "$as_me: error: unknown endianness
3718presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3719 { (exit 1); exit 1; }; } ;;
3720esac
3721
3722
3723# Checks for programs.
3724for ac_prog in gawk mawk nawk awk
3725do
3726 # Extract the first word of "$ac_prog", so it can be a program name with args.
3727set dummy $ac_prog; ac_word=$2
3728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3730if test "${ac_cv_prog_AWK+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 if test -n "$AWK"; then
3734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3735else
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743 ac_cv_prog_AWK="$ac_prog"
3744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 break 2
3746 fi
3747done
3748done
3749IFS=$as_save_IFS
3750
3751fi
3752fi
3753AWK=$ac_cv_prog_AWK
3754if test -n "$AWK"; then
3755 { echo "$as_me:$LINENO: result: $AWK" >&5
3756echo "${ECHO_T}$AWK" >&6; }
3757else
3758 { echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6; }
3760fi
3761
3762
3763 test -n "$AWK" && break
3764done
3765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3772echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3773# On Suns, sometimes $CPP names a directory.
3774if test -n "$CPP" && test -d "$CPP"; then
3775 CPP=
3776fi
3777if test -z "$CPP"; then
3778 if test "${ac_cv_prog_CPP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 # Double quotes because CPP needs to be expanded
3782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3783 do
3784 ac_preproc_ok=false
3785for ac_c_preproc_warn_flag in '' yes
3786do
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
3789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
3791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat >conftest.$ac_ext <<_ACEOF
3794/* confdefs.h. */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h. */
3799#ifdef __STDC__
3800# include <limits.h>
3801#else
3802# include <assert.h>
3803#endif
3804 Syntax error
3805_ACEOF
3806if { (ac_try="$ac_cpp conftest.$ac_ext"
3807case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810esac
3811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null && {
3819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 }; then
3822 :
3823else
3824 echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 # Broken: fails on valid input.
3828continue
3829fi
3830
3831rm -f conftest.err conftest.$ac_ext
3832
3833 # OK, works on sane cases. Now check whether nonexistent headers
3834 # can be detected and how.
3835 cat >conftest.$ac_ext <<_ACEOF
3836/* confdefs.h. */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h. */
3841#include <ac_nonexistent.h>
3842_ACEOF
3843if { (ac_try="$ac_cpp conftest.$ac_ext"
3844case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847esac
3848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } >/dev/null && {
3856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 }; then
3859 # Broken: success on invalid input.
3860continue
3861else
3862 echo "$as_me: failed program was:" >&5
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 # Passes both tests.
3866ac_preproc_ok=:
3867break
3868fi
3869
3870rm -f conftest.err conftest.$ac_ext
3871
3872done
3873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3874rm -f conftest.err conftest.$ac_ext
3875if $ac_preproc_ok; then
3876 break
3877fi
3878
3879 done
3880 ac_cv_prog_CPP=$CPP
3881
3882fi
3883 CPP=$ac_cv_prog_CPP
3884else
3885 ac_cv_prog_CPP=$CPP
3886fi
3887{ echo "$as_me:$LINENO: result: $CPP" >&5
3888echo "${ECHO_T}$CPP" >&6; }
3889ac_preproc_ok=false
3890for ac_c_preproc_warn_flag in '' yes
3891do
3892 # Use a header file that comes with gcc, so configuring glibc
3893 # with a fresh cross-compiler works.
3894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895 # <limits.h> exists even on freestanding compilers.
3896 # On the NeXT, cc -E runs the code through the compiler's parser,
3897 # not just through cpp. "Syntax error" is here to catch this case.
3898 cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h. */
3904#ifdef __STDC__
3905# include <limits.h>
3906#else
3907# include <assert.h>
3908#endif
3909 Syntax error
3910_ACEOF
3911if { (ac_try="$ac_cpp conftest.$ac_ext"
3912case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915esac
3916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } >/dev/null && {
3924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3926 }; then
3927 :
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 # Broken: fails on valid input.
3933continue
3934fi
3935
3936rm -f conftest.err conftest.$ac_ext
3937
3938 # OK, works on sane cases. Now check whether nonexistent headers
3939 # can be detected and how.
3940 cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
3946#include <ac_nonexistent.h>
3947_ACEOF
3948if { (ac_try="$ac_cpp conftest.$ac_ext"
3949case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev/null && {
3961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 }; then
3964 # Broken: success on invalid input.
3965continue
3966else
3967 echo "$as_me: failed program was:" >&5
3968sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 # Passes both tests.
3971ac_preproc_ok=:
3972break
3973fi
3974
3975rm -f conftest.err conftest.$ac_ext
3976
3977done
3978# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3979rm -f conftest.err conftest.$ac_ext
3980if $ac_preproc_ok; then
3981 :
3982else
3983 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3984See \`config.log' for more details." >&5
3985echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3986See \`config.log' for more details." >&2;}
3987 { (exit 1); exit 1; }; }
3988fi
3989
3990ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3996if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3998set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4001if test "${ac_cv_prog_RANLIB+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 if test -n "$RANLIB"; then
4005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018done
4019done
4020IFS=$as_save_IFS
4021
4022fi
4023fi
4024RANLIB=$ac_cv_prog_RANLIB
4025if test -n "$RANLIB"; then
4026 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4027echo "${ECHO_T}$RANLIB" >&6; }
4028else
4029 { echo "$as_me:$LINENO: result: no" >&5
4030echo "${ECHO_T}no" >&6; }
4031fi
4032
4033
4034fi
4035if test -z "$ac_cv_prog_RANLIB"; then
4036 ac_ct_RANLIB=$RANLIB
4037 # Extract the first word of "ranlib", so it can be a program name with args.
4038set dummy ranlib; ac_word=$2
4039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043else
4044 if test -n "$ac_ct_RANLIB"; then
4045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4046else
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4054 ac_cv_prog_ac_ct_RANLIB="ranlib"
4055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058done
4059done
4060IFS=$as_save_IFS
4061
4062fi
4063fi
4064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4065if test -n "$ac_ct_RANLIB"; then
4066 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4067echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4068else
4069 { echo "$as_me:$LINENO: result: no" >&5
4070echo "${ECHO_T}no" >&6; }
4071fi
4072
4073 if test "x$ac_ct_RANLIB" = x; then
4074 RANLIB=":"
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077yes:)
4078{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4079whose name does not start with the host triplet. If you think this
4080configuration is useful to you, please write to autoconf@gnu.org." >&5
4081echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4082whose name does not start with the host triplet. If you think this
4083configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4084ac_tool_warned=yes ;;
4085esac
4086 RANLIB=$ac_ct_RANLIB
4087 fi
4088else
4089 RANLIB="$ac_cv_prog_RANLIB"
4090fi
4091
4092# Find a good install program. We prefer a C program (faster),
4093# so one script is as good as another. But avoid the broken or
4094# incompatible versions:
4095# SysV /etc/install, /usr/sbin/install
4096# SunOS /usr/etc/install
4097# IRIX /sbin/install
4098# AIX /bin/install
4099# AmigaOS /C/install, which installs bootblocks on floppy discs
4100# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4101# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4102# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4103# OS/2's system install, which has a completely different semantic
4104# ./install, which can be erroneously created by make from ./install.sh.
4105{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4106echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4107if test -z "$INSTALL"; then
4108if test "${ac_cv_path_install+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH
4113do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 # Account for people who put trailing slashes in PATH elements.
4117case $as_dir/ in
4118 ./ | .// | /cC/* | \
4119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4120 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4121 /usr/ucb/* ) ;;
4122 *)
4123 # OSF1 and SCO ODT 3.0 have their own names for install.
4124 # Don't use installbsd from OSF since it installs stuff as root
4125 # by default.
4126 for ac_prog in ginstall scoinst install; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4129 if test $ac_prog = install &&
4130 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4131 # AIX install. It has an incompatible calling convention.
4132 :
4133 elif test $ac_prog = install &&
4134 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4135 # program-specific install script used by HP pwplus--don't use.
4136 :
4137 else
4138 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4139 break 3
4140 fi
4141 fi
4142 done
4143 done
4144 ;;
4145esac
4146done
4147IFS=$as_save_IFS
4148
4149
4150fi
4151 if test "${ac_cv_path_install+set}" = set; then
4152 INSTALL=$ac_cv_path_install
4153 else
4154 # As a last resort, use the slow shell script. Don't cache a
4155 # value for INSTALL within a source directory, because that will
4156 # break other packages using the cache if that directory is
4157 # removed, or if the value is a relative name.
4158 INSTALL=$ac_install_sh
4159 fi
4160fi
4161{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4162echo "${ECHO_T}$INSTALL" >&6; }
4163
4164# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4165# It thinks the first close brace ends the variable substitution.
4166test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4167
4168test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4169
4170test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4171
4172{ echo "$as_me:$LINENO: checking for egrep" >&5
4173echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4174if test "${ac_cv_path_EGREP+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176else
4177 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4178 then ac_cv_path_EGREP="$GREP -E"
4179 else
4180 # Extract the first word of "egrep" to use in msg output
4181if test -z "$EGREP"; then
4182set dummy egrep; ac_prog_name=$2
4183if test "${ac_cv_path_EGREP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 ac_path_EGREP_found=false
4187# Loop through the user's path and test for each of PROGNAME-LIST
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_prog in egrep; do
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4196 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4197 # Check for GNU ac_path_EGREP and select it if it is found.
4198 # Check for GNU $ac_path_EGREP
4199case `"$ac_path_EGREP" --version 2>&1` in
4200*GNU*)
4201 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4202*)
4203 ac_count=0
4204 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4205 while :
4206 do
4207 cat "conftest.in" "conftest.in" >"conftest.tmp"
4208 mv "conftest.tmp" "conftest.in"
4209 cp "conftest.in" "conftest.nl"
4210 echo 'EGREP' >> "conftest.nl"
4211 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4213 ac_count=`expr $ac_count + 1`
4214 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4215 # Best one so far, save it but keep looking for a better one
4216 ac_cv_path_EGREP="$ac_path_EGREP"
4217 ac_path_EGREP_max=$ac_count
4218 fi
4219 # 10*(2^10) chars as input seems more than enough
4220 test $ac_count -gt 10 && break
4221 done
4222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223esac
4224
4225
4226 $ac_path_EGREP_found && break 3
4227 done
4228done
4229
4230done
4231IFS=$as_save_IFS
4232
4233
4234fi
4235
4236EGREP="$ac_cv_path_EGREP"
4237if test -z "$EGREP"; then
4238 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4239echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4240 { (exit 1); exit 1; }; }
4241fi
4242
4243else
4244 ac_cv_path_EGREP=$EGREP
4245fi
4246
4247
4248 fi
4249fi
4250{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4251echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4252 EGREP="$ac_cv_path_EGREP"
4253
4254
4255# Extract the first word of "ar", so it can be a program name with args.
4256set dummy ar; ac_word=$2
4257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259if test "${ac_cv_path_AR+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261else
4262 case $AR in
4263 [\\/]* | ?:[\\/]*)
4264 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4265 ;;
4266 *)
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278done
4279done
4280IFS=$as_save_IFS
4281
4282 ;;
4283esac
4284fi
4285AR=$ac_cv_path_AR
4286if test -n "$AR"; then
4287 { echo "$as_me:$LINENO: result: $AR" >&5
4288echo "${ECHO_T}$AR" >&6; }
4289else
4290 { echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6; }
4292fi
4293
4294
4295# Extract the first word of "cat", so it can be a program name with args.
4296set dummy cat; ac_word=$2
4297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299if test "${ac_cv_path_CAT+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302 case $CAT in
4303 [\\/]* | ?:[\\/]*)
4304 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4305 ;;
4306 *)
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318done
4319done
4320IFS=$as_save_IFS
4321
4322 ;;
4323esac
4324fi
4325CAT=$ac_cv_path_CAT
4326if test -n "$CAT"; then
4327 { echo "$as_me:$LINENO: result: $CAT" >&5
4328echo "${ECHO_T}$CAT" >&6; }
4329else
4330 { echo "$as_me:$LINENO: result: no" >&5
4331echo "${ECHO_T}no" >&6; }
4332fi
4333
4334
4335# Extract the first word of "kill", so it can be a program name with args.
4336set dummy kill; ac_word=$2
4337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4339if test "${ac_cv_path_KILL+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341else
4342 case $KILL in
4343 [\\/]* | ?:[\\/]*)
4344 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4345 ;;
4346 *)
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358done
4359done
4360IFS=$as_save_IFS
4361
4362 ;;
4363esac
4364fi
4365KILL=$ac_cv_path_KILL
4366if test -n "$KILL"; then
4367 { echo "$as_me:$LINENO: result: $KILL" >&5
4368echo "${ECHO_T}$KILL" >&6; }
4369else
4370 { echo "$as_me:$LINENO: result: no" >&5
4371echo "${ECHO_T}no" >&6; }
4372fi
4373
4374
4375for ac_prog in perl5 perl
4376do
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378set dummy $ac_prog; ac_word=$2
4379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381if test "${ac_cv_path_PERL+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 case $PERL in
4385 [\\/]* | ?:[\\/]*)
4386 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4387 ;;
4388 *)
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400done
4401done
4402IFS=$as_save_IFS
4403
4404 ;;
4405esac
4406fi
4407PERL=$ac_cv_path_PERL
4408if test -n "$PERL"; then
4409 { echo "$as_me:$LINENO: result: $PERL" >&5
4410echo "${ECHO_T}$PERL" >&6; }
4411else
4412 { echo "$as_me:$LINENO: result: no" >&5
4413echo "${ECHO_T}no" >&6; }
4414fi
4415
4416
4417 test -n "$PERL" && break
4418done
4419
4420# Extract the first word of "sed", so it can be a program name with args.
4421set dummy sed; ac_word=$2
4422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424if test "${ac_cv_path_SED+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427 case $SED in
4428 [\\/]* | ?:[\\/]*)
4429 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4430 ;;
4431 *)
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
4444done
4445IFS=$as_save_IFS
4446
4447 ;;
4448esac
4449fi
4450SED=$ac_cv_path_SED
4451if test -n "$SED"; then
4452 { echo "$as_me:$LINENO: result: $SED" >&5
4453echo "${ECHO_T}$SED" >&6; }
4454else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
4457fi
4458
4459
4460
4461# Extract the first word of "ent", so it can be a program name with args.
4462set dummy ent; ac_word=$2
4463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_path_ENT+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468 case $ENT in
4469 [\\/]* | ?:[\\/]*)
4470 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4471 ;;
4472 *)
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484done
4485done
4486IFS=$as_save_IFS
4487
4488 ;;
4489esac
4490fi
4491ENT=$ac_cv_path_ENT
4492if test -n "$ENT"; then
4493 { echo "$as_me:$LINENO: result: $ENT" >&5
4494echo "${ECHO_T}$ENT" >&6; }
4495else
4496 { echo "$as_me:$LINENO: result: no" >&5
4497echo "${ECHO_T}no" >&6; }
4498fi
4499
4500
4501
4502# Extract the first word of "bash", so it can be a program name with args.
4503set dummy bash; ac_word=$2
4504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4506if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509 case $TEST_MINUS_S_SH in
4510 [\\/]* | ?:[\\/]*)
4511 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4512 ;;
4513 *)
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525done
4526done
4527IFS=$as_save_IFS
4528
4529 ;;
4530esac
4531fi
4532TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4533if test -n "$TEST_MINUS_S_SH"; then
4534 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4535echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4536else
4537 { echo "$as_me:$LINENO: result: no" >&5
4538echo "${ECHO_T}no" >&6; }
4539fi
4540
4541
4542# Extract the first word of "ksh", so it can be a program name with args.
4543set dummy ksh; ac_word=$2
4544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4546if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 case $TEST_MINUS_S_SH in
4550 [\\/]* | ?:[\\/]*)
4551 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4552 ;;
4553 *)
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566done
4567IFS=$as_save_IFS
4568
4569 ;;
4570esac
4571fi
4572TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4573if test -n "$TEST_MINUS_S_SH"; then
4574 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4575echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4576else
4577 { echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6; }
4579fi
4580
4581
4582# Extract the first word of "sh", so it can be a program name with args.
4583set dummy sh; ac_word=$2
4584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589 case $TEST_MINUS_S_SH in
4590 [\\/]* | ?:[\\/]*)
4591 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4592 ;;
4593 *)
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605done
4606done
4607IFS=$as_save_IFS
4608
4609 ;;
4610esac
4611fi
4612TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4613if test -n "$TEST_MINUS_S_SH"; then
4614 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4615echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4616else
4617 { echo "$as_me:$LINENO: result: no" >&5
4618echo "${ECHO_T}no" >&6; }
4619fi
4620
4621
4622# Extract the first word of "sh", so it can be a program name with args.
4623set dummy sh; ac_word=$2
4624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626if test "${ac_cv_path_SH+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629 case $SH in
4630 [\\/]* | ?:[\\/]*)
4631 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4632 ;;
4633 *)
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635for as_dir in $PATH
4636do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645done
4646done
4647IFS=$as_save_IFS
4648
4649 ;;
4650esac
4651fi
4652SH=$ac_cv_path_SH
4653if test -n "$SH"; then
4654 { echo "$as_me:$LINENO: result: $SH" >&5
4655echo "${ECHO_T}$SH" >&6; }
4656else
4657 { echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6; }
4659fi
4660
4661
4662TEST_SHELL=sh
4663
4664
4665# Extract the first word of "groupadd", so it can be a program name with args.
4666set dummy groupadd; ac_word=$2
4667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671else
4672 case $PATH_GROUPADD_PROG in
4673 [\\/]* | ?:[\\/]*)
4674 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4675 ;;
4676 *)
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4687 fi
4688done
4689done
4690IFS=$as_save_IFS
4691
4692 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4693 ;;
4694esac
4695fi
4696PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4697if test -n "$PATH_GROUPADD_PROG"; then
4698 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4699echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4700else
4701 { echo "$as_me:$LINENO: result: no" >&5
4702echo "${ECHO_T}no" >&6; }
4703fi
4704
4705
4706# Extract the first word of "useradd", so it can be a program name with args.
4707set dummy useradd; ac_word=$2
4708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 case $PATH_USERADD_PROG in
4714 [\\/]* | ?:[\\/]*)
4715 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4716 ;;
4717 *)
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4720do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729done
4730done
4731IFS=$as_save_IFS
4732
4733 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4734 ;;
4735esac
4736fi
4737PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4738if test -n "$PATH_USERADD_PROG"; then
4739 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4740echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4741else
4742 { echo "$as_me:$LINENO: result: no" >&5
4743echo "${ECHO_T}no" >&6; }
4744fi
4745
4746
4747# Extract the first word of "pkgmk", so it can be a program name with args.
4748set dummy pkgmk; ac_word=$2
4749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4755 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768done
4769done
4770IFS=$as_save_IFS
4771
4772 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4773fi
4774fi
4775MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4776if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4777 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4778echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4779else
4780 { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
4782fi
4783
4784
4785if test -x /sbin/sh; then
4786 STARTUP_SCRIPT_SHELL=/sbin/sh
4787
4788else
4789 STARTUP_SCRIPT_SHELL=/bin/sh
4790
4791fi
4792
4793# System features
4794# Check whether --enable-largefile was given.
4795if test "${enable_largefile+set}" = set; then
4796 enableval=$enable_largefile;
4797fi
4798
4799if test "$enable_largefile" != no; then
4800
4801 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4802echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4803if test "${ac_cv_sys_largefile_CC+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806 ac_cv_sys_largefile_CC=no
4807 if test "$GCC" != yes; then
4808 ac_save_CC=$CC
4809 while :; do
4810 # IRIX 6.2 and later do not support large files by default,
4811 # so use the C compiler's -n32 option if that helps.
4812 cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h. */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h. */
4818#include <sys/types.h>
4819 /* Check that off_t can represent 2**63 - 1 correctly.
4820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4821 since some C++ compilers masquerading as C compilers
4822 incorrectly reject 9223372036854775807. */
4823#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4825 && LARGE_OFF_T % 2147483647 == 1)
4826 ? 1 : -1];
4827int
4828main ()
4829{
4830
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835 rm -f conftest.$ac_objext
4836if { (ac_try="$ac_compile"
4837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
4841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_compile") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } && {
4849 test -z "$ac_c_werror_flag" ||
4850 test ! -s conftest.err
4851 } && test -s conftest.$ac_objext; then
4852 break
4853else
4854 echo "$as_me: failed program was:" >&5
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
4857
4858fi
4859
4860rm -f core conftest.err conftest.$ac_objext
4861 CC="$CC -n32"
4862 rm -f conftest.$ac_objext
4863if { (ac_try="$ac_compile"
4864case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867esac
4868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4879 ac_cv_sys_largefile_CC=' -n32'; break
4880else
4881 echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884
4885fi
4886
4887rm -f core conftest.err conftest.$ac_objext
4888 break
4889 done
4890 CC=$ac_save_CC
4891 rm -f conftest.$ac_ext
4892 fi
4893fi
4894{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4895echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4896 if test "$ac_cv_sys_largefile_CC" != no; then
4897 CC=$CC$ac_cv_sys_largefile_CC
4898 fi
4899
4900 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4901echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4902if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 while :; do
4906 cat >conftest.$ac_ext <<_ACEOF
4907/* confdefs.h. */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4911/* end confdefs.h. */
4912#include <sys/types.h>
4913 /* Check that off_t can represent 2**63 - 1 correctly.
4914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4915 since some C++ compilers masquerading as C compilers
4916 incorrectly reject 9223372036854775807. */
4917#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4919 && LARGE_OFF_T % 2147483647 == 1)
4920 ? 1 : -1];
4921int
4922main ()
4923{
4924
4925 ;
4926 return 0;
4927}
4928_ACEOF
4929rm -f conftest.$ac_objext
4930if { (ac_try="$ac_compile"
4931case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934esac
4935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_compile") 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } && {
4943 test -z "$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 } && test -s conftest.$ac_objext; then
4946 ac_cv_sys_file_offset_bits=no; break
4947else
4948 echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951
4952fi
4953
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#define _FILE_OFFSET_BITS 64
4962#include <sys/types.h>
4963 /* Check that off_t can represent 2**63 - 1 correctly.
4964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4965 since some C++ compilers masquerading as C compilers
4966 incorrectly reject 9223372036854775807. */
4967#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4969 && LARGE_OFF_T % 2147483647 == 1)
4970 ? 1 : -1];
4971int
4972main ()
4973{
4974
4975 ;
4976 return 0;
4977}
4978_ACEOF
4979rm -f conftest.$ac_objext
4980if { (ac_try="$ac_compile"
4981case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984esac
4985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 ac_cv_sys_file_offset_bits=64; break
4997else
4998 echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001
5002fi
5003
5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 ac_cv_sys_file_offset_bits=unknown
5006 break
5007done
5008fi
5009{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5010echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5011case $ac_cv_sys_file_offset_bits in #(
5012 no | unknown) ;;
5013 *)
5014cat >>confdefs.h <<_ACEOF
5015#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5016_ACEOF
5017;;
5018esac
5019rm -f conftest*
5020 if test $ac_cv_sys_file_offset_bits = unknown; then
5021 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5022echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5023if test "${ac_cv_sys_large_files+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 while :; do
5027 cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h. */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h. */
5033#include <sys/types.h>
5034 /* Check that off_t can represent 2**63 - 1 correctly.
5035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5036 since some C++ compilers masquerading as C compilers
5037 incorrectly reject 9223372036854775807. */
5038#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5040 && LARGE_OFF_T % 2147483647 == 1)
5041 ? 1 : -1];
5042int
5043main ()
5044{
5045
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050rm -f conftest.$ac_objext
5051if { (ac_try="$ac_compile"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_compile") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest.$ac_objext; then
5067 ac_cv_sys_large_files=no; break
5068else
5069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
5072
5073fi
5074
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 cat >conftest.$ac_ext <<_ACEOF
5077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
5082#define _LARGE_FILES 1
5083#include <sys/types.h>
5084 /* Check that off_t can represent 2**63 - 1 correctly.
5085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5086 since some C++ compilers masquerading as C compilers
5087 incorrectly reject 9223372036854775807. */
5088#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5090 && LARGE_OFF_T % 2147483647 == 1)
5091 ? 1 : -1];
5092int
5093main ()
5094{
5095
5096 ;
5097 return 0;
5098}
5099_ACEOF
5100rm -f conftest.$ac_objext
5101if { (ac_try="$ac_compile"
5102case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_compile") 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && {
5114 test -z "$ac_c_werror_flag" ||
5115 test ! -s conftest.err
5116 } && test -s conftest.$ac_objext; then
5117 ac_cv_sys_large_files=1; break
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122
5123fi
5124
5125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 ac_cv_sys_large_files=unknown
5127 break
5128done
5129fi
5130{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5131echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5132case $ac_cv_sys_large_files in #(
5133 no | unknown) ;;
5134 *)
5135cat >>confdefs.h <<_ACEOF
5136#define _LARGE_FILES $ac_cv_sys_large_files
5137_ACEOF
5138;;
5139esac
5140rm -f conftest*
5141 fi
5142fi
5143
5144
5145if test -z "$AR" ; then
5146 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5147echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5148 { (exit 1); exit 1; }; }
5149fi
5150
5151# Use LOGIN_PROGRAM from environment if possible
5152if test ! -z "$LOGIN_PROGRAM" ; then
5153
5154cat >>confdefs.h <<_ACEOF
5155#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5156_ACEOF
5157
5158else
5159 # Search for login
5160 # Extract the first word of "login", so it can be a program name with args.
5161set dummy login; ac_word=$2
5162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166else
5167 case $LOGIN_PROGRAM_FALLBACK in
5168 [\\/]* | ?:[\\/]*)
5169 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5170 ;;
5171 *)
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183done
5184done
5185IFS=$as_save_IFS
5186
5187 ;;
5188esac
5189fi
5190LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5191if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5192 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5193echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5194else
5195 { echo "$as_me:$LINENO: result: no" >&5
5196echo "${ECHO_T}no" >&6; }
5197fi
5198
5199
5200 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5201 cat >>confdefs.h <<_ACEOF
5202#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5203_ACEOF
5204
5205 fi
5206fi
5207
5208# Extract the first word of "passwd", so it can be a program name with args.
5209set dummy passwd; ac_word=$2
5210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5212if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215 case $PATH_PASSWD_PROG in
5216 [\\/]* | ?:[\\/]*)
5217 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5218 ;;
5219 *)
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232done
5233IFS=$as_save_IFS
5234
5235 ;;
5236esac
5237fi
5238PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5239if test -n "$PATH_PASSWD_PROG"; then
5240 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5241echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5242else
5243 { echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6; }
5245fi
5246
5247
5248if test ! -z "$PATH_PASSWD_PROG" ; then
5249
5250cat >>confdefs.h <<_ACEOF
5251#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5252_ACEOF
5253
5254fi
5255
5256if test -z "$LD" ; then
5257 LD=$CC
5258fi
5259
5260
5261{ echo "$as_me:$LINENO: checking for inline" >&5
5262echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5263if test "${ac_cv_c_inline+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 ac_cv_c_inline=no
5267for ac_kw in inline __inline__ __inline; do
5268 cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h. */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h. */
5274#ifndef __cplusplus
5275typedef int foo_t;
5276static $ac_kw foo_t static_foo () {return 0; }
5277$ac_kw foo_t foo () {return 0; }
5278#endif
5279
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (ac_try="$ac_compile"
5283case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_compile") 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest.$ac_objext; then
5298 ac_cv_c_inline=$ac_kw
5299else
5300 echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303
5304fi
5305
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 test "$ac_cv_c_inline" != no && break
5308done
5309
5310fi
5311{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5312echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5313
5314
5315case $ac_cv_c_inline in
5316 inline | yes) ;;
5317 *)
5318 case $ac_cv_c_inline in
5319 no) ac_val=;;
5320 *) ac_val=$ac_cv_c_inline;;
5321 esac
5322 cat >>confdefs.h <<_ACEOF
5323#ifndef __cplusplus
5324#define inline $ac_val
5325#endif
5326_ACEOF
5327 ;;
5328esac
5329
5330
5331{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5332echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5333if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336 cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h. */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h. */
5342#include <limits.h>
5343
5344int
5345main ()
5346{
5347#ifndef LLONG_MAX
5348 (void) LLONG_MAX;
5349#endif
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (ac_try="$ac_compile"
5357case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360esac
5361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest.$ac_objext; then
5372 ac_cv_have_decl_LLONG_MAX=yes
5373else
5374 echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 ac_cv_have_decl_LLONG_MAX=no
5378fi
5379
5380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381fi
5382{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5383echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5384if test $ac_cv_have_decl_LLONG_MAX = yes; then
5385 have_llong_max=1
5386fi
5387
5388
5389if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5390 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5391 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5392 case $GCC_VER in
5393 1.*) ;;
5394 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5395 2.*) ;;
5396 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5397 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
5398 *) ;;
5399 esac
5400
5401 if test -z "$have_llong_max"; then
5402 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5403 unset ac_cv_have_decl_LLONG_MAX
5404 saved_CFLAGS="$CFLAGS"
5405 CFLAGS="$CFLAGS -std=gnu99"
5406 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5407echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5408if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417#include <limits.h>
5418
5419
5420int
5421main ()
5422{
5423#ifndef LLONG_MAX
5424 (void) LLONG_MAX;
5425#endif
5426
5427 ;
5428 return 0;
5429}
5430_ACEOF
5431rm -f conftest.$ac_objext
5432if { (ac_try="$ac_compile"
5433case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_c_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.$ac_objext; then
5448 ac_cv_have_decl_LLONG_MAX=yes
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 ac_cv_have_decl_LLONG_MAX=no
5454fi
5455
5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457fi
5458{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5459echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5460if test $ac_cv_have_decl_LLONG_MAX = yes; then
5461 have_llong_max=1
5462else
5463 CFLAGS="$saved_CFLAGS"
5464fi
5465
5466 fi
5467fi
5468
5469
5470# Check whether --with-rpath was given.
5471if test "${with_rpath+set}" = set; then
5472 withval=$with_rpath;
5473 if test "x$withval" = "xno" ; then
5474 need_dash_r=""
5475 fi
5476 if test "x$withval" = "xyes" ; then
5477 need_dash_r=1
5478 fi
5479
5480
5481fi
5482
5483
5484# Allow user to specify flags
5485
5486# Check whether --with-cflags was given.
5487if test "${with_cflags+set}" = set; then
5488 withval=$with_cflags;
5489 if test -n "$withval" && test "x$withval" != "xno" && \
5490 test "x${withval}" != "xyes"; then
5491 CFLAGS="$CFLAGS $withval"
5492 fi
5493
5494
5495fi
5496
5497
5498# Check whether --with-cppflags was given.
5499if test "${with_cppflags+set}" = set; then
5500 withval=$with_cppflags;
5501 if test -n "$withval" && test "x$withval" != "xno" && \
5502 test "x${withval}" != "xyes"; then
5503 CPPFLAGS="$CPPFLAGS $withval"
5504 fi
5505
5506
5507fi
5508
5509
5510# Check whether --with-ldflags was given.
5511if test "${with_ldflags+set}" = set; then
5512 withval=$with_ldflags;
5513 if test -n "$withval" && test "x$withval" != "xno" && \
5514 test "x${withval}" != "xyes"; then
5515 LDFLAGS="$LDFLAGS $withval"
5516 fi
5517
5518
5519fi
5520
5521
5522# Check whether --with-libs was given.
5523if test "${with_libs+set}" = set; then
5524 withval=$with_libs;
5525 if test -n "$withval" && test "x$withval" != "xno" && \
5526 test "x${withval}" != "xyes"; then
5527 LIBS="$LIBS $withval"
5528 fi
5529
5530
5531fi
5532
5533
5534# Check whether --with-Werror was given.
5535if test "${with_Werror+set}" = set; then
5536 withval=$with_Werror;
5537 if test -n "$withval" && test "x$withval" != "xno"; then
5538 werror_flags="-Werror"
5539 if test "x${withval}" != "xyes"; then
5540 werror_flags="$withval"
5541 fi
5542 fi
5543
5544
5545fi
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607for ac_header in \
5608 bstring.h \
5609 crypt.h \
5610 crypto/sha2.h \
5611 dirent.h \
5612 endian.h \
5613 features.h \
5614 fcntl.h \
5615 floatingpoint.h \
5616 getopt.h \
5617 glob.h \
5618 ia.h \
5619 iaf.h \
5620 limits.h \
5621 login.h \
5622 maillock.h \
5623 ndir.h \
5624 net/if_tun.h \
5625 netdb.h \
5626 netgroup.h \
5627 pam/pam_appl.h \
5628 paths.h \
5629 pty.h \
5630 readpassphrase.h \
5631 rpc/types.h \
5632 security/pam_appl.h \
5633 sha2.h \
5634 shadow.h \
5635 stddef.h \
5636 stdint.h \
5637 string.h \
5638 strings.h \
5639 sys/audit.h \
5640 sys/bitypes.h \
5641 sys/bsdtty.h \
5642 sys/cdefs.h \
5643 sys/dir.h \
5644 sys/mman.h \
5645 sys/ndir.h \
5646 sys/prctl.h \
5647 sys/pstat.h \
5648 sys/select.h \
5649 sys/stat.h \
5650 sys/stream.h \
5651 sys/stropts.h \
5652 sys/strtio.h \
5653 sys/sysmacros.h \
5654 sys/time.h \
5655 sys/timers.h \
5656 sys/un.h \
5657 time.h \
5658 tmpdir.h \
5659 ttyent.h \
5660 unistd.h \
5661 usersec.h \
5662 util.h \
5663 utime.h \
5664 utmp.h \
5665 utmpx.h \
5666 vis.h \
5667
5668do
5669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675fi
5676ac_res=`eval echo '${'$as_ac_Header'}'`
5677 { echo "$as_me:$LINENO: result: $ac_res" >&5
5678echo "${ECHO_T}$ac_res" >&6; }
5679else
5680 # Is the header compilable?
5681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5683cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689$ac_includes_default
5690#include <$ac_header>
5691_ACEOF
5692rm -f conftest.$ac_objext
5693if { (ac_try="$ac_compile"
5694case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_header_compiler=yes
5710else
5711 echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ac_header_compiler=no
5715fi
5716
5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5719echo "${ECHO_T}$ac_header_compiler" >&6; }
5720
5721# Is the header present?
5722{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5724cat >conftest.$ac_ext <<_ACEOF
5725/* confdefs.h. */
5726_ACEOF
5727cat confdefs.h >>conftest.$ac_ext
5728cat >>conftest.$ac_ext <<_ACEOF
5729/* end confdefs.h. */
5730#include <$ac_header>
5731_ACEOF
5732if { (ac_try="$ac_cpp conftest.$ac_ext"
5733case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736esac
5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null && {
5745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 }; then
5748 ac_header_preproc=yes
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 ac_header_preproc=no
5754fi
5755
5756rm -f conftest.err conftest.$ac_ext
5757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5758echo "${ECHO_T}$ac_header_preproc" >&6; }
5759
5760# So? What about this header?
5761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5762 yes:no: )
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5767 ac_header_preproc=yes
5768 ;;
5769 no:yes:* )
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5782 ( cat <<\_ASBOX
5783## ------------------------------------------- ##
5784## Report this to openssh-unix-dev@mindrot.org ##
5785## ------------------------------------------- ##
5786_ASBOX
5787 ) | sed "s/^/$as_me: WARNING: /" >&2
5788 ;;
5789esac
5790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794else
5795 eval "$as_ac_Header=\$ac_header_preproc"
5796fi
5797ac_res=`eval echo '${'$as_ac_Header'}'`
5798 { echo "$as_me:$LINENO: result: $ac_res" >&5
5799echo "${ECHO_T}$ac_res" >&6; }
5800
5801fi
5802if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805_ACEOF
5806
5807fi
5808
5809done
5810
5811
5812# lastlog.h requires sys/time.h to be included first on Solaris
5813
5814for ac_header in lastlog.h
5815do
5816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822 cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
5828
5829#ifdef HAVE_SYS_TIME_H
5830# include <sys/time.h>
5831#endif
5832
5833
5834#include <$ac_header>
5835_ACEOF
5836rm -f conftest.$ac_objext
5837if { (ac_try="$ac_compile"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 eval "$as_ac_Header=yes"
5854else
5855 echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 eval "$as_ac_Header=no"
5859fi
5860
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862fi
5863ac_res=`eval echo '${'$as_ac_Header'}'`
5864 { echo "$as_me:$LINENO: result: $ac_res" >&5
5865echo "${ECHO_T}$ac_res" >&6; }
5866if test `eval echo '${'$as_ac_Header'}'` = yes; then
5867 cat >>confdefs.h <<_ACEOF
5868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5869_ACEOF
5870
5871fi
5872
5873done
5874
5875
5876# sys/ptms.h requires sys/stream.h to be included first on Solaris
5877
5878for ac_header in sys/ptms.h
5879do
5880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886 cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892
5893#ifdef HAVE_SYS_STREAM_H
5894# include <sys/stream.h>
5895#endif
5896
5897
5898#include <$ac_header>
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (ac_try="$ac_compile"
5902case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest.$ac_objext; then
5917 eval "$as_ac_Header=yes"
5918else
5919 echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 eval "$as_ac_Header=no"
5923fi
5924
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927ac_res=`eval echo '${'$as_ac_Header'}'`
5928 { echo "$as_me:$LINENO: result: $ac_res" >&5
5929echo "${ECHO_T}$ac_res" >&6; }
5930if test `eval echo '${'$as_ac_Header'}'` = yes; then
5931 cat >>confdefs.h <<_ACEOF
5932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933_ACEOF
5934
5935fi
5936
5937done
5938
5939
5940# login_cap.h requires sys/types.h on NetBSD
5941
5942for ac_header in login_cap.h
5943do
5944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5945{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 cat >conftest.$ac_ext <<_ACEOF
5951/* confdefs.h. */
5952_ACEOF
5953cat confdefs.h >>conftest.$ac_ext
5954cat >>conftest.$ac_ext <<_ACEOF
5955/* end confdefs.h. */
5956
5957#include <sys/types.h>
5958
5959
5960#include <$ac_header>
5961_ACEOF
5962rm -f conftest.$ac_objext
5963if { (ac_try="$ac_compile"
5964case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967esac
5968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_c_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5979 eval "$as_ac_Header=yes"
5980else
5981 echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 eval "$as_ac_Header=no"
5985fi
5986
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988fi
5989ac_res=`eval echo '${'$as_ac_Header'}'`
5990 { echo "$as_me:$LINENO: result: $ac_res" >&5
5991echo "${ECHO_T}$ac_res" >&6; }
5992if test `eval echo '${'$as_ac_Header'}'` = yes; then
5993 cat >>confdefs.h <<_ACEOF
5994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995_ACEOF
5996
5997fi
5998
5999done
6000
6001
6002# Messages for features tested for in target-specific section
6003SIA_MSG="no"
6004SPC_MSG="no"
6005
6006# Check for some target-specific stuff
6007case "$host" in
6008*-*-aix*)
6009 # Some versions of VAC won't allow macro redefinitions at
6010 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6011 # particularly with older versions of vac or xlc.
6012 # It also throws errors about null macro argments, but these are
6013 # not fatal.
6014 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6015echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6016 cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h. */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h. */
6022
6023#define testmacro foo
6024#define testmacro bar
6025int main(void) { exit(0); }
6026
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (ac_try="$ac_compile"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 { echo "$as_me:$LINENO: result: yes" >&5
6046echo "${ECHO_T}yes" >&6; }
6047else
6048 echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
6051 { echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6; }
6053 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6054 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6055 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6056 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6057
6058
6059fi
6060
6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062
6063 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6064echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6065 if (test -z "$blibpath"); then
6066 blibpath="/usr/lib:/lib"
6067 fi
6068 saved_LDFLAGS="$LDFLAGS"
6069 if test "$GCC" = "yes"; then
6070 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6071 else
6072 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6073 fi
6074 for tryflags in $flags ;do
6075 if (test -z "$blibflags"); then
6076 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6077 cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h. */
6083
6084int
6085main ()
6086{
6087
6088 ;
6089 return 0;
6090}
6091_ACEOF
6092rm -f conftest.$ac_objext conftest$ac_exeext
6093if { (ac_try="$ac_link"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_link") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest$ac_exeext &&
6109 $as_test_x conftest$ac_exeext; then
6110 blibflags=$tryflags
6111else
6112 echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115
6116fi
6117
6118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6119 conftest$ac_exeext conftest.$ac_ext
6120 fi
6121 done
6122 if (test -z "$blibflags"); then
6123 { echo "$as_me:$LINENO: result: not found" >&5
6124echo "${ECHO_T}not found" >&6; }
6125 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6126echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6127 { (exit 1); exit 1; }; }
6128 else
6129 { echo "$as_me:$LINENO: result: $blibflags" >&5
6130echo "${ECHO_T}$blibflags" >&6; }
6131 fi
6132 LDFLAGS="$saved_LDFLAGS"
6133 { echo "$as_me:$LINENO: checking for authenticate" >&5
6134echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6135if test "${ac_cv_func_authenticate+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6146#define authenticate innocuous_authenticate
6147
6148/* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char authenticate (); below.
6150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6151 <limits.h> exists even on freestanding compilers. */
6152
6153#ifdef __STDC__
6154# include <limits.h>
6155#else
6156# include <assert.h>
6157#endif
6158
6159#undef authenticate
6160
6161/* Override any GCC internal prototype to avoid an error.
6162 Use char because int might match the return type of a GCC
6163 builtin and then its argument prototype would still apply. */
6164#ifdef __cplusplus
6165extern "C"
6166#endif
6167char authenticate ();
6168/* The GNU C library defines this for functions which it implements
6169 to always fail with ENOSYS. Some functions are actually named
6170 something starting with __ and the normal name is an alias. */
6171#if defined __stub_authenticate || defined __stub___authenticate
6172choke me
6173#endif
6174
6175int
6176main ()
6177{
6178return authenticate ();
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext conftest$ac_exeext
6184if { (ac_try="$ac_link"
6185case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188esac
6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_link") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest$ac_exeext &&
6200 $as_test_x conftest$ac_exeext; then
6201 ac_cv_func_authenticate=yes
6202else
6203 echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_cv_func_authenticate=no
6207fi
6208
6209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6210 conftest$ac_exeext conftest.$ac_ext
6211fi
6212{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6213echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6214if test $ac_cv_func_authenticate = yes; then
6215
6216cat >>confdefs.h <<\_ACEOF
6217#define WITH_AIXAUTHENTICATE 1
6218_ACEOF
6219
6220else
6221 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6222echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6223if test "${ac_cv_lib_s_authenticate+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226 ac_check_lib_save_LIBS=$LIBS
6227LIBS="-ls $LIBS"
6228cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234
6235/* Override any GCC internal prototype to avoid an error.
6236 Use char because int might match the return type of a GCC
6237 builtin and then its argument prototype would still apply. */
6238#ifdef __cplusplus
6239extern "C"
6240#endif
6241char authenticate ();
6242int
6243main ()
6244{
6245return authenticate ();
6246 ;
6247 return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext conftest$ac_exeext
6251if { (ac_try="$ac_link"
6252case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255esac
6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_link") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest$ac_exeext &&
6267 $as_test_x conftest$ac_exeext; then
6268 ac_cv_lib_s_authenticate=yes
6269else
6270 echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_cv_lib_s_authenticate=no
6274fi
6275
6276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6277 conftest$ac_exeext conftest.$ac_ext
6278LIBS=$ac_check_lib_save_LIBS
6279fi
6280{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6281echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6282if test $ac_cv_lib_s_authenticate = yes; then
6283 cat >>confdefs.h <<\_ACEOF
6284#define WITH_AIXAUTHENTICATE 1
6285_ACEOF
6286
6287 LIBS="$LIBS -ls"
6288
6289fi
6290
6291
6292fi
6293
6294 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6295echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6296if test "${ac_cv_have_decl_authenticate+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298else
6299 cat >conftest.$ac_ext <<_ACEOF
6300/* confdefs.h. */
6301_ACEOF
6302cat confdefs.h >>conftest.$ac_ext
6303cat >>conftest.$ac_ext <<_ACEOF
6304/* end confdefs.h. */
6305#include <usersec.h>
6306
6307int
6308main ()
6309{
6310#ifndef authenticate
6311 (void) authenticate;
6312#endif
6313
6314 ;
6315 return 0;
6316}
6317_ACEOF
6318rm -f conftest.$ac_objext
6319if { (ac_try="$ac_compile"
6320case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_compile") 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } && {
6332 test -z "$ac_c_werror_flag" ||
6333 test ! -s conftest.err
6334 } && test -s conftest.$ac_objext; then
6335 ac_cv_have_decl_authenticate=yes
6336else
6337 echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340 ac_cv_have_decl_authenticate=no
6341fi
6342
6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344fi
6345{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6346echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6347if test $ac_cv_have_decl_authenticate = yes; then
6348
6349cat >>confdefs.h <<_ACEOF
6350#define HAVE_DECL_AUTHENTICATE 1
6351_ACEOF
6352
6353
6354else
6355 cat >>confdefs.h <<_ACEOF
6356#define HAVE_DECL_AUTHENTICATE 0
6357_ACEOF
6358
6359
6360fi
6361{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6362echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6363if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366 cat >conftest.$ac_ext <<_ACEOF
6367/* confdefs.h. */
6368_ACEOF
6369cat confdefs.h >>conftest.$ac_ext
6370cat >>conftest.$ac_ext <<_ACEOF
6371/* end confdefs.h. */
6372#include <usersec.h>
6373
6374int
6375main ()
6376{
6377#ifndef loginrestrictions
6378 (void) loginrestrictions;
6379#endif
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385rm -f conftest.$ac_objext
6386if { (ac_try="$ac_compile"
6387case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390esac
6391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_compile") 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest.$ac_objext; then
6402 ac_cv_have_decl_loginrestrictions=yes
6403else
6404 echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 ac_cv_have_decl_loginrestrictions=no
6408fi
6409
6410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411fi
6412{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6413echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6414if test $ac_cv_have_decl_loginrestrictions = yes; then
6415
6416cat >>confdefs.h <<_ACEOF
6417#define HAVE_DECL_LOGINRESTRICTIONS 1
6418_ACEOF
6419
6420
6421else
6422 cat >>confdefs.h <<_ACEOF
6423#define HAVE_DECL_LOGINRESTRICTIONS 0
6424_ACEOF
6425
6426
6427fi
6428{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6429echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6430if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433 cat >conftest.$ac_ext <<_ACEOF
6434/* confdefs.h. */
6435_ACEOF
6436cat confdefs.h >>conftest.$ac_ext
6437cat >>conftest.$ac_ext <<_ACEOF
6438/* end confdefs.h. */
6439#include <usersec.h>
6440
6441int
6442main ()
6443{
6444#ifndef loginsuccess
6445 (void) loginsuccess;
6446#endif
6447
6448 ;
6449 return 0;
6450}
6451_ACEOF
6452rm -f conftest.$ac_objext
6453if { (ac_try="$ac_compile"
6454case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457esac
6458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_compile") 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest.$ac_objext; then
6469 ac_cv_have_decl_loginsuccess=yes
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_cv_have_decl_loginsuccess=no
6475fi
6476
6477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478fi
6479{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6480echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6481if test $ac_cv_have_decl_loginsuccess = yes; then
6482
6483cat >>confdefs.h <<_ACEOF
6484#define HAVE_DECL_LOGINSUCCESS 1
6485_ACEOF
6486
6487
6488else
6489 cat >>confdefs.h <<_ACEOF
6490#define HAVE_DECL_LOGINSUCCESS 0
6491_ACEOF
6492
6493
6494fi
6495{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6496echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6497if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506#include <usersec.h>
6507
6508int
6509main ()
6510{
6511#ifndef passwdexpired
6512 (void) passwdexpired;
6513#endif
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext
6520if { (ac_try="$ac_compile"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 ac_cv_have_decl_passwdexpired=yes
6537else
6538 echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 ac_cv_have_decl_passwdexpired=no
6542fi
6543
6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545fi
6546{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6547echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6548if test $ac_cv_have_decl_passwdexpired = yes; then
6549
6550cat >>confdefs.h <<_ACEOF
6551#define HAVE_DECL_PASSWDEXPIRED 1
6552_ACEOF
6553
6554
6555else
6556 cat >>confdefs.h <<_ACEOF
6557#define HAVE_DECL_PASSWDEXPIRED 0
6558_ACEOF
6559
6560
6561fi
6562{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6563echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6564if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 cat >conftest.$ac_ext <<_ACEOF
6568/* confdefs.h. */
6569_ACEOF
6570cat confdefs.h >>conftest.$ac_ext
6571cat >>conftest.$ac_ext <<_ACEOF
6572/* end confdefs.h. */
6573#include <usersec.h>
6574
6575int
6576main ()
6577{
6578#ifndef setauthdb
6579 (void) setauthdb;
6580#endif
6581
6582 ;
6583 return 0;
6584}
6585_ACEOF
6586rm -f conftest.$ac_objext
6587if { (ac_try="$ac_compile"
6588case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591esac
6592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_compile") 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } && {
6600 test -z "$ac_c_werror_flag" ||
6601 test ! -s conftest.err
6602 } && test -s conftest.$ac_objext; then
6603 ac_cv_have_decl_setauthdb=yes
6604else
6605 echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 ac_cv_have_decl_setauthdb=no
6609fi
6610
6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612fi
6613{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6614echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6615if test $ac_cv_have_decl_setauthdb = yes; then
6616
6617cat >>confdefs.h <<_ACEOF
6618#define HAVE_DECL_SETAUTHDB 1
6619_ACEOF
6620
6621
6622else
6623 cat >>confdefs.h <<_ACEOF
6624#define HAVE_DECL_SETAUTHDB 0
6625_ACEOF
6626
6627
6628fi
6629
6630
6631 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6632echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6633if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636 cat >conftest.$ac_ext <<_ACEOF
6637/* confdefs.h. */
6638_ACEOF
6639cat confdefs.h >>conftest.$ac_ext
6640cat >>conftest.$ac_ext <<_ACEOF
6641/* end confdefs.h. */
6642#include <usersec.h>
6643
6644
6645int
6646main ()
6647{
6648#ifndef loginfailed
6649 (void) loginfailed;
6650#endif
6651
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656rm -f conftest.$ac_objext
6657if { (ac_try="$ac_compile"
6658case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
6662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_compile") 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_c_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest.$ac_objext; then
6673 ac_cv_have_decl_loginfailed=yes
6674else
6675 echo "$as_me: failed program was:" >&5
6676sed 's/^/| /' conftest.$ac_ext >&5
6677
6678 ac_cv_have_decl_loginfailed=no
6679fi
6680
6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682fi
6683{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6684echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6685if test $ac_cv_have_decl_loginfailed = yes; then
6686
6687cat >>confdefs.h <<_ACEOF
6688#define HAVE_DECL_LOGINFAILED 1
6689_ACEOF
6690
6691{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6692echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6693 cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
6699#include <usersec.h>
6700int
6701main ()
6702{
6703(void)loginfailed("user","host","tty",0);
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708rm -f conftest.$ac_objext
6709if { (ac_try="$ac_compile"
6710case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713esac
6714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.$ac_objext; then
6725 { echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6; }
6727
6728cat >>confdefs.h <<\_ACEOF
6729#define AIX_LOGINFAILED_4ARG 1
6730_ACEOF
6731
6732else
6733 echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 { echo "$as_me:$LINENO: result: no" >&5
6737echo "${ECHO_T}no" >&6; }
6738
6739fi
6740
6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742else
6743 cat >>confdefs.h <<_ACEOF
6744#define HAVE_DECL_LOGINFAILED 0
6745_ACEOF
6746
6747
6748fi
6749
6750
6751
6752for ac_func in setauthdb
6753do
6754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6768#define $ac_func innocuous_$ac_func
6769
6770/* System header to define __stub macros and hopefully few prototypes,
6771 which can conflict with char $ac_func (); below.
6772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773 <limits.h> exists even on freestanding compilers. */
6774
6775#ifdef __STDC__
6776# include <limits.h>
6777#else
6778# include <assert.h>
6779#endif
6780
6781#undef $ac_func
6782
6783/* Override any GCC internal prototype to avoid an error.
6784 Use char because int might match the return type of a GCC
6785 builtin and then its argument prototype would still apply. */
6786#ifdef __cplusplus
6787extern "C"
6788#endif
6789char $ac_func ();
6790/* The GNU C library defines this for functions which it implements
6791 to always fail with ENOSYS. Some functions are actually named
6792 something starting with __ and the normal name is an alias. */
6793#if defined __stub_$ac_func || defined __stub___$ac_func
6794choke me
6795#endif
6796
6797int
6798main ()
6799{
6800return $ac_func ();
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
6806if { (ac_try="$ac_link"
6807case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810esac
6811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_link") 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } && {
6819 test -z "$ac_c_werror_flag" ||
6820 test ! -s conftest.err
6821 } && test -s conftest$ac_exeext &&
6822 $as_test_x conftest$ac_exeext; then
6823 eval "$as_ac_var=yes"
6824else
6825 echo "$as_me: failed program was:" >&5
6826sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 eval "$as_ac_var=no"
6829fi
6830
6831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833fi
6834ac_res=`eval echo '${'$as_ac_var'}'`
6835 { echo "$as_me:$LINENO: result: $ac_res" >&5
6836echo "${ECHO_T}$ac_res" >&6; }
6837if test `eval echo '${'$as_ac_var'}'` = yes; then
6838 cat >>confdefs.h <<_ACEOF
6839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6840_ACEOF
6841
6842fi
6843done
6844
6845 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
6846echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
6847if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856 #include <limits.h>
6857 #include <fcntl.h>
6858
6859
6860int
6861main ()
6862{
6863#ifndef F_CLOSEM
6864 (void) F_CLOSEM;
6865#endif
6866
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871rm -f conftest.$ac_objext
6872if { (ac_try="$ac_compile"
6873case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876esac
6877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6888 ac_cv_have_decl_F_CLOSEM=yes
6889else
6890 echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 ac_cv_have_decl_F_CLOSEM=no
6894fi
6895
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897fi
6898{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
6899echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
6900if test $ac_cv_have_decl_F_CLOSEM = yes; then
6901
6902cat >>confdefs.h <<\_ACEOF
6903#define HAVE_FCNTL_CLOSEM 1
6904_ACEOF
6905
6906fi
6907
6908 check_for_aix_broken_getaddrinfo=1
6909
6910cat >>confdefs.h <<\_ACEOF
6911#define BROKEN_REALPATH 1
6912_ACEOF
6913
6914
6915cat >>confdefs.h <<\_ACEOF
6916#define SETEUID_BREAKS_SETUID 1
6917_ACEOF
6918
6919
6920cat >>confdefs.h <<\_ACEOF
6921#define BROKEN_SETREUID 1
6922_ACEOF
6923
6924
6925cat >>confdefs.h <<\_ACEOF
6926#define BROKEN_SETREGID 1
6927_ACEOF
6928
6929
6930cat >>confdefs.h <<\_ACEOF
6931#define DISABLE_LASTLOG 1
6932_ACEOF
6933
6934
6935cat >>confdefs.h <<\_ACEOF
6936#define LOGIN_NEEDS_UTMPX 1
6937_ACEOF
6938
6939
6940cat >>confdefs.h <<\_ACEOF
6941#define SPT_TYPE SPT_REUSEARGV
6942_ACEOF
6943
6944
6945cat >>confdefs.h <<\_ACEOF
6946#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
6947_ACEOF
6948
6949
6950cat >>confdefs.h <<\_ACEOF
6951#define PTY_ZEROREAD 1
6952_ACEOF
6953
6954 ;;
6955*-*-cygwin*)
6956 check_for_libcrypt_later=1
6957 LIBS="$LIBS /usr/lib/textreadmode.o"
6958
6959cat >>confdefs.h <<\_ACEOF
6960#define HAVE_CYGWIN 1
6961_ACEOF
6962
6963
6964cat >>confdefs.h <<\_ACEOF
6965#define USE_PIPES 1
6966_ACEOF
6967
6968
6969cat >>confdefs.h <<\_ACEOF
6970#define DISABLE_SHADOW 1
6971_ACEOF
6972
6973
6974cat >>confdefs.h <<\_ACEOF
6975#define IP_TOS_IS_BROKEN 1
6976_ACEOF
6977
6978
6979cat >>confdefs.h <<\_ACEOF
6980#define NO_X11_UNIX_SOCKETS 1
6981_ACEOF
6982
6983
6984cat >>confdefs.h <<\_ACEOF
6985#define NO_IPPORT_RESERVED_CONCEPT 1
6986_ACEOF
6987
6988
6989cat >>confdefs.h <<\_ACEOF
6990#define DISABLE_FD_PASSING 1
6991_ACEOF
6992
6993 ;;
6994*-*-dgux*)
6995 cat >>confdefs.h <<\_ACEOF
6996#define IP_TOS_IS_BROKEN 1
6997_ACEOF
6998
6999 cat >>confdefs.h <<\_ACEOF
7000#define SETEUID_BREAKS_SETUID 1
7001_ACEOF
7002
7003 cat >>confdefs.h <<\_ACEOF
7004#define BROKEN_SETREUID 1
7005_ACEOF
7006
7007 cat >>confdefs.h <<\_ACEOF
7008#define BROKEN_SETREGID 1
7009_ACEOF
7010
7011 ;;
7012*-*-darwin*)
7013 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7014echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7015 if test "$cross_compiling" = yes; then
7016 { echo "$as_me:$LINENO: result: assume it is working" >&5
7017echo "${ECHO_T}assume it is working" >&6; }
7018else
7019 cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h. */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h. */
7025#include <mach-o/dyld.h>
7026main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7027 exit(0);
7028 else
7029 exit(1);
7030}
7031_ACEOF
7032rm -f conftest$ac_exeext
7033if { (ac_try="$ac_link"
7034case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037esac
7038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_link") 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7043 { (case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
7047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_try") 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 { echo "$as_me:$LINENO: result: working" >&5
7053echo "${ECHO_T}working" >&6; }
7054else
7055 echo "$as_me: program exited with status $ac_status" >&5
7056echo "$as_me: failed program was:" >&5
7057sed 's/^/| /' conftest.$ac_ext >&5
7058
7059( exit $ac_status )
7060{ echo "$as_me:$LINENO: result: buggy" >&5
7061echo "${ECHO_T}buggy" >&6; }
7062
7063cat >>confdefs.h <<\_ACEOF
7064#define BROKEN_GETADDRINFO 1
7065_ACEOF
7066
7067fi
7068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7069fi
7070
7071
7072 cat >>confdefs.h <<\_ACEOF
7073#define SETEUID_BREAKS_SETUID 1
7074_ACEOF
7075
7076 cat >>confdefs.h <<\_ACEOF
7077#define BROKEN_SETREUID 1
7078_ACEOF
7079
7080 cat >>confdefs.h <<\_ACEOF
7081#define BROKEN_SETREGID 1
7082_ACEOF
7083
7084
7085cat >>confdefs.h <<_ACEOF
7086#define BIND_8_COMPAT 1
7087_ACEOF
7088
7089
7090cat >>confdefs.h <<\_ACEOF
7091#define SSH_TUN_FREEBSD 1
7092_ACEOF
7093
7094
7095cat >>confdefs.h <<\_ACEOF
7096#define SSH_TUN_COMPAT_AF 1
7097_ACEOF
7098
7099
7100cat >>confdefs.h <<\_ACEOF
7101#define SSH_TUN_PREPEND_AF 1
7102_ACEOF
7103
7104 ;;
7105*-*-dragonfly*)
7106 SSHDLIBS="$SSHDLIBS -lcrypt"
7107 ;;
7108*-*-hpux*)
7109 # first we define all of the options common to all HP-UX releases
7110 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7111 IPADDR_IN_DISPLAY=yes
7112 cat >>confdefs.h <<\_ACEOF
7113#define USE_PIPES 1
7114_ACEOF
7115
7116
7117cat >>confdefs.h <<\_ACEOF
7118#define LOGIN_NO_ENDOPT 1
7119_ACEOF
7120
7121 cat >>confdefs.h <<\_ACEOF
7122#define LOGIN_NEEDS_UTMPX 1
7123_ACEOF
7124
7125
7126cat >>confdefs.h <<\_ACEOF
7127#define LOCKED_PASSWD_STRING "*"
7128_ACEOF
7129
7130 cat >>confdefs.h <<\_ACEOF
7131#define SPT_TYPE SPT_PSTAT
7132_ACEOF
7133
7134 MAIL="/var/mail/username"
7135 LIBS="$LIBS -lsec"
7136
7137{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7138echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7139if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 ac_check_lib_save_LIBS=$LIBS
7143LIBS="-lxnet $LIBS"
7144cat >conftest.$ac_ext <<_ACEOF
7145/* confdefs.h. */
7146_ACEOF
7147cat confdefs.h >>conftest.$ac_ext
7148cat >>conftest.$ac_ext <<_ACEOF
7149/* end confdefs.h. */
7150
7151/* Override any GCC internal prototype to avoid an error.
7152 Use char because int might match the return type of a GCC
7153 builtin and then its argument prototype would still apply. */
7154#ifdef __cplusplus
7155extern "C"
7156#endif
7157char t_error ();
7158int
7159main ()
7160{
7161return t_error ();
7162 ;
7163 return 0;
7164}
7165_ACEOF
7166rm -f conftest.$ac_objext conftest$ac_exeext
7167if { (ac_try="$ac_link"
7168case "(($ac_try" in
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7171esac
7172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_link") 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest$ac_exeext &&
7183 $as_test_x conftest$ac_exeext; then
7184 ac_cv_lib_xnet_t_error=yes
7185else
7186 echo "$as_me: failed program was:" >&5
7187sed 's/^/| /' conftest.$ac_ext >&5
7188
7189 ac_cv_lib_xnet_t_error=no
7190fi
7191
7192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7193 conftest$ac_exeext conftest.$ac_ext
7194LIBS=$ac_check_lib_save_LIBS
7195fi
7196{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7197echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7198if test $ac_cv_lib_xnet_t_error = yes; then
7199 cat >>confdefs.h <<_ACEOF
7200#define HAVE_LIBXNET 1
7201_ACEOF
7202
7203 LIBS="-lxnet $LIBS"
7204
7205else
7206 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7207echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7208 { (exit 1); exit 1; }; }
7209fi
7210
7211
7212 # next, we define all of the options specific to major releases
7213 case "$host" in
7214 *-*-hpux10*)
7215 if test -z "$GCC"; then
7216 CFLAGS="$CFLAGS -Ae"
7217 fi
7218 ;;
7219 *-*-hpux11*)
7220
7221cat >>confdefs.h <<\_ACEOF
7222#define PAM_SUN_CODEBASE 1
7223_ACEOF
7224
7225
7226cat >>confdefs.h <<\_ACEOF
7227#define DISABLE_UTMP 1
7228_ACEOF
7229
7230
7231cat >>confdefs.h <<\_ACEOF
7232#define USE_BTMP 1
7233_ACEOF
7234
7235 check_for_hpux_broken_getaddrinfo=1
7236 check_for_conflicting_getspnam=1
7237 ;;
7238 esac
7239
7240 # lastly, we define options specific to minor releases
7241 case "$host" in
7242 *-*-hpux10.26)
7243
7244cat >>confdefs.h <<\_ACEOF
7245#define HAVE_SECUREWARE 1
7246_ACEOF
7247
7248 disable_ptmx_check=yes
7249 LIBS="$LIBS -lsecpw"
7250 ;;
7251 esac
7252 ;;
7253*-*-irix5*)
7254 PATH="$PATH:/usr/etc"
7255
7256cat >>confdefs.h <<\_ACEOF
7257#define BROKEN_INET_NTOA 1
7258_ACEOF
7259
7260 cat >>confdefs.h <<\_ACEOF
7261#define SETEUID_BREAKS_SETUID 1
7262_ACEOF
7263
7264 cat >>confdefs.h <<\_ACEOF
7265#define BROKEN_SETREUID 1
7266_ACEOF
7267
7268 cat >>confdefs.h <<\_ACEOF
7269#define BROKEN_SETREGID 1
7270_ACEOF
7271
7272
7273cat >>confdefs.h <<\_ACEOF
7274#define WITH_ABBREV_NO_TTY 1
7275_ACEOF
7276
7277 cat >>confdefs.h <<\_ACEOF
7278#define LOCKED_PASSWD_STRING "*LK*"
7279_ACEOF
7280
7281 ;;
7282*-*-irix6*)
7283 PATH="$PATH:/usr/etc"
7284
7285cat >>confdefs.h <<\_ACEOF
7286#define WITH_IRIX_ARRAY 1
7287_ACEOF
7288
7289
7290cat >>confdefs.h <<\_ACEOF
7291#define WITH_IRIX_PROJECT 1
7292_ACEOF
7293
7294
7295cat >>confdefs.h <<\_ACEOF
7296#define WITH_IRIX_AUDIT 1
7297_ACEOF
7298
7299 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7300echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7301if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304 cat >conftest.$ac_ext <<_ACEOF
7305/* confdefs.h. */
7306_ACEOF
7307cat confdefs.h >>conftest.$ac_ext
7308cat >>conftest.$ac_ext <<_ACEOF
7309/* end confdefs.h. */
7310/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7312#define jlimit_startjob innocuous_jlimit_startjob
7313
7314/* System header to define __stub macros and hopefully few prototypes,
7315 which can conflict with char jlimit_startjob (); below.
7316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7317 <limits.h> exists even on freestanding compilers. */
7318
7319#ifdef __STDC__
7320# include <limits.h>
7321#else
7322# include <assert.h>
7323#endif
7324
7325#undef jlimit_startjob
7326
7327/* Override any GCC internal prototype to avoid an error.
7328 Use char because int might match the return type of a GCC
7329 builtin and then its argument prototype would still apply. */
7330#ifdef __cplusplus
7331extern "C"
7332#endif
7333char jlimit_startjob ();
7334/* The GNU C library defines this for functions which it implements
7335 to always fail with ENOSYS. Some functions are actually named
7336 something starting with __ and the normal name is an alias. */
7337#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7338choke me
7339#endif
7340
7341int
7342main ()
7343{
7344return jlimit_startjob ();
7345 ;
7346 return 0;
7347}
7348_ACEOF
7349rm -f conftest.$ac_objext conftest$ac_exeext
7350if { (ac_try="$ac_link"
7351case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354esac
7355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_link") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest$ac_exeext &&
7366 $as_test_x conftest$ac_exeext; then
7367 ac_cv_func_jlimit_startjob=yes
7368else
7369 echo "$as_me: failed program was:" >&5
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ac_cv_func_jlimit_startjob=no
7373fi
7374
7375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7376 conftest$ac_exeext conftest.$ac_ext
7377fi
7378{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7379echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7380if test $ac_cv_func_jlimit_startjob = yes; then
7381
7382cat >>confdefs.h <<\_ACEOF
7383#define WITH_IRIX_JOBS 1
7384_ACEOF
7385
7386fi
7387
7388 cat >>confdefs.h <<\_ACEOF
7389#define BROKEN_INET_NTOA 1
7390_ACEOF
7391
7392 cat >>confdefs.h <<\_ACEOF
7393#define SETEUID_BREAKS_SETUID 1
7394_ACEOF
7395
7396 cat >>confdefs.h <<\_ACEOF
7397#define BROKEN_SETREUID 1
7398_ACEOF
7399
7400 cat >>confdefs.h <<\_ACEOF
7401#define BROKEN_SETREGID 1
7402_ACEOF
7403
7404
7405cat >>confdefs.h <<\_ACEOF
7406#define BROKEN_UPDWTMPX 1
7407_ACEOF
7408
7409 cat >>confdefs.h <<\_ACEOF
7410#define WITH_ABBREV_NO_TTY 1
7411_ACEOF
7412
7413 cat >>confdefs.h <<\_ACEOF
7414#define LOCKED_PASSWD_STRING "*LK*"
7415_ACEOF
7416
7417 ;;
7418*-*-linux*)
7419 no_dev_ptmx=1
7420 check_for_libcrypt_later=1
7421 check_for_openpty_ctty_bug=1
7422
7423cat >>confdefs.h <<\_ACEOF
7424#define DONT_TRY_OTHER_AF 1
7425_ACEOF
7426
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define PAM_TTY_KLUDGE 1
7430_ACEOF
7431
7432
7433cat >>confdefs.h <<\_ACEOF
7434#define LOCKED_PASSWD_PREFIX "!"
7435_ACEOF
7436
7437 cat >>confdefs.h <<\_ACEOF
7438#define SPT_TYPE SPT_REUSEARGV
7439_ACEOF
7440
7441
7442cat >>confdefs.h <<\_ACEOF
7443#define LINK_OPNOTSUPP_ERRNO EPERM
7444_ACEOF
7445
7446
7447cat >>confdefs.h <<\_ACEOF
7448#define _PATH_BTMP "/var/log/btmp"
7449_ACEOF
7450
7451 cat >>confdefs.h <<\_ACEOF
7452#define USE_BTMP 1
7453_ACEOF
7454
7455 inet6_default_4in6=yes
7456 case `uname -r` in
7457 1.*|2.0.*)
7458
7459cat >>confdefs.h <<\_ACEOF
7460#define BROKEN_CMSG_TYPE 1
7461_ACEOF
7462
7463 ;;
7464 esac
7465 # tun(4) forwarding compat code
7466
7467for ac_header in linux/if_tun.h
7468do
7469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475fi
7476ac_res=`eval echo '${'$as_ac_Header'}'`
7477 { echo "$as_me:$LINENO: result: $ac_res" >&5
7478echo "${ECHO_T}$ac_res" >&6; }
7479else
7480 # Is the header compilable?
7481{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7483cat >conftest.$ac_ext <<_ACEOF
7484/* confdefs.h. */
7485_ACEOF
7486cat confdefs.h >>conftest.$ac_ext
7487cat >>conftest.$ac_ext <<_ACEOF
7488/* end confdefs.h. */
7489$ac_includes_default
7490#include <$ac_header>
7491_ACEOF
7492rm -f conftest.$ac_objext
7493if { (ac_try="$ac_compile"
7494case "(($ac_try" in
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7497esac
7498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499 (eval "$ac_compile") 2>conftest.er1
7500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } && {
7506 test -z "$ac_c_werror_flag" ||
7507 test ! -s conftest.err
7508 } && test -s conftest.$ac_objext; then
7509 ac_header_compiler=yes
7510else
7511 echo "$as_me: failed program was:" >&5
7512sed 's/^/| /' conftest.$ac_ext >&5
7513
7514 ac_header_compiler=no
7515fi
7516
7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7519echo "${ECHO_T}$ac_header_compiler" >&6; }
7520
7521# Is the header present?
7522{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7524cat >conftest.$ac_ext <<_ACEOF
7525/* confdefs.h. */
7526_ACEOF
7527cat confdefs.h >>conftest.$ac_ext
7528cat >>conftest.$ac_ext <<_ACEOF
7529/* end confdefs.h. */
7530#include <$ac_header>
7531_ACEOF
7532if { (ac_try="$ac_cpp conftest.$ac_ext"
7533case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
7537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } >/dev/null && {
7545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 }; then
7548 ac_header_preproc=yes
7549else
7550 echo "$as_me: failed program was:" >&5
7551sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 ac_header_preproc=no
7554fi
7555
7556rm -f conftest.err conftest.$ac_ext
7557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7558echo "${ECHO_T}$ac_header_preproc" >&6; }
7559
7560# So? What about this header?
7561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7562 yes:no: )
7563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7567 ac_header_preproc=yes
7568 ;;
7569 no:yes:* )
7570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7573echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7577echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7582 ( cat <<\_ASBOX
7583## ------------------------------------------- ##
7584## Report this to openssh-unix-dev@mindrot.org ##
7585## ------------------------------------------- ##
7586_ASBOX
7587 ) | sed "s/^/$as_me: WARNING: /" >&2
7588 ;;
7589esac
7590{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595 eval "$as_ac_Header=\$ac_header_preproc"
7596fi
7597ac_res=`eval echo '${'$as_ac_Header'}'`
7598 { echo "$as_me:$LINENO: result: $ac_res" >&5
7599echo "${ECHO_T}$ac_res" >&6; }
7600
7601fi
7602if test `eval echo '${'$as_ac_Header'}'` = yes; then
7603 cat >>confdefs.h <<_ACEOF
7604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7605_ACEOF
7606
7607fi
7608
7609done
7610
7611 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7612
7613cat >>confdefs.h <<\_ACEOF
7614#define SSH_TUN_LINUX 1
7615_ACEOF
7616
7617
7618cat >>confdefs.h <<\_ACEOF
7619#define SSH_TUN_COMPAT_AF 1
7620_ACEOF
7621
7622
7623cat >>confdefs.h <<\_ACEOF
7624#define SSH_TUN_PREPEND_AF 1
7625_ACEOF
7626
7627 fi
7628 ;;
7629mips-sony-bsd|mips-sony-newsos4)
7630
7631cat >>confdefs.h <<\_ACEOF
7632#define NEED_SETPGRP 1
7633_ACEOF
7634
7635 SONY=1
7636 ;;
7637*-*-netbsd*)
7638 check_for_libcrypt_before=1
7639 if test "x$withval" != "xno" ; then
7640 need_dash_r=1
7641 fi
7642
7643cat >>confdefs.h <<\_ACEOF
7644#define SSH_TUN_FREEBSD 1
7645_ACEOF
7646
7647 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7648 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7649echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7650if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652fi
7653{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7654echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7655else
7656 # Is the header compilable?
7657{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7658echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7659cat >conftest.$ac_ext <<_ACEOF
7660/* confdefs.h. */
7661_ACEOF
7662cat confdefs.h >>conftest.$ac_ext
7663cat >>conftest.$ac_ext <<_ACEOF
7664/* end confdefs.h. */
7665$ac_includes_default
7666#include <net/if_tap.h>
7667_ACEOF
7668rm -f conftest.$ac_objext
7669if { (ac_try="$ac_compile"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 ac_header_compiler=yes
7686else
7687 echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 ac_header_compiler=no
7691fi
7692
7693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7695echo "${ECHO_T}$ac_header_compiler" >&6; }
7696
7697# Is the header present?
7698{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7699echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7700cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h. */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h. */
7706#include <net/if_tap.h>
7707_ACEOF
7708if { (ac_try="$ac_cpp conftest.$ac_ext"
7709case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712esac
7713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } >/dev/null && {
7721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 }; then
7724 ac_header_preproc=yes
7725else
7726 echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 ac_header_preproc=no
7730fi
7731
7732rm -f conftest.err conftest.$ac_ext
7733{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7734echo "${ECHO_T}$ac_header_preproc" >&6; }
7735
7736# So? What about this header?
7737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7738 yes:no: )
7739 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7740echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7742echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7743 ac_header_preproc=yes
7744 ;;
7745 no:yes:* )
7746 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7747echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7748 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
7749echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
7750 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7751echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7752 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
7753echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7754 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7755echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7756 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7757echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7758 ( cat <<\_ASBOX
7759## ------------------------------------------- ##
7760## Report this to openssh-unix-dev@mindrot.org ##
7761## ------------------------------------------- ##
7762_ASBOX
7763 ) | sed "s/^/$as_me: WARNING: /" >&2
7764 ;;
7765esac
7766{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7767echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7768if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770else
7771 ac_cv_header_net_if_tap_h=$ac_header_preproc
7772fi
7773{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7774echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7775
7776fi
7777if test $ac_cv_header_net_if_tap_h = yes; then
7778 :
7779else
7780
7781cat >>confdefs.h <<\_ACEOF
7782#define SSH_TUN_NO_L2 1
7783_ACEOF
7784
7785fi
7786
7787
7788
7789cat >>confdefs.h <<\_ACEOF
7790#define SSH_TUN_PREPEND_AF 1
7791_ACEOF
7792
7793 ;;
7794*-*-freebsd*)
7795 check_for_libcrypt_later=1
7796
7797cat >>confdefs.h <<\_ACEOF
7798#define LOCKED_PASSWD_PREFIX "*LOCKED*"
7799_ACEOF
7800
7801
7802cat >>confdefs.h <<\_ACEOF
7803#define SSH_TUN_FREEBSD 1
7804_ACEOF
7805
7806 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7807 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7808echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7809if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811fi
7812{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7813echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7814else
7815 # Is the header compilable?
7816{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7817echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7818cat >conftest.$ac_ext <<_ACEOF
7819/* confdefs.h. */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
7823/* end confdefs.h. */
7824$ac_includes_default
7825#include <net/if_tap.h>
7826_ACEOF
7827rm -f conftest.$ac_objext
7828if { (ac_try="$ac_compile"
7829case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832esac
7833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_compile") 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest.$ac_objext; then
7844 ac_header_compiler=yes
7845else
7846 echo "$as_me: failed program was:" >&5
7847sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_header_compiler=no
7850fi
7851
7852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7854echo "${ECHO_T}$ac_header_compiler" >&6; }
7855
7856# Is the header present?
7857{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7858echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7859cat >conftest.$ac_ext <<_ACEOF
7860/* confdefs.h. */
7861_ACEOF
7862cat confdefs.h >>conftest.$ac_ext
7863cat >>conftest.$ac_ext <<_ACEOF
7864/* end confdefs.h. */
7865#include <net/if_tap.h>
7866_ACEOF
7867if { (ac_try="$ac_cpp conftest.$ac_ext"
7868case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } >/dev/null && {
7880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 }; then
7883 ac_header_preproc=yes
7884else
7885 echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 ac_header_preproc=no
7889fi
7890
7891rm -f conftest.err conftest.$ac_ext
7892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7893echo "${ECHO_T}$ac_header_preproc" >&6; }
7894
7895# So? What about this header?
7896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7897 yes:no: )
7898 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7899echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7901echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7902 ac_header_preproc=yes
7903 ;;
7904 no:yes:* )
7905 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7906echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
7908echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7910echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
7912echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7914echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7916echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7917 ( cat <<\_ASBOX
7918## ------------------------------------------- ##
7919## Report this to openssh-unix-dev@mindrot.org ##
7920## ------------------------------------------- ##
7921_ASBOX
7922 ) | sed "s/^/$as_me: WARNING: /" >&2
7923 ;;
7924esac
7925{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7926echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7927if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929else
7930 ac_cv_header_net_if_tap_h=$ac_header_preproc
7931fi
7932{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7933echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7934
7935fi
7936if test $ac_cv_header_net_if_tap_h = yes; then
7937 :
7938else
7939
7940cat >>confdefs.h <<\_ACEOF
7941#define SSH_TUN_NO_L2 1
7942_ACEOF
7943
7944fi
7945
7946
7947 ;;
7948*-*-bsdi*)
7949 cat >>confdefs.h <<\_ACEOF
7950#define SETEUID_BREAKS_SETUID 1
7951_ACEOF
7952
7953 cat >>confdefs.h <<\_ACEOF
7954#define BROKEN_SETREUID 1
7955_ACEOF
7956
7957 cat >>confdefs.h <<\_ACEOF
7958#define BROKEN_SETREGID 1
7959_ACEOF
7960
7961 ;;
7962*-next-*)
7963 conf_lastlog_location="/usr/adm/lastlog"
7964 conf_utmp_location=/etc/utmp
7965 conf_wtmp_location=/usr/adm/wtmp
7966 MAIL=/usr/spool/mail
7967
7968cat >>confdefs.h <<\_ACEOF
7969#define HAVE_NEXT 1
7970_ACEOF
7971
7972 cat >>confdefs.h <<\_ACEOF
7973#define BROKEN_REALPATH 1
7974_ACEOF
7975
7976 cat >>confdefs.h <<\_ACEOF
7977#define USE_PIPES 1
7978_ACEOF
7979
7980
7981cat >>confdefs.h <<\_ACEOF
7982#define BROKEN_SAVED_UIDS 1
7983_ACEOF
7984
7985 ;;
7986*-*-openbsd*)
7987
7988cat >>confdefs.h <<\_ACEOF
7989#define HAVE_ATTRIBUTE__SENTINEL__ 1
7990_ACEOF
7991
7992
7993cat >>confdefs.h <<\_ACEOF
7994#define HAVE_ATTRIBUTE__BOUNDED__ 1
7995_ACEOF
7996
7997
7998cat >>confdefs.h <<\_ACEOF
7999#define SSH_TUN_OPENBSD 1
8000_ACEOF
8001
8002
8003cat >>confdefs.h <<\_ACEOF
8004#define SYSLOG_R_SAFE_IN_SIGHAND 1
8005_ACEOF
8006
8007 ;;
8008*-*-solaris*)
8009 if test "x$withval" != "xno" ; then
8010 need_dash_r=1
8011 fi
8012 cat >>confdefs.h <<\_ACEOF
8013#define PAM_SUN_CODEBASE 1
8014_ACEOF
8015
8016 cat >>confdefs.h <<\_ACEOF
8017#define LOGIN_NEEDS_UTMPX 1
8018_ACEOF
8019
8020
8021cat >>confdefs.h <<\_ACEOF
8022#define LOGIN_NEEDS_TERM 1
8023_ACEOF
8024
8025 cat >>confdefs.h <<\_ACEOF
8026#define PAM_TTY_KLUDGE 1
8027_ACEOF
8028
8029
8030cat >>confdefs.h <<\_ACEOF
8031#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8032_ACEOF
8033
8034 cat >>confdefs.h <<\_ACEOF
8035#define LOCKED_PASSWD_STRING "*LK*"
8036_ACEOF
8037
8038 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8039
8040cat >>confdefs.h <<\_ACEOF
8041#define SSHD_ACQUIRES_CTTY 1
8042_ACEOF
8043
8044
8045cat >>confdefs.h <<\_ACEOF
8046#define PASSWD_NEEDS_USERNAME 1
8047_ACEOF
8048
8049 external_path_file=/etc/default/login
8050 # hardwire lastlog location (can't detect it on some versions)
8051 conf_lastlog_location="/var/adm/lastlog"
8052 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8053echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8054 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8055 if test "$sol2ver" -ge 8; then
8056 { echo "$as_me:$LINENO: result: yes" >&5
8057echo "${ECHO_T}yes" >&6; }
8058 cat >>confdefs.h <<\_ACEOF
8059#define DISABLE_UTMP 1
8060_ACEOF
8061
8062
8063cat >>confdefs.h <<\_ACEOF
8064#define DISABLE_WTMP 1
8065_ACEOF
8066
8067 else
8068 { echo "$as_me:$LINENO: result: no" >&5
8069echo "${ECHO_T}no" >&6; }
8070 fi
8071
8072# Check whether --with-solaris-contracts was given.
8073if test "${with_solaris_contracts+set}" = set; then
8074 withval=$with_solaris_contracts;
8075 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8076echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8077if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080 ac_check_lib_save_LIBS=$LIBS
8081LIBS="-lcontract $LIBS"
8082cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088
8089/* Override any GCC internal prototype to avoid an error.
8090 Use char because int might match the return type of a GCC
8091 builtin and then its argument prototype would still apply. */
8092#ifdef __cplusplus
8093extern "C"
8094#endif
8095char ct_tmpl_activate ();
8096int
8097main ()
8098{
8099return ct_tmpl_activate ();
8100 ;
8101 return 0;
8102}
8103_ACEOF
8104rm -f conftest.$ac_objext conftest$ac_exeext
8105if { (ac_try="$ac_link"
8106case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109esac
8110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_link") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext &&
8121 $as_test_x conftest$ac_exeext; then
8122 ac_cv_lib_contract_ct_tmpl_activate=yes
8123else
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 ac_cv_lib_contract_ct_tmpl_activate=no
8128fi
8129
8130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8131 conftest$ac_exeext conftest.$ac_ext
8132LIBS=$ac_check_lib_save_LIBS
8133fi
8134{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8135echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8136if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8137
8138cat >>confdefs.h <<\_ACEOF
8139#define USE_SOLARIS_PROCESS_CONTRACTS 1
8140_ACEOF
8141
8142 SSHDLIBS="$SSHDLIBS -lcontract"
8143
8144 SPC_MSG="yes"
8145fi
8146
8147
8148fi
8149
8150 ;;
8151*-*-sunos4*)
8152 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8153
8154for ac_func in getpwanam
8155do
8156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8157{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8159if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162 cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h. */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h. */
8168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8170#define $ac_func innocuous_$ac_func
8171
8172/* System header to define __stub macros and hopefully few prototypes,
8173 which can conflict with char $ac_func (); below.
8174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8175 <limits.h> exists even on freestanding compilers. */
8176
8177#ifdef __STDC__
8178# include <limits.h>
8179#else
8180# include <assert.h>
8181#endif
8182
8183#undef $ac_func
8184
8185/* Override any GCC internal prototype to avoid an error.
8186 Use char because int might match the return type of a GCC
8187 builtin and then its argument prototype would still apply. */
8188#ifdef __cplusplus
8189extern "C"
8190#endif
8191char $ac_func ();
8192/* The GNU C library defines this for functions which it implements
8193 to always fail with ENOSYS. Some functions are actually named
8194 something starting with __ and the normal name is an alias. */
8195#if defined __stub_$ac_func || defined __stub___$ac_func
8196choke me
8197#endif
8198
8199int
8200main ()
8201{
8202return $ac_func ();
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext conftest$ac_exeext
8208if { (ac_try="$ac_link"
8209case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212esac
8213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest$ac_exeext &&
8224 $as_test_x conftest$ac_exeext; then
8225 eval "$as_ac_var=yes"
8226else
8227 echo "$as_me: failed program was:" >&5
8228sed 's/^/| /' conftest.$ac_ext >&5
8229
8230 eval "$as_ac_var=no"
8231fi
8232
8233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8234 conftest$ac_exeext conftest.$ac_ext
8235fi
8236ac_res=`eval echo '${'$as_ac_var'}'`
8237 { echo "$as_me:$LINENO: result: $ac_res" >&5
8238echo "${ECHO_T}$ac_res" >&6; }
8239if test `eval echo '${'$as_ac_var'}'` = yes; then
8240 cat >>confdefs.h <<_ACEOF
8241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8242_ACEOF
8243
8244fi
8245done
8246
8247 cat >>confdefs.h <<\_ACEOF
8248#define PAM_SUN_CODEBASE 1
8249_ACEOF
8250
8251 conf_utmp_location=/etc/utmp
8252 conf_wtmp_location=/var/adm/wtmp
8253 conf_lastlog_location=/var/adm/lastlog
8254 cat >>confdefs.h <<\_ACEOF
8255#define USE_PIPES 1
8256_ACEOF
8257
8258 ;;
8259*-ncr-sysv*)
8260 LIBS="$LIBS -lc89"
8261 cat >>confdefs.h <<\_ACEOF
8262#define USE_PIPES 1
8263_ACEOF
8264
8265 cat >>confdefs.h <<\_ACEOF
8266#define SSHD_ACQUIRES_CTTY 1
8267_ACEOF
8268
8269 cat >>confdefs.h <<\_ACEOF
8270#define SETEUID_BREAKS_SETUID 1
8271_ACEOF
8272
8273 cat >>confdefs.h <<\_ACEOF
8274#define BROKEN_SETREUID 1
8275_ACEOF
8276
8277 cat >>confdefs.h <<\_ACEOF
8278#define BROKEN_SETREGID 1
8279_ACEOF
8280
8281 ;;
8282*-sni-sysv*)
8283 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8284
8285{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8286echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8287if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289else
8290 ac_check_lib_save_LIBS=$LIBS
8291LIBS="-ldl $LIBS"
8292cat >conftest.$ac_ext <<_ACEOF
8293/* confdefs.h. */
8294_ACEOF
8295cat confdefs.h >>conftest.$ac_ext
8296cat >>conftest.$ac_ext <<_ACEOF
8297/* end confdefs.h. */
8298
8299/* Override any GCC internal prototype to avoid an error.
8300 Use char because int might match the return type of a GCC
8301 builtin and then its argument prototype would still apply. */
8302#ifdef __cplusplus
8303extern "C"
8304#endif
8305char dlsym ();
8306int
8307main ()
8308{
8309return dlsym ();
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext conftest$ac_exeext
8315if { (ac_try="$ac_link"
8316case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319esac
8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_link") 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest$ac_exeext &&
8331 $as_test_x conftest$ac_exeext; then
8332 ac_cv_lib_dl_dlsym=yes
8333else
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 ac_cv_lib_dl_dlsym=no
8338fi
8339
8340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8341 conftest$ac_exeext conftest.$ac_ext
8342LIBS=$ac_check_lib_save_LIBS
8343fi
8344{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8345echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8346if test $ac_cv_lib_dl_dlsym = yes; then
8347 cat >>confdefs.h <<_ACEOF
8348#define HAVE_LIBDL 1
8349_ACEOF
8350
8351 LIBS="-ldl $LIBS"
8352
8353fi
8354
8355 # -lresolv needs to be at the end of LIBS or DNS lookups break
8356 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8357echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8358if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361 ac_check_lib_save_LIBS=$LIBS
8362LIBS="-lresolv $LIBS"
8363cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369
8370/* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8373#ifdef __cplusplus
8374extern "C"
8375#endif
8376char res_query ();
8377int
8378main ()
8379{
8380return res_query ();
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (ac_try="$ac_link"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest$ac_exeext &&
8402 $as_test_x conftest$ac_exeext; then
8403 ac_cv_lib_resolv_res_query=yes
8404else
8405 echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_cv_lib_resolv_res_query=no
8409fi
8410
8411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8412 conftest$ac_exeext conftest.$ac_ext
8413LIBS=$ac_check_lib_save_LIBS
8414fi
8415{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8416echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8417if test $ac_cv_lib_resolv_res_query = yes; then
8418 LIBS="$LIBS -lresolv"
8419fi
8420
8421 IPADDR_IN_DISPLAY=yes
8422 cat >>confdefs.h <<\_ACEOF
8423#define USE_PIPES 1
8424_ACEOF
8425
8426 cat >>confdefs.h <<\_ACEOF
8427#define IP_TOS_IS_BROKEN 1
8428_ACEOF
8429
8430 cat >>confdefs.h <<\_ACEOF
8431#define SETEUID_BREAKS_SETUID 1
8432_ACEOF
8433
8434 cat >>confdefs.h <<\_ACEOF
8435#define BROKEN_SETREUID 1
8436_ACEOF
8437
8438 cat >>confdefs.h <<\_ACEOF
8439#define BROKEN_SETREGID 1
8440_ACEOF
8441
8442 cat >>confdefs.h <<\_ACEOF
8443#define SSHD_ACQUIRES_CTTY 1
8444_ACEOF
8445
8446 external_path_file=/etc/default/login
8447 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8448 # Attention: always take care to bind libsocket and libnsl before libc,
8449 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8450 ;;
8451# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8452*-*-sysv4.2*)
8453 cat >>confdefs.h <<\_ACEOF
8454#define USE_PIPES 1
8455_ACEOF
8456
8457 cat >>confdefs.h <<\_ACEOF
8458#define SETEUID_BREAKS_SETUID 1
8459_ACEOF
8460
8461 cat >>confdefs.h <<\_ACEOF
8462#define BROKEN_SETREUID 1
8463_ACEOF
8464
8465 cat >>confdefs.h <<\_ACEOF
8466#define BROKEN_SETREGID 1
8467_ACEOF
8468
8469
8470cat >>confdefs.h <<\_ACEOF
8471#define PASSWD_NEEDS_USERNAME 1
8472_ACEOF
8473
8474 cat >>confdefs.h <<\_ACEOF
8475#define LOCKED_PASSWD_STRING "*LK*"
8476_ACEOF
8477
8478 ;;
8479# UnixWare 7.x, OpenUNIX 8
8480*-*-sysv5*)
8481 check_for_libcrypt_later=1
8482
8483cat >>confdefs.h <<\_ACEOF
8484#define UNIXWARE_LONG_PASSWORDS 1
8485_ACEOF
8486
8487 cat >>confdefs.h <<\_ACEOF
8488#define USE_PIPES 1
8489_ACEOF
8490
8491 cat >>confdefs.h <<\_ACEOF
8492#define SETEUID_BREAKS_SETUID 1
8493_ACEOF
8494
8495 cat >>confdefs.h <<\_ACEOF
8496#define BROKEN_SETREUID 1
8497_ACEOF
8498
8499 cat >>confdefs.h <<\_ACEOF
8500#define BROKEN_SETREGID 1
8501_ACEOF
8502
8503 cat >>confdefs.h <<\_ACEOF
8504#define PASSWD_NEEDS_USERNAME 1
8505_ACEOF
8506
8507 case "$host" in
8508 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8509 TEST_SHELL=/u95/bin/sh
8510
8511cat >>confdefs.h <<\_ACEOF
8512#define BROKEN_LIBIAF 1
8513_ACEOF
8514
8515 cat >>confdefs.h <<\_ACEOF
8516#define BROKEN_UPDWTMPX 1
8517_ACEOF
8518
8519 ;;
8520 *) cat >>confdefs.h <<\_ACEOF
8521#define LOCKED_PASSWD_STRING "*LK*"
8522_ACEOF
8523
8524 ;;
8525 esac
8526 ;;
8527*-*-sysv*)
8528 ;;
8529# SCO UNIX and OEM versions of SCO UNIX
8530*-*-sco3.2v4*)
8531 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8532echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8533 { (exit 1); exit 1; }; }
8534 ;;
8535# SCO OpenServer 5.x
8536*-*-sco3.2v5*)
8537 if test -z "$GCC"; then
8538 CFLAGS="$CFLAGS -belf"
8539 fi
8540 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8541 no_dev_ptmx=1
8542 cat >>confdefs.h <<\_ACEOF
8543#define USE_PIPES 1
8544_ACEOF
8545
8546 cat >>confdefs.h <<\_ACEOF
8547#define HAVE_SECUREWARE 1
8548_ACEOF
8549
8550 cat >>confdefs.h <<\_ACEOF
8551#define DISABLE_SHADOW 1
8552_ACEOF
8553
8554 cat >>confdefs.h <<\_ACEOF
8555#define DISABLE_FD_PASSING 1
8556_ACEOF
8557
8558 cat >>confdefs.h <<\_ACEOF
8559#define SETEUID_BREAKS_SETUID 1
8560_ACEOF
8561
8562 cat >>confdefs.h <<\_ACEOF
8563#define BROKEN_SETREUID 1
8564_ACEOF
8565
8566 cat >>confdefs.h <<\_ACEOF
8567#define BROKEN_SETREGID 1
8568_ACEOF
8569
8570 cat >>confdefs.h <<\_ACEOF
8571#define WITH_ABBREV_NO_TTY 1
8572_ACEOF
8573
8574 cat >>confdefs.h <<\_ACEOF
8575#define BROKEN_UPDWTMPX 1
8576_ACEOF
8577
8578 cat >>confdefs.h <<\_ACEOF
8579#define PASSWD_NEEDS_USERNAME 1
8580_ACEOF
8581
8582
8583
8584for ac_func in getluid setluid
8585do
8586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591else
8592 cat >conftest.$ac_ext <<_ACEOF
8593/* confdefs.h. */
8594_ACEOF
8595cat confdefs.h >>conftest.$ac_ext
8596cat >>conftest.$ac_ext <<_ACEOF
8597/* end confdefs.h. */
8598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8600#define $ac_func innocuous_$ac_func
8601
8602/* System header to define __stub macros and hopefully few prototypes,
8603 which can conflict with char $ac_func (); below.
8604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8605 <limits.h> exists even on freestanding compilers. */
8606
8607#ifdef __STDC__
8608# include <limits.h>
8609#else
8610# include <assert.h>
8611#endif
8612
8613#undef $ac_func
8614
8615/* Override any GCC internal prototype to avoid an error.
8616 Use char because int might match the return type of a GCC
8617 builtin and then its argument prototype would still apply. */
8618#ifdef __cplusplus
8619extern "C"
8620#endif
8621char $ac_func ();
8622/* The GNU C library defines this for functions which it implements
8623 to always fail with ENOSYS. Some functions are actually named
8624 something starting with __ and the normal name is an alias. */
8625#if defined __stub_$ac_func || defined __stub___$ac_func
8626choke me
8627#endif
8628
8629int
8630main ()
8631{
8632return $ac_func ();
8633 ;
8634 return 0;
8635}
8636_ACEOF
8637rm -f conftest.$ac_objext conftest$ac_exeext
8638if { (ac_try="$ac_link"
8639case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642esac
8643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_link") 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest$ac_exeext &&
8654 $as_test_x conftest$ac_exeext; then
8655 eval "$as_ac_var=yes"
8656else
8657 echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 eval "$as_ac_var=no"
8661fi
8662
8663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8664 conftest$ac_exeext conftest.$ac_ext
8665fi
8666ac_res=`eval echo '${'$as_ac_var'}'`
8667 { echo "$as_me:$LINENO: result: $ac_res" >&5
8668echo "${ECHO_T}$ac_res" >&6; }
8669if test `eval echo '${'$as_ac_var'}'` = yes; then
8670 cat >>confdefs.h <<_ACEOF
8671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8672_ACEOF
8673
8674fi
8675done
8676
8677 MANTYPE=man
8678 TEST_SHELL=ksh
8679 ;;
8680*-*-unicosmk*)
8681
8682cat >>confdefs.h <<\_ACEOF
8683#define NO_SSH_LASTLOG 1
8684_ACEOF
8685
8686 cat >>confdefs.h <<\_ACEOF
8687#define SETEUID_BREAKS_SETUID 1
8688_ACEOF
8689
8690 cat >>confdefs.h <<\_ACEOF
8691#define BROKEN_SETREUID 1
8692_ACEOF
8693
8694 cat >>confdefs.h <<\_ACEOF
8695#define BROKEN_SETREGID 1
8696_ACEOF
8697
8698 cat >>confdefs.h <<\_ACEOF
8699#define USE_PIPES 1
8700_ACEOF
8701
8702 cat >>confdefs.h <<\_ACEOF
8703#define DISABLE_FD_PASSING 1
8704_ACEOF
8705
8706 LDFLAGS="$LDFLAGS"
8707 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8708 MANTYPE=cat
8709 ;;
8710*-*-unicosmp*)
8711 cat >>confdefs.h <<\_ACEOF
8712#define SETEUID_BREAKS_SETUID 1
8713_ACEOF
8714
8715 cat >>confdefs.h <<\_ACEOF
8716#define BROKEN_SETREUID 1
8717_ACEOF
8718
8719 cat >>confdefs.h <<\_ACEOF
8720#define BROKEN_SETREGID 1
8721_ACEOF
8722
8723 cat >>confdefs.h <<\_ACEOF
8724#define WITH_ABBREV_NO_TTY 1
8725_ACEOF
8726
8727 cat >>confdefs.h <<\_ACEOF
8728#define USE_PIPES 1
8729_ACEOF
8730
8731 cat >>confdefs.h <<\_ACEOF
8732#define DISABLE_FD_PASSING 1
8733_ACEOF
8734
8735 LDFLAGS="$LDFLAGS"
8736 LIBS="$LIBS -lgen -lacid -ldb"
8737 MANTYPE=cat
8738 ;;
8739*-*-unicos*)
8740 cat >>confdefs.h <<\_ACEOF
8741#define SETEUID_BREAKS_SETUID 1
8742_ACEOF
8743
8744 cat >>confdefs.h <<\_ACEOF
8745#define BROKEN_SETREUID 1
8746_ACEOF
8747
8748 cat >>confdefs.h <<\_ACEOF
8749#define BROKEN_SETREGID 1
8750_ACEOF
8751
8752 cat >>confdefs.h <<\_ACEOF
8753#define USE_PIPES 1
8754_ACEOF
8755
8756 cat >>confdefs.h <<\_ACEOF
8757#define DISABLE_FD_PASSING 1
8758_ACEOF
8759
8760 cat >>confdefs.h <<\_ACEOF
8761#define NO_SSH_LASTLOG 1
8762_ACEOF
8763
8764 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8765 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8766 MANTYPE=cat
8767 ;;
8768*-dec-osf*)
8769 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
8770echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
8771 no_osfsia=""
8772
8773# Check whether --with-osfsia was given.
8774if test "${with_osfsia+set}" = set; then
8775 withval=$with_osfsia;
8776 if test "x$withval" = "xno" ; then
8777 { echo "$as_me:$LINENO: result: disabled" >&5
8778echo "${ECHO_T}disabled" >&6; }
8779 no_osfsia=1
8780 fi
8781
8782fi
8783
8784 if test -z "$no_osfsia" ; then
8785 if test -f /etc/sia/matrix.conf; then
8786 { echo "$as_me:$LINENO: result: yes" >&5
8787echo "${ECHO_T}yes" >&6; }
8788
8789cat >>confdefs.h <<\_ACEOF
8790#define HAVE_OSF_SIA 1
8791_ACEOF
8792
8793
8794cat >>confdefs.h <<\_ACEOF
8795#define DISABLE_LOGIN 1
8796_ACEOF
8797
8798 cat >>confdefs.h <<\_ACEOF
8799#define DISABLE_FD_PASSING 1
8800_ACEOF
8801
8802 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8803 SIA_MSG="yes"
8804 else
8805 { echo "$as_me:$LINENO: result: no" >&5
8806echo "${ECHO_T}no" >&6; }
8807
8808cat >>confdefs.h <<\_ACEOF
8809#define LOCKED_PASSWD_SUBSTR "Nologin"
8810_ACEOF
8811
8812 fi
8813 fi
8814 cat >>confdefs.h <<\_ACEOF
8815#define BROKEN_GETADDRINFO 1
8816_ACEOF
8817
8818 cat >>confdefs.h <<\_ACEOF
8819#define SETEUID_BREAKS_SETUID 1
8820_ACEOF
8821
8822 cat >>confdefs.h <<\_ACEOF
8823#define BROKEN_SETREUID 1
8824_ACEOF
8825
8826 cat >>confdefs.h <<\_ACEOF
8827#define BROKEN_SETREGID 1
8828_ACEOF
8829
8830 ;;
8831
8832*-*-nto-qnx*)
8833 cat >>confdefs.h <<\_ACEOF
8834#define USE_PIPES 1
8835_ACEOF
8836
8837 cat >>confdefs.h <<\_ACEOF
8838#define NO_X11_UNIX_SOCKETS 1
8839_ACEOF
8840
8841
8842cat >>confdefs.h <<\_ACEOF
8843#define MISSING_NFDBITS 1
8844_ACEOF
8845
8846
8847cat >>confdefs.h <<\_ACEOF
8848#define MISSING_HOWMANY 1
8849_ACEOF
8850
8851
8852cat >>confdefs.h <<\_ACEOF
8853#define MISSING_FD_MASK 1
8854_ACEOF
8855
8856 cat >>confdefs.h <<\_ACEOF
8857#define DISABLE_LASTLOG 1
8858_ACEOF
8859
8860 cat >>confdefs.h <<\_ACEOF
8861#define SSHD_ACQUIRES_CTTY 1
8862_ACEOF
8863
8864 enable_etc_default_login=no # has incompatible /etc/default/login
8865 ;;
8866
8867*-*-ultrix*)
8868
8869cat >>confdefs.h <<\_ACEOF
8870#define BROKEN_GETGROUPS 1
8871_ACEOF
8872
8873
8874cat >>confdefs.h <<\_ACEOF
8875#define BROKEN_MMAP 1
8876_ACEOF
8877
8878 cat >>confdefs.h <<\_ACEOF
8879#define NEED_SETPGRP 1
8880_ACEOF
8881
8882
8883cat >>confdefs.h <<\_ACEOF
8884#define HAVE_SYS_SYSLOG_H 1
8885_ACEOF
8886
8887 ;;
8888
8889*-*-lynxos)
8890 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8891 cat >>confdefs.h <<\_ACEOF
8892#define MISSING_HOWMANY 1
8893_ACEOF
8894
8895
8896cat >>confdefs.h <<\_ACEOF
8897#define BROKEN_SETVBUF 1
8898_ACEOF
8899
8900 ;;
8901esac
8902
8903{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
8904echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
8905if test "$cross_compiling" = yes; then
8906 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
8907echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8908
8909else
8910 cat >conftest.$ac_ext <<_ACEOF
8911/* confdefs.h. */
8912_ACEOF
8913cat confdefs.h >>conftest.$ac_ext
8914cat >>conftest.$ac_ext <<_ACEOF
8915/* end confdefs.h. */
8916
8917#include <stdio.h>
8918int main(){exit(0);}
8919
8920_ACEOF
8921rm -f conftest$ac_exeext
8922if { (ac_try="$ac_link"
8923case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926esac
8927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_link") 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935esac
8936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 { echo "$as_me:$LINENO: result: yes" >&5
8942echo "${ECHO_T}yes" >&6; }
8943else
8944 echo "$as_me: program exited with status $ac_status" >&5
8945echo "$as_me: failed program was:" >&5
8946sed 's/^/| /' conftest.$ac_ext >&5
8947
8948( exit $ac_status )
8949
8950 { echo "$as_me:$LINENO: result: no" >&5
8951echo "${ECHO_T}no" >&6; }
8952 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
8953echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
8954 { (exit 1); exit 1; }; }
8955
8956fi
8957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8958fi
8959
8960
8961
8962# Checks for libraries.
8963{ echo "$as_me:$LINENO: checking for yp_match" >&5
8964echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
8965if test "${ac_cv_func_yp_match+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967else
8968 cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
8974/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
8975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8976#define yp_match innocuous_yp_match
8977
8978/* System header to define __stub macros and hopefully few prototypes,
8979 which can conflict with char yp_match (); below.
8980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8981 <limits.h> exists even on freestanding compilers. */
8982
8983#ifdef __STDC__
8984# include <limits.h>
8985#else
8986# include <assert.h>
8987#endif
8988
8989#undef yp_match
8990
8991/* Override any GCC internal prototype to avoid an error.
8992 Use char because int might match the return type of a GCC
8993 builtin and then its argument prototype would still apply. */
8994#ifdef __cplusplus
8995extern "C"
8996#endif
8997char yp_match ();
8998/* The GNU C library defines this for functions which it implements
8999 to always fail with ENOSYS. Some functions are actually named
9000 something starting with __ and the normal name is an alias. */
9001#if defined __stub_yp_match || defined __stub___yp_match
9002choke me
9003#endif
9004
9005int
9006main ()
9007{
9008return yp_match ();
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext
9014if { (ac_try="$ac_link"
9015case "(($ac_try" in
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9018esac
9019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_link") 2>conftest.er1
9021 ac_status=$?
9022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest$ac_exeext &&
9030 $as_test_x conftest$ac_exeext; then
9031 ac_cv_func_yp_match=yes
9032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_cv_func_yp_match=no
9037fi
9038
9039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9040 conftest$ac_exeext conftest.$ac_ext
9041fi
9042{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9043echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9044if test $ac_cv_func_yp_match = yes; then
9045 :
9046else
9047
9048{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9049echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9050if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9052else
9053 ac_check_lib_save_LIBS=$LIBS
9054LIBS="-lnsl $LIBS"
9055cat >conftest.$ac_ext <<_ACEOF
9056/* confdefs.h. */
9057_ACEOF
9058cat confdefs.h >>conftest.$ac_ext
9059cat >>conftest.$ac_ext <<_ACEOF
9060/* end confdefs.h. */
9061
9062/* Override any GCC internal prototype to avoid an error.
9063 Use char because int might match the return type of a GCC
9064 builtin and then its argument prototype would still apply. */
9065#ifdef __cplusplus
9066extern "C"
9067#endif
9068char yp_match ();
9069int
9070main ()
9071{
9072return yp_match ();
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077rm -f conftest.$ac_objext conftest$ac_exeext
9078if { (ac_try="$ac_link"
9079case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_link") 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_c_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest$ac_exeext &&
9094 $as_test_x conftest$ac_exeext; then
9095 ac_cv_lib_nsl_yp_match=yes
9096else
9097 echo "$as_me: failed program was:" >&5
9098sed 's/^/| /' conftest.$ac_ext >&5
9099
9100 ac_cv_lib_nsl_yp_match=no
9101fi
9102
9103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9104 conftest$ac_exeext conftest.$ac_ext
9105LIBS=$ac_check_lib_save_LIBS
9106fi
9107{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9108echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9109if test $ac_cv_lib_nsl_yp_match = yes; then
9110 cat >>confdefs.h <<_ACEOF
9111#define HAVE_LIBNSL 1
9112_ACEOF
9113
9114 LIBS="-lnsl $LIBS"
9115
9116fi
9117
9118fi
9119
9120{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9121echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9122if test "${ac_cv_func_setsockopt+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 cat >conftest.$ac_ext <<_ACEOF
9126/* confdefs.h. */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
9131/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9133#define setsockopt innocuous_setsockopt
9134
9135/* System header to define __stub macros and hopefully few prototypes,
9136 which can conflict with char setsockopt (); below.
9137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9138 <limits.h> exists even on freestanding compilers. */
9139
9140#ifdef __STDC__
9141# include <limits.h>
9142#else
9143# include <assert.h>
9144#endif
9145
9146#undef setsockopt
9147
9148/* Override any GCC internal prototype to avoid an error.
9149 Use char because int might match the return type of a GCC
9150 builtin and then its argument prototype would still apply. */
9151#ifdef __cplusplus
9152extern "C"
9153#endif
9154char setsockopt ();
9155/* The GNU C library defines this for functions which it implements
9156 to always fail with ENOSYS. Some functions are actually named
9157 something starting with __ and the normal name is an alias. */
9158#if defined __stub_setsockopt || defined __stub___setsockopt
9159choke me
9160#endif
9161
9162int
9163main ()
9164{
9165return setsockopt ();
9166 ;
9167 return 0;
9168}
9169_ACEOF
9170rm -f conftest.$ac_objext conftest$ac_exeext
9171if { (ac_try="$ac_link"
9172case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175esac
9176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_link") 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest$ac_exeext &&
9187 $as_test_x conftest$ac_exeext; then
9188 ac_cv_func_setsockopt=yes
9189else
9190 echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193 ac_cv_func_setsockopt=no
9194fi
9195
9196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9197 conftest$ac_exeext conftest.$ac_ext
9198fi
9199{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9200echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9201if test $ac_cv_func_setsockopt = yes; then
9202 :
9203else
9204
9205{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9206echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9207if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209else
9210 ac_check_lib_save_LIBS=$LIBS
9211LIBS="-lsocket $LIBS"
9212cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h. */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h. */
9218
9219/* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9222#ifdef __cplusplus
9223extern "C"
9224#endif
9225char setsockopt ();
9226int
9227main ()
9228{
9229return setsockopt ();
9230 ;
9231 return 0;
9232}
9233_ACEOF
9234rm -f conftest.$ac_objext conftest$ac_exeext
9235if { (ac_try="$ac_link"
9236case "(($ac_try" in
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9239esac
9240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_link") 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest$ac_exeext &&
9251 $as_test_x conftest$ac_exeext; then
9252 ac_cv_lib_socket_setsockopt=yes
9253else
9254 echo "$as_me: failed program was:" >&5
9255sed 's/^/| /' conftest.$ac_ext >&5
9256
9257 ac_cv_lib_socket_setsockopt=no
9258fi
9259
9260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9261 conftest$ac_exeext conftest.$ac_ext
9262LIBS=$ac_check_lib_save_LIBS
9263fi
9264{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9265echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9266if test $ac_cv_lib_socket_setsockopt = yes; then
9267 cat >>confdefs.h <<_ACEOF
9268#define HAVE_LIBSOCKET 1
9269_ACEOF
9270
9271 LIBS="-lsocket $LIBS"
9272
9273fi
9274
9275fi
9276
9277
9278
9279for ac_func in dirname
9280do
9281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9282{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9284if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286else
9287 cat >conftest.$ac_ext <<_ACEOF
9288/* confdefs.h. */
9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h. */
9293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9295#define $ac_func innocuous_$ac_func
9296
9297/* System header to define __stub macros and hopefully few prototypes,
9298 which can conflict with char $ac_func (); below.
9299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9300 <limits.h> exists even on freestanding compilers. */
9301
9302#ifdef __STDC__
9303# include <limits.h>
9304#else
9305# include <assert.h>
9306#endif
9307
9308#undef $ac_func
9309
9310/* Override any GCC internal prototype to avoid an error.
9311 Use char because int might match the return type of a GCC
9312 builtin and then its argument prototype would still apply. */
9313#ifdef __cplusplus
9314extern "C"
9315#endif
9316char $ac_func ();
9317/* The GNU C library defines this for functions which it implements
9318 to always fail with ENOSYS. Some functions are actually named
9319 something starting with __ and the normal name is an alias. */
9320#if defined __stub_$ac_func || defined __stub___$ac_func
9321choke me
9322#endif
9323
9324int
9325main ()
9326{
9327return $ac_func ();
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (ac_try="$ac_link"
9334case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337esac
9338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_link") 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } && {
9346 test -z "$ac_c_werror_flag" ||
9347 test ! -s conftest.err
9348 } && test -s conftest$ac_exeext &&
9349 $as_test_x conftest$ac_exeext; then
9350 eval "$as_ac_var=yes"
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
9355 eval "$as_ac_var=no"
9356fi
9357
9358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9359 conftest$ac_exeext conftest.$ac_ext
9360fi
9361ac_res=`eval echo '${'$as_ac_var'}'`
9362 { echo "$as_me:$LINENO: result: $ac_res" >&5
9363echo "${ECHO_T}$ac_res" >&6; }
9364if test `eval echo '${'$as_ac_var'}'` = yes; then
9365 cat >>confdefs.h <<_ACEOF
9366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9367_ACEOF
9368
9369for ac_header in libgen.h
9370do
9371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377fi
9378ac_res=`eval echo '${'$as_ac_Header'}'`
9379 { echo "$as_me:$LINENO: result: $ac_res" >&5
9380echo "${ECHO_T}$ac_res" >&6; }
9381else
9382 # Is the header compilable?
9383{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9385cat >conftest.$ac_ext <<_ACEOF
9386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
9391$ac_includes_default
9392#include <$ac_header>
9393_ACEOF
9394rm -f conftest.$ac_objext
9395if { (ac_try="$ac_compile"
9396case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399esac
9400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_compile") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest.$ac_objext; then
9411 ac_header_compiler=yes
9412else
9413 echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 ac_header_compiler=no
9417fi
9418
9419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9421echo "${ECHO_T}$ac_header_compiler" >&6; }
9422
9423# Is the header present?
9424{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9426cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
9432#include <$ac_header>
9433_ACEOF
9434if { (ac_try="$ac_cpp conftest.$ac_ext"
9435case "(($ac_try" in
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9438esac
9439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } >/dev/null && {
9447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9448 test ! -s conftest.err
9449 }; then
9450 ac_header_preproc=yes
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455 ac_header_preproc=no
9456fi
9457
9458rm -f conftest.err conftest.$ac_ext
9459{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9460echo "${ECHO_T}$ac_header_preproc" >&6; }
9461
9462# So? What about this header?
9463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9464 yes:no: )
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9469 ac_header_preproc=yes
9470 ;;
9471 no:yes:* )
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9475echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9479echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9484 ( cat <<\_ASBOX
9485## ------------------------------------------- ##
9486## Report this to openssh-unix-dev@mindrot.org ##
9487## ------------------------------------------- ##
9488_ASBOX
9489 ) | sed "s/^/$as_me: WARNING: /" >&2
9490 ;;
9491esac
9492{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497 eval "$as_ac_Header=\$ac_header_preproc"
9498fi
9499ac_res=`eval echo '${'$as_ac_Header'}'`
9500 { echo "$as_me:$LINENO: result: $ac_res" >&5
9501echo "${ECHO_T}$ac_res" >&6; }
9502
9503fi
9504if test `eval echo '${'$as_ac_Header'}'` = yes; then
9505 cat >>confdefs.h <<_ACEOF
9506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9507_ACEOF
9508
9509fi
9510
9511done
9512
9513else
9514
9515 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
9516echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
9517if test "${ac_cv_lib_gen_dirname+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519else
9520 ac_check_lib_save_LIBS=$LIBS
9521LIBS="-lgen $LIBS"
9522cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528
9529/* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532#ifdef __cplusplus
9533extern "C"
9534#endif
9535char dirname ();
9536int
9537main ()
9538{
9539return dirname ();
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (ac_try="$ac_link"
9546case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549esac
9550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9562 ac_cv_lib_gen_dirname=yes
9563else
9564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 ac_cv_lib_gen_dirname=no
9568fi
9569
9570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571 conftest$ac_exeext conftest.$ac_ext
9572LIBS=$ac_check_lib_save_LIBS
9573fi
9574{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
9575echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
9576if test $ac_cv_lib_gen_dirname = yes; then
9577
9578 { echo "$as_me:$LINENO: checking for broken dirname" >&5
9579echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
9580if test "${ac_cv_have_broken_dirname+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583
9584 save_LIBS="$LIBS"
9585 LIBS="$LIBS -lgen"
9586 if test "$cross_compiling" = yes; then
9587 ac_cv_have_broken_dirname="no"
9588else
9589 cat >conftest.$ac_ext <<_ACEOF
9590/* confdefs.h. */
9591_ACEOF
9592cat confdefs.h >>conftest.$ac_ext
9593cat >>conftest.$ac_ext <<_ACEOF
9594/* end confdefs.h. */
9595
9596#include <libgen.h>
9597#include <string.h>
9598
9599int main(int argc, char **argv) {
9600 char *s, buf[32];
9601
9602 strncpy(buf,"/etc", 32);
9603 s = dirname(buf);
9604 if (!s || strncmp(s, "/", 32) != 0) {
9605 exit(1);
9606 } else {
9607 exit(0);
9608 }
9609}
9610
9611_ACEOF
9612rm -f conftest$ac_exeext
9613if { (ac_try="$ac_link"
9614case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617esac
9618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_link") 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9623 { (case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
9627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_try") 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_cv_have_broken_dirname="no"
9633else
9634 echo "$as_me: program exited with status $ac_status" >&5
9635echo "$as_me: failed program was:" >&5
9636sed 's/^/| /' conftest.$ac_ext >&5
9637
9638( exit $ac_status )
9639 ac_cv_have_broken_dirname="yes"
9640fi
9641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9642fi
9643
9644
9645 LIBS="$save_LIBS"
9646
9647fi
9648{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
9649echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
9650 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9651 LIBS="$LIBS -lgen"
9652 cat >>confdefs.h <<\_ACEOF
9653#define HAVE_DIRNAME 1
9654_ACEOF
9655
9656
9657for ac_header in libgen.h
9658do
9659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665fi
9666ac_res=`eval echo '${'$as_ac_Header'}'`
9667 { echo "$as_me:$LINENO: result: $ac_res" >&5
9668echo "${ECHO_T}$ac_res" >&6; }
9669else
9670 # Is the header compilable?
9671{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9673cat >conftest.$ac_ext <<_ACEOF
9674/* confdefs.h. */
9675_ACEOF
9676cat confdefs.h >>conftest.$ac_ext
9677cat >>conftest.$ac_ext <<_ACEOF
9678/* end confdefs.h. */
9679$ac_includes_default
9680#include <$ac_header>
9681_ACEOF
9682rm -f conftest.$ac_objext
9683if { (ac_try="$ac_compile"
9684case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9687esac
9688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_compile") 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && {
9696 test -z "$ac_c_werror_flag" ||
9697 test ! -s conftest.err
9698 } && test -s conftest.$ac_objext; then
9699 ac_header_compiler=yes
9700else
9701 echo "$as_me: failed program was:" >&5
9702sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_header_compiler=no
9705fi
9706
9707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9709echo "${ECHO_T}$ac_header_compiler" >&6; }
9710
9711# Is the header present?
9712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9714cat >conftest.$ac_ext <<_ACEOF
9715/* confdefs.h. */
9716_ACEOF
9717cat confdefs.h >>conftest.$ac_ext
9718cat >>conftest.$ac_ext <<_ACEOF
9719/* end confdefs.h. */
9720#include <$ac_header>
9721_ACEOF
9722if { (ac_try="$ac_cpp conftest.$ac_ext"
9723case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } >/dev/null && {
9735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 }; then
9738 ac_header_preproc=yes
9739else
9740 echo "$as_me: failed program was:" >&5
9741sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 ac_header_preproc=no
9744fi
9745
9746rm -f conftest.err conftest.$ac_ext
9747{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9748echo "${ECHO_T}$ac_header_preproc" >&6; }
9749
9750# So? What about this header?
9751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9752 yes:no: )
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9757 ac_header_preproc=yes
9758 ;;
9759 no:yes:* )
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9763echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9767echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9772 ( cat <<\_ASBOX
9773## ------------------------------------------- ##
9774## Report this to openssh-unix-dev@mindrot.org ##
9775## ------------------------------------------- ##
9776_ASBOX
9777 ) | sed "s/^/$as_me: WARNING: /" >&2
9778 ;;
9779esac
9780{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784else
9785 eval "$as_ac_Header=\$ac_header_preproc"
9786fi
9787ac_res=`eval echo '${'$as_ac_Header'}'`
9788 { echo "$as_me:$LINENO: result: $ac_res" >&5
9789echo "${ECHO_T}$ac_res" >&6; }
9790
9791fi
9792if test `eval echo '${'$as_ac_Header'}'` = yes; then
9793 cat >>confdefs.h <<_ACEOF
9794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9795_ACEOF
9796
9797fi
9798
9799done
9800
9801 fi
9802
9803fi
9804
9805
9806fi
9807done
9808
9809
9810{ echo "$as_me:$LINENO: checking for getspnam" >&5
9811echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
9812if test "${ac_cv_func_getspnam+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
9815 cat >conftest.$ac_ext <<_ACEOF
9816/* confdefs.h. */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h. */
9821/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
9822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9823#define getspnam innocuous_getspnam
9824
9825/* System header to define __stub macros and hopefully few prototypes,
9826 which can conflict with char getspnam (); below.
9827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9828 <limits.h> exists even on freestanding compilers. */
9829
9830#ifdef __STDC__
9831# include <limits.h>
9832#else
9833# include <assert.h>
9834#endif
9835
9836#undef getspnam
9837
9838/* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9841#ifdef __cplusplus
9842extern "C"
9843#endif
9844char getspnam ();
9845/* The GNU C library defines this for functions which it implements
9846 to always fail with ENOSYS. Some functions are actually named
9847 something starting with __ and the normal name is an alias. */
9848#if defined __stub_getspnam || defined __stub___getspnam
9849choke me
9850#endif
9851
9852int
9853main ()
9854{
9855return getspnam ();
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
9861if { (ac_try="$ac_link"
9862case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865esac
9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_link") 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && {
9874 test -z "$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9876 } && test -s conftest$ac_exeext &&
9877 $as_test_x conftest$ac_exeext; then
9878 ac_cv_func_getspnam=yes
9879else
9880 echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 ac_cv_func_getspnam=no
9884fi
9885
9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9888fi
9889{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
9890echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
9891if test $ac_cv_func_getspnam = yes; then
9892 :
9893else
9894 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
9895echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
9896if test "${ac_cv_lib_gen_getspnam+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899 ac_check_lib_save_LIBS=$LIBS
9900LIBS="-lgen $LIBS"
9901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
9907
9908/* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9911#ifdef __cplusplus
9912extern "C"
9913#endif
9914char getspnam ();
9915int
9916main ()
9917{
9918return getspnam ();
9919 ;
9920 return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest$ac_exeext &&
9940 $as_test_x conftest$ac_exeext; then
9941 ac_cv_lib_gen_getspnam=yes
9942else
9943 echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 ac_cv_lib_gen_getspnam=no
9947fi
9948
9949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950 conftest$ac_exeext conftest.$ac_ext
9951LIBS=$ac_check_lib_save_LIBS
9952fi
9953{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
9954echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
9955if test $ac_cv_lib_gen_getspnam = yes; then
9956 LIBS="$LIBS -lgen"
9957fi
9958
9959fi
9960
9961{ echo "$as_me:$LINENO: checking for library containing basename" >&5
9962echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
9963if test "${ac_cv_search_basename+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966 ac_func_search_save_LIBS=$LIBS
9967cat >conftest.$ac_ext <<_ACEOF
9968/* confdefs.h. */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h. */
9973
9974/* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9977#ifdef __cplusplus
9978extern "C"
9979#endif
9980char basename ();
9981int
9982main ()
9983{
9984return basename ();
9985 ;
9986 return 0;
9987}
9988_ACEOF
9989for ac_lib in '' gen; do
9990 if test -z "$ac_lib"; then
9991 ac_res="none required"
9992 else
9993 ac_res=-l$ac_lib
9994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9995 fi
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext &&
10013 $as_test_x conftest$ac_exeext; then
10014 ac_cv_search_basename=$ac_res
10015else
10016 echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
10019
10020fi
10021
10022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023 conftest$ac_exeext
10024 if test "${ac_cv_search_basename+set}" = set; then
10025 break
10026fi
10027done
10028if test "${ac_cv_search_basename+set}" = set; then
10029 :
10030else
10031 ac_cv_search_basename=no
10032fi
10033rm conftest.$ac_ext
10034LIBS=$ac_func_search_save_LIBS
10035fi
10036{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10037echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10038ac_res=$ac_cv_search_basename
10039if test "$ac_res" != no; then
10040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10041
10042cat >>confdefs.h <<\_ACEOF
10043#define HAVE_BASENAME 1
10044_ACEOF
10045
10046fi
10047
10048
10049
10050# Check whether --with-zlib was given.
10051if test "${with_zlib+set}" = set; then
10052 withval=$with_zlib; if test "x$withval" = "xno" ; then
10053 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10054echo "$as_me: error: *** zlib is required ***" >&2;}
10055 { (exit 1); exit 1; }; }
10056 elif test "x$withval" != "xyes"; then
10057 if test -d "$withval/lib"; then
10058 if test -n "${need_dash_r}"; then
10059 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10060 else
10061 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10062 fi
10063 else
10064 if test -n "${need_dash_r}"; then
10065 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10066 else
10067 LDFLAGS="-L${withval} ${LDFLAGS}"
10068 fi
10069 fi
10070 if test -d "$withval/include"; then
10071 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10072 else
10073 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10074 fi
10075 fi
10076
10077fi
10078
10079
10080
10081{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10082echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10083if test "${ac_cv_lib_z_deflate+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
10086 ac_check_lib_save_LIBS=$LIBS
10087LIBS="-lz $LIBS"
10088cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h. */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h. */
10094
10095/* Override any GCC internal prototype to avoid an error.
10096 Use char because int might match the return type of a GCC
10097 builtin and then its argument prototype would still apply. */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
10101char deflate ();
10102int
10103main ()
10104{
10105return deflate ();
10106 ;
10107 return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext conftest$ac_exeext
10111if { (ac_try="$ac_link"
10112case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest$ac_exeext &&
10127 $as_test_x conftest$ac_exeext; then
10128 ac_cv_lib_z_deflate=yes
10129else
10130 echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_cv_lib_z_deflate=no
10134fi
10135
10136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137 conftest$ac_exeext conftest.$ac_ext
10138LIBS=$ac_check_lib_save_LIBS
10139fi
10140{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10141echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10142if test $ac_cv_lib_z_deflate = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144#define HAVE_LIBZ 1
10145_ACEOF
10146
10147 LIBS="-lz $LIBS"
10148
10149else
10150
10151 saved_CPPFLAGS="$CPPFLAGS"
10152 saved_LDFLAGS="$LDFLAGS"
10153 save_LIBS="$LIBS"
10154 if test -n "${need_dash_r}"; then
10155 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10156 else
10157 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10158 fi
10159 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10160 LIBS="$LIBS -lz"
10161 cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h. */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h. */
10167
10168/* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10171#ifdef __cplusplus
10172extern "C"
10173#endif
10174char deflate ();
10175int
10176main ()
10177{
10178return deflate ();
10179 ;
10180 return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext conftest$ac_exeext
10184if { (ac_try="$ac_link"
10185case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_link") 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest$ac_exeext &&
10200 $as_test_x conftest$ac_exeext; then
10201 cat >>confdefs.h <<\_ACEOF
10202#define HAVE_LIBZ 1
10203_ACEOF
10204
10205else
10206 echo "$as_me: failed program was:" >&5
10207sed 's/^/| /' conftest.$ac_ext >&5
10208
10209
10210 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10211echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10212 { (exit 1); exit 1; }; }
10213
10214
10215fi
10216
10217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10218 conftest$ac_exeext conftest.$ac_ext
10219
10220
10221fi
10222
10223if test "${ac_cv_header_zlib_h+set}" = set; then
10224 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10225echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10226if test "${ac_cv_header_zlib_h+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228fi
10229{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10230echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10231else
10232 # Is the header compilable?
10233{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10234echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10235cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241$ac_includes_default
10242#include <zlib.h>
10243_ACEOF
10244rm -f conftest.$ac_objext
10245if { (ac_try="$ac_compile"
10246case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249esac
10250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_compile") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } && {
10258 test -z "$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 } && test -s conftest.$ac_objext; then
10261 ac_header_compiler=yes
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_header_compiler=no
10267fi
10268
10269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10271echo "${ECHO_T}$ac_header_compiler" >&6; }
10272
10273# Is the header present?
10274{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10275echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10276cat >conftest.$ac_ext <<_ACEOF
10277/* confdefs.h. */
10278_ACEOF
10279cat confdefs.h >>conftest.$ac_ext
10280cat >>conftest.$ac_ext <<_ACEOF
10281/* end confdefs.h. */
10282#include <zlib.h>
10283_ACEOF
10284if { (ac_try="$ac_cpp conftest.$ac_ext"
10285case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev/null && {
10297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 }; then
10300 ac_header_preproc=yes
10301else
10302 echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 ac_header_preproc=no
10306fi
10307
10308rm -f conftest.err conftest.$ac_ext
10309{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310echo "${ECHO_T}$ac_header_preproc" >&6; }
10311
10312# So? What about this header?
10313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10314 yes:no: )
10315 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10316echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10318echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10319 ac_header_preproc=yes
10320 ;;
10321 no:yes:* )
10322 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10323echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10325echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10326 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10327echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10328 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10329echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10330 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10331echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10332 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10333echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10334 ( cat <<\_ASBOX
10335## ------------------------------------------- ##
10336## Report this to openssh-unix-dev@mindrot.org ##
10337## ------------------------------------------- ##
10338_ASBOX
10339 ) | sed "s/^/$as_me: WARNING: /" >&2
10340 ;;
10341esac
10342{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10343echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10344if test "${ac_cv_header_zlib_h+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10346else
10347 ac_cv_header_zlib_h=$ac_header_preproc
10348fi
10349{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10350echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10351
10352fi
10353if test $ac_cv_header_zlib_h = yes; then
10354 :
10355else
10356 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10357echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10358 { (exit 1); exit 1; }; }
10359fi
10360
10361
10362
10363
10364# Check whether --with-zlib-version-check was given.
10365if test "${with_zlib_version_check+set}" = set; then
10366 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
10367 zlib_check_nonfatal=1
10368 fi
10369
10370
10371fi
10372
10373
10374{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
10375echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
10376if test "$cross_compiling" = yes; then
10377 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
10378echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
10379
10380else
10381 cat >conftest.$ac_ext <<_ACEOF
10382/* confdefs.h. */
10383_ACEOF
10384cat confdefs.h >>conftest.$ac_ext
10385cat >>conftest.$ac_ext <<_ACEOF
10386/* end confdefs.h. */
10387
10388#include <stdio.h>
10389#include <zlib.h>
10390int main()
10391{
10392 int a=0, b=0, c=0, d=0, n, v;
10393 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
10394 if (n != 3 && n != 4)
10395 exit(1);
10396 v = a*1000000 + b*10000 + c*100 + d;
10397 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
10398
10399 /* 1.1.4 is OK */
10400 if (a == 1 && b == 1 && c >= 4)
10401 exit(0);
10402
10403 /* 1.2.3 and up are OK */
10404 if (v >= 1020300)
10405 exit(0);
10406
10407 exit(2);
10408}
10409
10410_ACEOF
10411rm -f conftest$ac_exeext
10412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 { echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6; }
10433else
10434 echo "$as_me: program exited with status $ac_status" >&5
10435echo "$as_me: failed program was:" >&5
10436sed 's/^/| /' conftest.$ac_ext >&5
10437
10438( exit $ac_status )
10439 { echo "$as_me:$LINENO: result: yes" >&5
10440echo "${ECHO_T}yes" >&6; }
10441 if test -z "$zlib_check_nonfatal" ; then
10442 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
10443Your reported zlib version has known security problems. It's possible your
10444vendor has fixed these problems without changing the version number. If you
10445are sure this is the case, you can disable the check by running
10446\"./configure --without-zlib-version-check\".
10447If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10448See http://www.gzip.org/zlib/ for details." >&5
10449echo "$as_me: error: *** zlib too old - check config.log ***
10450Your reported zlib version has known security problems. It's possible your
10451vendor has fixed these problems without changing the version number. If you
10452are sure this is the case, you can disable the check by running
10453\"./configure --without-zlib-version-check\".
10454If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10455See http://www.gzip.org/zlib/ for details." >&2;}
10456 { (exit 1); exit 1; }; }
10457 else
10458 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
10459echo "$as_me: WARNING: zlib version may have security problems" >&2;}
10460 fi
10461
10462fi
10463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10464fi
10465
10466
10467
10468{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
10469echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
10470if test "${ac_cv_func_strcasecmp+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473 cat >conftest.$ac_ext <<_ACEOF
10474/* confdefs.h. */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h. */
10479/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
10480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10481#define strcasecmp innocuous_strcasecmp
10482
10483/* System header to define __stub macros and hopefully few prototypes,
10484 which can conflict with char strcasecmp (); below.
10485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10486 <limits.h> exists even on freestanding compilers. */
10487
10488#ifdef __STDC__
10489# include <limits.h>
10490#else
10491# include <assert.h>
10492#endif
10493
10494#undef strcasecmp
10495
10496/* Override any GCC internal prototype to avoid an error.
10497 Use char because int might match the return type of a GCC
10498 builtin and then its argument prototype would still apply. */
10499#ifdef __cplusplus
10500extern "C"
10501#endif
10502char strcasecmp ();
10503/* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506#if defined __stub_strcasecmp || defined __stub___strcasecmp
10507choke me
10508#endif
10509
10510int
10511main ()
10512{
10513return strcasecmp ();
10514 ;
10515 return 0;
10516}
10517_ACEOF
10518rm -f conftest.$ac_objext conftest$ac_exeext
10519if { (ac_try="$ac_link"
10520case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523esac
10524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest$ac_exeext &&
10535 $as_test_x conftest$ac_exeext; then
10536 ac_cv_func_strcasecmp=yes
10537else
10538 echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 ac_cv_func_strcasecmp=no
10542fi
10543
10544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10545 conftest$ac_exeext conftest.$ac_ext
10546fi
10547{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
10548echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
10549if test $ac_cv_func_strcasecmp = yes; then
10550 :
10551else
10552 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
10553echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
10554if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557 ac_check_lib_save_LIBS=$LIBS
10558LIBS="-lresolv $LIBS"
10559cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h. */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
10565
10566/* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569#ifdef __cplusplus
10570extern "C"
10571#endif
10572char strcasecmp ();
10573int
10574main ()
10575{
10576return strcasecmp ();
10577 ;
10578 return 0;
10579}
10580_ACEOF
10581rm -f conftest.$ac_objext conftest$ac_exeext
10582if { (ac_try="$ac_link"
10583case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_link") 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest$ac_exeext &&
10598 $as_test_x conftest$ac_exeext; then
10599 ac_cv_lib_resolv_strcasecmp=yes
10600else
10601 echo "$as_me: failed program was:" >&5
10602sed 's/^/| /' conftest.$ac_ext >&5
10603
10604 ac_cv_lib_resolv_strcasecmp=no
10605fi
10606
10607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10608 conftest$ac_exeext conftest.$ac_ext
10609LIBS=$ac_check_lib_save_LIBS
10610fi
10611{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
10612echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
10613if test $ac_cv_lib_resolv_strcasecmp = yes; then
10614 LIBS="$LIBS -lresolv"
10615fi
10616
10617
10618fi
10619
10620
10621for ac_func in utimes
10622do
10623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10624{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628else
10629 cat >conftest.$ac_ext <<_ACEOF
10630/* confdefs.h. */
10631_ACEOF
10632cat confdefs.h >>conftest.$ac_ext
10633cat >>conftest.$ac_ext <<_ACEOF
10634/* end confdefs.h. */
10635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10637#define $ac_func innocuous_$ac_func
10638
10639/* System header to define __stub macros and hopefully few prototypes,
10640 which can conflict with char $ac_func (); below.
10641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 <limits.h> exists even on freestanding compilers. */
10643
10644#ifdef __STDC__
10645# include <limits.h>
10646#else
10647# include <assert.h>
10648#endif
10649
10650#undef $ac_func
10651
10652/* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10655#ifdef __cplusplus
10656extern "C"
10657#endif
10658char $ac_func ();
10659/* The GNU C library defines this for functions which it implements
10660 to always fail with ENOSYS. Some functions are actually named
10661 something starting with __ and the normal name is an alias. */
10662#if defined __stub_$ac_func || defined __stub___$ac_func
10663choke me
10664#endif
10665
10666int
10667main ()
10668{
10669return $ac_func ();
10670 ;
10671 return 0;
10672}
10673_ACEOF
10674rm -f conftest.$ac_objext conftest$ac_exeext
10675if { (ac_try="$ac_link"
10676case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679esac
10680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_link") 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest$ac_exeext &&
10691 $as_test_x conftest$ac_exeext; then
10692 eval "$as_ac_var=yes"
10693else
10694 echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 eval "$as_ac_var=no"
10698fi
10699
10700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702fi
10703ac_res=`eval echo '${'$as_ac_var'}'`
10704 { echo "$as_me:$LINENO: result: $ac_res" >&5
10705echo "${ECHO_T}$ac_res" >&6; }
10706if test `eval echo '${'$as_ac_var'}'` = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10709_ACEOF
10710
10711else
10712 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
10713echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
10714if test "${ac_cv_lib_c89_utimes+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717 ac_check_lib_save_LIBS=$LIBS
10718LIBS="-lc89 $LIBS"
10719cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725
10726/* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729#ifdef __cplusplus
10730extern "C"
10731#endif
10732char utimes ();
10733int
10734main ()
10735{
10736return utimes ();
10737 ;
10738 return 0;
10739}
10740_ACEOF
10741rm -f conftest.$ac_objext conftest$ac_exeext
10742if { (ac_try="$ac_link"
10743case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746esac
10747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest$ac_exeext &&
10758 $as_test_x conftest$ac_exeext; then
10759 ac_cv_lib_c89_utimes=yes
10760else
10761 echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_cv_lib_c89_utimes=no
10765fi
10766
10767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769LIBS=$ac_check_lib_save_LIBS
10770fi
10771{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
10772echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
10773if test $ac_cv_lib_c89_utimes = yes; then
10774 cat >>confdefs.h <<\_ACEOF
10775#define HAVE_UTIMES 1
10776_ACEOF
10777
10778 LIBS="$LIBS -lc89"
10779fi
10780
10781
10782fi
10783done
10784
10785
10786
10787for ac_header in libutil.h
10788do
10789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795fi
10796ac_res=`eval echo '${'$as_ac_Header'}'`
10797 { echo "$as_me:$LINENO: result: $ac_res" >&5
10798echo "${ECHO_T}$ac_res" >&6; }
10799else
10800 # Is the header compilable?
10801{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10803cat >conftest.$ac_ext <<_ACEOF
10804/* confdefs.h. */
10805_ACEOF
10806cat confdefs.h >>conftest.$ac_ext
10807cat >>conftest.$ac_ext <<_ACEOF
10808/* end confdefs.h. */
10809$ac_includes_default
10810#include <$ac_header>
10811_ACEOF
10812rm -f conftest.$ac_objext
10813if { (ac_try="$ac_compile"
10814case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817esac
10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_compile") 2>conftest.er1
10820 ac_status=$?
10821 grep -v '^ *+' conftest.er1 >conftest.err
10822 rm -f conftest.er1
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } && {
10826 test -z "$ac_c_werror_flag" ||
10827 test ! -s conftest.err
10828 } && test -s conftest.$ac_objext; then
10829 ac_header_compiler=yes
10830else
10831 echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834 ac_header_compiler=no
10835fi
10836
10837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10839echo "${ECHO_T}$ac_header_compiler" >&6; }
10840
10841# Is the header present?
10842{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10844cat >conftest.$ac_ext <<_ACEOF
10845/* confdefs.h. */
10846_ACEOF
10847cat confdefs.h >>conftest.$ac_ext
10848cat >>conftest.$ac_ext <<_ACEOF
10849/* end confdefs.h. */
10850#include <$ac_header>
10851_ACEOF
10852if { (ac_try="$ac_cpp conftest.$ac_ext"
10853case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856esac
10857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } >/dev/null && {
10865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 }; then
10868 ac_header_preproc=yes
10869else
10870 echo "$as_me: failed program was:" >&5
10871sed 's/^/| /' conftest.$ac_ext >&5
10872
10873 ac_header_preproc=no
10874fi
10875
10876rm -f conftest.err conftest.$ac_ext
10877{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10878echo "${ECHO_T}$ac_header_preproc" >&6; }
10879
10880# So? What about this header?
10881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10882 yes:no: )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10887 ac_header_preproc=yes
10888 ;;
10889 no:yes:* )
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10902 ( cat <<\_ASBOX
10903## ------------------------------------------- ##
10904## Report this to openssh-unix-dev@mindrot.org ##
10905## ------------------------------------------- ##
10906_ASBOX
10907 ) | sed "s/^/$as_me: WARNING: /" >&2
10908 ;;
10909esac
10910{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 eval "$as_ac_Header=\$ac_header_preproc"
10916fi
10917ac_res=`eval echo '${'$as_ac_Header'}'`
10918 { echo "$as_me:$LINENO: result: $ac_res" >&5
10919echo "${ECHO_T}$ac_res" >&6; }
10920
10921fi
10922if test `eval echo '${'$as_ac_Header'}'` = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10925_ACEOF
10926
10927fi
10928
10929done
10930
10931{ echo "$as_me:$LINENO: checking for library containing login" >&5
10932echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
10933if test "${ac_cv_search_login+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935else
10936 ac_func_search_save_LIBS=$LIBS
10937cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h. */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h. */
10943
10944/* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10947#ifdef __cplusplus
10948extern "C"
10949#endif
10950char login ();
10951int
10952main ()
10953{
10954return login ();
10955 ;
10956 return 0;
10957}
10958_ACEOF
10959for ac_lib in '' util bsd; do
10960 if test -z "$ac_lib"; then
10961 ac_res="none required"
10962 else
10963 ac_res=-l$ac_lib
10964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10965 fi
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967if { (ac_try="$ac_link"
10968case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext &&
10983 $as_test_x conftest$ac_exeext; then
10984 ac_cv_search_login=$ac_res
10985else
10986 echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
10989
10990fi
10991
10992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10993 conftest$ac_exeext
10994 if test "${ac_cv_search_login+set}" = set; then
10995 break
10996fi
10997done
10998if test "${ac_cv_search_login+set}" = set; then
10999 :
11000else
11001 ac_cv_search_login=no
11002fi
11003rm conftest.$ac_ext
11004LIBS=$ac_func_search_save_LIBS
11005fi
11006{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11007echo "${ECHO_T}$ac_cv_search_login" >&6; }
11008ac_res=$ac_cv_search_login
11009if test "$ac_res" != no; then
11010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11011
11012cat >>confdefs.h <<\_ACEOF
11013#define HAVE_LOGIN 1
11014_ACEOF
11015
11016fi
11017
11018
11019
11020
11021for ac_func in logout updwtmp logwtmp
11022do
11023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11024{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11026if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
11034/* end confdefs.h. */
11035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11037#define $ac_func innocuous_$ac_func
11038
11039/* System header to define __stub macros and hopefully few prototypes,
11040 which can conflict with char $ac_func (); below.
11041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11042 <limits.h> exists even on freestanding compilers. */
11043
11044#ifdef __STDC__
11045# include <limits.h>
11046#else
11047# include <assert.h>
11048#endif
11049
11050#undef $ac_func
11051
11052/* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11055#ifdef __cplusplus
11056extern "C"
11057#endif
11058char $ac_func ();
11059/* The GNU C library defines this for functions which it implements
11060 to always fail with ENOSYS. Some functions are actually named
11061 something starting with __ and the normal name is an alias. */
11062#if defined __stub_$ac_func || defined __stub___$ac_func
11063choke me
11064#endif
11065
11066int
11067main ()
11068{
11069return $ac_func ();
11070 ;
11071 return 0;
11072}
11073_ACEOF
11074rm -f conftest.$ac_objext conftest$ac_exeext
11075if { (ac_try="$ac_link"
11076case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079esac
11080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_link") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && {
11088 test -z "$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 } && test -s conftest$ac_exeext &&
11091 $as_test_x conftest$ac_exeext; then
11092 eval "$as_ac_var=yes"
11093else
11094 echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097 eval "$as_ac_var=no"
11098fi
11099
11100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101 conftest$ac_exeext conftest.$ac_ext
11102fi
11103ac_res=`eval echo '${'$as_ac_var'}'`
11104 { echo "$as_me:$LINENO: result: $ac_res" >&5
11105echo "${ECHO_T}$ac_res" >&6; }
11106if test `eval echo '${'$as_ac_var'}'` = yes; then
11107 cat >>confdefs.h <<_ACEOF
11108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11109_ACEOF
11110
11111fi
11112done
11113
11114
11115
11116for ac_func in strftime
11117do
11118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11119{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11121if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123else
11124 cat >conftest.$ac_ext <<_ACEOF
11125/* confdefs.h. */
11126_ACEOF
11127cat confdefs.h >>conftest.$ac_ext
11128cat >>conftest.$ac_ext <<_ACEOF
11129/* end confdefs.h. */
11130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11132#define $ac_func innocuous_$ac_func
11133
11134/* System header to define __stub macros and hopefully few prototypes,
11135 which can conflict with char $ac_func (); below.
11136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11137 <limits.h> exists even on freestanding compilers. */
11138
11139#ifdef __STDC__
11140# include <limits.h>
11141#else
11142# include <assert.h>
11143#endif
11144
11145#undef $ac_func
11146
11147/* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150#ifdef __cplusplus
11151extern "C"
11152#endif
11153char $ac_func ();
11154/* The GNU C library defines this for functions which it implements
11155 to always fail with ENOSYS. Some functions are actually named
11156 something starting with __ and the normal name is an alias. */
11157#if defined __stub_$ac_func || defined __stub___$ac_func
11158choke me
11159#endif
11160
11161int
11162main ()
11163{
11164return $ac_func ();
11165 ;
11166 return 0;
11167}
11168_ACEOF
11169rm -f conftest.$ac_objext conftest$ac_exeext
11170if { (ac_try="$ac_link"
11171case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174esac
11175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_link") 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext &&
11186 $as_test_x conftest$ac_exeext; then
11187 eval "$as_ac_var=yes"
11188else
11189 echo "$as_me: failed program was:" >&5
11190sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 eval "$as_ac_var=no"
11193fi
11194
11195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11196 conftest$ac_exeext conftest.$ac_ext
11197fi
11198ac_res=`eval echo '${'$as_ac_var'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200echo "${ECHO_T}$ac_res" >&6; }
11201if test `eval echo '${'$as_ac_var'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11204_ACEOF
11205
11206else
11207 # strftime is in -lintl on SCO UNIX.
11208{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11209echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11210if test "${ac_cv_lib_intl_strftime+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 ac_check_lib_save_LIBS=$LIBS
11214LIBS="-lintl $LIBS"
11215cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */
11221
11222/* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11225#ifdef __cplusplus
11226extern "C"
11227#endif
11228char strftime ();
11229int
11230main ()
11231{
11232return strftime ();
11233 ;
11234 return 0;
11235}
11236_ACEOF
11237rm -f conftest.$ac_objext conftest$ac_exeext
11238if { (ac_try="$ac_link"
11239case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242esac
11243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_link") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext &&
11254 $as_test_x conftest$ac_exeext; then
11255 ac_cv_lib_intl_strftime=yes
11256else
11257 echo "$as_me: failed program was:" >&5
11258sed 's/^/| /' conftest.$ac_ext >&5
11259
11260 ac_cv_lib_intl_strftime=no
11261fi
11262
11263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11265LIBS=$ac_check_lib_save_LIBS
11266fi
11267{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11268echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11269if test $ac_cv_lib_intl_strftime = yes; then
11270 cat >>confdefs.h <<\_ACEOF
11271#define HAVE_STRFTIME 1
11272_ACEOF
11273
11274LIBS="-lintl $LIBS"
11275fi
11276
11277fi
11278done
11279
11280
11281# Check for ALTDIRFUNC glob() extension
11282{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11283echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11284cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290
11291 #include <glob.h>
11292 #ifdef GLOB_ALTDIRFUNC
11293 FOUNDIT
11294 #endif
11295
11296_ACEOF
11297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11298 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11299
11300
11301cat >>confdefs.h <<\_ACEOF
11302#define GLOB_HAS_ALTDIRFUNC 1
11303_ACEOF
11304
11305 { echo "$as_me:$LINENO: result: yes" >&5
11306echo "${ECHO_T}yes" >&6; }
11307
11308else
11309
11310 { echo "$as_me:$LINENO: result: no" >&5
11311echo "${ECHO_T}no" >&6; }
11312
11313
11314fi
11315rm -f conftest*
11316
11317
11318# Check for g.gl_matchc glob() extension
11319{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11320echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11321cat >conftest.$ac_ext <<_ACEOF
11322/* confdefs.h. */
11323_ACEOF
11324cat confdefs.h >>conftest.$ac_ext
11325cat >>conftest.$ac_ext <<_ACEOF
11326/* end confdefs.h. */
11327 #include <glob.h>
11328int
11329main ()
11330{
11331glob_t g; g.gl_matchc = 1;
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext
11337if { (ac_try="$ac_compile"
11338case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_compile") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest.$ac_objext; then
11353
11354
11355cat >>confdefs.h <<\_ACEOF
11356#define GLOB_HAS_GL_MATCHC 1
11357_ACEOF
11358
11359 { echo "$as_me:$LINENO: result: yes" >&5
11360echo "${ECHO_T}yes" >&6; }
11361
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366
11367 { echo "$as_me:$LINENO: result: no" >&5
11368echo "${ECHO_T}no" >&6; }
11369
11370
11371fi
11372
11373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374
11375{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11376echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11377if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386#include <glob.h>
11387
11388int
11389main ()
11390{
11391#ifndef GLOB_NOMATCH
11392 (void) GLOB_NOMATCH;
11393#endif
11394
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399rm -f conftest.$ac_objext
11400if { (ac_try="$ac_compile"
11401case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404esac
11405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_compile") 2>conftest.er1
11407 ac_status=$?
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } && {
11413 test -z "$ac_c_werror_flag" ||
11414 test ! -s conftest.err
11415 } && test -s conftest.$ac_objext; then
11416 ac_cv_have_decl_GLOB_NOMATCH=yes
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_cv_have_decl_GLOB_NOMATCH=no
11422fi
11423
11424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425fi
11426{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11427echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11428if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11429
11430cat >>confdefs.h <<_ACEOF
11431#define HAVE_DECL_GLOB_NOMATCH 1
11432_ACEOF
11433
11434
11435else
11436 cat >>confdefs.h <<_ACEOF
11437#define HAVE_DECL_GLOB_NOMATCH 0
11438_ACEOF
11439
11440
11441fi
11442
11443
11444
11445{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
11446echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
11447if test "$cross_compiling" = yes; then
11448
11449 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
11450echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
11451 cat >>confdefs.h <<\_ACEOF
11452#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11453_ACEOF
11454
11455
11456
11457else
11458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464
11465#include <sys/types.h>
11466#include <dirent.h>
11467int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
11468
11469_ACEOF
11470rm -f conftest$ac_exeext
11471if { (ac_try="$ac_link"
11472case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475esac
11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484esac
11485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 { echo "$as_me:$LINENO: result: yes" >&5
11491echo "${ECHO_T}yes" >&6; }
11492else
11493 echo "$as_me: program exited with status $ac_status" >&5
11494echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497( exit $ac_status )
11498
11499 { echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6; }
11501
11502cat >>confdefs.h <<\_ACEOF
11503#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11504_ACEOF
11505
11506
11507fi
11508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11509fi
11510
11511
11512
11513{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
11514echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
11515if test -d "/proc/$$/fd" ; then
11516
11517cat >>confdefs.h <<\_ACEOF
11518#define HAVE_PROC_PID 1
11519_ACEOF
11520
11521 { echo "$as_me:$LINENO: result: yes" >&5
11522echo "${ECHO_T}yes" >&6; }
11523else
11524 { echo "$as_me:$LINENO: result: no" >&5
11525echo "${ECHO_T}no" >&6; }
11526fi
11527
11528# Check whether user wants S/Key support
11529SKEY_MSG="no"
11530
11531# Check whether --with-skey was given.
11532if test "${with_skey+set}" = set; then
11533 withval=$with_skey;
11534 if test "x$withval" != "xno" ; then
11535
11536 if test "x$withval" != "xyes" ; then
11537 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11538 LDFLAGS="$LDFLAGS -L${withval}/lib"
11539 fi
11540
11541
11542cat >>confdefs.h <<\_ACEOF
11543#define SKEY 1
11544_ACEOF
11545
11546 LIBS="-lskey $LIBS"
11547 SKEY_MSG="yes"
11548
11549 { echo "$as_me:$LINENO: checking for s/key support" >&5
11550echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
11551 cat >conftest.$ac_ext <<_ACEOF
11552/* confdefs.h. */
11553_ACEOF
11554cat confdefs.h >>conftest.$ac_ext
11555cat >>conftest.$ac_ext <<_ACEOF
11556/* end confdefs.h. */
11557
11558#include <stdio.h>
11559#include <skey.h>
11560int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
11561
11562_ACEOF
11563rm -f conftest.$ac_objext conftest$ac_exeext
11564if { (ac_try="$ac_link"
11565case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568esac
11569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_link") 2>conftest.er1
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } && {
11577 test -z "$ac_c_werror_flag" ||
11578 test ! -s conftest.err
11579 } && test -s conftest$ac_exeext &&
11580 $as_test_x conftest$ac_exeext; then
11581 { echo "$as_me:$LINENO: result: yes" >&5
11582echo "${ECHO_T}yes" >&6; }
11583else
11584 echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
11586
11587
11588 { echo "$as_me:$LINENO: result: no" >&5
11589echo "${ECHO_T}no" >&6; }
11590 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
11591echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
11592 { (exit 1); exit 1; }; }
11593
11594fi
11595
11596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11597 conftest$ac_exeext conftest.$ac_ext
11598 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
11599echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
11600 cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606#include <stdio.h>
11607 #include <skey.h>
11608int
11609main ()
11610{
11611(void)skeychallenge(NULL,"name","",0);
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext
11617if { (ac_try="$ac_compile"
11618case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
11622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_compile") 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && {
11630 test -z "$ac_c_werror_flag" ||
11631 test ! -s conftest.err
11632 } && test -s conftest.$ac_objext; then
11633 { echo "$as_me:$LINENO: result: yes" >&5
11634echo "${ECHO_T}yes" >&6; }
11635
11636cat >>confdefs.h <<\_ACEOF
11637#define SKEYCHALLENGE_4ARG 1
11638_ACEOF
11639
11640else
11641 echo "$as_me: failed program was:" >&5
11642sed 's/^/| /' conftest.$ac_ext >&5
11643
11644 { echo "$as_me:$LINENO: result: no" >&5
11645echo "${ECHO_T}no" >&6; }
11646
11647fi
11648
11649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 fi
11651
11652
11653fi
11654
11655
11656# Check whether user wants TCP wrappers support
11657TCPW_MSG="no"
11658
11659# Check whether --with-tcp-wrappers was given.
11660if test "${with_tcp_wrappers+set}" = set; then
11661 withval=$with_tcp_wrappers;
11662 if test "x$withval" != "xno" ; then
11663 saved_LIBS="$LIBS"
11664 saved_LDFLAGS="$LDFLAGS"
11665 saved_CPPFLAGS="$CPPFLAGS"
11666 if test -n "${withval}" && \
11667 test "x${withval}" != "xyes"; then
11668 if test -d "${withval}/lib"; then
11669 if test -n "${need_dash_r}"; then
11670 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11671 else
11672 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11673 fi
11674 else
11675 if test -n "${need_dash_r}"; then
11676 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11677 else
11678 LDFLAGS="-L${withval} ${LDFLAGS}"
11679 fi
11680 fi
11681 if test -d "${withval}/include"; then
11682 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11683 else
11684 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11685 fi
11686 fi
11687 LIBWRAP="-lwrap"
11688 LIBS="$LIBWRAP $LIBS"
11689 { echo "$as_me:$LINENO: checking for libwrap" >&5
11690echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
11691 cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
11697
11698#include <sys/types.h>
11699#include <sys/socket.h>
11700#include <netinet/in.h>
11701#include <tcpd.h>
11702 int deny_severity = 0, allow_severity = 0;
11703
11704int
11705main ()
11706{
11707hosts_access(0);
11708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext conftest$ac_exeext
11713if { (ac_try="$ac_link"
11714case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_link") 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } && {
11726 test -z "$ac_c_werror_flag" ||
11727 test ! -s conftest.err
11728 } && test -s conftest$ac_exeext &&
11729 $as_test_x conftest$ac_exeext; then
11730
11731 { echo "$as_me:$LINENO: result: yes" >&5
11732echo "${ECHO_T}yes" >&6; }
11733
11734cat >>confdefs.h <<\_ACEOF
11735#define LIBWRAP 1
11736_ACEOF
11737
11738
11739 TCPW_MSG="yes"
11740
11741else
11742 echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745
11746 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
11747echo "$as_me: error: *** libwrap missing" >&2;}
11748 { (exit 1); exit 1; }; }
11749
11750
11751fi
11752
11753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754 conftest$ac_exeext conftest.$ac_ext
11755 LIBS="$saved_LIBS"
11756 fi
11757
11758
11759fi
11760
11761
11762# Check whether user wants libedit support
11763LIBEDIT_MSG="no"
11764
11765# Check whether --with-libedit was given.
11766if test "${with_libedit+set}" = set; then
11767 withval=$with_libedit; if test "x$withval" != "xno" ; then
11768 if test "x$withval" != "xyes"; then
11769 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11770 if test -n "${need_dash_r}"; then
11771 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11772 else
11773 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11774 fi
11775 fi
11776 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
11777echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
11778if test "${ac_cv_lib_edit_el_init+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780else
11781 ac_check_lib_save_LIBS=$LIBS
11782LIBS="-ledit -lcurses
11783 $LIBS"
11784cat >conftest.$ac_ext <<_ACEOF
11785/* confdefs.h. */
11786_ACEOF
11787cat confdefs.h >>conftest.$ac_ext
11788cat >>conftest.$ac_ext <<_ACEOF
11789/* end confdefs.h. */
11790
11791/* Override any GCC internal prototype to avoid an error.
11792 Use char because int might match the return type of a GCC
11793 builtin and then its argument prototype would still apply. */
11794#ifdef __cplusplus
11795extern "C"
11796#endif
11797char el_init ();
11798int
11799main ()
11800{
11801return el_init ();
11802 ;
11803 return 0;
11804}
11805_ACEOF
11806rm -f conftest.$ac_objext conftest$ac_exeext
11807if { (ac_try="$ac_link"
11808case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } && {
11820 test -z "$ac_c_werror_flag" ||
11821 test ! -s conftest.err
11822 } && test -s conftest$ac_exeext &&
11823 $as_test_x conftest$ac_exeext; then
11824 ac_cv_lib_edit_el_init=yes
11825else
11826 echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_cv_lib_edit_el_init=no
11830fi
11831
11832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11833 conftest$ac_exeext conftest.$ac_ext
11834LIBS=$ac_check_lib_save_LIBS
11835fi
11836{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
11837echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
11838if test $ac_cv_lib_edit_el_init = yes; then
11839
11840cat >>confdefs.h <<\_ACEOF
11841#define USE_LIBEDIT 1
11842_ACEOF
11843
11844 LIBEDIT="-ledit -lcurses"
11845 LIBEDIT_MSG="yes"
11846
11847
11848else
11849 { { echo "$as_me:$LINENO: error: libedit not found" >&5
11850echo "$as_me: error: libedit not found" >&2;}
11851 { (exit 1); exit 1; }; }
11852fi
11853
11854 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
11855echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
11856 cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862
11863#include <histedit.h>
11864int main(void)
11865{
11866 int i = H_SETSIZE;
11867 el_init("", NULL, NULL, NULL);
11868 exit(0);
11869}
11870
11871_ACEOF
11872rm -f conftest.$ac_objext
11873if { (ac_try="$ac_compile"
11874case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_compile") 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } && {
11886 test -z "$ac_c_werror_flag" ||
11887 test ! -s conftest.err
11888 } && test -s conftest.$ac_objext; then
11889 { echo "$as_me:$LINENO: result: yes" >&5
11890echo "${ECHO_T}yes" >&6; }
11891else
11892 echo "$as_me: failed program was:" >&5
11893sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 { echo "$as_me:$LINENO: result: no" >&5
11896echo "${ECHO_T}no" >&6; }
11897 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
11898echo "$as_me: error: libedit version is not compatible" >&2;}
11899 { (exit 1); exit 1; }; }
11900
11901fi
11902
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 fi
11905
11906fi
11907
11908
11909AUDIT_MODULE=none
11910
11911# Check whether --with-audit was given.
11912if test "${with_audit+set}" = set; then
11913 withval=$with_audit;
11914 { echo "$as_me:$LINENO: checking for supported audit module" >&5
11915echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
11916 case "$withval" in
11917 bsm)
11918 { echo "$as_me:$LINENO: result: bsm" >&5
11919echo "${ECHO_T}bsm" >&6; }
11920 AUDIT_MODULE=bsm
11921
11922for ac_header in bsm/audit.h
11923do
11924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929else
11930 cat >conftest.$ac_ext <<_ACEOF
11931/* confdefs.h. */
11932_ACEOF
11933cat confdefs.h >>conftest.$ac_ext
11934cat >>conftest.$ac_ext <<_ACEOF
11935/* end confdefs.h. */
11936
11937#ifdef HAVE_TIME_H
11938# include <time.h>
11939#endif
11940
11941
11942
11943#include <$ac_header>
11944_ACEOF
11945rm -f conftest.$ac_objext
11946if { (ac_try="$ac_compile"
11947case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950esac
11951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_compile") 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && {
11959 test -z "$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11961 } && test -s conftest.$ac_objext; then
11962 eval "$as_ac_Header=yes"
11963else
11964 echo "$as_me: failed program was:" >&5
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
11967 eval "$as_ac_Header=no"
11968fi
11969
11970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971fi
11972ac_res=`eval echo '${'$as_ac_Header'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974echo "${ECHO_T}$ac_res" >&6; }
11975if test `eval echo '${'$as_ac_Header'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11978_ACEOF
11979
11980else
11981 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
11982echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
11983 { (exit 1); exit 1; }; }
11984fi
11985
11986done
11987
11988
11989{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
11990echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
11991if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993else
11994 ac_check_lib_save_LIBS=$LIBS
11995LIBS="-lbsm $LIBS"
11996cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
12001/* end confdefs.h. */
12002
12003/* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009char getaudit ();
12010int
12011main ()
12012{
12013return getaudit ();
12014 ;
12015 return 0;
12016}
12017_ACEOF
12018rm -f conftest.$ac_objext conftest$ac_exeext
12019if { (ac_try="$ac_link"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_link") 2>conftest.er1
12026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest$ac_exeext &&
12035 $as_test_x conftest$ac_exeext; then
12036 ac_cv_lib_bsm_getaudit=yes
12037else
12038 echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_cv_lib_bsm_getaudit=no
12042fi
12043
12044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12045 conftest$ac_exeext conftest.$ac_ext
12046LIBS=$ac_check_lib_save_LIBS
12047fi
12048{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12049echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12050if test $ac_cv_lib_bsm_getaudit = yes; then
12051 cat >>confdefs.h <<_ACEOF
12052#define HAVE_LIBBSM 1
12053_ACEOF
12054
12055 LIBS="-lbsm $LIBS"
12056
12057else
12058 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12059echo "$as_me: error: BSM enabled and required library not found" >&2;}
12060 { (exit 1); exit 1; }; }
12061fi
12062
12063
12064for ac_func in getaudit
12065do
12066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12067{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12069if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071else
12072 cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12080#define $ac_func innocuous_$ac_func
12081
12082/* System header to define __stub macros and hopefully few prototypes,
12083 which can conflict with char $ac_func (); below.
12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12085 <limits.h> exists even on freestanding compilers. */
12086
12087#ifdef __STDC__
12088# include <limits.h>
12089#else
12090# include <assert.h>
12091#endif
12092
12093#undef $ac_func
12094
12095/* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12098#ifdef __cplusplus
12099extern "C"
12100#endif
12101char $ac_func ();
12102/* The GNU C library defines this for functions which it implements
12103 to always fail with ENOSYS. Some functions are actually named
12104 something starting with __ and the normal name is an alias. */
12105#if defined __stub_$ac_func || defined __stub___$ac_func
12106choke me
12107#endif
12108
12109int
12110main ()
12111{
12112return $ac_func ();
12113 ;
12114 return 0;
12115}
12116_ACEOF
12117rm -f conftest.$ac_objext conftest$ac_exeext
12118if { (ac_try="$ac_link"
12119case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_link") 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest$ac_exeext &&
12134 $as_test_x conftest$ac_exeext; then
12135 eval "$as_ac_var=yes"
12136else
12137 echo "$as_me: failed program was:" >&5
12138sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 eval "$as_ac_var=no"
12141fi
12142
12143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144 conftest$ac_exeext conftest.$ac_ext
12145fi
12146ac_res=`eval echo '${'$as_ac_var'}'`
12147 { echo "$as_me:$LINENO: result: $ac_res" >&5
12148echo "${ECHO_T}$ac_res" >&6; }
12149if test `eval echo '${'$as_ac_var'}'` = yes; then
12150 cat >>confdefs.h <<_ACEOF
12151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12152_ACEOF
12153
12154else
12155 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12156echo "$as_me: error: BSM enabled and required function not found" >&2;}
12157 { (exit 1); exit 1; }; }
12158fi
12159done
12160
12161 # These are optional
12162
12163for ac_func in getaudit_addr
12164do
12165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12166{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12168if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170else
12171 cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12179#define $ac_func innocuous_$ac_func
12180
12181/* System header to define __stub macros and hopefully few prototypes,
12182 which can conflict with char $ac_func (); below.
12183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12184 <limits.h> exists even on freestanding compilers. */
12185
12186#ifdef __STDC__
12187# include <limits.h>
12188#else
12189# include <assert.h>
12190#endif
12191
12192#undef $ac_func
12193
12194/* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12197#ifdef __cplusplus
12198extern "C"
12199#endif
12200char $ac_func ();
12201/* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204#if defined __stub_$ac_func || defined __stub___$ac_func
12205choke me
12206#endif
12207
12208int
12209main ()
12210{
12211return $ac_func ();
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 eval "$as_ac_var=yes"
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 eval "$as_ac_var=no"
12240fi
12241
12242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12244fi
12245ac_res=`eval echo '${'$as_ac_var'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247echo "${ECHO_T}$ac_res" >&6; }
12248if test `eval echo '${'$as_ac_var'}'` = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12251_ACEOF
12252
12253fi
12254done
12255
12256
12257cat >>confdefs.h <<\_ACEOF
12258#define USE_BSM_AUDIT 1
12259_ACEOF
12260
12261 ;;
12262 debug)
12263 AUDIT_MODULE=debug
12264 { echo "$as_me:$LINENO: result: debug" >&5
12265echo "${ECHO_T}debug" >&6; }
12266
12267cat >>confdefs.h <<\_ACEOF
12268#define SSH_AUDIT_EVENTS 1
12269_ACEOF
12270
12271 ;;
12272 no)
12273 { echo "$as_me:$LINENO: result: no" >&5
12274echo "${ECHO_T}no" >&6; }
12275 ;;
12276 *)
12277 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12278echo "$as_me: error: Unknown audit module $withval" >&2;}
12279 { (exit 1); exit 1; }; }
12280 ;;
12281 esac
12282
12283fi
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367for ac_func in \
12368 arc4random \
12369 asprintf \
12370 b64_ntop \
12371 __b64_ntop \
12372 b64_pton \
12373 __b64_pton \
12374 bcopy \
12375 bindresvport_sa \
12376 clock \
12377 closefrom \
12378 dirfd \
12379 fchmod \
12380 fchown \
12381 freeaddrinfo \
12382 futimes \
12383 getaddrinfo \
12384 getcwd \
12385 getgrouplist \
12386 getnameinfo \
12387 getopt \
12388 getpeereid \
12389 _getpty \
12390 getrlimit \
12391 getttyent \
12392 glob \
12393 inet_aton \
12394 inet_ntoa \
12395 inet_ntop \
12396 innetgr \
12397 login_getcapbool \
12398 md5_crypt \
12399 memmove \
12400 mkdtemp \
12401 mmap \
12402 ngetaddrinfo \
12403 nsleep \
12404 ogetaddrinfo \
12405 openlog_r \
12406 openpty \
12407 prctl \
12408 pstat \
12409 readpassphrase \
12410 realpath \
12411 recvmsg \
12412 rresvport_af \
12413 sendmsg \
12414 setdtablesize \
12415 setegid \
12416 setenv \
12417 seteuid \
12418 setgroups \
12419 setlogin \
12420 setpcred \
12421 setproctitle \
12422 setregid \
12423 setreuid \
12424 setrlimit \
12425 setsid \
12426 setvbuf \
12427 sigaction \
12428 sigvec \
12429 snprintf \
12430 socketpair \
12431 strdup \
12432 strerror \
12433 strlcat \
12434 strlcpy \
12435 strmode \
12436 strnvis \
12437 strtonum \
12438 strtoll \
12439 strtoul \
12440 sysconf \
12441 tcgetpgrp \
12442 truncate \
12443 unsetenv \
12444 updwtmpx \
12445 vasprintf \
12446 vhangup \
12447 vsnprintf \
12448 waitpid \
12449
12450do
12451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456else
12457 cat >conftest.$ac_ext <<_ACEOF
12458/* confdefs.h. */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h. */
12463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12465#define $ac_func innocuous_$ac_func
12466
12467/* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char $ac_func (); below.
12469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 <limits.h> exists even on freestanding compilers. */
12471
12472#ifdef __STDC__
12473# include <limits.h>
12474#else
12475# include <assert.h>
12476#endif
12477
12478#undef $ac_func
12479
12480/* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483#ifdef __cplusplus
12484extern "C"
12485#endif
12486char $ac_func ();
12487/* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
12490#if defined __stub_$ac_func || defined __stub___$ac_func
12491choke me
12492#endif
12493
12494int
12495main ()
12496{
12497return $ac_func ();
12498 ;
12499 return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext &&
12519 $as_test_x conftest$ac_exeext; then
12520 eval "$as_ac_var=yes"
12521else
12522 echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 eval "$as_ac_var=no"
12526fi
12527
12528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12529 conftest$ac_exeext conftest.$ac_ext
12530fi
12531ac_res=`eval echo '${'$as_ac_var'}'`
12532 { echo "$as_me:$LINENO: result: $ac_res" >&5
12533echo "${ECHO_T}$ac_res" >&6; }
12534if test `eval echo '${'$as_ac_var'}'` = yes; then
12535 cat >>confdefs.h <<_ACEOF
12536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12537_ACEOF
12538
12539fi
12540done
12541
12542
12543# IRIX has a const char return value for gai_strerror()
12544
12545for ac_func in gai_strerror
12546do
12547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12548{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12550if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
12559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12561#define $ac_func innocuous_$ac_func
12562
12563/* System header to define __stub macros and hopefully few prototypes,
12564 which can conflict with char $ac_func (); below.
12565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12566 <limits.h> exists even on freestanding compilers. */
12567
12568#ifdef __STDC__
12569# include <limits.h>
12570#else
12571# include <assert.h>
12572#endif
12573
12574#undef $ac_func
12575
12576/* Override any GCC internal prototype to avoid an error.
12577 Use char because int might match the return type of a GCC
12578 builtin and then its argument prototype would still apply. */
12579#ifdef __cplusplus
12580extern "C"
12581#endif
12582char $ac_func ();
12583/* The GNU C library defines this for functions which it implements
12584 to always fail with ENOSYS. Some functions are actually named
12585 something starting with __ and the normal name is an alias. */
12586#if defined __stub_$ac_func || defined __stub___$ac_func
12587choke me
12588#endif
12589
12590int
12591main ()
12592{
12593return $ac_func ();
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext conftest$ac_exeext
12599if { (ac_try="$ac_link"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest$ac_exeext &&
12615 $as_test_x conftest$ac_exeext; then
12616 eval "$as_ac_var=yes"
12617else
12618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 eval "$as_ac_var=no"
12622fi
12623
12624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625 conftest$ac_exeext conftest.$ac_ext
12626fi
12627ac_res=`eval echo '${'$as_ac_var'}'`
12628 { echo "$as_me:$LINENO: result: $ac_res" >&5
12629echo "${ECHO_T}$ac_res" >&6; }
12630if test `eval echo '${'$as_ac_var'}'` = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12633_ACEOF
12634
12635 cat >>confdefs.h <<\_ACEOF
12636#define HAVE_GAI_STRERROR 1
12637_ACEOF
12638
12639 cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
12645
12646#include <sys/types.h>
12647#include <sys/socket.h>
12648#include <netdb.h>
12649
12650const char *gai_strerror(int);
12651int
12652main ()
12653{
12654
12655char *str;
12656
12657str = gai_strerror(0);
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (ac_try="$ac_compile"
12664case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
12679
12680
12681cat >>confdefs.h <<\_ACEOF
12682#define HAVE_CONST_GAI_STRERROR_PROTO 1
12683_ACEOF
12684
12685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689
12690fi
12691
12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693fi
12694done
12695
12696
12697{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
12698echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
12699if test "${ac_cv_search_nanosleep+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702 ac_func_search_save_LIBS=$LIBS
12703cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
12709
12710/* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12713#ifdef __cplusplus
12714extern "C"
12715#endif
12716char nanosleep ();
12717int
12718main ()
12719{
12720return nanosleep ();
12721 ;
12722 return 0;
12723}
12724_ACEOF
12725for ac_lib in '' rt posix4; do
12726 if test -z "$ac_lib"; then
12727 ac_res="none required"
12728 else
12729 ac_res=-l$ac_lib
12730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12731 fi
12732 rm -f conftest.$ac_objext conftest$ac_exeext
12733if { (ac_try="$ac_link"
12734case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737esac
12738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_link") 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest$ac_exeext &&
12749 $as_test_x conftest$ac_exeext; then
12750 ac_cv_search_nanosleep=$ac_res
12751else
12752 echo "$as_me: failed program was:" >&5
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
12755
12756fi
12757
12758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12759 conftest$ac_exeext
12760 if test "${ac_cv_search_nanosleep+set}" = set; then
12761 break
12762fi
12763done
12764if test "${ac_cv_search_nanosleep+set}" = set; then
12765 :
12766else
12767 ac_cv_search_nanosleep=no
12768fi
12769rm conftest.$ac_ext
12770LIBS=$ac_func_search_save_LIBS
12771fi
12772{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
12773echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
12774ac_res=$ac_cv_search_nanosleep
12775if test "$ac_res" != no; then
12776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12777
12778cat >>confdefs.h <<\_ACEOF
12779#define HAVE_NANOSLEEP 1
12780_ACEOF
12781
12782fi
12783
12784
12785{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
12786echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
12787if test "${ac_cv_have_decl_getrusage+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790 cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796$ac_includes_default
12797int
12798main ()
12799{
12800#ifndef getrusage
12801 (void) getrusage;
12802#endif
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (ac_try="$ac_compile"
12810case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12813esac
12814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_compile") 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest.$ac_objext; then
12825 ac_cv_have_decl_getrusage=yes
12826else
12827 echo "$as_me: failed program was:" >&5
12828sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ac_cv_have_decl_getrusage=no
12831fi
12832
12833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834fi
12835{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
12836echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
12837if test $ac_cv_have_decl_getrusage = yes; then
12838
12839for ac_func in getrusage
12840do
12841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12842{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847 cat >conftest.$ac_ext <<_ACEOF
12848/* confdefs.h. */
12849_ACEOF
12850cat confdefs.h >>conftest.$ac_ext
12851cat >>conftest.$ac_ext <<_ACEOF
12852/* end confdefs.h. */
12853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12855#define $ac_func innocuous_$ac_func
12856
12857/* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char $ac_func (); below.
12859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860 <limits.h> exists even on freestanding compilers. */
12861
12862#ifdef __STDC__
12863# include <limits.h>
12864#else
12865# include <assert.h>
12866#endif
12867
12868#undef $ac_func
12869
12870/* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12873#ifdef __cplusplus
12874extern "C"
12875#endif
12876char $ac_func ();
12877/* The GNU C library defines this for functions which it implements
12878 to always fail with ENOSYS. Some functions are actually named
12879 something starting with __ and the normal name is an alias. */
12880#if defined __stub_$ac_func || defined __stub___$ac_func
12881choke me
12882#endif
12883
12884int
12885main ()
12886{
12887return $ac_func ();
12888 ;
12889 return 0;
12890}
12891_ACEOF
12892rm -f conftest.$ac_objext conftest$ac_exeext
12893if { (ac_try="$ac_link"
12894case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897esac
12898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_link") 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest$ac_exeext &&
12909 $as_test_x conftest$ac_exeext; then
12910 eval "$as_ac_var=yes"
12911else
12912 echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 eval "$as_ac_var=no"
12916fi
12917
12918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12919 conftest$ac_exeext conftest.$ac_ext
12920fi
12921ac_res=`eval echo '${'$as_ac_var'}'`
12922 { echo "$as_me:$LINENO: result: $ac_res" >&5
12923echo "${ECHO_T}$ac_res" >&6; }
12924if test `eval echo '${'$as_ac_var'}'` = yes; then
12925 cat >>confdefs.h <<_ACEOF
12926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12927_ACEOF
12928
12929fi
12930done
12931
12932fi
12933
12934{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
12935echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
12936if test "${ac_cv_have_decl_strsep+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 cat >conftest.$ac_ext <<_ACEOF
12940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945
12946#ifdef HAVE_STRING_H
12947# include <string.h>
12948#endif
12949
12950
12951int
12952main ()
12953{
12954#ifndef strsep
12955 (void) strsep;
12956#endif
12957
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext
12963if { (ac_try="$ac_compile"
12964case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_compile") 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } && {
12976 test -z "$ac_c_werror_flag" ||
12977 test ! -s conftest.err
12978 } && test -s conftest.$ac_objext; then
12979 ac_cv_have_decl_strsep=yes
12980else
12981 echo "$as_me: failed program was:" >&5
12982sed 's/^/| /' conftest.$ac_ext >&5
12983
12984 ac_cv_have_decl_strsep=no
12985fi
12986
12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988fi
12989{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
12990echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
12991if test $ac_cv_have_decl_strsep = yes; then
12992
12993for ac_func in strsep
12994do
12995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001 cat >conftest.$ac_ext <<_ACEOF
13002/* confdefs.h. */
13003_ACEOF
13004cat confdefs.h >>conftest.$ac_ext
13005cat >>conftest.$ac_ext <<_ACEOF
13006/* end confdefs.h. */
13007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13009#define $ac_func innocuous_$ac_func
13010
13011/* System header to define __stub macros and hopefully few prototypes,
13012 which can conflict with char $ac_func (); below.
13013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13014 <limits.h> exists even on freestanding compilers. */
13015
13016#ifdef __STDC__
13017# include <limits.h>
13018#else
13019# include <assert.h>
13020#endif
13021
13022#undef $ac_func
13023
13024/* Override any GCC internal prototype to avoid an error.
13025 Use char because int might match the return type of a GCC
13026 builtin and then its argument prototype would still apply. */
13027#ifdef __cplusplus
13028extern "C"
13029#endif
13030char $ac_func ();
13031/* The GNU C library defines this for functions which it implements
13032 to always fail with ENOSYS. Some functions are actually named
13033 something starting with __ and the normal name is an alias. */
13034#if defined __stub_$ac_func || defined __stub___$ac_func
13035choke me
13036#endif
13037
13038int
13039main ()
13040{
13041return $ac_func ();
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046rm -f conftest.$ac_objext conftest$ac_exeext
13047if { (ac_try="$ac_link"
13048case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_link") 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && {
13060 test -z "$ac_c_werror_flag" ||
13061 test ! -s conftest.err
13062 } && test -s conftest$ac_exeext &&
13063 $as_test_x conftest$ac_exeext; then
13064 eval "$as_ac_var=yes"
13065else
13066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 eval "$as_ac_var=no"
13070fi
13071
13072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13073 conftest$ac_exeext conftest.$ac_ext
13074fi
13075ac_res=`eval echo '${'$as_ac_var'}'`
13076 { echo "$as_me:$LINENO: result: $ac_res" >&5
13077echo "${ECHO_T}$ac_res" >&6; }
13078if test `eval echo '${'$as_ac_var'}'` = yes; then
13079 cat >>confdefs.h <<_ACEOF
13080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13081_ACEOF
13082
13083fi
13084done
13085
13086fi
13087
13088
13089{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13090echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13091if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 cat >conftest.$ac_ext <<_ACEOF
13095/* confdefs.h. */
13096_ACEOF
13097cat confdefs.h >>conftest.$ac_ext
13098cat >>conftest.$ac_ext <<_ACEOF
13099/* end confdefs.h. */
13100#include <termios.h>
13101
13102
13103int
13104main ()
13105{
13106#ifndef tcsendbreak
13107 (void) tcsendbreak;
13108#endif
13109
13110 ;
13111 return 0;
13112}
13113_ACEOF
13114rm -f conftest.$ac_objext
13115if { (ac_try="$ac_compile"
13116case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119esac
13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.$ac_objext; then
13131 ac_cv_have_decl_tcsendbreak=yes
13132else
13133 echo "$as_me: failed program was:" >&5
13134sed 's/^/| /' conftest.$ac_ext >&5
13135
13136 ac_cv_have_decl_tcsendbreak=no
13137fi
13138
13139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140fi
13141{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13142echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13143if test $ac_cv_have_decl_tcsendbreak = yes; then
13144 cat >>confdefs.h <<\_ACEOF
13145#define HAVE_TCSENDBREAK 1
13146_ACEOF
13147
13148else
13149
13150for ac_func in tcsendbreak
13151do
13152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13153{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13155if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157else
13158 cat >conftest.$ac_ext <<_ACEOF
13159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
13163/* end confdefs.h. */
13164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13166#define $ac_func innocuous_$ac_func
13167
13168/* System header to define __stub macros and hopefully few prototypes,
13169 which can conflict with char $ac_func (); below.
13170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13171 <limits.h> exists even on freestanding compilers. */
13172
13173#ifdef __STDC__
13174# include <limits.h>
13175#else
13176# include <assert.h>
13177#endif
13178
13179#undef $ac_func
13180
13181/* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184#ifdef __cplusplus
13185extern "C"
13186#endif
13187char $ac_func ();
13188/* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191#if defined __stub_$ac_func || defined __stub___$ac_func
13192choke me
13193#endif
13194
13195int
13196main ()
13197{
13198return $ac_func ();
13199 ;
13200 return 0;
13201}
13202_ACEOF
13203rm -f conftest.$ac_objext conftest$ac_exeext
13204if { (ac_try="$ac_link"
13205case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13208esac
13209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_link") 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } && {
13217 test -z "$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13219 } && test -s conftest$ac_exeext &&
13220 $as_test_x conftest$ac_exeext; then
13221 eval "$as_ac_var=yes"
13222else
13223 echo "$as_me: failed program was:" >&5
13224sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 eval "$as_ac_var=no"
13227fi
13228
13229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13230 conftest$ac_exeext conftest.$ac_ext
13231fi
13232ac_res=`eval echo '${'$as_ac_var'}'`
13233 { echo "$as_me:$LINENO: result: $ac_res" >&5
13234echo "${ECHO_T}$ac_res" >&6; }
13235if test `eval echo '${'$as_ac_var'}'` = yes; then
13236 cat >>confdefs.h <<_ACEOF
13237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13238_ACEOF
13239
13240fi
13241done
13242
13243fi
13244
13245
13246{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
13247echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
13248if test "${ac_cv_have_decl_h_errno+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251 cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h. */
13257#include <netdb.h>
13258
13259int
13260main ()
13261{
13262#ifndef h_errno
13263 (void) h_errno;
13264#endif
13265
13266 ;
13267 return 0;
13268}
13269_ACEOF
13270rm -f conftest.$ac_objext
13271if { (ac_try="$ac_compile"
13272case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275esac
13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest.$ac_objext; then
13287 ac_cv_have_decl_h_errno=yes
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 ac_cv_have_decl_h_errno=no
13293fi
13294
13295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296fi
13297{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
13298echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
13299if test $ac_cv_have_decl_h_errno = yes; then
13300
13301cat >>confdefs.h <<_ACEOF
13302#define HAVE_DECL_H_ERRNO 1
13303_ACEOF
13304
13305
13306else
13307 cat >>confdefs.h <<_ACEOF
13308#define HAVE_DECL_H_ERRNO 0
13309_ACEOF
13310
13311
13312fi
13313
13314
13315
13316{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13317echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13318if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13320else
13321 cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327
13328#include <sys/types.h>
13329#include <sys/socket.h>
13330
13331
13332int
13333main ()
13334{
13335#ifndef SHUT_RD
13336 (void) SHUT_RD;
13337#endif
13338
13339 ;
13340 return 0;
13341}
13342_ACEOF
13343rm -f conftest.$ac_objext
13344if { (ac_try="$ac_compile"
13345case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_compile") 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && {
13357 test -z "$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13359 } && test -s conftest.$ac_objext; then
13360 ac_cv_have_decl_SHUT_RD=yes
13361else
13362 echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 ac_cv_have_decl_SHUT_RD=no
13366fi
13367
13368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369fi
13370{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
13371echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
13372if test $ac_cv_have_decl_SHUT_RD = yes; then
13373
13374cat >>confdefs.h <<_ACEOF
13375#define HAVE_DECL_SHUT_RD 1
13376_ACEOF
13377
13378
13379else
13380 cat >>confdefs.h <<_ACEOF
13381#define HAVE_DECL_SHUT_RD 0
13382_ACEOF
13383
13384
13385fi
13386
13387
13388
13389{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
13390echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
13391if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394 cat >conftest.$ac_ext <<_ACEOF
13395/* confdefs.h. */
13396_ACEOF
13397cat confdefs.h >>conftest.$ac_ext
13398cat >>conftest.$ac_ext <<_ACEOF
13399/* end confdefs.h. */
13400
13401#include <sys/types.h>
13402#ifdef HAVE_SYS_STAT_H
13403# include <sys/stat.h>
13404#endif
13405#ifdef HAVE_FCNTL_H
13406# include <fcntl.h>
13407#endif
13408
13409
13410int
13411main ()
13412{
13413#ifndef O_NONBLOCK
13414 (void) O_NONBLOCK;
13415#endif
13416
13417 ;
13418 return 0;
13419}
13420_ACEOF
13421rm -f conftest.$ac_objext
13422if { (ac_try="$ac_compile"
13423case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_compile") 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } && {
13435 test -z "$ac_c_werror_flag" ||
13436 test ! -s conftest.err
13437 } && test -s conftest.$ac_objext; then
13438 ac_cv_have_decl_O_NONBLOCK=yes
13439else
13440 echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
13443 ac_cv_have_decl_O_NONBLOCK=no
13444fi
13445
13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447fi
13448{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
13449echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
13450if test $ac_cv_have_decl_O_NONBLOCK = yes; then
13451
13452cat >>confdefs.h <<_ACEOF
13453#define HAVE_DECL_O_NONBLOCK 1
13454_ACEOF
13455
13456
13457else
13458 cat >>confdefs.h <<_ACEOF
13459#define HAVE_DECL_O_NONBLOCK 0
13460_ACEOF
13461
13462
13463fi
13464
13465
13466
13467{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
13468echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
13469if test "${ac_cv_have_decl_writev+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
13472 cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478
13479#include <sys/types.h>
13480#include <sys/uio.h>
13481#include <unistd.h>
13482
13483
13484int
13485main ()
13486{
13487#ifndef writev
13488 (void) writev;
13489#endif
13490
13491 ;
13492 return 0;
13493}
13494_ACEOF
13495rm -f conftest.$ac_objext
13496if { (ac_try="$ac_compile"
13497case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500esac
13501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_compile") 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } && {
13509 test -z "$ac_c_werror_flag" ||
13510 test ! -s conftest.err
13511 } && test -s conftest.$ac_objext; then
13512 ac_cv_have_decl_writev=yes
13513else
13514 echo "$as_me: failed program was:" >&5
13515sed 's/^/| /' conftest.$ac_ext >&5
13516
13517 ac_cv_have_decl_writev=no
13518fi
13519
13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521fi
13522{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
13523echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
13524if test $ac_cv_have_decl_writev = yes; then
13525
13526cat >>confdefs.h <<_ACEOF
13527#define HAVE_DECL_WRITEV 1
13528_ACEOF
13529
13530
13531else
13532 cat >>confdefs.h <<_ACEOF
13533#define HAVE_DECL_WRITEV 0
13534_ACEOF
13535
13536
13537fi
13538
13539
13540
13541
13542for ac_func in setresuid
13543do
13544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13545{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549else
13550 cat >conftest.$ac_ext <<_ACEOF
13551/* confdefs.h. */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
13555/* end confdefs.h. */
13556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13558#define $ac_func innocuous_$ac_func
13559
13560/* System header to define __stub macros and hopefully few prototypes,
13561 which can conflict with char $ac_func (); below.
13562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13563 <limits.h> exists even on freestanding compilers. */
13564
13565#ifdef __STDC__
13566# include <limits.h>
13567#else
13568# include <assert.h>
13569#endif
13570
13571#undef $ac_func
13572
13573/* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13576#ifdef __cplusplus
13577extern "C"
13578#endif
13579char $ac_func ();
13580/* The GNU C library defines this for functions which it implements
13581 to always fail with ENOSYS. Some functions are actually named
13582 something starting with __ and the normal name is an alias. */
13583#if defined __stub_$ac_func || defined __stub___$ac_func
13584choke me
13585#endif
13586
13587int
13588main ()
13589{
13590return $ac_func ();
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext conftest$ac_exeext
13596if { (ac_try="$ac_link"
13597case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600esac
13601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_link") 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } && {
13609 test -z "$ac_c_werror_flag" ||
13610 test ! -s conftest.err
13611 } && test -s conftest$ac_exeext &&
13612 $as_test_x conftest$ac_exeext; then
13613 eval "$as_ac_var=yes"
13614else
13615 echo "$as_me: failed program was:" >&5
13616sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 eval "$as_ac_var=no"
13619fi
13620
13621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13622 conftest$ac_exeext conftest.$ac_ext
13623fi
13624ac_res=`eval echo '${'$as_ac_var'}'`
13625 { echo "$as_me:$LINENO: result: $ac_res" >&5
13626echo "${ECHO_T}$ac_res" >&6; }
13627if test `eval echo '${'$as_ac_var'}'` = yes; then
13628 cat >>confdefs.h <<_ACEOF
13629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13630_ACEOF
13631
13632 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
13633echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
13634 if test "$cross_compiling" = yes; then
13635 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
13636echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
13637
13638else
13639 cat >conftest.$ac_ext <<_ACEOF
13640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
13645
13646#include <stdlib.h>
13647#include <errno.h>
13648int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
13649
13650_ACEOF
13651rm -f conftest$ac_exeext
13652if { (ac_try="$ac_link"
13653case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656esac
13657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_link") 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 { echo "$as_me:$LINENO: result: yes" >&5
13672echo "${ECHO_T}yes" >&6; }
13673else
13674 echo "$as_me: program exited with status $ac_status" >&5
13675echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678( exit $ac_status )
13679
13680cat >>confdefs.h <<\_ACEOF
13681#define BROKEN_SETRESUID 1
13682_ACEOF
13683
13684 { echo "$as_me:$LINENO: result: not implemented" >&5
13685echo "${ECHO_T}not implemented" >&6; }
13686fi
13687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13688fi
13689
13690
13691
13692fi
13693done
13694
13695
13696
13697for ac_func in setresgid
13698do
13699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13700{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13702if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704else
13705 cat >conftest.$ac_ext <<_ACEOF
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
13710/* end confdefs.h. */
13711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13713#define $ac_func innocuous_$ac_func
13714
13715/* System header to define __stub macros and hopefully few prototypes,
13716 which can conflict with char $ac_func (); below.
13717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13718 <limits.h> exists even on freestanding compilers. */
13719
13720#ifdef __STDC__
13721# include <limits.h>
13722#else
13723# include <assert.h>
13724#endif
13725
13726#undef $ac_func
13727
13728/* Override any GCC internal prototype to avoid an error.
13729 Use char because int might match the return type of a GCC
13730 builtin and then its argument prototype would still apply. */
13731#ifdef __cplusplus
13732extern "C"
13733#endif
13734char $ac_func ();
13735/* The GNU C library defines this for functions which it implements
13736 to always fail with ENOSYS. Some functions are actually named
13737 something starting with __ and the normal name is an alias. */
13738#if defined __stub_$ac_func || defined __stub___$ac_func
13739choke me
13740#endif
13741
13742int
13743main ()
13744{
13745return $ac_func ();
13746 ;
13747 return 0;
13748}
13749_ACEOF
13750rm -f conftest.$ac_objext conftest$ac_exeext
13751if { (ac_try="$ac_link"
13752case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_link") 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } && {
13764 test -z "$ac_c_werror_flag" ||
13765 test ! -s conftest.err
13766 } && test -s conftest$ac_exeext &&
13767 $as_test_x conftest$ac_exeext; then
13768 eval "$as_ac_var=yes"
13769else
13770 echo "$as_me: failed program was:" >&5
13771sed 's/^/| /' conftest.$ac_ext >&5
13772
13773 eval "$as_ac_var=no"
13774fi
13775
13776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13777 conftest$ac_exeext conftest.$ac_ext
13778fi
13779ac_res=`eval echo '${'$as_ac_var'}'`
13780 { echo "$as_me:$LINENO: result: $ac_res" >&5
13781echo "${ECHO_T}$ac_res" >&6; }
13782if test `eval echo '${'$as_ac_var'}'` = yes; then
13783 cat >>confdefs.h <<_ACEOF
13784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13785_ACEOF
13786
13787 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
13788echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
13789 if test "$cross_compiling" = yes; then
13790 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
13791echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
13792
13793else
13794 cat >conftest.$ac_ext <<_ACEOF
13795/* confdefs.h. */
13796_ACEOF
13797cat confdefs.h >>conftest.$ac_ext
13798cat >>conftest.$ac_ext <<_ACEOF
13799/* end confdefs.h. */
13800
13801#include <stdlib.h>
13802#include <errno.h>
13803int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
13804
13805_ACEOF
13806rm -f conftest$ac_exeext
13807if { (ac_try="$ac_link"
13808case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811esac
13812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_link") 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820esac
13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 { echo "$as_me:$LINENO: result: yes" >&5
13827echo "${ECHO_T}yes" >&6; }
13828else
13829 echo "$as_me: program exited with status $ac_status" >&5
13830echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833( exit $ac_status )
13834
13835cat >>confdefs.h <<\_ACEOF
13836#define BROKEN_SETRESGID 1
13837_ACEOF
13838
13839 { echo "$as_me:$LINENO: result: not implemented" >&5
13840echo "${ECHO_T}not implemented" >&6; }
13841fi
13842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13843fi
13844
13845
13846
13847fi
13848done
13849
13850
13851
13852
13853for ac_func in gettimeofday time
13854do
13855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13856{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13858if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860else
13861 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13869#define $ac_func innocuous_$ac_func
13870
13871/* System header to define __stub macros and hopefully few prototypes,
13872 which can conflict with char $ac_func (); below.
13873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874 <limits.h> exists even on freestanding compilers. */
13875
13876#ifdef __STDC__
13877# include <limits.h>
13878#else
13879# include <assert.h>
13880#endif
13881
13882#undef $ac_func
13883
13884/* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13887#ifdef __cplusplus
13888extern "C"
13889#endif
13890char $ac_func ();
13891/* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894#if defined __stub_$ac_func || defined __stub___$ac_func
13895choke me
13896#endif
13897
13898int
13899main ()
13900{
13901return $ac_func ();
13902 ;
13903 return 0;
13904}
13905_ACEOF
13906rm -f conftest.$ac_objext conftest$ac_exeext
13907if { (ac_try="$ac_link"
13908case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911esac
13912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_link") 2>conftest.er1
13914 ac_status=$?
13915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -f conftest.er1
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest$ac_exeext &&
13923 $as_test_x conftest$ac_exeext; then
13924 eval "$as_ac_var=yes"
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 eval "$as_ac_var=no"
13930fi
13931
13932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13933 conftest$ac_exeext conftest.$ac_ext
13934fi
13935ac_res=`eval echo '${'$as_ac_var'}'`
13936 { echo "$as_me:$LINENO: result: $ac_res" >&5
13937echo "${ECHO_T}$ac_res" >&6; }
13938if test `eval echo '${'$as_ac_var'}'` = yes; then
13939 cat >>confdefs.h <<_ACEOF
13940#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13941_ACEOF
13942
13943fi
13944done
13945
13946
13947
13948
13949
13950
13951
13952for ac_func in endutent getutent getutid getutline pututline setutent
13953do
13954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959else
13960 cat >conftest.$ac_ext <<_ACEOF
13961/* confdefs.h. */
13962_ACEOF
13963cat confdefs.h >>conftest.$ac_ext
13964cat >>conftest.$ac_ext <<_ACEOF
13965/* end confdefs.h. */
13966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13968#define $ac_func innocuous_$ac_func
13969
13970/* System header to define __stub macros and hopefully few prototypes,
13971 which can conflict with char $ac_func (); below.
13972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13973 <limits.h> exists even on freestanding compilers. */
13974
13975#ifdef __STDC__
13976# include <limits.h>
13977#else
13978# include <assert.h>
13979#endif
13980
13981#undef $ac_func
13982
13983/* Override any GCC internal prototype to avoid an error.
13984 Use char because int might match the return type of a GCC
13985 builtin and then its argument prototype would still apply. */
13986#ifdef __cplusplus
13987extern "C"
13988#endif
13989char $ac_func ();
13990/* The GNU C library defines this for functions which it implements
13991 to always fail with ENOSYS. Some functions are actually named
13992 something starting with __ and the normal name is an alias. */
13993#if defined __stub_$ac_func || defined __stub___$ac_func
13994choke me
13995#endif
13996
13997int
13998main ()
13999{
14000return $ac_func ();
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext conftest$ac_exeext
14006if { (ac_try="$ac_link"
14007case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010esac
14011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_link") 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } && {
14019 test -z "$ac_c_werror_flag" ||
14020 test ! -s conftest.err
14021 } && test -s conftest$ac_exeext &&
14022 $as_test_x conftest$ac_exeext; then
14023 eval "$as_ac_var=yes"
14024else
14025 echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
14027
14028 eval "$as_ac_var=no"
14029fi
14030
14031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14032 conftest$ac_exeext conftest.$ac_ext
14033fi
14034ac_res=`eval echo '${'$as_ac_var'}'`
14035 { echo "$as_me:$LINENO: result: $ac_res" >&5
14036echo "${ECHO_T}$ac_res" >&6; }
14037if test `eval echo '${'$as_ac_var'}'` = yes; then
14038 cat >>confdefs.h <<_ACEOF
14039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14040_ACEOF
14041
14042fi
14043done
14044
14045
14046for ac_func in utmpname
14047do
14048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14049{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053else
14054 cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
14059/* end confdefs.h. */
14060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14062#define $ac_func innocuous_$ac_func
14063
14064/* System header to define __stub macros and hopefully few prototypes,
14065 which can conflict with char $ac_func (); below.
14066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14067 <limits.h> exists even on freestanding compilers. */
14068
14069#ifdef __STDC__
14070# include <limits.h>
14071#else
14072# include <assert.h>
14073#endif
14074
14075#undef $ac_func
14076
14077/* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14080#ifdef __cplusplus
14081extern "C"
14082#endif
14083char $ac_func ();
14084/* The GNU C library defines this for functions which it implements
14085 to always fail with ENOSYS. Some functions are actually named
14086 something starting with __ and the normal name is an alias. */
14087#if defined __stub_$ac_func || defined __stub___$ac_func
14088choke me
14089#endif
14090
14091int
14092main ()
14093{
14094return $ac_func ();
14095 ;
14096 return 0;
14097}
14098_ACEOF
14099rm -f conftest.$ac_objext conftest$ac_exeext
14100if { (ac_try="$ac_link"
14101case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104esac
14105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_link") 2>conftest.er1
14107 ac_status=$?
14108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } && {
14113 test -z "$ac_c_werror_flag" ||
14114 test ! -s conftest.err
14115 } && test -s conftest$ac_exeext &&
14116 $as_test_x conftest$ac_exeext; then
14117 eval "$as_ac_var=yes"
14118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122 eval "$as_ac_var=no"
14123fi
14124
14125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14126 conftest$ac_exeext conftest.$ac_ext
14127fi
14128ac_res=`eval echo '${'$as_ac_var'}'`
14129 { echo "$as_me:$LINENO: result: $ac_res" >&5
14130echo "${ECHO_T}$ac_res" >&6; }
14131if test `eval echo '${'$as_ac_var'}'` = yes; then
14132 cat >>confdefs.h <<_ACEOF
14133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14134_ACEOF
14135
14136fi
14137done
14138
14139
14140
14141
14142
14143
14144for ac_func in endutxent getutxent getutxid getutxline pututxline
14145do
14146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151else
14152 cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14160#define $ac_func innocuous_$ac_func
14161
14162/* System header to define __stub macros and hopefully few prototypes,
14163 which can conflict with char $ac_func (); below.
14164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14165 <limits.h> exists even on freestanding compilers. */
14166
14167#ifdef __STDC__
14168# include <limits.h>
14169#else
14170# include <assert.h>
14171#endif
14172
14173#undef $ac_func
14174
14175/* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14178#ifdef __cplusplus
14179extern "C"
14180#endif
14181char $ac_func ();
14182/* The GNU C library defines this for functions which it implements
14183 to always fail with ENOSYS. Some functions are actually named
14184 something starting with __ and the normal name is an alias. */
14185#if defined __stub_$ac_func || defined __stub___$ac_func
14186choke me
14187#endif
14188
14189int
14190main ()
14191{
14192return $ac_func ();
14193 ;
14194 return 0;
14195}
14196_ACEOF
14197rm -f conftest.$ac_objext conftest$ac_exeext
14198if { (ac_try="$ac_link"
14199case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest$ac_exeext &&
14214 $as_test_x conftest$ac_exeext; then
14215 eval "$as_ac_var=yes"
14216else
14217 echo "$as_me: failed program was:" >&5
14218sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 eval "$as_ac_var=no"
14221fi
14222
14223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14224 conftest$ac_exeext conftest.$ac_ext
14225fi
14226ac_res=`eval echo '${'$as_ac_var'}'`
14227 { echo "$as_me:$LINENO: result: $ac_res" >&5
14228echo "${ECHO_T}$ac_res" >&6; }
14229if test `eval echo '${'$as_ac_var'}'` = yes; then
14230 cat >>confdefs.h <<_ACEOF
14231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14232_ACEOF
14233
14234fi
14235done
14236
14237
14238
14239for ac_func in setutxent utmpxname
14240do
14241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14242{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14246else
14247 cat >conftest.$ac_ext <<_ACEOF
14248/* confdefs.h. */
14249_ACEOF
14250cat confdefs.h >>conftest.$ac_ext
14251cat >>conftest.$ac_ext <<_ACEOF
14252/* end confdefs.h. */
14253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14255#define $ac_func innocuous_$ac_func
14256
14257/* System header to define __stub macros and hopefully few prototypes,
14258 which can conflict with char $ac_func (); below.
14259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14260 <limits.h> exists even on freestanding compilers. */
14261
14262#ifdef __STDC__
14263# include <limits.h>
14264#else
14265# include <assert.h>
14266#endif
14267
14268#undef $ac_func
14269
14270/* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14273#ifdef __cplusplus
14274extern "C"
14275#endif
14276char $ac_func ();
14277/* The GNU C library defines this for functions which it implements
14278 to always fail with ENOSYS. Some functions are actually named
14279 something starting with __ and the normal name is an alias. */
14280#if defined __stub_$ac_func || defined __stub___$ac_func
14281choke me
14282#endif
14283
14284int
14285main ()
14286{
14287return $ac_func ();
14288 ;
14289 return 0;
14290}
14291_ACEOF
14292rm -f conftest.$ac_objext conftest$ac_exeext
14293if { (ac_try="$ac_link"
14294case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14297esac
14298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_link") 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } && {
14306 test -z "$ac_c_werror_flag" ||
14307 test ! -s conftest.err
14308 } && test -s conftest$ac_exeext &&
14309 $as_test_x conftest$ac_exeext; then
14310 eval "$as_ac_var=yes"
14311else
14312 echo "$as_me: failed program was:" >&5
14313sed 's/^/| /' conftest.$ac_ext >&5
14314
14315 eval "$as_ac_var=no"
14316fi
14317
14318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14319 conftest$ac_exeext conftest.$ac_ext
14320fi
14321ac_res=`eval echo '${'$as_ac_var'}'`
14322 { echo "$as_me:$LINENO: result: $ac_res" >&5
14323echo "${ECHO_T}$ac_res" >&6; }
14324if test `eval echo '${'$as_ac_var'}'` = yes; then
14325 cat >>confdefs.h <<_ACEOF
14326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14327_ACEOF
14328
14329fi
14330done
14331
14332
14333{ echo "$as_me:$LINENO: checking for daemon" >&5
14334echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
14335if test "${ac_cv_func_daemon+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338 cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
14344/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14346#define daemon innocuous_daemon
14347
14348/* System header to define __stub macros and hopefully few prototypes,
14349 which can conflict with char daemon (); below.
14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351 <limits.h> exists even on freestanding compilers. */
14352
14353#ifdef __STDC__
14354# include <limits.h>
14355#else
14356# include <assert.h>
14357#endif
14358
14359#undef daemon
14360
14361/* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14364#ifdef __cplusplus
14365extern "C"
14366#endif
14367char daemon ();
14368/* The GNU C library defines this for functions which it implements
14369 to always fail with ENOSYS. Some functions are actually named
14370 something starting with __ and the normal name is an alias. */
14371#if defined __stub_daemon || defined __stub___daemon
14372choke me
14373#endif
14374
14375int
14376main ()
14377{
14378return daemon ();
14379 ;
14380 return 0;
14381}
14382_ACEOF
14383rm -f conftest.$ac_objext conftest$ac_exeext
14384if { (ac_try="$ac_link"
14385case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_link") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } && {
14397 test -z "$ac_c_werror_flag" ||
14398 test ! -s conftest.err
14399 } && test -s conftest$ac_exeext &&
14400 $as_test_x conftest$ac_exeext; then
14401 ac_cv_func_daemon=yes
14402else
14403 echo "$as_me: failed program was:" >&5
14404sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 ac_cv_func_daemon=no
14407fi
14408
14409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14410 conftest$ac_exeext conftest.$ac_ext
14411fi
14412{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
14413echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
14414if test $ac_cv_func_daemon = yes; then
14415
14416cat >>confdefs.h <<\_ACEOF
14417#define HAVE_DAEMON 1
14418_ACEOF
14419
14420else
14421 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
14422echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
14423if test "${ac_cv_lib_bsd_daemon+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 ac_check_lib_save_LIBS=$LIBS
14427LIBS="-lbsd $LIBS"
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434
14435/* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14438#ifdef __cplusplus
14439extern "C"
14440#endif
14441char daemon ();
14442int
14443main ()
14444{
14445return daemon ();
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 ac_cv_lib_bsd_daemon=yes
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_cv_lib_bsd_daemon=no
14474fi
14475
14476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477 conftest$ac_exeext conftest.$ac_ext
14478LIBS=$ac_check_lib_save_LIBS
14479fi
14480{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
14481echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
14482if test $ac_cv_lib_bsd_daemon = yes; then
14483 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
14484#define HAVE_DAEMON 1
14485_ACEOF
14486
14487fi
14488
14489
14490fi
14491
14492
14493{ echo "$as_me:$LINENO: checking for getpagesize" >&5
14494echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
14495if test "${ac_cv_func_getpagesize+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h. */
14504/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
14505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14506#define getpagesize innocuous_getpagesize
14507
14508/* System header to define __stub macros and hopefully few prototypes,
14509 which can conflict with char getpagesize (); below.
14510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14511 <limits.h> exists even on freestanding compilers. */
14512
14513#ifdef __STDC__
14514# include <limits.h>
14515#else
14516# include <assert.h>
14517#endif
14518
14519#undef getpagesize
14520
14521/* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14524#ifdef __cplusplus
14525extern "C"
14526#endif
14527char getpagesize ();
14528/* The GNU C library defines this for functions which it implements
14529 to always fail with ENOSYS. Some functions are actually named
14530 something starting with __ and the normal name is an alias. */
14531#if defined __stub_getpagesize || defined __stub___getpagesize
14532choke me
14533#endif
14534
14535int
14536main ()
14537{
14538return getpagesize ();
14539 ;
14540 return 0;
14541}
14542_ACEOF
14543rm -f conftest.$ac_objext conftest$ac_exeext
14544if { (ac_try="$ac_link"
14545case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_link") 2>conftest.er1
14551 ac_status=$?
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest$ac_exeext &&
14560 $as_test_x conftest$ac_exeext; then
14561 ac_cv_func_getpagesize=yes
14562else
14563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 ac_cv_func_getpagesize=no
14567fi
14568
14569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14570 conftest$ac_exeext conftest.$ac_ext
14571fi
14572{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
14573echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
14574if test $ac_cv_func_getpagesize = yes; then
14575
14576cat >>confdefs.h <<\_ACEOF
14577#define HAVE_GETPAGESIZE 1
14578_ACEOF
14579
14580else
14581 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
14582echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
14583if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585else
14586 ac_check_lib_save_LIBS=$LIBS
14587LIBS="-lucb $LIBS"
14588cat >conftest.$ac_ext <<_ACEOF
14589/* confdefs.h. */
14590_ACEOF
14591cat confdefs.h >>conftest.$ac_ext
14592cat >>conftest.$ac_ext <<_ACEOF
14593/* end confdefs.h. */
14594
14595/* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14598#ifdef __cplusplus
14599extern "C"
14600#endif
14601char getpagesize ();
14602int
14603main ()
14604{
14605return getpagesize ();
14606 ;
14607 return 0;
14608}
14609_ACEOF
14610rm -f conftest.$ac_objext conftest$ac_exeext
14611if { (ac_try="$ac_link"
14612case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615esac
14616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_link") 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } && {
14624 test -z "$ac_c_werror_flag" ||
14625 test ! -s conftest.err
14626 } && test -s conftest$ac_exeext &&
14627 $as_test_x conftest$ac_exeext; then
14628 ac_cv_lib_ucb_getpagesize=yes
14629else
14630 echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 ac_cv_lib_ucb_getpagesize=no
14634fi
14635
14636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14637 conftest$ac_exeext conftest.$ac_ext
14638LIBS=$ac_check_lib_save_LIBS
14639fi
14640{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
14641echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
14642if test $ac_cv_lib_ucb_getpagesize = yes; then
14643 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
14644#define HAVE_GETPAGESIZE 1
14645_ACEOF
14646
14647fi
14648
14649
14650fi
14651
14652
14653# Check for broken snprintf
14654if test "x$ac_cv_func_snprintf" = "xyes" ; then
14655 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
14656echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
14657 if test "$cross_compiling" = yes; then
14658 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
14659echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
14660
14661else
14662 cat >conftest.$ac_ext <<_ACEOF
14663/* confdefs.h. */
14664_ACEOF
14665cat confdefs.h >>conftest.$ac_ext
14666cat >>conftest.$ac_ext <<_ACEOF
14667/* end confdefs.h. */
14668
14669#include <stdio.h>
14670int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
14671
14672_ACEOF
14673rm -f conftest$ac_exeext
14674if { (ac_try="$ac_link"
14675case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14678esac
14679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_link") 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14684 { (case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687esac
14688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_try") 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 { echo "$as_me:$LINENO: result: yes" >&5
14694echo "${ECHO_T}yes" >&6; }
14695else
14696 echo "$as_me: program exited with status $ac_status" >&5
14697echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
14700( exit $ac_status )
14701
14702 { echo "$as_me:$LINENO: result: no" >&5
14703echo "${ECHO_T}no" >&6; }
14704
14705cat >>confdefs.h <<\_ACEOF
14706#define BROKEN_SNPRINTF 1
14707_ACEOF
14708
14709 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
14710echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
14711
14712fi
14713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14714fi
14715
14716
14717fi
14718
14719# If we don't have a working asprintf, then we strongly depend on vsnprintf
14720# returning the right thing on overflow: the number of characters it tried to
14721# create (as per SUSv3)
14722if test "x$ac_cv_func_asprintf" != "xyes" && \
14723 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
14724 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
14725echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
14726 if test "$cross_compiling" = yes; then
14727 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
14728echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
14729
14730else
14731 cat >conftest.$ac_ext <<_ACEOF
14732/* confdefs.h. */
14733_ACEOF
14734cat confdefs.h >>conftest.$ac_ext
14735cat >>conftest.$ac_ext <<_ACEOF
14736/* end confdefs.h. */
14737
14738#include <sys/types.h>
14739#include <stdio.h>
14740#include <stdarg.h>
14741
14742int x_snprintf(char *str,size_t count,const char *fmt,...)
14743{
14744 size_t ret; va_list ap;
14745 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
14746 return ret;
14747}
14748int main(void)
14749{
14750 char x[1];
14751 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
14752}
14753_ACEOF
14754rm -f conftest$ac_exeext
14755if { (ac_try="$ac_link"
14756case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759esac
14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_link") 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14765 { (case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14768esac
14769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_try") 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 { echo "$as_me:$LINENO: result: yes" >&5
14775echo "${ECHO_T}yes" >&6; }
14776else
14777 echo "$as_me: program exited with status $ac_status" >&5
14778echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
14780
14781( exit $ac_status )
14782
14783 { echo "$as_me:$LINENO: result: no" >&5
14784echo "${ECHO_T}no" >&6; }
14785
14786cat >>confdefs.h <<\_ACEOF
14787#define BROKEN_SNPRINTF 1
14788_ACEOF
14789
14790 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
14791echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
14792
14793fi
14794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14795fi
14796
14797
14798fi
14799
14800# On systems where [v]snprintf is broken, but is declared in stdio,
14801# check that the fmt argument is const char * or just char *.
14802# This is only useful for when BROKEN_SNPRINTF
14803{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
14804echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
14805cat >conftest.$ac_ext <<_ACEOF
14806/* confdefs.h. */
14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
14811#include <stdio.h>
14812 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
14813 int main(void) { snprintf(0, 0, 0); }
14814
14815_ACEOF
14816rm -f conftest.$ac_objext
14817if { (ac_try="$ac_compile"
14818case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821esac
14822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_compile") 2>conftest.er1
14824 ac_status=$?
14825 grep -v '^ *+' conftest.er1 >conftest.err
14826 rm -f conftest.er1
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } && {
14830 test -z "$ac_c_werror_flag" ||
14831 test ! -s conftest.err
14832 } && test -s conftest.$ac_objext; then
14833 { echo "$as_me:$LINENO: result: yes" >&5
14834echo "${ECHO_T}yes" >&6; }
14835
14836cat >>confdefs.h <<\_ACEOF
14837#define SNPRINTF_CONST const
14838_ACEOF
14839
14840else
14841 echo "$as_me: failed program was:" >&5
14842sed 's/^/| /' conftest.$ac_ext >&5
14843
14844 { echo "$as_me:$LINENO: result: no" >&5
14845echo "${ECHO_T}no" >&6; }
14846 cat >>confdefs.h <<\_ACEOF
14847#define SNPRINTF_CONST /* not const */
14848_ACEOF
14849
14850fi
14851
14852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853
14854# Check for missing getpeereid (or equiv) support
14855NO_PEERCHECK=""
14856if test "x$ac_cv_func_getpeereid" != "xyes" ; then
14857 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
14858echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14860/* confdefs.h. */
14861_ACEOF
14862cat confdefs.h >>conftest.$ac_ext
14863cat >>conftest.$ac_ext <<_ACEOF
14864/* end confdefs.h. */
14865#include <sys/types.h>
14866 #include <sys/socket.h>
14867int
14868main ()
14869{
14870int i = SO_PEERCRED;
14871 ;
14872 return 0;
14873}
14874_ACEOF
14875rm -f conftest.$ac_objext
14876if { (ac_try="$ac_compile"
14877case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14880esac
14881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_compile") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 } && test -s conftest.$ac_objext; then
14892 { echo "$as_me:$LINENO: result: yes" >&5
14893echo "${ECHO_T}yes" >&6; }
14894
14895cat >>confdefs.h <<\_ACEOF
14896#define HAVE_SO_PEERCRED 1
14897_ACEOF
14898
14899
14900else
14901 echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 { echo "$as_me:$LINENO: result: no" >&5
14905echo "${ECHO_T}no" >&6; }
14906 NO_PEERCHECK=1
14907
14908fi
14909
14910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911fi
14912
14913if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
14914{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
14915echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
14916if test "$cross_compiling" = yes; then
14917
14918 { echo "$as_me:$LINENO: result: yes" >&5
14919echo "${ECHO_T}yes" >&6; }
14920 cat >>confdefs.h <<\_ACEOF
14921#define HAVE_STRICT_MKSTEMP 1
14922_ACEOF
14923
14924
14925
14926else
14927 cat >conftest.$ac_ext <<_ACEOF
14928/* confdefs.h. */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h. */
14933
14934#include <stdlib.h>
14935main() { char template[]="conftest.mkstemp-test";
14936if (mkstemp(template) == -1)
14937 exit(1);
14938unlink(template); exit(0);
14939}
14940
14941_ACEOF
14942rm -f conftest$ac_exeext
14943if { (ac_try="$ac_link"
14944case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947esac
14948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_link") 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14953 { (case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14956esac
14957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_try") 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962
14963 { echo "$as_me:$LINENO: result: no" >&5
14964echo "${ECHO_T}no" >&6; }
14965
14966else
14967 echo "$as_me: program exited with status $ac_status" >&5
14968echo "$as_me: failed program was:" >&5
14969sed 's/^/| /' conftest.$ac_ext >&5
14970
14971( exit $ac_status )
14972
14973 { echo "$as_me:$LINENO: result: yes" >&5
14974echo "${ECHO_T}yes" >&6; }
14975
14976cat >>confdefs.h <<\_ACEOF
14977#define HAVE_STRICT_MKSTEMP 1
14978_ACEOF
14979
14980
14981fi
14982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14983fi
14984
14985
14986fi
14987
14988if test ! -z "$check_for_openpty_ctty_bug"; then
14989 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
14990echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
14991 if test "$cross_compiling" = yes; then
14992
14993 { echo "$as_me:$LINENO: result: cross-compiling" >&5
14994echo "${ECHO_T}cross-compiling" >&6; }
14995
14996
14997else
14998 cat >conftest.$ac_ext <<_ACEOF
14999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
15004
15005#include <stdio.h>
15006#include <sys/fcntl.h>
15007#include <sys/types.h>
15008#include <sys/wait.h>
15009
15010int
15011main()
15012{
15013 pid_t pid;
15014 int fd, ptyfd, ttyfd, status;
15015
15016 pid = fork();
15017 if (pid < 0) { /* failed */
15018 exit(1);
15019 } else if (pid > 0) { /* parent */
15020 waitpid(pid, &status, 0);
15021 if (WIFEXITED(status))
15022 exit(WEXITSTATUS(status));
15023 else
15024 exit(2);
15025 } else { /* child */
15026 close(0); close(1); close(2);
15027 setsid();
15028 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
15029 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
15030 if (fd >= 0)
15031 exit(3); /* Acquired ctty: broken */
15032 else
15033 exit(0); /* Did not acquire ctty: OK */
15034 }
15035}
15036
15037_ACEOF
15038rm -f conftest$ac_exeext
15039if { (ac_try="$ac_link"
15040case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043esac
15044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15049 { (case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_try") 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058
15059 { echo "$as_me:$LINENO: result: yes" >&5
15060echo "${ECHO_T}yes" >&6; }
15061
15062else
15063 echo "$as_me: program exited with status $ac_status" >&5
15064echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
15067( exit $ac_status )
15068
15069 { echo "$as_me:$LINENO: result: no" >&5
15070echo "${ECHO_T}no" >&6; }
15071 cat >>confdefs.h <<\_ACEOF
15072#define SSHD_ACQUIRES_CTTY 1
15073_ACEOF
15074
15075
15076fi
15077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15078fi
15079
15080
15081fi
15082
15083if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15084 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
15085 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15086echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15087 if test "$cross_compiling" = yes; then
15088
15089 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15090echo "${ECHO_T}cross-compiling" >&6; }
15091
15092
15093else
15094 cat >conftest.$ac_ext <<_ACEOF
15095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
15099/* end confdefs.h. */
15100
15101#include <stdio.h>
15102#include <sys/socket.h>
15103#include <netdb.h>
15104#include <errno.h>
15105#include <netinet/in.h>
15106
15107#define TEST_PORT "2222"
15108
15109int
15110main(void)
15111{
15112 int err, sock;
15113 struct addrinfo *gai_ai, *ai, hints;
15114 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15115
15116 memset(&hints, 0, sizeof(hints));
15117 hints.ai_family = PF_UNSPEC;
15118 hints.ai_socktype = SOCK_STREAM;
15119 hints.ai_flags = AI_PASSIVE;
15120
15121 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15122 if (err != 0) {
15123 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15124 exit(1);
15125 }
15126
15127 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15128 if (ai->ai_family != AF_INET6)
15129 continue;
15130
15131 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15132 sizeof(ntop), strport, sizeof(strport),
15133 NI_NUMERICHOST|NI_NUMERICSERV);
15134
15135 if (err != 0) {
15136 if (err == EAI_SYSTEM)
15137 perror("getnameinfo EAI_SYSTEM");
15138 else
15139 fprintf(stderr, "getnameinfo failed: %s\n",
15140 gai_strerror(err));
15141 exit(2);
15142 }
15143
15144 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
15145 if (sock < 0)
15146 perror("socket");
15147 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
15148 if (errno == EBADF)
15149 exit(3);
15150 }
15151 }
15152 exit(0);
15153}
15154
15155_ACEOF
15156rm -f conftest$ac_exeext
15157if { (ac_try="$ac_link"
15158case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161esac
15162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_link") 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15167 { (case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15170esac
15171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_try") 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176
15177 { echo "$as_me:$LINENO: result: yes" >&5
15178echo "${ECHO_T}yes" >&6; }
15179
15180else
15181 echo "$as_me: program exited with status $ac_status" >&5
15182echo "$as_me: failed program was:" >&5
15183sed 's/^/| /' conftest.$ac_ext >&5
15184
15185( exit $ac_status )
15186
15187 { echo "$as_me:$LINENO: result: no" >&5
15188echo "${ECHO_T}no" >&6; }
15189 cat >>confdefs.h <<\_ACEOF
15190#define BROKEN_GETADDRINFO 1
15191_ACEOF
15192
15193
15194fi
15195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15196fi
15197
15198
15199fi
15200
15201if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15202 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
15203 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15204echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15205 if test "$cross_compiling" = yes; then
15206
15207 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15208echo "${ECHO_T}cross-compiling" >&6; }
15209
15210
15211else
15212 cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218
15219#include <stdio.h>
15220#include <sys/socket.h>
15221#include <netdb.h>
15222#include <errno.h>
15223#include <netinet/in.h>
15224
15225#define TEST_PORT "2222"
15226
15227int
15228main(void)
15229{
15230 int err, sock;
15231 struct addrinfo *gai_ai, *ai, hints;
15232 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15233
15234 memset(&hints, 0, sizeof(hints));
15235 hints.ai_family = PF_UNSPEC;
15236 hints.ai_socktype = SOCK_STREAM;
15237 hints.ai_flags = AI_PASSIVE;
15238
15239 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15240 if (err != 0) {
15241 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15242 exit(1);
15243 }
15244
15245 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15246 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
15247 continue;
15248
15249 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15250 sizeof(ntop), strport, sizeof(strport),
15251 NI_NUMERICHOST|NI_NUMERICSERV);
15252
15253 if (ai->ai_family == AF_INET && err != 0) {
15254 perror("getnameinfo");
15255 exit(2);
15256 }
15257 }
15258 exit(0);
15259}
15260
15261_ACEOF
15262rm -f conftest$ac_exeext
15263if { (ac_try="$ac_link"
15264case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_link") 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282
15283 { echo "$as_me:$LINENO: result: yes" >&5
15284echo "${ECHO_T}yes" >&6; }
15285
15286cat >>confdefs.h <<\_ACEOF
15287#define AIX_GETNAMEINFO_HACK 1
15288_ACEOF
15289
15290
15291else
15292 echo "$as_me: program exited with status $ac_status" >&5
15293echo "$as_me: failed program was:" >&5
15294sed 's/^/| /' conftest.$ac_ext >&5
15295
15296( exit $ac_status )
15297
15298 { echo "$as_me:$LINENO: result: no" >&5
15299echo "${ECHO_T}no" >&6; }
15300 cat >>confdefs.h <<\_ACEOF
15301#define BROKEN_GETADDRINFO 1
15302_ACEOF
15303
15304
15305fi
15306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15307fi
15308
15309
15310fi
15311
15312if test "x$check_for_conflicting_getspnam" = "x1"; then
15313 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
15314echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
15315 cat >conftest.$ac_ext <<_ACEOF
15316
15317#include <shadow.h>
15318int main(void) {exit(0);}
15319
15320_ACEOF
15321rm -f conftest.$ac_objext
15322if { (ac_try="$ac_compile"
15323case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
15327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_compile") 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } && {
15335 test -z "$ac_c_werror_flag" ||
15336 test ! -s conftest.err
15337 } && test -s conftest.$ac_objext; then
15338
15339 { echo "$as_me:$LINENO: result: no" >&5
15340echo "${ECHO_T}no" >&6; }
15341
15342else
15343 echo "$as_me: failed program was:" >&5
15344sed 's/^/| /' conftest.$ac_ext >&5
15345
15346
15347 { echo "$as_me:$LINENO: result: yes" >&5
15348echo "${ECHO_T}yes" >&6; }
15349
15350cat >>confdefs.h <<\_ACEOF
15351#define GETSPNAM_CONFLICTING_DEFS 1
15352_ACEOF
15353
15354
15355
15356fi
15357
15358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359fi
15360
15361{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15362echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
15363if test "${ac_cv_func_getpgrp_void+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365else
15366 # Use it with a single arg.
15367cat >conftest.$ac_ext <<_ACEOF
15368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
15373$ac_includes_default
15374int
15375main ()
15376{
15377getpgrp (0);
15378 ;
15379 return 0;
15380}
15381_ACEOF
15382rm -f conftest.$ac_objext
15383if { (ac_try="$ac_compile"
15384case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15387esac
15388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_compile") 2>conftest.er1
15390 ac_status=$?
15391 grep -v '^ *+' conftest.er1 >conftest.err
15392 rm -f conftest.er1
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } && {
15396 test -z "$ac_c_werror_flag" ||
15397 test ! -s conftest.err
15398 } && test -s conftest.$ac_objext; then
15399 ac_cv_func_getpgrp_void=no
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 ac_cv_func_getpgrp_void=yes
15405fi
15406
15407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15408
15409fi
15410{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15411echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
15412if test $ac_cv_func_getpgrp_void = yes; then
15413
15414cat >>confdefs.h <<\_ACEOF
15415#define GETPGRP_VOID 1
15416_ACEOF
15417
15418fi
15419
15420
15421# Search for OpenSSL
15422saved_CPPFLAGS="$CPPFLAGS"
15423saved_LDFLAGS="$LDFLAGS"
15424
15425# Check whether --with-ssl-dir was given.
15426if test "${with_ssl_dir+set}" = set; then
15427 withval=$with_ssl_dir;
15428 if test "x$withval" != "xno" ; then
15429 case "$withval" in
15430 # Relative paths
15431 ./*|../*) withval="`pwd`/$withval"
15432 esac
15433 if test -d "$withval/lib"; then
15434 if test -n "${need_dash_r}"; then
15435 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15436 else
15437 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15438 fi
15439 else
15440 if test -n "${need_dash_r}"; then
15441 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
15442 else
15443 LDFLAGS="-L${withval} ${LDFLAGS}"
15444 fi
15445 fi
15446 if test -d "$withval/include"; then
15447 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
15448 else
15449 CPPFLAGS="-I${withval} ${CPPFLAGS}"
15450 fi
15451 fi
15452
15453
15454fi
15455
15456LIBS="-lcrypto $LIBS"
15457cat >conftest.$ac_ext <<_ACEOF
15458/* confdefs.h. */
15459_ACEOF
15460cat confdefs.h >>conftest.$ac_ext
15461cat >>conftest.$ac_ext <<_ACEOF
15462/* end confdefs.h. */
15463
15464/* Override any GCC internal prototype to avoid an error.
15465 Use char because int might match the return type of a GCC
15466 builtin and then its argument prototype would still apply. */
15467#ifdef __cplusplus
15468extern "C"
15469#endif
15470char RAND_add ();
15471int
15472main ()
15473{
15474return RAND_add ();
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext conftest$ac_exeext
15480if { (ac_try="$ac_link"
15481case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484esac
15485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_link") 2>conftest.er1
15487 ac_status=$?
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } && {
15493 test -z "$ac_c_werror_flag" ||
15494 test ! -s conftest.err
15495 } && test -s conftest$ac_exeext &&
15496 $as_test_x conftest$ac_exeext; then
15497
15498cat >>confdefs.h <<\_ACEOF
15499#define HAVE_OPENSSL 1
15500_ACEOF
15501
15502else
15503 echo "$as_me: failed program was:" >&5
15504sed 's/^/| /' conftest.$ac_ext >&5
15505
15506
15507 if test -n "${need_dash_r}"; then
15508 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
15509 else
15510 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
15511 fi
15512 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
15513 cat >conftest.$ac_ext <<_ACEOF
15514/* confdefs.h. */
15515_ACEOF
15516cat confdefs.h >>conftest.$ac_ext
15517cat >>conftest.$ac_ext <<_ACEOF
15518/* end confdefs.h. */
15519
15520/* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15523#ifdef __cplusplus
15524extern "C"
15525#endif
15526char RAND_add ();
15527int
15528main ()
15529{
15530return RAND_add ();
15531 ;
15532 return 0;
15533}
15534_ACEOF
15535rm -f conftest.$ac_objext conftest$ac_exeext
15536if { (ac_try="$ac_link"
15537case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540esac
15541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_link") 2>conftest.er1
15543 ac_status=$?
15544 grep -v '^ *+' conftest.er1 >conftest.err
15545 rm -f conftest.er1
15546 cat conftest.err >&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } && {
15549 test -z "$ac_c_werror_flag" ||
15550 test ! -s conftest.err
15551 } && test -s conftest$ac_exeext &&
15552 $as_test_x conftest$ac_exeext; then
15553 cat >>confdefs.h <<\_ACEOF
15554#define HAVE_OPENSSL 1
15555_ACEOF
15556
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561
15562 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
15563echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
15564 { (exit 1); exit 1; }; }
15565
15566
15567fi
15568
15569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15570 conftest$ac_exeext conftest.$ac_ext
15571
15572
15573fi
15574
15575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576 conftest$ac_exeext conftest.$ac_ext
15577
15578# Determine OpenSSL header version
15579{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
15580echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
15581if test "$cross_compiling" = yes; then
15582
15583 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15584echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15585
15586
15587else
15588 cat >conftest.$ac_ext <<_ACEOF
15589/* confdefs.h. */
15590_ACEOF
15591cat confdefs.h >>conftest.$ac_ext
15592cat >>conftest.$ac_ext <<_ACEOF
15593/* end confdefs.h. */
15594
15595#include <stdio.h>
15596#include <string.h>
15597#include <openssl/opensslv.h>
15598#define DATA "conftest.sslincver"
15599int main(void) {
15600 FILE *fd;
15601 int rc;
15602
15603 fd = fopen(DATA,"w");
15604 if(fd == NULL)
15605 exit(1);
15606
15607 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
15608 exit(1);
15609
15610 exit(0);
15611}
15612
15613_ACEOF
15614rm -f conftest$ac_exeext
15615if { (ac_try="$ac_link"
15616case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619esac
15620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_link") 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628esac
15629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634
15635 ssl_header_ver=`cat conftest.sslincver`
15636 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
15637echo "${ECHO_T}$ssl_header_ver" >&6; }
15638
15639else
15640 echo "$as_me: program exited with status $ac_status" >&5
15641echo "$as_me: failed program was:" >&5
15642sed 's/^/| /' conftest.$ac_ext >&5
15643
15644( exit $ac_status )
15645
15646 { echo "$as_me:$LINENO: result: not found" >&5
15647echo "${ECHO_T}not found" >&6; }
15648 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
15649echo "$as_me: error: OpenSSL version header not found." >&2;}
15650 { (exit 1); exit 1; }; }
15651
15652fi
15653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15654fi
15655
15656
15657
15658# Determine OpenSSL library version
15659{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
15660echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
15661if test "$cross_compiling" = yes; then
15662
15663 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15664echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15665
15666
15667else
15668 cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674
15675#include <stdio.h>
15676#include <string.h>
15677#include <openssl/opensslv.h>
15678#include <openssl/crypto.h>
15679#define DATA "conftest.ssllibver"
15680int main(void) {
15681 FILE *fd;
15682 int rc;
15683
15684 fd = fopen(DATA,"w");
15685 if(fd == NULL)
15686 exit(1);
15687
15688 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
15689 exit(1);
15690
15691 exit(0);
15692}
15693
15694_ACEOF
15695rm -f conftest$ac_exeext
15696if { (ac_try="$ac_link"
15697case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15700esac
15701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_link") 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15706 { (case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_try") 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715
15716 ssl_library_ver=`cat conftest.ssllibver`
15717 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
15718echo "${ECHO_T}$ssl_library_ver" >&6; }
15719
15720else
15721 echo "$as_me: program exited with status $ac_status" >&5
15722echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725( exit $ac_status )
15726
15727 { echo "$as_me:$LINENO: result: not found" >&5
15728echo "${ECHO_T}not found" >&6; }
15729 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
15730echo "$as_me: error: OpenSSL library not found." >&2;}
15731 { (exit 1); exit 1; }; }
15732
15733fi
15734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15735fi
15736
15737
15738
15739
15740# Check whether --with-openssl-header-check was given.
15741if test "${with_openssl_header_check+set}" = set; then
15742 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
15743 openssl_check_nonfatal=1
15744 fi
15745
15746
15747fi
15748
15749
15750# Sanity check OpenSSL headers
15751{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
15752echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
15753if test "$cross_compiling" = yes; then
15754
15755 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15756echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15757
15758
15759else
15760 cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766
15767#include <string.h>
15768#include <openssl/opensslv.h>
15769int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
15770
15771_ACEOF
15772rm -f conftest$ac_exeext
15773if { (ac_try="$ac_link"
15774case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_link") 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15783 { (case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_try") 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792
15793 { echo "$as_me:$LINENO: result: yes" >&5
15794echo "${ECHO_T}yes" >&6; }
15795
15796else
15797 echo "$as_me: program exited with status $ac_status" >&5
15798echo "$as_me: failed program was:" >&5
15799sed 's/^/| /' conftest.$ac_ext >&5
15800
15801( exit $ac_status )
15802
15803 { echo "$as_me:$LINENO: result: no" >&5
15804echo "${ECHO_T}no" >&6; }
15805 if test "x$openssl_check_nonfatal" = "x"; then
15806 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
15807library. Check config.log for details.
15808If you are sure your installation is consistent, you can disable the check
15809by running \"./configure --without-openssl-header-check\".
15810Also see contrib/findssl.sh for help identifying header/library mismatches.
15811" >&5
15812echo "$as_me: error: Your OpenSSL headers do not match your
15813library. Check config.log for details.
15814If you are sure your installation is consistent, you can disable the check
15815by running \"./configure --without-openssl-header-check\".
15816Also see contrib/findssl.sh for help identifying header/library mismatches.
15817" >&2;}
15818 { (exit 1); exit 1; }; }
15819 else
15820 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
15821library. Check config.log for details.
15822Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
15823echo "$as_me: WARNING: Your OpenSSL headers do not match your
15824library. Check config.log for details.
15825Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
15826 fi
15827
15828fi
15829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15830fi
15831
15832
15833
15834{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
15835echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
15836cat >conftest.$ac_ext <<_ACEOF
15837/* confdefs.h. */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h. */
15842
15843#include <openssl/evp.h>
15844int main(void) { SSLeay_add_all_algorithms(); }
15845
15846_ACEOF
15847rm -f conftest.$ac_objext conftest$ac_exeext
15848if { (ac_try="$ac_link"
15849case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852esac
15853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_link") 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest$ac_exeext &&
15864 $as_test_x conftest$ac_exeext; then
15865
15866 { echo "$as_me:$LINENO: result: yes" >&5
15867echo "${ECHO_T}yes" >&6; }
15868
15869else
15870 echo "$as_me: failed program was:" >&5
15871sed 's/^/| /' conftest.$ac_ext >&5
15872
15873
15874 { echo "$as_me:$LINENO: result: no" >&5
15875echo "${ECHO_T}no" >&6; }
15876 saved_LIBS="$LIBS"
15877 LIBS="$LIBS -ldl"
15878 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
15879echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15881/* confdefs.h. */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h. */
15886
15887#include <openssl/evp.h>
15888int main(void) { SSLeay_add_all_algorithms(); }
15889
15890_ACEOF
15891rm -f conftest.$ac_objext conftest$ac_exeext
15892if { (ac_try="$ac_link"
15893case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896esac
15897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_link") 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } && {
15905 test -z "$ac_c_werror_flag" ||
15906 test ! -s conftest.err
15907 } && test -s conftest$ac_exeext &&
15908 $as_test_x conftest$ac_exeext; then
15909
15910 { echo "$as_me:$LINENO: result: yes" >&5
15911echo "${ECHO_T}yes" >&6; }
15912
15913else
15914 echo "$as_me: failed program was:" >&5
15915sed 's/^/| /' conftest.$ac_ext >&5
15916
15917
15918 { echo "$as_me:$LINENO: result: no" >&5
15919echo "${ECHO_T}no" >&6; }
15920 LIBS="$saved_LIBS"
15921
15922
15923fi
15924
15925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15926 conftest$ac_exeext conftest.$ac_ext
15927
15928
15929fi
15930
15931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15932 conftest$ac_exeext conftest.$ac_ext
15933
15934
15935# Check whether --with-ssl-engine was given.
15936if test "${with_ssl_engine+set}" = set; then
15937 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
15938 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
15939echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15941/* confdefs.h. */
15942_ACEOF
15943cat confdefs.h >>conftest.$ac_ext
15944cat >>conftest.$ac_ext <<_ACEOF
15945/* end confdefs.h. */
15946 #include <openssl/engine.h>
15947int
15948main ()
15949{
15950
15951ENGINE_load_builtin_engines();ENGINE_register_all_complete();
15952
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (ac_try="$ac_compile"
15959case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962esac
15963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_compile") 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } && {
15971 test -z "$ac_c_werror_flag" ||
15972 test ! -s conftest.err
15973 } && test -s conftest.$ac_objext; then
15974 { echo "$as_me:$LINENO: result: yes" >&5
15975echo "${ECHO_T}yes" >&6; }
15976
15977cat >>confdefs.h <<\_ACEOF
15978#define USE_OPENSSL_ENGINE 1
15979_ACEOF
15980
15981
15982else
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
15987echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
15988 { (exit 1); exit 1; }; }
15989
15990fi
15991
15992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15993 fi
15994
15995fi
15996
15997
15998# Check for OpenSSL without EVP_aes_{192,256}_cbc
15999{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
16000echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
16001cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007
16008#include <string.h>
16009#include <openssl/evp.h>
16010int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
16011
16012_ACEOF
16013rm -f conftest.$ac_objext conftest$ac_exeext
16014if { (ac_try="$ac_link"
16015case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16018esac
16019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_link") 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } && {
16027 test -z "$ac_c_werror_flag" ||
16028 test ! -s conftest.err
16029 } && test -s conftest$ac_exeext &&
16030 $as_test_x conftest$ac_exeext; then
16031
16032 { echo "$as_me:$LINENO: result: no" >&5
16033echo "${ECHO_T}no" >&6; }
16034
16035else
16036 echo "$as_me: failed program was:" >&5
16037sed 's/^/| /' conftest.$ac_ext >&5
16038
16039
16040 { echo "$as_me:$LINENO: result: yes" >&5
16041echo "${ECHO_T}yes" >&6; }
16042
16043cat >>confdefs.h <<\_ACEOF
16044#define OPENSSL_LOBOTOMISED_AES 1
16045_ACEOF
16046
16047
16048
16049fi
16050
16051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16052 conftest$ac_exeext conftest.$ac_ext
16053
16054# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
16055# because the system crypt() is more featureful.
16056if test "x$check_for_libcrypt_before" = "x1"; then
16057
16058{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16059echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16060if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062else
16063 ac_check_lib_save_LIBS=$LIBS
16064LIBS="-lcrypt $LIBS"
16065cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071
16072/* Override any GCC internal prototype to avoid an error.
16073 Use char because int might match the return type of a GCC
16074 builtin and then its argument prototype would still apply. */
16075#ifdef __cplusplus
16076extern "C"
16077#endif
16078char crypt ();
16079int
16080main ()
16081{
16082return crypt ();
16083 ;
16084 return 0;
16085}
16086_ACEOF
16087rm -f conftest.$ac_objext conftest$ac_exeext
16088if { (ac_try="$ac_link"
16089case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092esac
16093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_link") 2>conftest.er1
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } && {
16101 test -z "$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 } && test -s conftest$ac_exeext &&
16104 $as_test_x conftest$ac_exeext; then
16105 ac_cv_lib_crypt_crypt=yes
16106else
16107 echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 ac_cv_lib_crypt_crypt=no
16111fi
16112
16113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16114 conftest$ac_exeext conftest.$ac_ext
16115LIBS=$ac_check_lib_save_LIBS
16116fi
16117{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16118echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16119if test $ac_cv_lib_crypt_crypt = yes; then
16120 cat >>confdefs.h <<_ACEOF
16121#define HAVE_LIBCRYPT 1
16122_ACEOF
16123
16124 LIBS="-lcrypt $LIBS"
16125
16126fi
16127
16128fi
16129
16130# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
16131# version in OpenSSL.
16132if test "x$check_for_libcrypt_later" = "x1"; then
16133 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16134echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16135if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137else
16138 ac_check_lib_save_LIBS=$LIBS
16139LIBS="-lcrypt $LIBS"
16140cat >conftest.$ac_ext <<_ACEOF
16141/* confdefs.h. */
16142_ACEOF
16143cat confdefs.h >>conftest.$ac_ext
16144cat >>conftest.$ac_ext <<_ACEOF
16145/* end confdefs.h. */
16146
16147/* Override any GCC internal prototype to avoid an error.
16148 Use char because int might match the return type of a GCC
16149 builtin and then its argument prototype would still apply. */
16150#ifdef __cplusplus
16151extern "C"
16152#endif
16153char crypt ();
16154int
16155main ()
16156{
16157return crypt ();
16158 ;
16159 return 0;
16160}
16161_ACEOF
16162rm -f conftest.$ac_objext conftest$ac_exeext
16163if { (ac_try="$ac_link"
16164case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167esac
16168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_link") 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && {
16176 test -z "$ac_c_werror_flag" ||
16177 test ! -s conftest.err
16178 } && test -s conftest$ac_exeext &&
16179 $as_test_x conftest$ac_exeext; then
16180 ac_cv_lib_crypt_crypt=yes
16181else
16182 echo "$as_me: failed program was:" >&5
16183sed 's/^/| /' conftest.$ac_ext >&5
16184
16185 ac_cv_lib_crypt_crypt=no
16186fi
16187
16188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16189 conftest$ac_exeext conftest.$ac_ext
16190LIBS=$ac_check_lib_save_LIBS
16191fi
16192{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16193echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16194if test $ac_cv_lib_crypt_crypt = yes; then
16195 LIBS="$LIBS -lcrypt"
16196fi
16197
16198fi
16199
16200# Search for SHA256 support in libc and/or OpenSSL
16201
16202
16203for ac_func in SHA256_Update EVP_sha256
16204do
16205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16210else
16211 cat >conftest.$ac_ext <<_ACEOF
16212/* confdefs.h. */
16213_ACEOF
16214cat confdefs.h >>conftest.$ac_ext
16215cat >>conftest.$ac_ext <<_ACEOF
16216/* end confdefs.h. */
16217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16219#define $ac_func innocuous_$ac_func
16220
16221/* System header to define __stub macros and hopefully few prototypes,
16222 which can conflict with char $ac_func (); below.
16223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16224 <limits.h> exists even on freestanding compilers. */
16225
16226#ifdef __STDC__
16227# include <limits.h>
16228#else
16229# include <assert.h>
16230#endif
16231
16232#undef $ac_func
16233
16234/* Override any GCC internal prototype to avoid an error.
16235 Use char because int might match the return type of a GCC
16236 builtin and then its argument prototype would still apply. */
16237#ifdef __cplusplus
16238extern "C"
16239#endif
16240char $ac_func ();
16241/* The GNU C library defines this for functions which it implements
16242 to always fail with ENOSYS. Some functions are actually named
16243 something starting with __ and the normal name is an alias. */
16244#if defined __stub_$ac_func || defined __stub___$ac_func
16245choke me
16246#endif
16247
16248int
16249main ()
16250{
16251return $ac_func ();
16252 ;
16253 return 0;
16254}
16255_ACEOF
16256rm -f conftest.$ac_objext conftest$ac_exeext
16257if { (ac_try="$ac_link"
16258case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261esac
16262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_link") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } && {
16270 test -z "$ac_c_werror_flag" ||
16271 test ! -s conftest.err
16272 } && test -s conftest$ac_exeext &&
16273 $as_test_x conftest$ac_exeext; then
16274 eval "$as_ac_var=yes"
16275else
16276 echo "$as_me: failed program was:" >&5
16277sed 's/^/| /' conftest.$ac_ext >&5
16278
16279 eval "$as_ac_var=no"
16280fi
16281
16282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16283 conftest$ac_exeext conftest.$ac_ext
16284fi
16285ac_res=`eval echo '${'$as_ac_var'}'`
16286 { echo "$as_me:$LINENO: result: $ac_res" >&5
16287echo "${ECHO_T}$ac_res" >&6; }
16288if test `eval echo '${'$as_ac_var'}'` = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16291_ACEOF
16292
16293fi
16294done
16295
16296
16297
16298{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
16299echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
16300if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 ac_check_lib_save_LIBS=$LIBS
16304LIBS="-liaf $LIBS"
16305cat >conftest.$ac_ext <<_ACEOF
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311
16312/* Override any GCC internal prototype to avoid an error.
16313 Use char because int might match the return type of a GCC
16314 builtin and then its argument prototype would still apply. */
16315#ifdef __cplusplus
16316extern "C"
16317#endif
16318char ia_openinfo ();
16319int
16320main ()
16321{
16322return ia_openinfo ();
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327rm -f conftest.$ac_objext conftest$ac_exeext
16328if { (ac_try="$ac_link"
16329case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16332esac
16333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_link") 2>conftest.er1
16335 ac_status=$?
16336 grep -v '^ *+' conftest.er1 >conftest.err
16337 rm -f conftest.er1
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && {
16341 test -z "$ac_c_werror_flag" ||
16342 test ! -s conftest.err
16343 } && test -s conftest$ac_exeext &&
16344 $as_test_x conftest$ac_exeext; then
16345 ac_cv_lib_iaf_ia_openinfo=yes
16346else
16347 echo "$as_me: failed program was:" >&5
16348sed 's/^/| /' conftest.$ac_ext >&5
16349
16350 ac_cv_lib_iaf_ia_openinfo=no
16351fi
16352
16353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16354 conftest$ac_exeext conftest.$ac_ext
16355LIBS=$ac_check_lib_save_LIBS
16356fi
16357{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
16358echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
16359if test $ac_cv_lib_iaf_ia_openinfo = yes; then
16360 cat >>confdefs.h <<_ACEOF
16361#define HAVE_LIBIAF 1
16362_ACEOF
16363
16364 LIBS="-liaf $LIBS"
16365
16366fi
16367
16368
16369### Configure cryptographic random number support
16370
16371# Check wheter OpenSSL seeds itself
16372{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
16373echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
16374if test "$cross_compiling" = yes; then
16375
16376 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
16377echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
16378 # This is safe, since all recent OpenSSL versions will
16379 # complain at runtime if not seeded correctly.
16380 OPENSSL_SEEDS_ITSELF=yes
16381
16382
16383else
16384 cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390
16391#include <string.h>
16392#include <openssl/rand.h>
16393int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
16394
16395_ACEOF
16396rm -f conftest$ac_exeext
16397if { (ac_try="$ac_link"
16398case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401esac
16402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16407 { (case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16410esac
16411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_try") 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416
16417 OPENSSL_SEEDS_ITSELF=yes
16418 { echo "$as_me:$LINENO: result: yes" >&5
16419echo "${ECHO_T}yes" >&6; }
16420
16421else
16422 echo "$as_me: program exited with status $ac_status" >&5
16423echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426( exit $ac_status )
16427
16428 { echo "$as_me:$LINENO: result: no" >&5
16429echo "${ECHO_T}no" >&6; }
16430 # Default to use of the rand helper if OpenSSL doesn't
16431 # seed itself
16432 USE_RAND_HELPER=yes
16433
16434fi
16435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16436fi
16437
16438
16439
16440# Check for PAM libs
16441PAM_MSG="no"
16442
16443# Check whether --with-pam was given.
16444if test "${with_pam+set}" = set; then
16445 withval=$with_pam;
16446 if test "x$withval" != "xno" ; then
16447 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
16448 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
16449 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
16450echo "$as_me: error: PAM headers not found" >&2;}
16451 { (exit 1); exit 1; }; }
16452 fi
16453
16454 saved_LIBS="$LIBS"
16455
16456{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16457echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16458if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460else
16461 ac_check_lib_save_LIBS=$LIBS
16462LIBS="-ldl $LIBS"
16463cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469
16470/* Override any GCC internal prototype to avoid an error.
16471 Use char because int might match the return type of a GCC
16472 builtin and then its argument prototype would still apply. */
16473#ifdef __cplusplus
16474extern "C"
16475#endif
16476char dlopen ();
16477int
16478main ()
16479{
16480return dlopen ();
16481 ;
16482 return 0;
16483}
16484_ACEOF
16485rm -f conftest.$ac_objext conftest$ac_exeext
16486if { (ac_try="$ac_link"
16487case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16490esac
16491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_link") 2>conftest.er1
16493 ac_status=$?
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } && {
16499 test -z "$ac_c_werror_flag" ||
16500 test ! -s conftest.err
16501 } && test -s conftest$ac_exeext &&
16502 $as_test_x conftest$ac_exeext; then
16503 ac_cv_lib_dl_dlopen=yes
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_cv_lib_dl_dlopen=no
16509fi
16510
16511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16512 conftest$ac_exeext conftest.$ac_ext
16513LIBS=$ac_check_lib_save_LIBS
16514fi
16515{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16516echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16517if test $ac_cv_lib_dl_dlopen = yes; then
16518 cat >>confdefs.h <<_ACEOF
16519#define HAVE_LIBDL 1
16520_ACEOF
16521
16522 LIBS="-ldl $LIBS"
16523
16524fi
16525
16526
16527{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
16528echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
16529if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531else
16532 ac_check_lib_save_LIBS=$LIBS
16533LIBS="-lpam $LIBS"
16534cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540
16541/* Override any GCC internal prototype to avoid an error.
16542 Use char because int might match the return type of a GCC
16543 builtin and then its argument prototype would still apply. */
16544#ifdef __cplusplus
16545extern "C"
16546#endif
16547char pam_set_item ();
16548int
16549main ()
16550{
16551return pam_set_item ();
16552 ;
16553 return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext conftest$ac_exeext
16557if { (ac_try="$ac_link"
16558case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561esac
16562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && {
16570 test -z "$ac_c_werror_flag" ||
16571 test ! -s conftest.err
16572 } && test -s conftest$ac_exeext &&
16573 $as_test_x conftest$ac_exeext; then
16574 ac_cv_lib_pam_pam_set_item=yes
16575else
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ac_cv_lib_pam_pam_set_item=no
16580fi
16581
16582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16583 conftest$ac_exeext conftest.$ac_ext
16584LIBS=$ac_check_lib_save_LIBS
16585fi
16586{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
16587echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
16588if test $ac_cv_lib_pam_pam_set_item = yes; then
16589 cat >>confdefs.h <<_ACEOF
16590#define HAVE_LIBPAM 1
16591_ACEOF
16592
16593 LIBS="-lpam $LIBS"
16594
16595else
16596 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
16597echo "$as_me: error: *** libpam missing" >&2;}
16598 { (exit 1); exit 1; }; }
16599fi
16600
16601
16602for ac_func in pam_getenvlist
16603do
16604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16605{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16607if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609else
16610 cat >conftest.$ac_ext <<_ACEOF
16611/* confdefs.h. */
16612_ACEOF
16613cat confdefs.h >>conftest.$ac_ext
16614cat >>conftest.$ac_ext <<_ACEOF
16615/* end confdefs.h. */
16616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16618#define $ac_func innocuous_$ac_func
16619
16620/* System header to define __stub macros and hopefully few prototypes,
16621 which can conflict with char $ac_func (); below.
16622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16623 <limits.h> exists even on freestanding compilers. */
16624
16625#ifdef __STDC__
16626# include <limits.h>
16627#else
16628# include <assert.h>
16629#endif
16630
16631#undef $ac_func
16632
16633/* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16636#ifdef __cplusplus
16637extern "C"
16638#endif
16639char $ac_func ();
16640/* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643#if defined __stub_$ac_func || defined __stub___$ac_func
16644choke me
16645#endif
16646
16647int
16648main ()
16649{
16650return $ac_func ();
16651 ;
16652 return 0;
16653}
16654_ACEOF
16655rm -f conftest.$ac_objext conftest$ac_exeext
16656if { (ac_try="$ac_link"
16657case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660esac
16661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_link") 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest$ac_exeext &&
16672 $as_test_x conftest$ac_exeext; then
16673 eval "$as_ac_var=yes"
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678 eval "$as_ac_var=no"
16679fi
16680
16681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16682 conftest$ac_exeext conftest.$ac_ext
16683fi
16684ac_res=`eval echo '${'$as_ac_var'}'`
16685 { echo "$as_me:$LINENO: result: $ac_res" >&5
16686echo "${ECHO_T}$ac_res" >&6; }
16687if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690_ACEOF
16691
16692fi
16693done
16694
16695
16696for ac_func in pam_putenv
16697do
16698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16699{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16701if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703else
16704 cat >conftest.$ac_ext <<_ACEOF
16705/* confdefs.h. */
16706_ACEOF
16707cat confdefs.h >>conftest.$ac_ext
16708cat >>conftest.$ac_ext <<_ACEOF
16709/* end confdefs.h. */
16710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16712#define $ac_func innocuous_$ac_func
16713
16714/* System header to define __stub macros and hopefully few prototypes,
16715 which can conflict with char $ac_func (); below.
16716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16717 <limits.h> exists even on freestanding compilers. */
16718
16719#ifdef __STDC__
16720# include <limits.h>
16721#else
16722# include <assert.h>
16723#endif
16724
16725#undef $ac_func
16726
16727/* Override any GCC internal prototype to avoid an error.
16728 Use char because int might match the return type of a GCC
16729 builtin and then its argument prototype would still apply. */
16730#ifdef __cplusplus
16731extern "C"
16732#endif
16733char $ac_func ();
16734/* The GNU C library defines this for functions which it implements
16735 to always fail with ENOSYS. Some functions are actually named
16736 something starting with __ and the normal name is an alias. */
16737#if defined __stub_$ac_func || defined __stub___$ac_func
16738choke me
16739#endif
16740
16741int
16742main ()
16743{
16744return $ac_func ();
16745 ;
16746 return 0;
16747}
16748_ACEOF
16749rm -f conftest.$ac_objext conftest$ac_exeext
16750if { (ac_try="$ac_link"
16751case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_link") 2>conftest.er1
16757 ac_status=$?
16758 grep -v '^ *+' conftest.er1 >conftest.err
16759 rm -f conftest.er1
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } && {
16763 test -z "$ac_c_werror_flag" ||
16764 test ! -s conftest.err
16765 } && test -s conftest$ac_exeext &&
16766 $as_test_x conftest$ac_exeext; then
16767 eval "$as_ac_var=yes"
16768else
16769 echo "$as_me: failed program was:" >&5
16770sed 's/^/| /' conftest.$ac_ext >&5
16771
16772 eval "$as_ac_var=no"
16773fi
16774
16775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16776 conftest$ac_exeext conftest.$ac_ext
16777fi
16778ac_res=`eval echo '${'$as_ac_var'}'`
16779 { echo "$as_me:$LINENO: result: $ac_res" >&5
16780echo "${ECHO_T}$ac_res" >&6; }
16781if test `eval echo '${'$as_ac_var'}'` = yes; then
16782 cat >>confdefs.h <<_ACEOF
16783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16784_ACEOF
16785
16786fi
16787done
16788
16789 LIBS="$saved_LIBS"
16790
16791 PAM_MSG="yes"
16792
16793 LIBPAM="-lpam"
16794
16795cat >>confdefs.h <<\_ACEOF
16796#define USE_PAM 1
16797_ACEOF
16798
16799
16800 if test $ac_cv_lib_dl_dlopen = yes; then
16801 case "$LIBS" in
16802 *-ldl*)
16803 # libdl already in LIBS
16804 ;;
16805 *)
16806 LIBPAM="$LIBPAM -ldl"
16807 ;;
16808 esac
16809 fi
16810
16811 fi
16812
16813
16814fi
16815
16816
16817# Check for older PAM
16818if test "x$PAM_MSG" = "xyes" ; then
16819 # Check PAM strerror arguments (old PAM)
16820 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
16821echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
16822 cat >conftest.$ac_ext <<_ACEOF
16823/* confdefs.h. */
16824_ACEOF
16825cat confdefs.h >>conftest.$ac_ext
16826cat >>conftest.$ac_ext <<_ACEOF
16827/* end confdefs.h. */
16828
16829#include <stdlib.h>
16830#if defined(HAVE_SECURITY_PAM_APPL_H)
16831#include <security/pam_appl.h>
16832#elif defined (HAVE_PAM_PAM_APPL_H)
16833#include <pam/pam_appl.h>
16834#endif
16835
16836int
16837main ()
16838{
16839(void)pam_strerror((pam_handle_t *)NULL, -1);
16840 ;
16841 return 0;
16842}
16843_ACEOF
16844rm -f conftest.$ac_objext
16845if { (ac_try="$ac_compile"
16846case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16849esac
16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_compile") 2>conftest.er1
16852 ac_status=$?
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } && {
16858 test -z "$ac_c_werror_flag" ||
16859 test ! -s conftest.err
16860 } && test -s conftest.$ac_objext; then
16861 { echo "$as_me:$LINENO: result: no" >&5
16862echo "${ECHO_T}no" >&6; }
16863else
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867
16868
16869cat >>confdefs.h <<\_ACEOF
16870#define HAVE_OLD_PAM 1
16871_ACEOF
16872
16873 { echo "$as_me:$LINENO: result: yes" >&5
16874echo "${ECHO_T}yes" >&6; }
16875 PAM_MSG="yes (old library)"
16876
16877
16878fi
16879
16880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881fi
16882
16883# Do we want to force the use of the rand helper?
16884
16885# Check whether --with-rand-helper was given.
16886if test "${with_rand_helper+set}" = set; then
16887 withval=$with_rand_helper;
16888 if test "x$withval" = "xno" ; then
16889 # Force use of OpenSSL's internal RNG, even if
16890 # the previous test showed it to be unseeded.
16891 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
16892 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
16893echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
16894 OPENSSL_SEEDS_ITSELF=yes
16895 USE_RAND_HELPER=""
16896 fi
16897 else
16898 USE_RAND_HELPER=yes
16899 fi
16900
16901fi
16902
16903
16904# Which randomness source do we use?
16905if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
16906 # OpenSSL only
16907
16908cat >>confdefs.h <<\_ACEOF
16909#define OPENSSL_PRNG_ONLY 1
16910_ACEOF
16911
16912 RAND_MSG="OpenSSL internal ONLY"
16913 INSTALL_SSH_RAND_HELPER=""
16914elif test ! -z "$USE_RAND_HELPER" ; then
16915 # install rand helper
16916 RAND_MSG="ssh-rand-helper"
16917 INSTALL_SSH_RAND_HELPER="yes"
16918fi
16919
16920
16921### Configuration of ssh-rand-helper
16922
16923# PRNGD TCP socket
16924
16925# Check whether --with-prngd-port was given.
16926if test "${with_prngd_port+set}" = set; then
16927 withval=$with_prngd_port;
16928 case "$withval" in
16929 no)
16930 withval=""
16931 ;;
16932 [0-9]*)
16933 ;;
16934 *)
16935 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
16936echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
16937 { (exit 1); exit 1; }; }
16938 ;;
16939 esac
16940 if test ! -z "$withval" ; then
16941 PRNGD_PORT="$withval"
16942
16943cat >>confdefs.h <<_ACEOF
16944#define PRNGD_PORT $PRNGD_PORT
16945_ACEOF
16946
16947 fi
16948
16949
16950fi
16951
16952
16953# PRNGD Unix domain socket
16954
16955# Check whether --with-prngd-socket was given.
16956if test "${with_prngd_socket+set}" = set; then
16957 withval=$with_prngd_socket;
16958 case "$withval" in
16959 yes)
16960 withval="/var/run/egd-pool"
16961 ;;
16962 no)
16963 withval=""
16964 ;;
16965 /*)
16966 ;;
16967 *)
16968 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
16969echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
16970 { (exit 1); exit 1; }; }
16971 ;;
16972 esac
16973
16974 if test ! -z "$withval" ; then
16975 if test ! -z "$PRNGD_PORT" ; then
16976 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
16977echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
16978 { (exit 1); exit 1; }; }
16979 fi
16980 if test ! -r "$withval" ; then
16981 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
16982echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
16983 fi
16984 PRNGD_SOCKET="$withval"
16985
16986cat >>confdefs.h <<_ACEOF
16987#define PRNGD_SOCKET "$PRNGD_SOCKET"
16988_ACEOF
16989
16990 fi
16991
16992else
16993
16994 # Check for existing socket only if we don't have a random device already
16995 if test "$USE_RAND_HELPER" = yes ; then
16996 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
16997echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
16998 # Insert other locations here
16999 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
17000 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
17001 PRNGD_SOCKET="$sock"
17002 cat >>confdefs.h <<_ACEOF
17003#define PRNGD_SOCKET "$PRNGD_SOCKET"
17004_ACEOF
17005
17006 break;
17007 fi
17008 done
17009 if test ! -z "$PRNGD_SOCKET" ; then
17010 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
17011echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
17012 else
17013 { echo "$as_me:$LINENO: result: not found" >&5
17014echo "${ECHO_T}not found" >&6; }
17015 fi
17016 fi
17017
17018
17019fi
17020
17021
17022# Change default command timeout for hashing entropy source
17023entropy_timeout=200
17024
17025# Check whether --with-entropy-timeout was given.
17026if test "${with_entropy_timeout+set}" = set; then
17027 withval=$with_entropy_timeout;
17028 if test -n "$withval" && test "x$withval" != "xno" && \
17029 test "x${withval}" != "xyes"; then
17030 entropy_timeout=$withval
17031 fi
17032
17033
17034fi
17035
17036
17037cat >>confdefs.h <<_ACEOF
17038#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
17039_ACEOF
17040
17041
17042SSH_PRIVSEP_USER=sshd
17043
17044# Check whether --with-privsep-user was given.
17045if test "${with_privsep_user+set}" = set; then
17046 withval=$with_privsep_user;
17047 if test -n "$withval" && test "x$withval" != "xno" && \
17048 test "x${withval}" != "xyes"; then
17049 SSH_PRIVSEP_USER=$withval
17050 fi
17051
17052
17053fi
17054
17055
17056cat >>confdefs.h <<_ACEOF
17057#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
17058_ACEOF
17059
17060
17061
17062# We do this little dance with the search path to insure
17063# that programs that we select for use by installed programs
17064# (which may be run by the super-user) come from trusted
17065# locations before they come from the user's private area.
17066# This should help avoid accidentally configuring some
17067# random version of a program in someone's personal bin.
17068
17069OPATH=$PATH
17070PATH=/bin:/usr/bin
17071test -h /bin 2> /dev/null && PATH=/usr/bin
17072test -d /sbin && PATH=$PATH:/sbin
17073test -d /usr/sbin && PATH=$PATH:/usr/sbin
17074PATH=$PATH:/etc:$OPATH
17075
17076# These programs are used by the command hashing source to gather entropy
17077
17078 # Extract the first word of "ls", so it can be a program name with args.
17079set dummy ls; ac_word=$2
17080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17082if test "${ac_cv_path_PROG_LS+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084else
17085 case $PROG_LS in
17086 [\\/]* | ?:[\\/]*)
17087 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
17088 ;;
17089 *)
17090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17091for as_dir in $PATH
17092do
17093 IFS=$as_save_IFS
17094 test -z "$as_dir" && as_dir=.
17095 for ac_exec_ext in '' $ac_executable_extensions; do
17096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17097 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
17098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17099 break 2
17100 fi
17101done
17102done
17103IFS=$as_save_IFS
17104
17105 ;;
17106esac
17107fi
17108PROG_LS=$ac_cv_path_PROG_LS
17109if test -n "$PROG_LS"; then
17110 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
17111echo "${ECHO_T}$PROG_LS" >&6; }
17112else
17113 { echo "$as_me:$LINENO: result: no" >&5
17114echo "${ECHO_T}no" >&6; }
17115fi
17116
17117
17118 if test -z "$PROG_LS" ; then
17119 PROG_LS="undef"
17120 fi
17121
17122
17123
17124 # Extract the first word of "netstat", so it can be a program name with args.
17125set dummy netstat; ac_word=$2
17126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17128if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130else
17131 case $PROG_NETSTAT in
17132 [\\/]* | ?:[\\/]*)
17133 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
17134 ;;
17135 *)
17136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17137for as_dir in $PATH
17138do
17139 IFS=$as_save_IFS
17140 test -z "$as_dir" && as_dir=.
17141 for ac_exec_ext in '' $ac_executable_extensions; do
17142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17143 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
17144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17145 break 2
17146 fi
17147done
17148done
17149IFS=$as_save_IFS
17150
17151 ;;
17152esac
17153fi
17154PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
17155if test -n "$PROG_NETSTAT"; then
17156 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
17157echo "${ECHO_T}$PROG_NETSTAT" >&6; }
17158else
17159 { echo "$as_me:$LINENO: result: no" >&5
17160echo "${ECHO_T}no" >&6; }
17161fi
17162
17163
17164 if test -z "$PROG_NETSTAT" ; then
17165 PROG_NETSTAT="undef"
17166 fi
17167
17168
17169
17170 # Extract the first word of "arp", so it can be a program name with args.
17171set dummy arp; ac_word=$2
17172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17174if test "${ac_cv_path_PROG_ARP+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17176else
17177 case $PROG_ARP in
17178 [\\/]* | ?:[\\/]*)
17179 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
17180 ;;
17181 *)
17182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17183for as_dir in $PATH
17184do
17185 IFS=$as_save_IFS
17186 test -z "$as_dir" && as_dir=.
17187 for ac_exec_ext in '' $ac_executable_extensions; do
17188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17189 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
17190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17191 break 2
17192 fi
17193done
17194done
17195IFS=$as_save_IFS
17196
17197 ;;
17198esac
17199fi
17200PROG_ARP=$ac_cv_path_PROG_ARP
17201if test -n "$PROG_ARP"; then
17202 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
17203echo "${ECHO_T}$PROG_ARP" >&6; }
17204else
17205 { echo "$as_me:$LINENO: result: no" >&5
17206echo "${ECHO_T}no" >&6; }
17207fi
17208
17209
17210 if test -z "$PROG_ARP" ; then
17211 PROG_ARP="undef"
17212 fi
17213
17214
17215
17216 # Extract the first word of "ifconfig", so it can be a program name with args.
17217set dummy ifconfig; ac_word=$2
17218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17220if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222else
17223 case $PROG_IFCONFIG in
17224 [\\/]* | ?:[\\/]*)
17225 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
17226 ;;
17227 *)
17228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17229for as_dir in $PATH
17230do
17231 IFS=$as_save_IFS
17232 test -z "$as_dir" && as_dir=.
17233 for ac_exec_ext in '' $ac_executable_extensions; do
17234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17235 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
17236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17237 break 2
17238 fi
17239done
17240done
17241IFS=$as_save_IFS
17242
17243 ;;
17244esac
17245fi
17246PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
17247if test -n "$PROG_IFCONFIG"; then
17248 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
17249echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
17250else
17251 { echo "$as_me:$LINENO: result: no" >&5
17252echo "${ECHO_T}no" >&6; }
17253fi
17254
17255
17256 if test -z "$PROG_IFCONFIG" ; then
17257 PROG_IFCONFIG="undef"
17258 fi
17259
17260
17261
17262 # Extract the first word of "jstat", so it can be a program name with args.
17263set dummy jstat; ac_word=$2
17264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17266if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268else
17269 case $PROG_JSTAT in
17270 [\\/]* | ?:[\\/]*)
17271 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
17272 ;;
17273 *)
17274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17275for as_dir in $PATH
17276do
17277 IFS=$as_save_IFS
17278 test -z "$as_dir" && as_dir=.
17279 for ac_exec_ext in '' $ac_executable_extensions; do
17280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17281 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
17282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17283 break 2
17284 fi
17285done
17286done
17287IFS=$as_save_IFS
17288
17289 ;;
17290esac
17291fi
17292PROG_JSTAT=$ac_cv_path_PROG_JSTAT
17293if test -n "$PROG_JSTAT"; then
17294 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
17295echo "${ECHO_T}$PROG_JSTAT" >&6; }
17296else
17297 { echo "$as_me:$LINENO: result: no" >&5
17298echo "${ECHO_T}no" >&6; }
17299fi
17300
17301
17302 if test -z "$PROG_JSTAT" ; then
17303 PROG_JSTAT="undef"
17304 fi
17305
17306
17307
17308 # Extract the first word of "ps", so it can be a program name with args.
17309set dummy ps; ac_word=$2
17310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17312if test "${ac_cv_path_PROG_PS+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314else
17315 case $PROG_PS in
17316 [\\/]* | ?:[\\/]*)
17317 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
17318 ;;
17319 *)
17320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17321for as_dir in $PATH
17322do
17323 IFS=$as_save_IFS
17324 test -z "$as_dir" && as_dir=.
17325 for ac_exec_ext in '' $ac_executable_extensions; do
17326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17327 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
17328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17329 break 2
17330 fi
17331done
17332done
17333IFS=$as_save_IFS
17334
17335 ;;
17336esac
17337fi
17338PROG_PS=$ac_cv_path_PROG_PS
17339if test -n "$PROG_PS"; then
17340 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
17341echo "${ECHO_T}$PROG_PS" >&6; }
17342else
17343 { echo "$as_me:$LINENO: result: no" >&5
17344echo "${ECHO_T}no" >&6; }
17345fi
17346
17347
17348 if test -z "$PROG_PS" ; then
17349 PROG_PS="undef"
17350 fi
17351
17352
17353
17354 # Extract the first word of "sar", so it can be a program name with args.
17355set dummy sar; ac_word=$2
17356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17358if test "${ac_cv_path_PROG_SAR+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360else
17361 case $PROG_SAR in
17362 [\\/]* | ?:[\\/]*)
17363 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
17364 ;;
17365 *)
17366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17367for as_dir in $PATH
17368do
17369 IFS=$as_save_IFS
17370 test -z "$as_dir" && as_dir=.
17371 for ac_exec_ext in '' $ac_executable_extensions; do
17372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17373 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
17374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17375 break 2
17376 fi
17377done
17378done
17379IFS=$as_save_IFS
17380
17381 ;;
17382esac
17383fi
17384PROG_SAR=$ac_cv_path_PROG_SAR
17385if test -n "$PROG_SAR"; then
17386 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
17387echo "${ECHO_T}$PROG_SAR" >&6; }
17388else
17389 { echo "$as_me:$LINENO: result: no" >&5
17390echo "${ECHO_T}no" >&6; }
17391fi
17392
17393
17394 if test -z "$PROG_SAR" ; then
17395 PROG_SAR="undef"
17396 fi
17397
17398
17399
17400 # Extract the first word of "w", so it can be a program name with args.
17401set dummy w; ac_word=$2
17402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17404if test "${ac_cv_path_PROG_W+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406else
17407 case $PROG_W in
17408 [\\/]* | ?:[\\/]*)
17409 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
17410 ;;
17411 *)
17412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17413for as_dir in $PATH
17414do
17415 IFS=$as_save_IFS
17416 test -z "$as_dir" && as_dir=.
17417 for ac_exec_ext in '' $ac_executable_extensions; do
17418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17419 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
17420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17421 break 2
17422 fi
17423done
17424done
17425IFS=$as_save_IFS
17426
17427 ;;
17428esac
17429fi
17430PROG_W=$ac_cv_path_PROG_W
17431if test -n "$PROG_W"; then
17432 { echo "$as_me:$LINENO: result: $PROG_W" >&5
17433echo "${ECHO_T}$PROG_W" >&6; }
17434else
17435 { echo "$as_me:$LINENO: result: no" >&5
17436echo "${ECHO_T}no" >&6; }
17437fi
17438
17439
17440 if test -z "$PROG_W" ; then
17441 PROG_W="undef"
17442 fi
17443
17444
17445
17446 # Extract the first word of "who", so it can be a program name with args.
17447set dummy who; ac_word=$2
17448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17450if test "${ac_cv_path_PROG_WHO+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452else
17453 case $PROG_WHO in
17454 [\\/]* | ?:[\\/]*)
17455 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
17456 ;;
17457 *)
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459for as_dir in $PATH
17460do
17461 IFS=$as_save_IFS
17462 test -z "$as_dir" && as_dir=.
17463 for ac_exec_ext in '' $ac_executable_extensions; do
17464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17465 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
17466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17467 break 2
17468 fi
17469done
17470done
17471IFS=$as_save_IFS
17472
17473 ;;
17474esac
17475fi
17476PROG_WHO=$ac_cv_path_PROG_WHO
17477if test -n "$PROG_WHO"; then
17478 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
17479echo "${ECHO_T}$PROG_WHO" >&6; }
17480else
17481 { echo "$as_me:$LINENO: result: no" >&5
17482echo "${ECHO_T}no" >&6; }
17483fi
17484
17485
17486 if test -z "$PROG_WHO" ; then
17487 PROG_WHO="undef"
17488 fi
17489
17490
17491
17492 # Extract the first word of "last", so it can be a program name with args.
17493set dummy last; ac_word=$2
17494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17496if test "${ac_cv_path_PROG_LAST+set}" = set; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17498else
17499 case $PROG_LAST in
17500 [\\/]* | ?:[\\/]*)
17501 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
17502 ;;
17503 *)
17504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17505for as_dir in $PATH
17506do
17507 IFS=$as_save_IFS
17508 test -z "$as_dir" && as_dir=.
17509 for ac_exec_ext in '' $ac_executable_extensions; do
17510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17511 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
17512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17513 break 2
17514 fi
17515done
17516done
17517IFS=$as_save_IFS
17518
17519 ;;
17520esac
17521fi
17522PROG_LAST=$ac_cv_path_PROG_LAST
17523if test -n "$PROG_LAST"; then
17524 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
17525echo "${ECHO_T}$PROG_LAST" >&6; }
17526else
17527 { echo "$as_me:$LINENO: result: no" >&5
17528echo "${ECHO_T}no" >&6; }
17529fi
17530
17531
17532 if test -z "$PROG_LAST" ; then
17533 PROG_LAST="undef"
17534 fi
17535
17536
17537
17538 # Extract the first word of "lastlog", so it can be a program name with args.
17539set dummy lastlog; ac_word=$2
17540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17542if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544else
17545 case $PROG_LASTLOG in
17546 [\\/]* | ?:[\\/]*)
17547 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
17548 ;;
17549 *)
17550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17551for as_dir in $PATH
17552do
17553 IFS=$as_save_IFS
17554 test -z "$as_dir" && as_dir=.
17555 for ac_exec_ext in '' $ac_executable_extensions; do
17556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17557 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
17558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17559 break 2
17560 fi
17561done
17562done
17563IFS=$as_save_IFS
17564
17565 ;;
17566esac
17567fi
17568PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
17569if test -n "$PROG_LASTLOG"; then
17570 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
17571echo "${ECHO_T}$PROG_LASTLOG" >&6; }
17572else
17573 { echo "$as_me:$LINENO: result: no" >&5
17574echo "${ECHO_T}no" >&6; }
17575fi
17576
17577
17578 if test -z "$PROG_LASTLOG" ; then
17579 PROG_LASTLOG="undef"
17580 fi
17581
17582
17583
17584 # Extract the first word of "df", so it can be a program name with args.
17585set dummy df; ac_word=$2
17586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17588if test "${ac_cv_path_PROG_DF+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590else
17591 case $PROG_DF in
17592 [\\/]* | ?:[\\/]*)
17593 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
17594 ;;
17595 *)
17596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597for as_dir in $PATH
17598do
17599 IFS=$as_save_IFS
17600 test -z "$as_dir" && as_dir=.
17601 for ac_exec_ext in '' $ac_executable_extensions; do
17602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17603 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
17604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17605 break 2
17606 fi
17607done
17608done
17609IFS=$as_save_IFS
17610
17611 ;;
17612esac
17613fi
17614PROG_DF=$ac_cv_path_PROG_DF
17615if test -n "$PROG_DF"; then
17616 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
17617echo "${ECHO_T}$PROG_DF" >&6; }
17618else
17619 { echo "$as_me:$LINENO: result: no" >&5
17620echo "${ECHO_T}no" >&6; }
17621fi
17622
17623
17624 if test -z "$PROG_DF" ; then
17625 PROG_DF="undef"
17626 fi
17627
17628
17629
17630 # Extract the first word of "vmstat", so it can be a program name with args.
17631set dummy vmstat; ac_word=$2
17632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17634if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 case $PROG_VMSTAT in
17638 [\\/]* | ?:[\\/]*)
17639 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
17640 ;;
17641 *)
17642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643for as_dir in $PATH
17644do
17645 IFS=$as_save_IFS
17646 test -z "$as_dir" && as_dir=.
17647 for ac_exec_ext in '' $ac_executable_extensions; do
17648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17649 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
17650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17651 break 2
17652 fi
17653done
17654done
17655IFS=$as_save_IFS
17656
17657 ;;
17658esac
17659fi
17660PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
17661if test -n "$PROG_VMSTAT"; then
17662 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
17663echo "${ECHO_T}$PROG_VMSTAT" >&6; }
17664else
17665 { echo "$as_me:$LINENO: result: no" >&5
17666echo "${ECHO_T}no" >&6; }
17667fi
17668
17669
17670 if test -z "$PROG_VMSTAT" ; then
17671 PROG_VMSTAT="undef"
17672 fi
17673
17674
17675
17676 # Extract the first word of "uptime", so it can be a program name with args.
17677set dummy uptime; ac_word=$2
17678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17680if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 case $PROG_UPTIME in
17684 [\\/]* | ?:[\\/]*)
17685 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
17686 ;;
17687 *)
17688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17689for as_dir in $PATH
17690do
17691 IFS=$as_save_IFS
17692 test -z "$as_dir" && as_dir=.
17693 for ac_exec_ext in '' $ac_executable_extensions; do
17694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17695 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
17696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17697 break 2
17698 fi
17699done
17700done
17701IFS=$as_save_IFS
17702
17703 ;;
17704esac
17705fi
17706PROG_UPTIME=$ac_cv_path_PROG_UPTIME
17707if test -n "$PROG_UPTIME"; then
17708 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
17709echo "${ECHO_T}$PROG_UPTIME" >&6; }
17710else
17711 { echo "$as_me:$LINENO: result: no" >&5
17712echo "${ECHO_T}no" >&6; }
17713fi
17714
17715
17716 if test -z "$PROG_UPTIME" ; then
17717 PROG_UPTIME="undef"
17718 fi
17719
17720
17721
17722 # Extract the first word of "ipcs", so it can be a program name with args.
17723set dummy ipcs; ac_word=$2
17724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17726if test "${ac_cv_path_PROG_IPCS+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17728else
17729 case $PROG_IPCS in
17730 [\\/]* | ?:[\\/]*)
17731 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
17732 ;;
17733 *)
17734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17735for as_dir in $PATH
17736do
17737 IFS=$as_save_IFS
17738 test -z "$as_dir" && as_dir=.
17739 for ac_exec_ext in '' $ac_executable_extensions; do
17740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17741 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
17742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17743 break 2
17744 fi
17745done
17746done
17747IFS=$as_save_IFS
17748
17749 ;;
17750esac
17751fi
17752PROG_IPCS=$ac_cv_path_PROG_IPCS
17753if test -n "$PROG_IPCS"; then
17754 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
17755echo "${ECHO_T}$PROG_IPCS" >&6; }
17756else
17757 { echo "$as_me:$LINENO: result: no" >&5
17758echo "${ECHO_T}no" >&6; }
17759fi
17760
17761
17762 if test -z "$PROG_IPCS" ; then
17763 PROG_IPCS="undef"
17764 fi
17765
17766
17767
17768 # Extract the first word of "tail", so it can be a program name with args.
17769set dummy tail; ac_word=$2
17770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17772if test "${ac_cv_path_PROG_TAIL+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 case $PROG_TAIL in
17776 [\\/]* | ?:[\\/]*)
17777 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
17778 ;;
17779 *)
17780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17781for as_dir in $PATH
17782do
17783 IFS=$as_save_IFS
17784 test -z "$as_dir" && as_dir=.
17785 for ac_exec_ext in '' $ac_executable_extensions; do
17786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17787 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
17788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17789 break 2
17790 fi
17791done
17792done
17793IFS=$as_save_IFS
17794
17795 ;;
17796esac
17797fi
17798PROG_TAIL=$ac_cv_path_PROG_TAIL
17799if test -n "$PROG_TAIL"; then
17800 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
17801echo "${ECHO_T}$PROG_TAIL" >&6; }
17802else
17803 { echo "$as_me:$LINENO: result: no" >&5
17804echo "${ECHO_T}no" >&6; }
17805fi
17806
17807
17808 if test -z "$PROG_TAIL" ; then
17809 PROG_TAIL="undef"
17810 fi
17811
17812
17813# restore PATH
17814PATH=$OPATH
17815
17816# Where does ssh-rand-helper get its randomness from?
17817INSTALL_SSH_PRNG_CMDS=""
17818if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
17819 if test ! -z "$PRNGD_PORT" ; then
17820 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
17821 elif test ! -z "$PRNGD_SOCKET" ; then
17822 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
17823 else
17824 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
17825 RAND_HELPER_CMDHASH=yes
17826 INSTALL_SSH_PRNG_CMDS="yes"
17827 fi
17828fi
17829
17830
17831
17832# Cheap hack to ensure NEWS-OS libraries are arranged right.
17833if test ! -z "$SONY" ; then
17834 LIBS="$LIBS -liberty";
17835fi
17836
17837# Check for long long datatypes
17838{ echo "$as_me:$LINENO: checking for long long" >&5
17839echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
17840if test "${ac_cv_type_long_long+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842else
17843 cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
17849$ac_includes_default
17850typedef long long ac__type_new_;
17851int
17852main ()
17853{
17854if ((ac__type_new_ *) 0)
17855 return 0;
17856if (sizeof (ac__type_new_))
17857 return 0;
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext
17863if { (ac_try="$ac_compile"
17864case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17867esac
17868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_compile") 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } && {
17876 test -z "$ac_c_werror_flag" ||
17877 test ! -s conftest.err
17878 } && test -s conftest.$ac_objext; then
17879 ac_cv_type_long_long=yes
17880else
17881 echo "$as_me: failed program was:" >&5
17882sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 ac_cv_type_long_long=no
17885fi
17886
17887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888fi
17889{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17890echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17891if test $ac_cv_type_long_long = yes; then
17892
17893cat >>confdefs.h <<_ACEOF
17894#define HAVE_LONG_LONG 1
17895_ACEOF
17896
17897
17898fi
17899{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
17900echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
17901if test "${ac_cv_type_unsigned_long_long+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903else
17904 cat >conftest.$ac_ext <<_ACEOF
17905/* confdefs.h. */
17906_ACEOF
17907cat confdefs.h >>conftest.$ac_ext
17908cat >>conftest.$ac_ext <<_ACEOF
17909/* end confdefs.h. */
17910$ac_includes_default
17911typedef unsigned long long ac__type_new_;
17912int
17913main ()
17914{
17915if ((ac__type_new_ *) 0)
17916 return 0;
17917if (sizeof (ac__type_new_))
17918 return 0;
17919 ;
17920 return 0;
17921}
17922_ACEOF
17923rm -f conftest.$ac_objext
17924if { (ac_try="$ac_compile"
17925case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928esac
17929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest.$ac_objext; then
17940 ac_cv_type_unsigned_long_long=yes
17941else
17942 echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_cv_type_unsigned_long_long=no
17946fi
17947
17948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949fi
17950{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
17951echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
17952if test $ac_cv_type_unsigned_long_long = yes; then
17953
17954cat >>confdefs.h <<_ACEOF
17955#define HAVE_UNSIGNED_LONG_LONG 1
17956_ACEOF
17957
17958
17959fi
17960{ echo "$as_me:$LINENO: checking for long double" >&5
17961echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
17962if test "${ac_cv_type_long_double+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964else
17965 cat >conftest.$ac_ext <<_ACEOF
17966/* confdefs.h. */
17967_ACEOF
17968cat confdefs.h >>conftest.$ac_ext
17969cat >>conftest.$ac_ext <<_ACEOF
17970/* end confdefs.h. */
17971$ac_includes_default
17972typedef long double ac__type_new_;
17973int
17974main ()
17975{
17976if ((ac__type_new_ *) 0)
17977 return 0;
17978if (sizeof (ac__type_new_))
17979 return 0;
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984rm -f conftest.$ac_objext
17985if { (ac_try="$ac_compile"
17986case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989esac
17990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_compile") 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } && {
17998 test -z "$ac_c_werror_flag" ||
17999 test ! -s conftest.err
18000 } && test -s conftest.$ac_objext; then
18001 ac_cv_type_long_double=yes
18002else
18003 echo "$as_me: failed program was:" >&5
18004sed 's/^/| /' conftest.$ac_ext >&5
18005
18006 ac_cv_type_long_double=no
18007fi
18008
18009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010fi
18011{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
18012echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
18013if test $ac_cv_type_long_double = yes; then
18014
18015cat >>confdefs.h <<_ACEOF
18016#define HAVE_LONG_DOUBLE 1
18017_ACEOF
18018
18019
18020fi
18021
18022
18023# Check datatype sizes
18024{ echo "$as_me:$LINENO: checking for char" >&5
18025echo $ECHO_N "checking for char... $ECHO_C" >&6; }
18026if test "${ac_cv_type_char+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028else
18029 cat >conftest.$ac_ext <<_ACEOF
18030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
18035$ac_includes_default
18036typedef char ac__type_new_;
18037int
18038main ()
18039{
18040if ((ac__type_new_ *) 0)
18041 return 0;
18042if (sizeof (ac__type_new_))
18043 return 0;
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
18049if { (ac_try="$ac_compile"
18050case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053esac
18054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_compile") 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } && {
18062 test -z "$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 } && test -s conftest.$ac_objext; then
18065 ac_cv_type_char=yes
18066else
18067 echo "$as_me: failed program was:" >&5
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ac_cv_type_char=no
18071fi
18072
18073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074fi
18075{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18076echo "${ECHO_T}$ac_cv_type_char" >&6; }
18077
18078# The cast to long int works around a bug in the HP C Compiler
18079# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18080# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18081# This bug is HP SR number 8606223364.
18082{ echo "$as_me:$LINENO: checking size of char" >&5
18083echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
18084if test "${ac_cv_sizeof_char+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086else
18087 if test "$cross_compiling" = yes; then
18088 # Depending upon the size, compute the lo and hi bounds.
18089cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h. */
18095$ac_includes_default
18096 typedef char ac__type_sizeof_;
18097int
18098main ()
18099{
18100static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18101test_array [0] = 0
18102
18103 ;
18104 return 0;
18105}
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (ac_try="$ac_compile"
18109case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112esac
18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_compile") 2>conftest.er1
18115 ac_status=$?
18116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } && {
18121 test -z "$ac_c_werror_flag" ||
18122 test ! -s conftest.err
18123 } && test -s conftest.$ac_objext; then
18124 ac_lo=0 ac_mid=0
18125 while :; do
18126 cat >conftest.$ac_ext <<_ACEOF
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
18132$ac_includes_default
18133 typedef char ac__type_sizeof_;
18134int
18135main ()
18136{
18137static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18138test_array [0] = 0
18139
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext
18145if { (ac_try="$ac_compile"
18146case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149esac
18150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_compile") 2>conftest.er1
18152 ac_status=$?
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } && {
18158 test -z "$ac_c_werror_flag" ||
18159 test ! -s conftest.err
18160 } && test -s conftest.$ac_objext; then
18161 ac_hi=$ac_mid; break
18162else
18163 echo "$as_me: failed program was:" >&5
18164sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 ac_lo=`expr $ac_mid + 1`
18167 if test $ac_lo -le $ac_mid; then
18168 ac_lo= ac_hi=
18169 break
18170 fi
18171 ac_mid=`expr 2 '*' $ac_mid + 1`
18172fi
18173
18174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175 done
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 cat >conftest.$ac_ext <<_ACEOF
18181/* confdefs.h. */
18182_ACEOF
18183cat confdefs.h >>conftest.$ac_ext
18184cat >>conftest.$ac_ext <<_ACEOF
18185/* end confdefs.h. */
18186$ac_includes_default
18187 typedef char ac__type_sizeof_;
18188int
18189main ()
18190{
18191static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18192test_array [0] = 0
18193
18194 ;
18195 return 0;
18196}
18197_ACEOF
18198rm -f conftest.$ac_objext
18199if { (ac_try="$ac_compile"
18200case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203esac
18204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_compile") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && {
18212 test -z "$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 } && test -s conftest.$ac_objext; then
18215 ac_hi=-1 ac_mid=-1
18216 while :; do
18217 cat >conftest.$ac_ext <<_ACEOF
18218/* confdefs.h. */
18219_ACEOF
18220cat confdefs.h >>conftest.$ac_ext
18221cat >>conftest.$ac_ext <<_ACEOF
18222/* end confdefs.h. */
18223$ac_includes_default
18224 typedef char ac__type_sizeof_;
18225int
18226main ()
18227{
18228static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18229test_array [0] = 0
18230
18231 ;
18232 return 0;
18233}
18234_ACEOF
18235rm -f conftest.$ac_objext
18236if { (ac_try="$ac_compile"
18237case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18240esac
18241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_compile") 2>conftest.er1
18243 ac_status=$?
18244 grep -v '^ *+' conftest.er1 >conftest.err
18245 rm -f conftest.er1
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } && {
18249 test -z "$ac_c_werror_flag" ||
18250 test ! -s conftest.err
18251 } && test -s conftest.$ac_objext; then
18252 ac_lo=$ac_mid; break
18253else
18254 echo "$as_me: failed program was:" >&5
18255sed 's/^/| /' conftest.$ac_ext >&5
18256
18257 ac_hi=`expr '(' $ac_mid ')' - 1`
18258 if test $ac_mid -le $ac_hi; then
18259 ac_lo= ac_hi=
18260 break
18261 fi
18262 ac_mid=`expr 2 '*' $ac_mid`
18263fi
18264
18265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266 done
18267else
18268 echo "$as_me: failed program was:" >&5
18269sed 's/^/| /' conftest.$ac_ext >&5
18270
18271 ac_lo= ac_hi=
18272fi
18273
18274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18275fi
18276
18277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18278# Binary search between lo and hi bounds.
18279while test "x$ac_lo" != "x$ac_hi"; do
18280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18281 cat >conftest.$ac_ext <<_ACEOF
18282/* confdefs.h. */
18283_ACEOF
18284cat confdefs.h >>conftest.$ac_ext
18285cat >>conftest.$ac_ext <<_ACEOF
18286/* end confdefs.h. */
18287$ac_includes_default
18288 typedef char ac__type_sizeof_;
18289int
18290main ()
18291{
18292static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18293test_array [0] = 0
18294
18295 ;
18296 return 0;
18297}
18298_ACEOF
18299rm -f conftest.$ac_objext
18300if { (ac_try="$ac_compile"
18301case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304esac
18305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_compile") 2>conftest.er1
18307 ac_status=$?
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } && {
18313 test -z "$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18315 } && test -s conftest.$ac_objext; then
18316 ac_hi=$ac_mid
18317else
18318 echo "$as_me: failed program was:" >&5
18319sed 's/^/| /' conftest.$ac_ext >&5
18320
18321 ac_lo=`expr '(' $ac_mid ')' + 1`
18322fi
18323
18324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325done
18326case $ac_lo in
18327?*) ac_cv_sizeof_char=$ac_lo;;
18328'') if test "$ac_cv_type_char" = yes; then
18329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18330See \`config.log' for more details." >&5
18331echo "$as_me: error: cannot compute sizeof (char)
18332See \`config.log' for more details." >&2;}
18333 { (exit 77); exit 77; }; }
18334 else
18335 ac_cv_sizeof_char=0
18336 fi ;;
18337esac
18338else
18339 cat >conftest.$ac_ext <<_ACEOF
18340/* confdefs.h. */
18341_ACEOF
18342cat confdefs.h >>conftest.$ac_ext
18343cat >>conftest.$ac_ext <<_ACEOF
18344/* end confdefs.h. */
18345$ac_includes_default
18346 typedef char ac__type_sizeof_;
18347static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18348static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18349#include <stdio.h>
18350#include <stdlib.h>
18351int
18352main ()
18353{
18354
18355 FILE *f = fopen ("conftest.val", "w");
18356 if (! f)
18357 return 1;
18358 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18359 {
18360 long int i = longval ();
18361 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18362 return 1;
18363 fprintf (f, "%ld\n", i);
18364 }
18365 else
18366 {
18367 unsigned long int i = ulongval ();
18368 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18369 return 1;
18370 fprintf (f, "%lu\n", i);
18371 }
18372 return ferror (f) || fclose (f) != 0;
18373
18374 ;
18375 return 0;
18376}
18377_ACEOF
18378rm -f conftest$ac_exeext
18379if { (ac_try="$ac_link"
18380case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18383esac
18384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_link") 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18389 { (case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392esac
18393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_try") 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_sizeof_char=`cat conftest.val`
18399else
18400 echo "$as_me: program exited with status $ac_status" >&5
18401echo "$as_me: failed program was:" >&5
18402sed 's/^/| /' conftest.$ac_ext >&5
18403
18404( exit $ac_status )
18405if test "$ac_cv_type_char" = yes; then
18406 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18407See \`config.log' for more details." >&5
18408echo "$as_me: error: cannot compute sizeof (char)
18409See \`config.log' for more details." >&2;}
18410 { (exit 77); exit 77; }; }
18411 else
18412 ac_cv_sizeof_char=0
18413 fi
18414fi
18415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18416fi
18417rm -f conftest.val
18418fi
18419{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18420echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18421
18422
18423
18424cat >>confdefs.h <<_ACEOF
18425#define SIZEOF_CHAR $ac_cv_sizeof_char
18426_ACEOF
18427
18428
18429{ echo "$as_me:$LINENO: checking for short int" >&5
18430echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
18431if test "${ac_cv_type_short_int+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433else
18434 cat >conftest.$ac_ext <<_ACEOF
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
18440$ac_includes_default
18441typedef short int ac__type_new_;
18442int
18443main ()
18444{
18445if ((ac__type_new_ *) 0)
18446 return 0;
18447if (sizeof (ac__type_new_))
18448 return 0;
18449 ;
18450 return 0;
18451}
18452_ACEOF
18453rm -f conftest.$ac_objext
18454if { (ac_try="$ac_compile"
18455case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_compile") 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest.$ac_objext; then
18470 ac_cv_type_short_int=yes
18471else
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 ac_cv_type_short_int=no
18476fi
18477
18478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479fi
18480{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
18481echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
18482
18483# The cast to long int works around a bug in the HP C Compiler
18484# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18485# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18486# This bug is HP SR number 8606223364.
18487{ echo "$as_me:$LINENO: checking size of short int" >&5
18488echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
18489if test "${ac_cv_sizeof_short_int+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491else
18492 if test "$cross_compiling" = yes; then
18493 # Depending upon the size, compute the lo and hi bounds.
18494cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500$ac_includes_default
18501 typedef short int ac__type_sizeof_;
18502int
18503main ()
18504{
18505static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18506test_array [0] = 0
18507
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (ac_try="$ac_compile"
18514case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_compile") 2>conftest.er1
18520 ac_status=$?
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && {
18526 test -z "$ac_c_werror_flag" ||
18527 test ! -s conftest.err
18528 } && test -s conftest.$ac_objext; then
18529 ac_lo=0 ac_mid=0
18530 while :; do
18531 cat >conftest.$ac_ext <<_ACEOF
18532/* confdefs.h. */
18533_ACEOF
18534cat confdefs.h >>conftest.$ac_ext
18535cat >>conftest.$ac_ext <<_ACEOF
18536/* end confdefs.h. */
18537$ac_includes_default
18538 typedef short int ac__type_sizeof_;
18539int
18540main ()
18541{
18542static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18543test_array [0] = 0
18544
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549rm -f conftest.$ac_objext
18550if { (ac_try="$ac_compile"
18551case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18554esac
18555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_compile") 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest.$ac_objext; then
18566 ac_hi=$ac_mid; break
18567else
18568 echo "$as_me: failed program was:" >&5
18569sed 's/^/| /' conftest.$ac_ext >&5
18570
18571 ac_lo=`expr $ac_mid + 1`
18572 if test $ac_lo -le $ac_mid; then
18573 ac_lo= ac_hi=
18574 break
18575 fi
18576 ac_mid=`expr 2 '*' $ac_mid + 1`
18577fi
18578
18579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18580 done
18581else
18582 echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585 cat >conftest.$ac_ext <<_ACEOF
18586/* confdefs.h. */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h. */
18591$ac_includes_default
18592 typedef short int ac__type_sizeof_;
18593int
18594main ()
18595{
18596static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18597test_array [0] = 0
18598
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext
18604if { (ac_try="$ac_compile"
18605case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608esac
18609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.$ac_objext; then
18620 ac_hi=-1 ac_mid=-1
18621 while :; do
18622 cat >conftest.$ac_ext <<_ACEOF
18623/* confdefs.h. */
18624_ACEOF
18625cat confdefs.h >>conftest.$ac_ext
18626cat >>conftest.$ac_ext <<_ACEOF
18627/* end confdefs.h. */
18628$ac_includes_default
18629 typedef short int ac__type_sizeof_;
18630int
18631main ()
18632{
18633static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18634test_array [0] = 0
18635
18636 ;
18637 return 0;
18638}
18639_ACEOF
18640rm -f conftest.$ac_objext
18641if { (ac_try="$ac_compile"
18642case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645esac
18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_compile") 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && {
18654 test -z "$ac_c_werror_flag" ||
18655 test ! -s conftest.err
18656 } && test -s conftest.$ac_objext; then
18657 ac_lo=$ac_mid; break
18658else
18659 echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662 ac_hi=`expr '(' $ac_mid ')' - 1`
18663 if test $ac_mid -le $ac_hi; then
18664 ac_lo= ac_hi=
18665 break
18666 fi
18667 ac_mid=`expr 2 '*' $ac_mid`
18668fi
18669
18670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18671 done
18672else
18673 echo "$as_me: failed program was:" >&5
18674sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_lo= ac_hi=
18677fi
18678
18679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680fi
18681
18682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683# Binary search between lo and hi bounds.
18684while test "x$ac_lo" != "x$ac_hi"; do
18685 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18686 cat >conftest.$ac_ext <<_ACEOF
18687/* confdefs.h. */
18688_ACEOF
18689cat confdefs.h >>conftest.$ac_ext
18690cat >>conftest.$ac_ext <<_ACEOF
18691/* end confdefs.h. */
18692$ac_includes_default
18693 typedef short int ac__type_sizeof_;
18694int
18695main ()
18696{
18697static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18698test_array [0] = 0
18699
18700 ;
18701 return 0;
18702}
18703_ACEOF
18704rm -f conftest.$ac_objext
18705if { (ac_try="$ac_compile"
18706case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709esac
18710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_compile") 2>conftest.er1
18712 ac_status=$?
18713 grep -v '^ *+' conftest.er1 >conftest.err
18714 rm -f conftest.er1
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } && {
18718 test -z "$ac_c_werror_flag" ||
18719 test ! -s conftest.err
18720 } && test -s conftest.$ac_objext; then
18721 ac_hi=$ac_mid
18722else
18723 echo "$as_me: failed program was:" >&5
18724sed 's/^/| /' conftest.$ac_ext >&5
18725
18726 ac_lo=`expr '(' $ac_mid ')' + 1`
18727fi
18728
18729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18730done
18731case $ac_lo in
18732?*) ac_cv_sizeof_short_int=$ac_lo;;
18733'') if test "$ac_cv_type_short_int" = yes; then
18734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
18735See \`config.log' for more details." >&5
18736echo "$as_me: error: cannot compute sizeof (short int)
18737See \`config.log' for more details." >&2;}
18738 { (exit 77); exit 77; }; }
18739 else
18740 ac_cv_sizeof_short_int=0
18741 fi ;;
18742esac
18743else
18744 cat >conftest.$ac_ext <<_ACEOF
18745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
18750$ac_includes_default
18751 typedef short int ac__type_sizeof_;
18752static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18753static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18754#include <stdio.h>
18755#include <stdlib.h>
18756int
18757main ()
18758{
18759
18760 FILE *f = fopen ("conftest.val", "w");
18761 if (! f)
18762 return 1;
18763 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18764 {
18765 long int i = longval ();
18766 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18767 return 1;
18768 fprintf (f, "%ld\n", i);
18769 }
18770 else
18771 {
18772 unsigned long int i = ulongval ();
18773 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18774 return 1;
18775 fprintf (f, "%lu\n", i);
18776 }
18777 return ferror (f) || fclose (f) != 0;
18778
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest$ac_exeext
18784if { (ac_try="$ac_link"
18785case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 ac_cv_sizeof_short_int=`cat conftest.val`
18804else
18805 echo "$as_me: program exited with status $ac_status" >&5
18806echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809( exit $ac_status )
18810if test "$ac_cv_type_short_int" = yes; then
18811 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
18812See \`config.log' for more details." >&5
18813echo "$as_me: error: cannot compute sizeof (short int)
18814See \`config.log' for more details." >&2;}
18815 { (exit 77); exit 77; }; }
18816 else
18817 ac_cv_sizeof_short_int=0
18818 fi
18819fi
18820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18821fi
18822rm -f conftest.val
18823fi
18824{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
18825echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
18826
18827
18828
18829cat >>confdefs.h <<_ACEOF
18830#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
18831_ACEOF
18832
18833
18834{ echo "$as_me:$LINENO: checking for int" >&5
18835echo $ECHO_N "checking for int... $ECHO_C" >&6; }
18836if test "${ac_cv_type_int+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839 cat >conftest.$ac_ext <<_ACEOF
18840/* confdefs.h. */
18841_ACEOF
18842cat confdefs.h >>conftest.$ac_ext
18843cat >>conftest.$ac_ext <<_ACEOF
18844/* end confdefs.h. */
18845$ac_includes_default
18846typedef int ac__type_new_;
18847int
18848main ()
18849{
18850if ((ac__type_new_ *) 0)
18851 return 0;
18852if (sizeof (ac__type_new_))
18853 return 0;
18854 ;
18855 return 0;
18856}
18857_ACEOF
18858rm -f conftest.$ac_objext
18859if { (ac_try="$ac_compile"
18860case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_compile") 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } && {
18872 test -z "$ac_c_werror_flag" ||
18873 test ! -s conftest.err
18874 } && test -s conftest.$ac_objext; then
18875 ac_cv_type_int=yes
18876else
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 ac_cv_type_int=no
18881fi
18882
18883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18884fi
18885{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18886echo "${ECHO_T}$ac_cv_type_int" >&6; }
18887
18888# The cast to long int works around a bug in the HP C Compiler
18889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18891# This bug is HP SR number 8606223364.
18892{ echo "$as_me:$LINENO: checking size of int" >&5
18893echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
18894if test "${ac_cv_sizeof_int+set}" = set; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18896else
18897 if test "$cross_compiling" = yes; then
18898 # Depending upon the size, compute the lo and hi bounds.
18899cat >conftest.$ac_ext <<_ACEOF
18900/* confdefs.h. */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h. */
18905$ac_includes_default
18906 typedef int ac__type_sizeof_;
18907int
18908main ()
18909{
18910static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18911test_array [0] = 0
18912
18913 ;
18914 return 0;
18915}
18916_ACEOF
18917rm -f conftest.$ac_objext
18918if { (ac_try="$ac_compile"
18919case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18922esac
18923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_compile") 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } && {
18931 test -z "$ac_c_werror_flag" ||
18932 test ! -s conftest.err
18933 } && test -s conftest.$ac_objext; then
18934 ac_lo=0 ac_mid=0
18935 while :; do
18936 cat >conftest.$ac_ext <<_ACEOF
18937/* confdefs.h. */
18938_ACEOF
18939cat confdefs.h >>conftest.$ac_ext
18940cat >>conftest.$ac_ext <<_ACEOF
18941/* end confdefs.h. */
18942$ac_includes_default
18943 typedef int ac__type_sizeof_;
18944int
18945main ()
18946{
18947static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18948test_array [0] = 0
18949
18950 ;
18951 return 0;
18952}
18953_ACEOF
18954rm -f conftest.$ac_objext
18955if { (ac_try="$ac_compile"
18956case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18959esac
18960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_compile") 2>conftest.er1
18962 ac_status=$?
18963 grep -v '^ *+' conftest.er1 >conftest.err
18964 rm -f conftest.er1
18965 cat conftest.err >&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } && {
18968 test -z "$ac_c_werror_flag" ||
18969 test ! -s conftest.err
18970 } && test -s conftest.$ac_objext; then
18971 ac_hi=$ac_mid; break
18972else
18973 echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976 ac_lo=`expr $ac_mid + 1`
18977 if test $ac_lo -le $ac_mid; then
18978 ac_lo= ac_hi=
18979 break
18980 fi
18981 ac_mid=`expr 2 '*' $ac_mid + 1`
18982fi
18983
18984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18985 done
18986else
18987 echo "$as_me: failed program was:" >&5
18988sed 's/^/| /' conftest.$ac_ext >&5
18989
18990 cat >conftest.$ac_ext <<_ACEOF
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996$ac_includes_default
18997 typedef int ac__type_sizeof_;
18998int
18999main ()
19000{
19001static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19002test_array [0] = 0
19003
19004 ;
19005 return 0;
19006}
19007_ACEOF
19008rm -f conftest.$ac_objext
19009if { (ac_try="$ac_compile"
19010case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19013esac
19014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_compile") 2>conftest.er1
19016 ac_status=$?
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } && {
19022 test -z "$ac_c_werror_flag" ||
19023 test ! -s conftest.err
19024 } && test -s conftest.$ac_objext; then
19025 ac_hi=-1 ac_mid=-1
19026 while :; do
19027 cat >conftest.$ac_ext <<_ACEOF
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
19033$ac_includes_default
19034 typedef int ac__type_sizeof_;
19035int
19036main ()
19037{
19038static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19039test_array [0] = 0
19040
19041 ;
19042 return 0;
19043}
19044_ACEOF
19045rm -f conftest.$ac_objext
19046if { (ac_try="$ac_compile"
19047case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_compile") 2>conftest.er1
19053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest.$ac_objext; then
19062 ac_lo=$ac_mid; break
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_hi=`expr '(' $ac_mid ')' - 1`
19068 if test $ac_mid -le $ac_hi; then
19069 ac_lo= ac_hi=
19070 break
19071 fi
19072 ac_mid=`expr 2 '*' $ac_mid`
19073fi
19074
19075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19076 done
19077else
19078 echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_lo= ac_hi=
19082fi
19083
19084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19085fi
19086
19087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088# Binary search between lo and hi bounds.
19089while test "x$ac_lo" != "x$ac_hi"; do
19090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19091 cat >conftest.$ac_ext <<_ACEOF
19092/* confdefs.h. */
19093_ACEOF
19094cat confdefs.h >>conftest.$ac_ext
19095cat >>conftest.$ac_ext <<_ACEOF
19096/* end confdefs.h. */
19097$ac_includes_default
19098 typedef int ac__type_sizeof_;
19099int
19100main ()
19101{
19102static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19103test_array [0] = 0
19104
19105 ;
19106 return 0;
19107}
19108_ACEOF
19109rm -f conftest.$ac_objext
19110if { (ac_try="$ac_compile"
19111case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19114esac
19115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_compile") 2>conftest.er1
19117 ac_status=$?
19118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } && {
19123 test -z "$ac_c_werror_flag" ||
19124 test ! -s conftest.err
19125 } && test -s conftest.$ac_objext; then
19126 ac_hi=$ac_mid
19127else
19128 echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 ac_lo=`expr '(' $ac_mid ')' + 1`
19132fi
19133
19134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135done
19136case $ac_lo in
19137?*) ac_cv_sizeof_int=$ac_lo;;
19138'') if test "$ac_cv_type_int" = yes; then
19139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19140See \`config.log' for more details." >&5
19141echo "$as_me: error: cannot compute sizeof (int)
19142See \`config.log' for more details." >&2;}
19143 { (exit 77); exit 77; }; }
19144 else
19145 ac_cv_sizeof_int=0
19146 fi ;;
19147esac
19148else
19149 cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
19155$ac_includes_default
19156 typedef int ac__type_sizeof_;
19157static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19158static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19159#include <stdio.h>
19160#include <stdlib.h>
19161int
19162main ()
19163{
19164
19165 FILE *f = fopen ("conftest.val", "w");
19166 if (! f)
19167 return 1;
19168 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19169 {
19170 long int i = longval ();
19171 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19172 return 1;
19173 fprintf (f, "%ld\n", i);
19174 }
19175 else
19176 {
19177 unsigned long int i = ulongval ();
19178 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19179 return 1;
19180 fprintf (f, "%lu\n", i);
19181 }
19182 return ferror (f) || fclose (f) != 0;
19183
19184 ;
19185 return 0;
19186}
19187_ACEOF
19188rm -f conftest$ac_exeext
19189if { (ac_try="$ac_link"
19190case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193esac
19194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_sizeof_int=`cat conftest.val`
19209else
19210 echo "$as_me: program exited with status $ac_status" >&5
19211echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213
19214( exit $ac_status )
19215if test "$ac_cv_type_int" = yes; then
19216 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19217See \`config.log' for more details." >&5
19218echo "$as_me: error: cannot compute sizeof (int)
19219See \`config.log' for more details." >&2;}
19220 { (exit 77); exit 77; }; }
19221 else
19222 ac_cv_sizeof_int=0
19223 fi
19224fi
19225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19226fi
19227rm -f conftest.val
19228fi
19229{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19230echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19231
19232
19233
19234cat >>confdefs.h <<_ACEOF
19235#define SIZEOF_INT $ac_cv_sizeof_int
19236_ACEOF
19237
19238
19239{ echo "$as_me:$LINENO: checking for long int" >&5
19240echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
19241if test "${ac_cv_type_long_int+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
19244 cat >conftest.$ac_ext <<_ACEOF
19245/* confdefs.h. */
19246_ACEOF
19247cat confdefs.h >>conftest.$ac_ext
19248cat >>conftest.$ac_ext <<_ACEOF
19249/* end confdefs.h. */
19250$ac_includes_default
19251typedef long int ac__type_new_;
19252int
19253main ()
19254{
19255if ((ac__type_new_ *) 0)
19256 return 0;
19257if (sizeof (ac__type_new_))
19258 return 0;
19259 ;
19260 return 0;
19261}
19262_ACEOF
19263rm -f conftest.$ac_objext
19264if { (ac_try="$ac_compile"
19265case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19268esac
19269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_compile") 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && {
19277 test -z "$ac_c_werror_flag" ||
19278 test ! -s conftest.err
19279 } && test -s conftest.$ac_objext; then
19280 ac_cv_type_long_int=yes
19281else
19282 echo "$as_me: failed program was:" >&5
19283sed 's/^/| /' conftest.$ac_ext >&5
19284
19285 ac_cv_type_long_int=no
19286fi
19287
19288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289fi
19290{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
19291echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
19292
19293# The cast to long int works around a bug in the HP C Compiler
19294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19296# This bug is HP SR number 8606223364.
19297{ echo "$as_me:$LINENO: checking size of long int" >&5
19298echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
19299if test "${ac_cv_sizeof_long_int+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19301else
19302 if test "$cross_compiling" = yes; then
19303 # Depending upon the size, compute the lo and hi bounds.
19304cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
19309/* end confdefs.h. */
19310$ac_includes_default
19311 typedef long int ac__type_sizeof_;
19312int
19313main ()
19314{
19315static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19316test_array [0] = 0
19317
19318 ;
19319 return 0;
19320}
19321_ACEOF
19322rm -f conftest.$ac_objext
19323if { (ac_try="$ac_compile"
19324case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19327esac
19328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && {
19336 test -z "$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 } && test -s conftest.$ac_objext; then
19339 ac_lo=0 ac_mid=0
19340 while :; do
19341 cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
19347$ac_includes_default
19348 typedef long int ac__type_sizeof_;
19349int
19350main ()
19351{
19352static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19353test_array [0] = 0
19354
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest.$ac_objext
19360if { (ac_try="$ac_compile"
19361case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364esac
19365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } && {
19373 test -z "$ac_c_werror_flag" ||
19374 test ! -s conftest.err
19375 } && test -s conftest.$ac_objext; then
19376 ac_hi=$ac_mid; break
19377else
19378 echo "$as_me: failed program was:" >&5
19379sed 's/^/| /' conftest.$ac_ext >&5
19380
19381 ac_lo=`expr $ac_mid + 1`
19382 if test $ac_lo -le $ac_mid; then
19383 ac_lo= ac_hi=
19384 break
19385 fi
19386 ac_mid=`expr 2 '*' $ac_mid + 1`
19387fi
19388
19389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 done
19391else
19392 echo "$as_me: failed program was:" >&5
19393sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h. */
19401$ac_includes_default
19402 typedef long int ac__type_sizeof_;
19403int
19404main ()
19405{
19406static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19407test_array [0] = 0
19408
19409 ;
19410 return 0;
19411}
19412_ACEOF
19413rm -f conftest.$ac_objext
19414if { (ac_try="$ac_compile"
19415case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418esac
19419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_compile") 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest.$ac_objext; then
19430 ac_hi=-1 ac_mid=-1
19431 while :; do
19432 cat >conftest.$ac_ext <<_ACEOF
19433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
19438$ac_includes_default
19439 typedef long int ac__type_sizeof_;
19440int
19441main ()
19442{
19443static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19444test_array [0] = 0
19445
19446 ;
19447 return 0;
19448}
19449_ACEOF
19450rm -f conftest.$ac_objext
19451if { (ac_try="$ac_compile"
19452case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455esac
19456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_compile") 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } && {
19464 test -z "$ac_c_werror_flag" ||
19465 test ! -s conftest.err
19466 } && test -s conftest.$ac_objext; then
19467 ac_lo=$ac_mid; break
19468else
19469 echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
19472 ac_hi=`expr '(' $ac_mid ')' - 1`
19473 if test $ac_mid -le $ac_hi; then
19474 ac_lo= ac_hi=
19475 break
19476 fi
19477 ac_mid=`expr 2 '*' $ac_mid`
19478fi
19479
19480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481 done
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_lo= ac_hi=
19487fi
19488
19489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490fi
19491
19492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493# Binary search between lo and hi bounds.
19494while test "x$ac_lo" != "x$ac_hi"; do
19495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19496 cat >conftest.$ac_ext <<_ACEOF
19497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
19502$ac_includes_default
19503 typedef long int ac__type_sizeof_;
19504int
19505main ()
19506{
19507static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19508test_array [0] = 0
19509
19510 ;
19511 return 0;
19512}
19513_ACEOF
19514rm -f conftest.$ac_objext
19515if { (ac_try="$ac_compile"
19516case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_compile") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } && {
19528 test -z "$ac_c_werror_flag" ||
19529 test ! -s conftest.err
19530 } && test -s conftest.$ac_objext; then
19531 ac_hi=$ac_mid
19532else
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536 ac_lo=`expr '(' $ac_mid ')' + 1`
19537fi
19538
19539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540done
19541case $ac_lo in
19542?*) ac_cv_sizeof_long_int=$ac_lo;;
19543'') if test "$ac_cv_type_long_int" = yes; then
19544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
19545See \`config.log' for more details." >&5
19546echo "$as_me: error: cannot compute sizeof (long int)
19547See \`config.log' for more details." >&2;}
19548 { (exit 77); exit 77; }; }
19549 else
19550 ac_cv_sizeof_long_int=0
19551 fi ;;
19552esac
19553else
19554 cat >conftest.$ac_ext <<_ACEOF
19555/* confdefs.h. */
19556_ACEOF
19557cat confdefs.h >>conftest.$ac_ext
19558cat >>conftest.$ac_ext <<_ACEOF
19559/* end confdefs.h. */
19560$ac_includes_default
19561 typedef long int ac__type_sizeof_;
19562static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19563static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19564#include <stdio.h>
19565#include <stdlib.h>
19566int
19567main ()
19568{
19569
19570 FILE *f = fopen ("conftest.val", "w");
19571 if (! f)
19572 return 1;
19573 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19574 {
19575 long int i = longval ();
19576 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19577 return 1;
19578 fprintf (f, "%ld\n", i);
19579 }
19580 else
19581 {
19582 unsigned long int i = ulongval ();
19583 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19584 return 1;
19585 fprintf (f, "%lu\n", i);
19586 }
19587 return ferror (f) || fclose (f) != 0;
19588
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest$ac_exeext
19594if { (ac_try="$ac_link"
19595case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19598esac
19599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_link") 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607esac
19608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_sizeof_long_int=`cat conftest.val`
19614else
19615 echo "$as_me: program exited with status $ac_status" >&5
19616echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
19619( exit $ac_status )
19620if test "$ac_cv_type_long_int" = yes; then
19621 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
19622See \`config.log' for more details." >&5
19623echo "$as_me: error: cannot compute sizeof (long int)
19624See \`config.log' for more details." >&2;}
19625 { (exit 77); exit 77; }; }
19626 else
19627 ac_cv_sizeof_long_int=0
19628 fi
19629fi
19630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19631fi
19632rm -f conftest.val
19633fi
19634{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
19635echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
19636
19637
19638
19639cat >>confdefs.h <<_ACEOF
19640#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
19641_ACEOF
19642
19643
19644{ echo "$as_me:$LINENO: checking for long long int" >&5
19645echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
19646if test "${ac_cv_type_long_long_int+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648else
19649 cat >conftest.$ac_ext <<_ACEOF
19650/* confdefs.h. */
19651_ACEOF
19652cat confdefs.h >>conftest.$ac_ext
19653cat >>conftest.$ac_ext <<_ACEOF
19654/* end confdefs.h. */
19655$ac_includes_default
19656typedef long long int ac__type_new_;
19657int
19658main ()
19659{
19660if ((ac__type_new_ *) 0)
19661 return 0;
19662if (sizeof (ac__type_new_))
19663 return 0;
19664 ;
19665 return 0;
19666}
19667_ACEOF
19668rm -f conftest.$ac_objext
19669if { (ac_try="$ac_compile"
19670case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19673esac
19674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675 (eval "$ac_compile") 2>conftest.er1
19676 ac_status=$?
19677 grep -v '^ *+' conftest.er1 >conftest.err
19678 rm -f conftest.er1
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } && {
19682 test -z "$ac_c_werror_flag" ||
19683 test ! -s conftest.err
19684 } && test -s conftest.$ac_objext; then
19685 ac_cv_type_long_long_int=yes
19686else
19687 echo "$as_me: failed program was:" >&5
19688sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 ac_cv_type_long_long_int=no
19691fi
19692
19693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694fi
19695{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19696echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
19697
19698# The cast to long int works around a bug in the HP C Compiler
19699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19701# This bug is HP SR number 8606223364.
19702{ echo "$as_me:$LINENO: checking size of long long int" >&5
19703echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
19704if test "${ac_cv_sizeof_long_long_int+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707 if test "$cross_compiling" = yes; then
19708 # Depending upon the size, compute the lo and hi bounds.
19709cat >conftest.$ac_ext <<_ACEOF
19710/* confdefs.h. */
19711_ACEOF
19712cat confdefs.h >>conftest.$ac_ext
19713cat >>conftest.$ac_ext <<_ACEOF
19714/* end confdefs.h. */
19715$ac_includes_default
19716 typedef long long int ac__type_sizeof_;
19717int
19718main ()
19719{
19720static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19721test_array [0] = 0
19722
19723 ;
19724 return 0;
19725}
19726_ACEOF
19727rm -f conftest.$ac_objext
19728if { (ac_try="$ac_compile"
19729case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732esac
19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compile") 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest.$ac_objext; then
19744 ac_lo=0 ac_mid=0
19745 while :; do
19746 cat >conftest.$ac_ext <<_ACEOF
19747/* confdefs.h. */
19748_ACEOF
19749cat confdefs.h >>conftest.$ac_ext
19750cat >>conftest.$ac_ext <<_ACEOF
19751/* end confdefs.h. */
19752$ac_includes_default
19753 typedef long long int ac__type_sizeof_;
19754int
19755main ()
19756{
19757static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19758test_array [0] = 0
19759
19760 ;
19761 return 0;
19762}
19763_ACEOF
19764rm -f conftest.$ac_objext
19765if { (ac_try="$ac_compile"
19766case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769esac
19770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_compile") 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } && {
19778 test -z "$ac_c_werror_flag" ||
19779 test ! -s conftest.err
19780 } && test -s conftest.$ac_objext; then
19781 ac_hi=$ac_mid; break
19782else
19783 echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 ac_lo=`expr $ac_mid + 1`
19787 if test $ac_lo -le $ac_mid; then
19788 ac_lo= ac_hi=
19789 break
19790 fi
19791 ac_mid=`expr 2 '*' $ac_mid + 1`
19792fi
19793
19794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 done
19796else
19797 echo "$as_me: failed program was:" >&5
19798sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 cat >conftest.$ac_ext <<_ACEOF
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
19806$ac_includes_default
19807 typedef long long int ac__type_sizeof_;
19808int
19809main ()
19810{
19811static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19812test_array [0] = 0
19813
19814 ;
19815 return 0;
19816}
19817_ACEOF
19818rm -f conftest.$ac_objext
19819if { (ac_try="$ac_compile"
19820case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_compile") 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } && {
19832 test -z "$ac_c_werror_flag" ||
19833 test ! -s conftest.err
19834 } && test -s conftest.$ac_objext; then
19835 ac_hi=-1 ac_mid=-1
19836 while :; do
19837 cat >conftest.$ac_ext <<_ACEOF
19838/* confdefs.h. */
19839_ACEOF
19840cat confdefs.h >>conftest.$ac_ext
19841cat >>conftest.$ac_ext <<_ACEOF
19842/* end confdefs.h. */
19843$ac_includes_default
19844 typedef long long int ac__type_sizeof_;
19845int
19846main ()
19847{
19848static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19849test_array [0] = 0
19850
19851 ;
19852 return 0;
19853}
19854_ACEOF
19855rm -f conftest.$ac_objext
19856if { (ac_try="$ac_compile"
19857case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860esac
19861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest.$ac_objext; then
19872 ac_lo=$ac_mid; break
19873else
19874 echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_hi=`expr '(' $ac_mid ')' - 1`
19878 if test $ac_mid -le $ac_hi; then
19879 ac_lo= ac_hi=
19880 break
19881 fi
19882 ac_mid=`expr 2 '*' $ac_mid`
19883fi
19884
19885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 done
19887else
19888 echo "$as_me: failed program was:" >&5
19889sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 ac_lo= ac_hi=
19892fi
19893
19894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895fi
19896
19897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898# Binary search between lo and hi bounds.
19899while test "x$ac_lo" != "x$ac_hi"; do
19900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19901 cat >conftest.$ac_ext <<_ACEOF
19902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
19907$ac_includes_default
19908 typedef long long int ac__type_sizeof_;
19909int
19910main ()
19911{
19912static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19913test_array [0] = 0
19914
19915 ;
19916 return 0;
19917}
19918_ACEOF
19919rm -f conftest.$ac_objext
19920if { (ac_try="$ac_compile"
19921case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && {
19933 test -z "$ac_c_werror_flag" ||
19934 test ! -s conftest.err
19935 } && test -s conftest.$ac_objext; then
19936 ac_hi=$ac_mid
19937else
19938 echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ac_lo=`expr '(' $ac_mid ')' + 1`
19942fi
19943
19944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945done
19946case $ac_lo in
19947?*) ac_cv_sizeof_long_long_int=$ac_lo;;
19948'') if test "$ac_cv_type_long_long_int" = yes; then
19949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
19950See \`config.log' for more details." >&5
19951echo "$as_me: error: cannot compute sizeof (long long int)
19952See \`config.log' for more details." >&2;}
19953 { (exit 77); exit 77; }; }
19954 else
19955 ac_cv_sizeof_long_long_int=0
19956 fi ;;
19957esac
19958else
19959 cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965$ac_includes_default
19966 typedef long long int ac__type_sizeof_;
19967static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19968static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19969#include <stdio.h>
19970#include <stdlib.h>
19971int
19972main ()
19973{
19974
19975 FILE *f = fopen ("conftest.val", "w");
19976 if (! f)
19977 return 1;
19978 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19979 {
19980 long int i = longval ();
19981 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19982 return 1;
19983 fprintf (f, "%ld\n", i);
19984 }
19985 else
19986 {
19987 unsigned long int i = ulongval ();
19988 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19989 return 1;
19990 fprintf (f, "%lu\n", i);
19991 }
19992 return ferror (f) || fclose (f) != 0;
19993
19994 ;
19995 return 0;
19996}
19997_ACEOF
19998rm -f conftest$ac_exeext
19999if { (ac_try="$ac_link"
20000case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003esac
20004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_link") 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20009 { (case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20012esac
20013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_try") 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; }; then
20018 ac_cv_sizeof_long_long_int=`cat conftest.val`
20019else
20020 echo "$as_me: program exited with status $ac_status" >&5
20021echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024( exit $ac_status )
20025if test "$ac_cv_type_long_long_int" = yes; then
20026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20027See \`config.log' for more details." >&5
20028echo "$as_me: error: cannot compute sizeof (long long int)
20029See \`config.log' for more details." >&2;}
20030 { (exit 77); exit 77; }; }
20031 else
20032 ac_cv_sizeof_long_long_int=0
20033 fi
20034fi
20035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20036fi
20037rm -f conftest.val
20038fi
20039{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
20040echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
20041
20042
20043
20044cat >>confdefs.h <<_ACEOF
20045#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
20046_ACEOF
20047
20048
20049
20050# Sanity check long long for some platforms (AIX)
20051if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
20052 ac_cv_sizeof_long_long_int=0
20053fi
20054
20055# compute LLONG_MIN and LLONG_MAX if we don't know them.
20056if test -z "$have_llong_max"; then
20057 { echo "$as_me:$LINENO: checking for max value of long long" >&5
20058echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
20059 if test "$cross_compiling" = yes; then
20060
20061 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20062echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20063
20064
20065else
20066 cat >conftest.$ac_ext <<_ACEOF
20067/* confdefs.h. */
20068_ACEOF
20069cat confdefs.h >>conftest.$ac_ext
20070cat >>conftest.$ac_ext <<_ACEOF
20071/* end confdefs.h. */
20072
20073#include <stdio.h>
20074/* Why is this so damn hard? */
20075#ifdef __GNUC__
20076# undef __GNUC__
20077#endif
20078#define __USE_ISOC99
20079#include <limits.h>
20080#define DATA "conftest.llminmax"
20081#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
20082
20083/*
20084 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
20085 * we do this the hard way.
20086 */
20087static int
20088fprint_ll(FILE *f, long long n)
20089{
20090 unsigned int i;
20091 int l[sizeof(long long) * 8];
20092
20093 if (n < 0)
20094 if (fprintf(f, "-") < 0)
20095 return -1;
20096 for (i = 0; n != 0; i++) {
20097 l[i] = my_abs(n % 10);
20098 n /= 10;
20099 }
20100 do {
20101 if (fprintf(f, "%d", l[--i]) < 0)
20102 return -1;
20103 } while (i != 0);
20104 if (fprintf(f, " ") < 0)
20105 return -1;
20106 return 0;
20107}
20108
20109int main(void) {
20110 FILE *f;
20111 long long i, llmin, llmax = 0;
20112
20113 if((f = fopen(DATA,"w")) == NULL)
20114 exit(1);
20115
20116#if defined(LLONG_MIN) && defined(LLONG_MAX)
20117 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
20118 llmin = LLONG_MIN;
20119 llmax = LLONG_MAX;
20120#else
20121 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
20122 /* This will work on one's complement and two's complement */
20123 for (i = 1; i > llmax; i <<= 1, i++)
20124 llmax = i;
20125 llmin = llmax + 1LL; /* wrap */
20126#endif
20127
20128 /* Sanity check */
20129 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
20130 || llmax - 1 > llmax || llmin == llmax || llmin == 0
20131 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
20132 fprintf(f, "unknown unknown\n");
20133 exit(2);
20134 }
20135
20136 if (fprint_ll(f, llmin) < 0)
20137 exit(3);
20138 if (fprint_ll(f, llmax) < 0)
20139 exit(4);
20140 if (fclose(f) < 0)
20141 exit(5);
20142 exit(0);
20143}
20144
20145_ACEOF
20146rm -f conftest$ac_exeext
20147if { (ac_try="$ac_link"
20148case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_link") 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20157 { (case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20160esac
20161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_try") 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166
20167 llong_min=`$AWK '{print $1}' conftest.llminmax`
20168 llong_max=`$AWK '{print $2}' conftest.llminmax`
20169
20170 { echo "$as_me:$LINENO: result: $llong_max" >&5
20171echo "${ECHO_T}$llong_max" >&6; }
20172
20173cat >>confdefs.h <<_ACEOF
20174#define LLONG_MAX ${llong_max}LL
20175_ACEOF
20176
20177 { echo "$as_me:$LINENO: checking for min value of long long" >&5
20178echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
20179 { echo "$as_me:$LINENO: result: $llong_min" >&5
20180echo "${ECHO_T}$llong_min" >&6; }
20181
20182cat >>confdefs.h <<_ACEOF
20183#define LLONG_MIN ${llong_min}LL
20184_ACEOF
20185
20186
20187else
20188 echo "$as_me: program exited with status $ac_status" >&5
20189echo "$as_me: failed program was:" >&5
20190sed 's/^/| /' conftest.$ac_ext >&5
20191
20192( exit $ac_status )
20193
20194 { echo "$as_me:$LINENO: result: not found" >&5
20195echo "${ECHO_T}not found" >&6; }
20196
20197fi
20198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20199fi
20200
20201
20202fi
20203
20204
20205# More checks for data types
20206{ echo "$as_me:$LINENO: checking for u_int type" >&5
20207echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
20208if test "${ac_cv_have_u_int+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210else
20211
20212 cat >conftest.$ac_ext <<_ACEOF
20213/* confdefs.h. */
20214_ACEOF
20215cat confdefs.h >>conftest.$ac_ext
20216cat >>conftest.$ac_ext <<_ACEOF
20217/* end confdefs.h. */
20218 #include <sys/types.h>
20219int
20220main ()
20221{
20222 u_int a; a = 1;
20223 ;
20224 return 0;
20225}
20226_ACEOF
20227rm -f conftest.$ac_objext
20228if { (ac_try="$ac_compile"
20229case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232esac
20233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_compile") 2>conftest.er1
20235 ac_status=$?
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && {
20241 test -z "$ac_c_werror_flag" ||
20242 test ! -s conftest.err
20243 } && test -s conftest.$ac_objext; then
20244 ac_cv_have_u_int="yes"
20245else
20246 echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ac_cv_have_u_int="no"
20250
20251fi
20252
20253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20254
20255fi
20256{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
20257echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
20258if test "x$ac_cv_have_u_int" = "xyes" ; then
20259
20260cat >>confdefs.h <<\_ACEOF
20261#define HAVE_U_INT 1
20262_ACEOF
20263
20264 have_u_int=1
20265fi
20266
20267{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
20268echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
20269if test "${ac_cv_have_intxx_t+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271else
20272
20273 cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
20279 #include <sys/types.h>
20280int
20281main ()
20282{
20283 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20284 ;
20285 return 0;
20286}
20287_ACEOF
20288rm -f conftest.$ac_objext
20289if { (ac_try="$ac_compile"
20290case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293esac
20294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20296 ac_status=$?
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest.$ac_objext; then
20305 ac_cv_have_intxx_t="yes"
20306else
20307 echo "$as_me: failed program was:" >&5
20308sed 's/^/| /' conftest.$ac_ext >&5
20309
20310 ac_cv_have_intxx_t="no"
20311
20312fi
20313
20314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20315
20316fi
20317{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
20318echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
20319if test "x$ac_cv_have_intxx_t" = "xyes" ; then
20320
20321cat >>confdefs.h <<\_ACEOF
20322#define HAVE_INTXX_T 1
20323_ACEOF
20324
20325 have_intxx_t=1
20326fi
20327
20328if (test -z "$have_intxx_t" && \
20329 test "x$ac_cv_header_stdint_h" = "xyes")
20330then
20331 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
20332echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
20333 cat >conftest.$ac_ext <<_ACEOF
20334/* confdefs.h. */
20335_ACEOF
20336cat confdefs.h >>conftest.$ac_ext
20337cat >>conftest.$ac_ext <<_ACEOF
20338/* end confdefs.h. */
20339 #include <stdint.h>
20340int
20341main ()
20342{
20343 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20344 ;
20345 return 0;
20346}
20347_ACEOF
20348rm -f conftest.$ac_objext
20349if { (ac_try="$ac_compile"
20350case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20353esac
20354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_compile") 2>conftest.er1
20356 ac_status=$?
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } && {
20362 test -z "$ac_c_werror_flag" ||
20363 test ! -s conftest.err
20364 } && test -s conftest.$ac_objext; then
20365
20366 cat >>confdefs.h <<\_ACEOF
20367#define HAVE_INTXX_T 1
20368_ACEOF
20369
20370 { echo "$as_me:$LINENO: result: yes" >&5
20371echo "${ECHO_T}yes" >&6; }
20372
20373else
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 { echo "$as_me:$LINENO: result: no" >&5
20378echo "${ECHO_T}no" >&6; }
20379
20380fi
20381
20382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383fi
20384
20385{ echo "$as_me:$LINENO: checking for int64_t type" >&5
20386echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
20387if test "${ac_cv_have_int64_t+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389else
20390
20391 cat >conftest.$ac_ext <<_ACEOF
20392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
20397
20398#include <sys/types.h>
20399#ifdef HAVE_STDINT_H
20400# include <stdint.h>
20401#endif
20402#include <sys/socket.h>
20403#ifdef HAVE_SYS_BITYPES_H
20404# include <sys/bitypes.h>
20405#endif
20406
20407int
20408main ()
20409{
20410 int64_t a; a = 1;
20411 ;
20412 return 0;
20413}
20414_ACEOF
20415rm -f conftest.$ac_objext
20416if { (ac_try="$ac_compile"
20417case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420esac
20421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_cv_have_int64_t="yes"
20433else
20434 echo "$as_me: failed program was:" >&5
20435sed 's/^/| /' conftest.$ac_ext >&5
20436
20437 ac_cv_have_int64_t="no"
20438
20439fi
20440
20441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442
20443fi
20444{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
20445echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
20446if test "x$ac_cv_have_int64_t" = "xyes" ; then
20447
20448cat >>confdefs.h <<\_ACEOF
20449#define HAVE_INT64_T 1
20450_ACEOF
20451
20452fi
20453
20454{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
20455echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
20456if test "${ac_cv_have_u_intxx_t+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458else
20459
20460 cat >conftest.$ac_ext <<_ACEOF
20461/* confdefs.h. */
20462_ACEOF
20463cat confdefs.h >>conftest.$ac_ext
20464cat >>conftest.$ac_ext <<_ACEOF
20465/* end confdefs.h. */
20466 #include <sys/types.h>
20467int
20468main ()
20469{
20470 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
20471 ;
20472 return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext
20476if { (ac_try="$ac_compile"
20477case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480esac
20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_cv_have_u_intxx_t="yes"
20493else
20494 echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_have_u_intxx_t="no"
20498
20499fi
20500
20501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502
20503fi
20504{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
20505echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
20506if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
20507
20508cat >>confdefs.h <<\_ACEOF
20509#define HAVE_U_INTXX_T 1
20510_ACEOF
20511
20512 have_u_intxx_t=1
20513fi
20514
20515if test -z "$have_u_intxx_t" ; then
20516 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
20517echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
20518 cat >conftest.$ac_ext <<_ACEOF
20519/* confdefs.h. */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
20523/* end confdefs.h. */
20524 #include <sys/socket.h>
20525int
20526main ()
20527{
20528 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
20529 ;
20530 return 0;
20531}
20532_ACEOF
20533rm -f conftest.$ac_objext
20534if { (ac_try="$ac_compile"
20535case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538esac
20539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_compile") 2>conftest.er1
20541 ac_status=$?
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest.$ac_objext; then
20550
20551 cat >>confdefs.h <<\_ACEOF
20552#define HAVE_U_INTXX_T 1
20553_ACEOF
20554
20555 { echo "$as_me:$LINENO: result: yes" >&5
20556echo "${ECHO_T}yes" >&6; }
20557
20558else
20559 echo "$as_me: failed program was:" >&5
20560sed 's/^/| /' conftest.$ac_ext >&5
20561
20562 { echo "$as_me:$LINENO: result: no" >&5
20563echo "${ECHO_T}no" >&6; }
20564
20565fi
20566
20567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568fi
20569
20570{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
20571echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
20572if test "${ac_cv_have_u_int64_t+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20574else
20575
20576 cat >conftest.$ac_ext <<_ACEOF
20577/* confdefs.h. */
20578_ACEOF
20579cat confdefs.h >>conftest.$ac_ext
20580cat >>conftest.$ac_ext <<_ACEOF
20581/* end confdefs.h. */
20582 #include <sys/types.h>
20583int
20584main ()
20585{
20586 u_int64_t a; a = 1;
20587 ;
20588 return 0;
20589}
20590_ACEOF
20591rm -f conftest.$ac_objext
20592if { (ac_try="$ac_compile"
20593case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596esac
20597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
20608 ac_cv_have_u_int64_t="yes"
20609else
20610 echo "$as_me: failed program was:" >&5
20611sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 ac_cv_have_u_int64_t="no"
20614
20615fi
20616
20617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618
20619fi
20620{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
20621echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
20622if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
20623
20624cat >>confdefs.h <<\_ACEOF
20625#define HAVE_U_INT64_T 1
20626_ACEOF
20627
20628 have_u_int64_t=1
20629fi
20630
20631if test -z "$have_u_int64_t" ; then
20632 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
20633echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
20634 cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h. */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h. */
20640 #include <sys/bitypes.h>
20641int
20642main ()
20643{
20644 u_int64_t a; a = 1
20645 ;
20646 return 0;
20647}
20648_ACEOF
20649rm -f conftest.$ac_objext
20650if { (ac_try="$ac_compile"
20651case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654esac
20655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20657 ac_status=$?
20658 grep -v '^ *+' conftest.er1 >conftest.err
20659 rm -f conftest.er1
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest.$ac_objext; then
20666
20667 cat >>confdefs.h <<\_ACEOF
20668#define HAVE_U_INT64_T 1
20669_ACEOF
20670
20671 { echo "$as_me:$LINENO: result: yes" >&5
20672echo "${ECHO_T}yes" >&6; }
20673
20674else
20675 echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 { echo "$as_me:$LINENO: result: no" >&5
20679echo "${ECHO_T}no" >&6; }
20680
20681fi
20682
20683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684fi
20685
20686if test -z "$have_u_intxx_t" ; then
20687 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
20688echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
20689if test "${ac_cv_have_uintxx_t+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691else
20692
20693 cat >conftest.$ac_ext <<_ACEOF
20694/* confdefs.h. */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h. */
20699
20700#include <sys/types.h>
20701
20702int
20703main ()
20704{
20705 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
20706 ;
20707 return 0;
20708}
20709_ACEOF
20710rm -f conftest.$ac_objext
20711if { (ac_try="$ac_compile"
20712case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20715esac
20716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_compile") 2>conftest.er1
20718 ac_status=$?
20719 grep -v '^ *+' conftest.er1 >conftest.err
20720 rm -f conftest.er1
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } && {
20724 test -z "$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20726 } && test -s conftest.$ac_objext; then
20727 ac_cv_have_uintxx_t="yes"
20728else
20729 echo "$as_me: failed program was:" >&5
20730sed 's/^/| /' conftest.$ac_ext >&5
20731
20732 ac_cv_have_uintxx_t="no"
20733
20734fi
20735
20736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737
20738fi
20739{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
20740echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
20741 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
20742
20743cat >>confdefs.h <<\_ACEOF
20744#define HAVE_UINTXX_T 1
20745_ACEOF
20746
20747 fi
20748fi
20749
20750if test -z "$have_uintxx_t" ; then
20751 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
20752echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
20753 cat >conftest.$ac_ext <<_ACEOF
20754/* confdefs.h. */
20755_ACEOF
20756cat confdefs.h >>conftest.$ac_ext
20757cat >>conftest.$ac_ext <<_ACEOF
20758/* end confdefs.h. */
20759 #include <stdint.h>
20760int
20761main ()
20762{
20763 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
20764 ;
20765 return 0;
20766}
20767_ACEOF
20768rm -f conftest.$ac_objext
20769if { (ac_try="$ac_compile"
20770case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773esac
20774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_compile") 2>conftest.er1
20776 ac_status=$?
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && {
20782 test -z "$ac_c_werror_flag" ||
20783 test ! -s conftest.err
20784 } && test -s conftest.$ac_objext; then
20785
20786 cat >>confdefs.h <<\_ACEOF
20787#define HAVE_UINTXX_T 1
20788_ACEOF
20789
20790 { echo "$as_me:$LINENO: result: yes" >&5
20791echo "${ECHO_T}yes" >&6; }
20792
20793else
20794 echo "$as_me: failed program was:" >&5
20795sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 { echo "$as_me:$LINENO: result: no" >&5
20798echo "${ECHO_T}no" >&6; }
20799
20800fi
20801
20802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803fi
20804
20805if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
20806 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
20807then
20808 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
20809echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
20810 cat >conftest.$ac_ext <<_ACEOF
20811/* confdefs.h. */
20812_ACEOF
20813cat confdefs.h >>conftest.$ac_ext
20814cat >>conftest.$ac_ext <<_ACEOF
20815/* end confdefs.h. */
20816
20817#include <sys/bitypes.h>
20818
20819int
20820main ()
20821{
20822
20823 int8_t a; int16_t b; int32_t c;
20824 u_int8_t e; u_int16_t f; u_int32_t g;
20825 a = b = c = e = f = g = 1;
20826
20827 ;
20828 return 0;
20829}
20830_ACEOF
20831rm -f conftest.$ac_objext
20832if { (ac_try="$ac_compile"
20833case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836esac
20837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_compile") 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && {
20845 test -z "$ac_c_werror_flag" ||
20846 test ! -s conftest.err
20847 } && test -s conftest.$ac_objext; then
20848
20849 cat >>confdefs.h <<\_ACEOF
20850#define HAVE_U_INTXX_T 1
20851_ACEOF
20852
20853 cat >>confdefs.h <<\_ACEOF
20854#define HAVE_INTXX_T 1
20855_ACEOF
20856
20857 { echo "$as_me:$LINENO: result: yes" >&5
20858echo "${ECHO_T}yes" >&6; }
20859
20860else
20861 echo "$as_me: failed program was:" >&5
20862sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 { echo "$as_me:$LINENO: result: no" >&5
20865echo "${ECHO_T}no" >&6; }
20866
20867fi
20868
20869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870fi
20871
20872
20873{ echo "$as_me:$LINENO: checking for u_char" >&5
20874echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
20875if test "${ac_cv_have_u_char+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20877else
20878
20879 cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885
20886#include <sys/types.h>
20887
20888int
20889main ()
20890{
20891 u_char foo; foo = 125;
20892 ;
20893 return 0;
20894}
20895_ACEOF
20896rm -f conftest.$ac_objext
20897if { (ac_try="$ac_compile"
20898case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20901esac
20902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_compile") 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && {
20910 test -z "$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 } && test -s conftest.$ac_objext; then
20913 ac_cv_have_u_char="yes"
20914else
20915 echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 ac_cv_have_u_char="no"
20919
20920fi
20921
20922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20923
20924fi
20925{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
20926echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
20927if test "x$ac_cv_have_u_char" = "xyes" ; then
20928
20929cat >>confdefs.h <<\_ACEOF
20930#define HAVE_U_CHAR 1
20931_ACEOF
20932
20933fi
20934
20935
20936 { echo "$as_me:$LINENO: checking for socklen_t" >&5
20937echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
20938if test "${ac_cv_type_socklen_t+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20940else
20941 cat >conftest.$ac_ext <<_ACEOF
20942/* confdefs.h. */
20943_ACEOF
20944cat confdefs.h >>conftest.$ac_ext
20945cat >>conftest.$ac_ext <<_ACEOF
20946/* end confdefs.h. */
20947#include <sys/types.h>
20948#include <sys/socket.h>
20949
20950typedef socklen_t ac__type_new_;
20951int
20952main ()
20953{
20954if ((ac__type_new_ *) 0)
20955 return 0;
20956if (sizeof (ac__type_new_))
20957 return 0;
20958 ;
20959 return 0;
20960}
20961_ACEOF
20962rm -f conftest.$ac_objext
20963if { (ac_try="$ac_compile"
20964case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_compile") 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } && {
20976 test -z "$ac_c_werror_flag" ||
20977 test ! -s conftest.err
20978 } && test -s conftest.$ac_objext; then
20979 ac_cv_type_socklen_t=yes
20980else
20981 echo "$as_me: failed program was:" >&5
20982sed 's/^/| /' conftest.$ac_ext >&5
20983
20984 ac_cv_type_socklen_t=no
20985fi
20986
20987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988fi
20989{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20990echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
20991if test $ac_cv_type_socklen_t = yes; then
20992 :
20993else
20994
20995 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
20996echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
20997 if test "${curl_cv_socklen_t_equiv+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999else
21000
21001 # Systems have either "struct sockaddr *" or
21002 # "void *" as the second argument to getpeername
21003 curl_cv_socklen_t_equiv=
21004 for arg2 in "struct sockaddr" void; do
21005 for t in int size_t unsigned long "unsigned long"; do
21006 cat >conftest.$ac_ext <<_ACEOF
21007/* confdefs.h. */
21008_ACEOF
21009cat confdefs.h >>conftest.$ac_ext
21010cat >>conftest.$ac_ext <<_ACEOF
21011/* end confdefs.h. */
21012
21013 #include <sys/types.h>
21014 #include <sys/socket.h>
21015
21016 int getpeername (int, $arg2 *, $t *);
21017
21018int
21019main ()
21020{
21021
21022 $t len;
21023 getpeername(0,0,&len);
21024
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029rm -f conftest.$ac_objext
21030if { (ac_try="$ac_compile"
21031case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034esac
21035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_compile") 2>conftest.er1
21037 ac_status=$?
21038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && {
21043 test -z "$ac_c_werror_flag" ||
21044 test ! -s conftest.err
21045 } && test -s conftest.$ac_objext; then
21046
21047 curl_cv_socklen_t_equiv="$t"
21048 break
21049
21050else
21051 echo "$as_me: failed program was:" >&5
21052sed 's/^/| /' conftest.$ac_ext >&5
21053
21054
21055fi
21056
21057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21058 done
21059 done
21060
21061 if test "x$curl_cv_socklen_t_equiv" = x; then
21062 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
21063echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
21064 { (exit 1); exit 1; }; }
21065 fi
21066
21067fi
21068
21069 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
21070echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
21071
21072cat >>confdefs.h <<_ACEOF
21073#define socklen_t $curl_cv_socklen_t_equiv
21074_ACEOF
21075
21076fi
21077
21078
21079
21080{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21081echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
21082if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21084else
21085 cat >conftest.$ac_ext <<_ACEOF
21086/* confdefs.h. */
21087_ACEOF
21088cat confdefs.h >>conftest.$ac_ext
21089cat >>conftest.$ac_ext <<_ACEOF
21090/* end confdefs.h. */
21091#include <signal.h>
21092
21093typedef sig_atomic_t ac__type_new_;
21094int
21095main ()
21096{
21097if ((ac__type_new_ *) 0)
21098 return 0;
21099if (sizeof (ac__type_new_))
21100 return 0;
21101 ;
21102 return 0;
21103}
21104_ACEOF
21105rm -f conftest.$ac_objext
21106if { (ac_try="$ac_compile"
21107case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110esac
21111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_compile") 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest.$ac_objext; then
21122 ac_cv_type_sig_atomic_t=yes
21123else
21124 echo "$as_me: failed program was:" >&5
21125sed 's/^/| /' conftest.$ac_ext >&5
21126
21127 ac_cv_type_sig_atomic_t=no
21128fi
21129
21130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131fi
21132{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21133echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
21134if test $ac_cv_type_sig_atomic_t = yes; then
21135
21136cat >>confdefs.h <<_ACEOF
21137#define HAVE_SIG_ATOMIC_T 1
21138_ACEOF
21139
21140
21141fi
21142
21143
21144{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
21145echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
21146if test "${ac_cv_type_in_addr_t+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148else
21149 cat >conftest.$ac_ext <<_ACEOF
21150/* confdefs.h. */
21151_ACEOF
21152cat confdefs.h >>conftest.$ac_ext
21153cat >>conftest.$ac_ext <<_ACEOF
21154/* end confdefs.h. */
21155#include <sys/types.h>
21156#include <netinet/in.h>
21157
21158typedef in_addr_t ac__type_new_;
21159int
21160main ()
21161{
21162if ((ac__type_new_ *) 0)
21163 return 0;
21164if (sizeof (ac__type_new_))
21165 return 0;
21166 ;
21167 return 0;
21168}
21169_ACEOF
21170rm -f conftest.$ac_objext
21171if { (ac_try="$ac_compile"
21172case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21175esac
21176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_compile") 2>conftest.er1
21178 ac_status=$?
21179 grep -v '^ *+' conftest.er1 >conftest.err
21180 rm -f conftest.er1
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } && {
21184 test -z "$ac_c_werror_flag" ||
21185 test ! -s conftest.err
21186 } && test -s conftest.$ac_objext; then
21187 ac_cv_type_in_addr_t=yes
21188else
21189 echo "$as_me: failed program was:" >&5
21190sed 's/^/| /' conftest.$ac_ext >&5
21191
21192 ac_cv_type_in_addr_t=no
21193fi
21194
21195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196fi
21197{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21198echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
21199if test $ac_cv_type_in_addr_t = yes; then
21200
21201cat >>confdefs.h <<_ACEOF
21202#define HAVE_IN_ADDR_T 1
21203_ACEOF
21204
21205
21206fi
21207
21208
21209{ echo "$as_me:$LINENO: checking for size_t" >&5
21210echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21211if test "${ac_cv_have_size_t+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21213else
21214
21215 cat >conftest.$ac_ext <<_ACEOF
21216/* confdefs.h. */
21217_ACEOF
21218cat confdefs.h >>conftest.$ac_ext
21219cat >>conftest.$ac_ext <<_ACEOF
21220/* end confdefs.h. */
21221
21222#include <sys/types.h>
21223
21224int
21225main ()
21226{
21227 size_t foo; foo = 1235;
21228 ;
21229 return 0;
21230}
21231_ACEOF
21232rm -f conftest.$ac_objext
21233if { (ac_try="$ac_compile"
21234case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237esac
21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_cv_have_size_t="yes"
21250else
21251 echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_cv_have_size_t="no"
21255
21256fi
21257
21258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259
21260fi
21261{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
21262echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
21263if test "x$ac_cv_have_size_t" = "xyes" ; then
21264
21265cat >>confdefs.h <<\_ACEOF
21266#define HAVE_SIZE_T 1
21267_ACEOF
21268
21269fi
21270
21271{ echo "$as_me:$LINENO: checking for ssize_t" >&5
21272echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21273if test "${ac_cv_have_ssize_t+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276
21277 cat >conftest.$ac_ext <<_ACEOF
21278/* confdefs.h. */
21279_ACEOF
21280cat confdefs.h >>conftest.$ac_ext
21281cat >>conftest.$ac_ext <<_ACEOF
21282/* end confdefs.h. */
21283
21284#include <sys/types.h>
21285
21286int
21287main ()
21288{
21289 ssize_t foo; foo = 1235;
21290 ;
21291 return 0;
21292}
21293_ACEOF
21294rm -f conftest.$ac_objext
21295if { (ac_try="$ac_compile"
21296case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299esac
21300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_cv_have_ssize_t="yes"
21312else
21313 echo "$as_me: failed program was:" >&5
21314sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 ac_cv_have_ssize_t="no"
21317
21318fi
21319
21320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321
21322fi
21323{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
21324echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
21325if test "x$ac_cv_have_ssize_t" = "xyes" ; then
21326
21327cat >>confdefs.h <<\_ACEOF
21328#define HAVE_SSIZE_T 1
21329_ACEOF
21330
21331fi
21332
21333{ echo "$as_me:$LINENO: checking for clock_t" >&5
21334echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
21335if test "${ac_cv_have_clock_t+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337else
21338
21339 cat >conftest.$ac_ext <<_ACEOF
21340/* confdefs.h. */
21341_ACEOF
21342cat confdefs.h >>conftest.$ac_ext
21343cat >>conftest.$ac_ext <<_ACEOF
21344/* end confdefs.h. */
21345
21346#include <time.h>
21347
21348int
21349main ()
21350{
21351 clock_t foo; foo = 1235;
21352 ;
21353 return 0;
21354}
21355_ACEOF
21356rm -f conftest.$ac_objext
21357if { (ac_try="$ac_compile"
21358case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21361esac
21362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_compile") 2>conftest.er1
21364 ac_status=$?
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } && {
21370 test -z "$ac_c_werror_flag" ||
21371 test ! -s conftest.err
21372 } && test -s conftest.$ac_objext; then
21373 ac_cv_have_clock_t="yes"
21374else
21375 echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378 ac_cv_have_clock_t="no"
21379
21380fi
21381
21382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383
21384fi
21385{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
21386echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
21387if test "x$ac_cv_have_clock_t" = "xyes" ; then
21388
21389cat >>confdefs.h <<\_ACEOF
21390#define HAVE_CLOCK_T 1
21391_ACEOF
21392
21393fi
21394
21395{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
21396echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
21397if test "${ac_cv_have_sa_family_t+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399else
21400
21401 cat >conftest.$ac_ext <<_ACEOF
21402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
21407
21408#include <sys/types.h>
21409#include <sys/socket.h>
21410
21411int
21412main ()
21413{
21414 sa_family_t foo; foo = 1235;
21415 ;
21416 return 0;
21417}
21418_ACEOF
21419rm -f conftest.$ac_objext
21420if { (ac_try="$ac_compile"
21421case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424esac
21425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest.$ac_objext; then
21436 ac_cv_have_sa_family_t="yes"
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 cat >conftest.$ac_ext <<_ACEOF
21442/* confdefs.h. */
21443_ACEOF
21444cat confdefs.h >>conftest.$ac_ext
21445cat >>conftest.$ac_ext <<_ACEOF
21446/* end confdefs.h. */
21447
21448#include <sys/types.h>
21449#include <sys/socket.h>
21450#include <netinet/in.h>
21451
21452int
21453main ()
21454{
21455 sa_family_t foo; foo = 1235;
21456 ;
21457 return 0;
21458}
21459_ACEOF
21460rm -f conftest.$ac_objext
21461if { (ac_try="$ac_compile"
21462case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21465esac
21466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_compile") 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest.$ac_objext; then
21477 ac_cv_have_sa_family_t="yes"
21478else
21479 echo "$as_me: failed program was:" >&5
21480sed 's/^/| /' conftest.$ac_ext >&5
21481
21482 ac_cv_have_sa_family_t="no"
21483
21484fi
21485
21486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487
21488fi
21489
21490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21491
21492fi
21493{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
21494echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
21495if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
21496
21497cat >>confdefs.h <<\_ACEOF
21498#define HAVE_SA_FAMILY_T 1
21499_ACEOF
21500
21501fi
21502
21503{ echo "$as_me:$LINENO: checking for pid_t" >&5
21504echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21505if test "${ac_cv_have_pid_t+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507else
21508
21509 cat >conftest.$ac_ext <<_ACEOF
21510/* confdefs.h. */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h. */
21515
21516#include <sys/types.h>
21517
21518int
21519main ()
21520{
21521 pid_t foo; foo = 1235;
21522 ;
21523 return 0;
21524}
21525_ACEOF
21526rm -f conftest.$ac_objext
21527if { (ac_try="$ac_compile"
21528case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21531esac
21532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533 (eval "$ac_compile") 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest.$ac_objext; then
21543 ac_cv_have_pid_t="yes"
21544else
21545 echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548 ac_cv_have_pid_t="no"
21549
21550fi
21551
21552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553
21554fi
21555{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
21556echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
21557if test "x$ac_cv_have_pid_t" = "xyes" ; then
21558
21559cat >>confdefs.h <<\_ACEOF
21560#define HAVE_PID_T 1
21561_ACEOF
21562
21563fi
21564
21565{ echo "$as_me:$LINENO: checking for mode_t" >&5
21566echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
21567if test "${ac_cv_have_mode_t+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21569else
21570
21571 cat >conftest.$ac_ext <<_ACEOF
21572/* confdefs.h. */
21573_ACEOF
21574cat confdefs.h >>conftest.$ac_ext
21575cat >>conftest.$ac_ext <<_ACEOF
21576/* end confdefs.h. */
21577
21578#include <sys/types.h>
21579
21580int
21581main ()
21582{
21583 mode_t foo; foo = 1235;
21584 ;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest.$ac_objext
21589if { (ac_try="$ac_compile"
21590case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593esac
21594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_compile") 2>conftest.er1
21596 ac_status=$?
21597 grep -v '^ *+' conftest.er1 >conftest.err
21598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest.$ac_objext; then
21605 ac_cv_have_mode_t="yes"
21606else
21607 echo "$as_me: failed program was:" >&5
21608sed 's/^/| /' conftest.$ac_ext >&5
21609
21610 ac_cv_have_mode_t="no"
21611
21612fi
21613
21614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615
21616fi
21617{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
21618echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
21619if test "x$ac_cv_have_mode_t" = "xyes" ; then
21620
21621cat >>confdefs.h <<\_ACEOF
21622#define HAVE_MODE_T 1
21623_ACEOF
21624
21625fi
21626
21627
21628{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
21629echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
21630if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632else
21633
21634 cat >conftest.$ac_ext <<_ACEOF
21635/* confdefs.h. */
21636_ACEOF
21637cat confdefs.h >>conftest.$ac_ext
21638cat >>conftest.$ac_ext <<_ACEOF
21639/* end confdefs.h. */
21640
21641#include <sys/types.h>
21642#include <sys/socket.h>
21643
21644int
21645main ()
21646{
21647 struct sockaddr_storage s;
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext
21653if { (ac_try="$ac_compile"
21654case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657esac
21658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21669 ac_cv_have_struct_sockaddr_storage="yes"
21670else
21671 echo "$as_me: failed program was:" >&5
21672sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 ac_cv_have_struct_sockaddr_storage="no"
21675
21676fi
21677
21678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679
21680fi
21681{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
21682echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
21683if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
21684
21685cat >>confdefs.h <<\_ACEOF
21686#define HAVE_STRUCT_SOCKADDR_STORAGE 1
21687_ACEOF
21688
21689fi
21690
21691{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
21692echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
21693if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21695else
21696
21697 cat >conftest.$ac_ext <<_ACEOF
21698/* confdefs.h. */
21699_ACEOF
21700cat confdefs.h >>conftest.$ac_ext
21701cat >>conftest.$ac_ext <<_ACEOF
21702/* end confdefs.h. */
21703
21704#include <sys/types.h>
21705#include <netinet/in.h>
21706
21707int
21708main ()
21709{
21710 struct sockaddr_in6 s; s.sin6_family = 0;
21711 ;
21712 return 0;
21713}
21714_ACEOF
21715rm -f conftest.$ac_objext
21716if { (ac_try="$ac_compile"
21717case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21720esac
21721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722 (eval "$ac_compile") 2>conftest.er1
21723 ac_status=$?
21724 grep -v '^ *+' conftest.er1 >conftest.err
21725 rm -f conftest.er1
21726 cat conftest.err >&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } && {
21729 test -z "$ac_c_werror_flag" ||
21730 test ! -s conftest.err
21731 } && test -s conftest.$ac_objext; then
21732 ac_cv_have_struct_sockaddr_in6="yes"
21733else
21734 echo "$as_me: failed program was:" >&5
21735sed 's/^/| /' conftest.$ac_ext >&5
21736
21737 ac_cv_have_struct_sockaddr_in6="no"
21738
21739fi
21740
21741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742
21743fi
21744{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
21745echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
21746if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
21747
21748cat >>confdefs.h <<\_ACEOF
21749#define HAVE_STRUCT_SOCKADDR_IN6 1
21750_ACEOF
21751
21752fi
21753
21754{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
21755echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
21756if test "${ac_cv_have_struct_in6_addr+set}" = set; then
21757 echo $ECHO_N "(cached) $ECHO_C" >&6
21758else
21759
21760 cat >conftest.$ac_ext <<_ACEOF
21761/* confdefs.h. */
21762_ACEOF
21763cat confdefs.h >>conftest.$ac_ext
21764cat >>conftest.$ac_ext <<_ACEOF
21765/* end confdefs.h. */
21766
21767#include <sys/types.h>
21768#include <netinet/in.h>
21769
21770int
21771main ()
21772{
21773 struct in6_addr s; s.s6_addr[0] = 0;
21774 ;
21775 return 0;
21776}
21777_ACEOF
21778rm -f conftest.$ac_objext
21779if { (ac_try="$ac_compile"
21780case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783esac
21784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21795 ac_cv_have_struct_in6_addr="yes"
21796else
21797 echo "$as_me: failed program was:" >&5
21798sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 ac_cv_have_struct_in6_addr="no"
21801
21802fi
21803
21804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805
21806fi
21807{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
21808echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
21809if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
21810
21811cat >>confdefs.h <<\_ACEOF
21812#define HAVE_STRUCT_IN6_ADDR 1
21813_ACEOF
21814
21815fi
21816
21817{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
21818echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
21819if test "${ac_cv_have_struct_addrinfo+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21821else
21822
21823 cat >conftest.$ac_ext <<_ACEOF
21824/* confdefs.h. */
21825_ACEOF
21826cat confdefs.h >>conftest.$ac_ext
21827cat >>conftest.$ac_ext <<_ACEOF
21828/* end confdefs.h. */
21829
21830#include <sys/types.h>
21831#include <sys/socket.h>
21832#include <netdb.h>
21833
21834int
21835main ()
21836{
21837 struct addrinfo s; s.ai_flags = AI_PASSIVE;
21838 ;
21839 return 0;
21840}
21841_ACEOF
21842rm -f conftest.$ac_objext
21843if { (ac_try="$ac_compile"
21844case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847esac
21848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_cv_have_struct_addrinfo="yes"
21860else
21861 echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 ac_cv_have_struct_addrinfo="no"
21865
21866fi
21867
21868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869
21870fi
21871{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
21872echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
21873if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
21874
21875cat >>confdefs.h <<\_ACEOF
21876#define HAVE_STRUCT_ADDRINFO 1
21877_ACEOF
21878
21879fi
21880
21881{ echo "$as_me:$LINENO: checking for struct timeval" >&5
21882echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
21883if test "${ac_cv_have_struct_timeval+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885else
21886
21887 cat >conftest.$ac_ext <<_ACEOF
21888/* confdefs.h. */
21889_ACEOF
21890cat confdefs.h >>conftest.$ac_ext
21891cat >>conftest.$ac_ext <<_ACEOF
21892/* end confdefs.h. */
21893 #include <sys/time.h>
21894int
21895main ()
21896{
21897 struct timeval tv; tv.tv_sec = 1;
21898 ;
21899 return 0;
21900}
21901_ACEOF
21902rm -f conftest.$ac_objext
21903if { (ac_try="$ac_compile"
21904case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907esac
21908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_compile") 2>conftest.er1
21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest.$ac_objext; then
21919 ac_cv_have_struct_timeval="yes"
21920else
21921 echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ac_cv_have_struct_timeval="no"
21925
21926fi
21927
21928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929
21930fi
21931{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
21932echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
21933if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
21934
21935cat >>confdefs.h <<\_ACEOF
21936#define HAVE_STRUCT_TIMEVAL 1
21937_ACEOF
21938
21939 have_struct_timeval=1
21940fi
21941
21942{ echo "$as_me:$LINENO: checking for struct timespec" >&5
21943echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
21944if test "${ac_cv_type_struct_timespec+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21946else
21947 cat >conftest.$ac_ext <<_ACEOF
21948/* confdefs.h. */
21949_ACEOF
21950cat confdefs.h >>conftest.$ac_ext
21951cat >>conftest.$ac_ext <<_ACEOF
21952/* end confdefs.h. */
21953$ac_includes_default
21954typedef struct timespec ac__type_new_;
21955int
21956main ()
21957{
21958if ((ac__type_new_ *) 0)
21959 return 0;
21960if (sizeof (ac__type_new_))
21961 return 0;
21962 ;
21963 return 0;
21964}
21965_ACEOF
21966rm -f conftest.$ac_objext
21967if { (ac_try="$ac_compile"
21968case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971esac
21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest.$ac_objext; then
21983 ac_cv_type_struct_timespec=yes
21984else
21985 echo "$as_me: failed program was:" >&5
21986sed 's/^/| /' conftest.$ac_ext >&5
21987
21988 ac_cv_type_struct_timespec=no
21989fi
21990
21991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21992fi
21993{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
21994echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
21995if test $ac_cv_type_struct_timespec = yes; then
21996
21997cat >>confdefs.h <<_ACEOF
21998#define HAVE_STRUCT_TIMESPEC 1
21999_ACEOF
22000
22001
22002fi
22003
22004
22005# We need int64_t or else certian parts of the compile will fail.
22006if test "x$ac_cv_have_int64_t" = "xno" && \
22007 test "x$ac_cv_sizeof_long_int" != "x8" && \
22008 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
22009 echo "OpenSSH requires int64_t support. Contact your vendor or install"
22010 echo "an alternative compiler (I.E., GCC) before continuing."
22011 echo ""
22012 exit 1;
22013else
22014 if test "$cross_compiling" = yes; then
22015 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
22016echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
22017
22018else
22019 cat >conftest.$ac_ext <<_ACEOF
22020/* confdefs.h. */
22021_ACEOF
22022cat confdefs.h >>conftest.$ac_ext
22023cat >>conftest.$ac_ext <<_ACEOF
22024/* end confdefs.h. */
22025
22026#include <stdio.h>
22027#include <string.h>
22028#ifdef HAVE_SNPRINTF
22029main()
22030{
22031 char buf[50];
22032 char expected_out[50];
22033 int mazsize = 50 ;
22034#if (SIZEOF_LONG_INT == 8)
22035 long int num = 0x7fffffffffffffff;
22036#else
22037 long long num = 0x7fffffffffffffffll;
22038#endif
22039 strcpy(expected_out, "9223372036854775807");
22040 snprintf(buf, mazsize, "%lld", num);
22041 if(strcmp(buf, expected_out) != 0)
22042 exit(1);
22043 exit(0);
22044}
22045#else
22046main() { exit(0); }
22047#endif
22048
22049_ACEOF
22050rm -f conftest$ac_exeext
22051if { (ac_try="$ac_link"
22052case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055esac
22056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_link") 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22061 { (case "(($ac_try" in
22062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063 *) ac_try_echo=$ac_try;;
22064esac
22065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066 (eval "$ac_try") 2>&5
22067 ac_status=$?
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; }; then
22070 true
22071else
22072 echo "$as_me: program exited with status $ac_status" >&5
22073echo "$as_me: failed program was:" >&5
22074sed 's/^/| /' conftest.$ac_ext >&5
22075
22076( exit $ac_status )
22077 cat >>confdefs.h <<\_ACEOF
22078#define BROKEN_SNPRINTF 1
22079_ACEOF
22080
22081fi
22082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22083fi
22084
22085
22086fi
22087
22088
22089# look for field 'ut_host' in header 'utmp.h'
22090 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22091 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22092 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
22093echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
22094 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096else
22097
22098 cat >conftest.$ac_ext <<_ACEOF
22099/* confdefs.h. */
22100_ACEOF
22101cat confdefs.h >>conftest.$ac_ext
22102cat >>conftest.$ac_ext <<_ACEOF
22103/* end confdefs.h. */
22104#include <utmp.h>
22105
22106_ACEOF
22107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22108 $EGREP "ut_host" >/dev/null 2>&1; then
22109 eval "$ossh_varname=yes"
22110else
22111 eval "$ossh_varname=no"
22112fi
22113rm -f conftest*
22114
22115fi
22116
22117 ossh_result=`eval 'echo $'"$ossh_varname"`
22118 if test -n "`echo $ossh_varname`"; then
22119 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22120echo "${ECHO_T}$ossh_result" >&6; }
22121 if test "x$ossh_result" = "xyes"; then
22122
22123cat >>confdefs.h <<\_ACEOF
22124#define HAVE_HOST_IN_UTMP 1
22125_ACEOF
22126
22127 fi
22128 else
22129 { echo "$as_me:$LINENO: result: no" >&5
22130echo "${ECHO_T}no" >&6; }
22131 fi
22132
22133
22134# look for field 'ut_host' in header 'utmpx.h'
22135 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22136 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22137 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
22138echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
22139 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141else
22142
22143 cat >conftest.$ac_ext <<_ACEOF
22144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
22149#include <utmpx.h>
22150
22151_ACEOF
22152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22153 $EGREP "ut_host" >/dev/null 2>&1; then
22154 eval "$ossh_varname=yes"
22155else
22156 eval "$ossh_varname=no"
22157fi
22158rm -f conftest*
22159
22160fi
22161
22162 ossh_result=`eval 'echo $'"$ossh_varname"`
22163 if test -n "`echo $ossh_varname`"; then
22164 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22165echo "${ECHO_T}$ossh_result" >&6; }
22166 if test "x$ossh_result" = "xyes"; then
22167
22168cat >>confdefs.h <<\_ACEOF
22169#define HAVE_HOST_IN_UTMPX 1
22170_ACEOF
22171
22172 fi
22173 else
22174 { echo "$as_me:$LINENO: result: no" >&5
22175echo "${ECHO_T}no" >&6; }
22176 fi
22177
22178
22179# look for field 'syslen' in header 'utmpx.h'
22180 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22181 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
22182 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
22183echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
22184 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22185 echo $ECHO_N "(cached) $ECHO_C" >&6
22186else
22187
22188 cat >conftest.$ac_ext <<_ACEOF
22189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
22194#include <utmpx.h>
22195
22196_ACEOF
22197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22198 $EGREP "syslen" >/dev/null 2>&1; then
22199 eval "$ossh_varname=yes"
22200else
22201 eval "$ossh_varname=no"
22202fi
22203rm -f conftest*
22204
22205fi
22206
22207 ossh_result=`eval 'echo $'"$ossh_varname"`
22208 if test -n "`echo $ossh_varname`"; then
22209 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22210echo "${ECHO_T}$ossh_result" >&6; }
22211 if test "x$ossh_result" = "xyes"; then
22212
22213cat >>confdefs.h <<\_ACEOF
22214#define HAVE_SYSLEN_IN_UTMPX 1
22215_ACEOF
22216
22217 fi
22218 else
22219 { echo "$as_me:$LINENO: result: no" >&5
22220echo "${ECHO_T}no" >&6; }
22221 fi
22222
22223
22224# look for field 'ut_pid' in header 'utmp.h'
22225 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22226 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
22227 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
22228echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
22229 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22231else
22232
22233 cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h. */
22239#include <utmp.h>
22240
22241_ACEOF
22242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22243 $EGREP "ut_pid" >/dev/null 2>&1; then
22244 eval "$ossh_varname=yes"
22245else
22246 eval "$ossh_varname=no"
22247fi
22248rm -f conftest*
22249
22250fi
22251
22252 ossh_result=`eval 'echo $'"$ossh_varname"`
22253 if test -n "`echo $ossh_varname`"; then
22254 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22255echo "${ECHO_T}$ossh_result" >&6; }
22256 if test "x$ossh_result" = "xyes"; then
22257
22258cat >>confdefs.h <<\_ACEOF
22259#define HAVE_PID_IN_UTMP 1
22260_ACEOF
22261
22262 fi
22263 else
22264 { echo "$as_me:$LINENO: result: no" >&5
22265echo "${ECHO_T}no" >&6; }
22266 fi
22267
22268
22269# look for field 'ut_type' in header 'utmp.h'
22270 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22271 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22272 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
22273echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
22274 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22276else
22277
22278 cat >conftest.$ac_ext <<_ACEOF
22279/* confdefs.h. */
22280_ACEOF
22281cat confdefs.h >>conftest.$ac_ext
22282cat >>conftest.$ac_ext <<_ACEOF
22283/* end confdefs.h. */
22284#include <utmp.h>
22285
22286_ACEOF
22287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22288 $EGREP "ut_type" >/dev/null 2>&1; then
22289 eval "$ossh_varname=yes"
22290else
22291 eval "$ossh_varname=no"
22292fi
22293rm -f conftest*
22294
22295fi
22296
22297 ossh_result=`eval 'echo $'"$ossh_varname"`
22298 if test -n "`echo $ossh_varname`"; then
22299 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22300echo "${ECHO_T}$ossh_result" >&6; }
22301 if test "x$ossh_result" = "xyes"; then
22302
22303cat >>confdefs.h <<\_ACEOF
22304#define HAVE_TYPE_IN_UTMP 1
22305_ACEOF
22306
22307 fi
22308 else
22309 { echo "$as_me:$LINENO: result: no" >&5
22310echo "${ECHO_T}no" >&6; }
22311 fi
22312
22313
22314# look for field 'ut_type' in header 'utmpx.h'
22315 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22316 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22317 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
22318echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
22319 if { as_var=$ossh_varname; eval "test \"\${$as_var+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#include <utmpx.h>
22330
22331_ACEOF
22332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22333 $EGREP "ut_type" >/dev/null 2>&1; then
22334 eval "$ossh_varname=yes"
22335else
22336 eval "$ossh_varname=no"
22337fi
22338rm -f conftest*
22339
22340fi
22341
22342 ossh_result=`eval 'echo $'"$ossh_varname"`
22343 if test -n "`echo $ossh_varname`"; then
22344 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22345echo "${ECHO_T}$ossh_result" >&6; }
22346 if test "x$ossh_result" = "xyes"; then
22347
22348cat >>confdefs.h <<\_ACEOF
22349#define HAVE_TYPE_IN_UTMPX 1
22350_ACEOF
22351
22352 fi
22353 else
22354 { echo "$as_me:$LINENO: result: no" >&5
22355echo "${ECHO_T}no" >&6; }
22356 fi
22357
22358
22359# look for field 'ut_tv' in header 'utmp.h'
22360 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22361 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
22362 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
22363echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
22364 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22366else
22367
22368 cat >conftest.$ac_ext <<_ACEOF
22369/* confdefs.h. */
22370_ACEOF
22371cat confdefs.h >>conftest.$ac_ext
22372cat >>conftest.$ac_ext <<_ACEOF
22373/* end confdefs.h. */
22374#include <utmp.h>
22375
22376_ACEOF
22377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22378 $EGREP "ut_tv" >/dev/null 2>&1; then
22379 eval "$ossh_varname=yes"
22380else
22381 eval "$ossh_varname=no"
22382fi
22383rm -f conftest*
22384
22385fi
22386
22387 ossh_result=`eval 'echo $'"$ossh_varname"`
22388 if test -n "`echo $ossh_varname`"; then
22389 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22390echo "${ECHO_T}$ossh_result" >&6; }
22391 if test "x$ossh_result" = "xyes"; then
22392
22393cat >>confdefs.h <<\_ACEOF
22394#define HAVE_TV_IN_UTMP 1
22395_ACEOF
22396
22397 fi
22398 else
22399 { echo "$as_me:$LINENO: result: no" >&5
22400echo "${ECHO_T}no" >&6; }
22401 fi
22402
22403
22404# look for field 'ut_id' in header 'utmp.h'
22405 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22406 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
22407 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
22408echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
22409 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22411else
22412
22413 cat >conftest.$ac_ext <<_ACEOF
22414/* confdefs.h. */
22415_ACEOF
22416cat confdefs.h >>conftest.$ac_ext
22417cat >>conftest.$ac_ext <<_ACEOF
22418/* end confdefs.h. */
22419#include <utmp.h>
22420
22421_ACEOF
22422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22423 $EGREP "ut_id" >/dev/null 2>&1; then
22424 eval "$ossh_varname=yes"
22425else
22426 eval "$ossh_varname=no"
22427fi
22428rm -f conftest*
22429
22430fi
22431
22432 ossh_result=`eval 'echo $'"$ossh_varname"`
22433 if test -n "`echo $ossh_varname`"; then
22434 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22435echo "${ECHO_T}$ossh_result" >&6; }
22436 if test "x$ossh_result" = "xyes"; then
22437
22438cat >>confdefs.h <<\_ACEOF
22439#define HAVE_ID_IN_UTMP 1
22440_ACEOF
22441
22442 fi
22443 else
22444 { echo "$as_me:$LINENO: result: no" >&5
22445echo "${ECHO_T}no" >&6; }
22446 fi
22447
22448
22449# look for field 'ut_id' in header 'utmpx.h'
22450 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22451 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
22452 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
22453echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
22454 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22456else
22457
22458 cat >conftest.$ac_ext <<_ACEOF
22459/* confdefs.h. */
22460_ACEOF
22461cat confdefs.h >>conftest.$ac_ext
22462cat >>conftest.$ac_ext <<_ACEOF
22463/* end confdefs.h. */
22464#include <utmpx.h>
22465
22466_ACEOF
22467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22468 $EGREP "ut_id" >/dev/null 2>&1; then
22469 eval "$ossh_varname=yes"
22470else
22471 eval "$ossh_varname=no"
22472fi
22473rm -f conftest*
22474
22475fi
22476
22477 ossh_result=`eval 'echo $'"$ossh_varname"`
22478 if test -n "`echo $ossh_varname`"; then
22479 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22480echo "${ECHO_T}$ossh_result" >&6; }
22481 if test "x$ossh_result" = "xyes"; then
22482
22483cat >>confdefs.h <<\_ACEOF
22484#define HAVE_ID_IN_UTMPX 1
22485_ACEOF
22486
22487 fi
22488 else
22489 { echo "$as_me:$LINENO: result: no" >&5
22490echo "${ECHO_T}no" >&6; }
22491 fi
22492
22493
22494# look for field 'ut_addr' in header 'utmp.h'
22495 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22496 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
22497 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
22498echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
22499 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22501else
22502
22503 cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
22508/* end confdefs.h. */
22509#include <utmp.h>
22510
22511_ACEOF
22512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22513 $EGREP "ut_addr" >/dev/null 2>&1; then
22514 eval "$ossh_varname=yes"
22515else
22516 eval "$ossh_varname=no"
22517fi
22518rm -f conftest*
22519
22520fi
22521
22522 ossh_result=`eval 'echo $'"$ossh_varname"`
22523 if test -n "`echo $ossh_varname`"; then
22524 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22525echo "${ECHO_T}$ossh_result" >&6; }
22526 if test "x$ossh_result" = "xyes"; then
22527
22528cat >>confdefs.h <<\_ACEOF
22529#define HAVE_ADDR_IN_UTMP 1
22530_ACEOF
22531
22532 fi
22533 else
22534 { echo "$as_me:$LINENO: result: no" >&5
22535echo "${ECHO_T}no" >&6; }
22536 fi
22537
22538
22539# look for field 'ut_addr' in header 'utmpx.h'
22540 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22541 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
22542 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
22543echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
22544 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22545 echo $ECHO_N "(cached) $ECHO_C" >&6
22546else
22547
22548 cat >conftest.$ac_ext <<_ACEOF
22549/* confdefs.h. */
22550_ACEOF
22551cat confdefs.h >>conftest.$ac_ext
22552cat >>conftest.$ac_ext <<_ACEOF
22553/* end confdefs.h. */
22554#include <utmpx.h>
22555
22556_ACEOF
22557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22558 $EGREP "ut_addr" >/dev/null 2>&1; then
22559 eval "$ossh_varname=yes"
22560else
22561 eval "$ossh_varname=no"
22562fi
22563rm -f conftest*
22564
22565fi
22566
22567 ossh_result=`eval 'echo $'"$ossh_varname"`
22568 if test -n "`echo $ossh_varname`"; then
22569 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22570echo "${ECHO_T}$ossh_result" >&6; }
22571 if test "x$ossh_result" = "xyes"; then
22572
22573cat >>confdefs.h <<\_ACEOF
22574#define HAVE_ADDR_IN_UTMPX 1
22575_ACEOF
22576
22577 fi
22578 else
22579 { echo "$as_me:$LINENO: result: no" >&5
22580echo "${ECHO_T}no" >&6; }
22581 fi
22582
22583
22584# look for field 'ut_addr_v6' in header 'utmp.h'
22585 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22586 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
22587 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
22588echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
22589 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22591else
22592
22593 cat >conftest.$ac_ext <<_ACEOF
22594/* confdefs.h. */
22595_ACEOF
22596cat confdefs.h >>conftest.$ac_ext
22597cat >>conftest.$ac_ext <<_ACEOF
22598/* end confdefs.h. */
22599#include <utmp.h>
22600
22601_ACEOF
22602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22603 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
22604 eval "$ossh_varname=yes"
22605else
22606 eval "$ossh_varname=no"
22607fi
22608rm -f conftest*
22609
22610fi
22611
22612 ossh_result=`eval 'echo $'"$ossh_varname"`
22613 if test -n "`echo $ossh_varname`"; then
22614 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22615echo "${ECHO_T}$ossh_result" >&6; }
22616 if test "x$ossh_result" = "xyes"; then
22617
22618cat >>confdefs.h <<\_ACEOF
22619#define HAVE_ADDR_V6_IN_UTMP 1
22620_ACEOF
22621
22622 fi
22623 else
22624 { echo "$as_me:$LINENO: result: no" >&5
22625echo "${ECHO_T}no" >&6; }
22626 fi
22627
22628
22629# look for field 'ut_addr_v6' in header 'utmpx.h'
22630 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22631 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
22632 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
22633echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
22634 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636else
22637
22638 cat >conftest.$ac_ext <<_ACEOF
22639/* confdefs.h. */
22640_ACEOF
22641cat confdefs.h >>conftest.$ac_ext
22642cat >>conftest.$ac_ext <<_ACEOF
22643/* end confdefs.h. */
22644#include <utmpx.h>
22645
22646_ACEOF
22647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22648 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
22649 eval "$ossh_varname=yes"
22650else
22651 eval "$ossh_varname=no"
22652fi
22653rm -f conftest*
22654
22655fi
22656
22657 ossh_result=`eval 'echo $'"$ossh_varname"`
22658 if test -n "`echo $ossh_varname`"; then
22659 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22660echo "${ECHO_T}$ossh_result" >&6; }
22661 if test "x$ossh_result" = "xyes"; then
22662
22663cat >>confdefs.h <<\_ACEOF
22664#define HAVE_ADDR_V6_IN_UTMPX 1
22665_ACEOF
22666
22667 fi
22668 else
22669 { echo "$as_me:$LINENO: result: no" >&5
22670echo "${ECHO_T}no" >&6; }
22671 fi
22672
22673
22674# look for field 'ut_exit' in header 'utmp.h'
22675 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22676 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
22677 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
22678echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
22679 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22681else
22682
22683 cat >conftest.$ac_ext <<_ACEOF
22684/* confdefs.h. */
22685_ACEOF
22686cat confdefs.h >>conftest.$ac_ext
22687cat >>conftest.$ac_ext <<_ACEOF
22688/* end confdefs.h. */
22689#include <utmp.h>
22690
22691_ACEOF
22692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22693 $EGREP "ut_exit" >/dev/null 2>&1; then
22694 eval "$ossh_varname=yes"
22695else
22696 eval "$ossh_varname=no"
22697fi
22698rm -f conftest*
22699
22700fi
22701
22702 ossh_result=`eval 'echo $'"$ossh_varname"`
22703 if test -n "`echo $ossh_varname`"; then
22704 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22705echo "${ECHO_T}$ossh_result" >&6; }
22706 if test "x$ossh_result" = "xyes"; then
22707
22708cat >>confdefs.h <<\_ACEOF
22709#define HAVE_EXIT_IN_UTMP 1
22710_ACEOF
22711
22712 fi
22713 else
22714 { echo "$as_me:$LINENO: result: no" >&5
22715echo "${ECHO_T}no" >&6; }
22716 fi
22717
22718
22719# look for field 'ut_time' in header 'utmp.h'
22720 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22721 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
22722 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
22723echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
22724 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726else
22727
22728 cat >conftest.$ac_ext <<_ACEOF
22729/* confdefs.h. */
22730_ACEOF
22731cat confdefs.h >>conftest.$ac_ext
22732cat >>conftest.$ac_ext <<_ACEOF
22733/* end confdefs.h. */
22734#include <utmp.h>
22735
22736_ACEOF
22737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22738 $EGREP "ut_time" >/dev/null 2>&1; then
22739 eval "$ossh_varname=yes"
22740else
22741 eval "$ossh_varname=no"
22742fi
22743rm -f conftest*
22744
22745fi
22746
22747 ossh_result=`eval 'echo $'"$ossh_varname"`
22748 if test -n "`echo $ossh_varname`"; then
22749 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22750echo "${ECHO_T}$ossh_result" >&6; }
22751 if test "x$ossh_result" = "xyes"; then
22752
22753cat >>confdefs.h <<\_ACEOF
22754#define HAVE_TIME_IN_UTMP 1
22755_ACEOF
22756
22757 fi
22758 else
22759 { echo "$as_me:$LINENO: result: no" >&5
22760echo "${ECHO_T}no" >&6; }
22761 fi
22762
22763
22764# look for field 'ut_time' in header 'utmpx.h'
22765 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22766 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
22767 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
22768echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
22769 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771else
22772
22773 cat >conftest.$ac_ext <<_ACEOF
22774/* confdefs.h. */
22775_ACEOF
22776cat confdefs.h >>conftest.$ac_ext
22777cat >>conftest.$ac_ext <<_ACEOF
22778/* end confdefs.h. */
22779#include <utmpx.h>
22780
22781_ACEOF
22782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22783 $EGREP "ut_time" >/dev/null 2>&1; then
22784 eval "$ossh_varname=yes"
22785else
22786 eval "$ossh_varname=no"
22787fi
22788rm -f conftest*
22789
22790fi
22791
22792 ossh_result=`eval 'echo $'"$ossh_varname"`
22793 if test -n "`echo $ossh_varname`"; then
22794 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22795echo "${ECHO_T}$ossh_result" >&6; }
22796 if test "x$ossh_result" = "xyes"; then
22797
22798cat >>confdefs.h <<\_ACEOF
22799#define HAVE_TIME_IN_UTMPX 1
22800_ACEOF
22801
22802 fi
22803 else
22804 { echo "$as_me:$LINENO: result: no" >&5
22805echo "${ECHO_T}no" >&6; }
22806 fi
22807
22808
22809# look for field 'ut_tv' in header 'utmpx.h'
22810 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22811 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
22812 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
22813echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
22814 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22816else
22817
22818 cat >conftest.$ac_ext <<_ACEOF
22819/* confdefs.h. */
22820_ACEOF
22821cat confdefs.h >>conftest.$ac_ext
22822cat >>conftest.$ac_ext <<_ACEOF
22823/* end confdefs.h. */
22824#include <utmpx.h>
22825
22826_ACEOF
22827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22828 $EGREP "ut_tv" >/dev/null 2>&1; then
22829 eval "$ossh_varname=yes"
22830else
22831 eval "$ossh_varname=no"
22832fi
22833rm -f conftest*
22834
22835fi
22836
22837 ossh_result=`eval 'echo $'"$ossh_varname"`
22838 if test -n "`echo $ossh_varname`"; then
22839 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22840echo "${ECHO_T}$ossh_result" >&6; }
22841 if test "x$ossh_result" = "xyes"; then
22842
22843cat >>confdefs.h <<\_ACEOF
22844#define HAVE_TV_IN_UTMPX 1
22845_ACEOF
22846
22847 fi
22848 else
22849 { echo "$as_me:$LINENO: result: no" >&5
22850echo "${ECHO_T}no" >&6; }
22851 fi
22852
22853
22854{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22855echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22856if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22858else
22859 cat >conftest.$ac_ext <<_ACEOF
22860/* confdefs.h. */
22861_ACEOF
22862cat confdefs.h >>conftest.$ac_ext
22863cat >>conftest.$ac_ext <<_ACEOF
22864/* end confdefs.h. */
22865$ac_includes_default
22866int
22867main ()
22868{
22869static struct stat ac_aggr;
22870if (ac_aggr.st_blksize)
22871return 0;
22872 ;
22873 return 0;
22874}
22875_ACEOF
22876rm -f conftest.$ac_objext
22877if { (ac_try="$ac_compile"
22878case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22881esac
22882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22884 ac_status=$?
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 ac_cv_member_struct_stat_st_blksize=yes
22894else
22895 echo "$as_me: failed program was:" >&5
22896sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 cat >conftest.$ac_ext <<_ACEOF
22899/* confdefs.h. */
22900_ACEOF
22901cat confdefs.h >>conftest.$ac_ext
22902cat >>conftest.$ac_ext <<_ACEOF
22903/* end confdefs.h. */
22904$ac_includes_default
22905int
22906main ()
22907{
22908static struct stat ac_aggr;
22909if (sizeof ac_aggr.st_blksize)
22910return 0;
22911 ;
22912 return 0;
22913}
22914_ACEOF
22915rm -f conftest.$ac_objext
22916if { (ac_try="$ac_compile"
22917case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22920esac
22921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_compile") 2>conftest.er1
22923 ac_status=$?
22924 grep -v '^ *+' conftest.er1 >conftest.err
22925 rm -f conftest.er1
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest.$ac_objext; then
22932 ac_cv_member_struct_stat_st_blksize=yes
22933else
22934 echo "$as_me: failed program was:" >&5
22935sed 's/^/| /' conftest.$ac_ext >&5
22936
22937 ac_cv_member_struct_stat_st_blksize=no
22938fi
22939
22940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941fi
22942
22943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944fi
22945{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22946echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22947if test $ac_cv_member_struct_stat_st_blksize = yes; then
22948
22949cat >>confdefs.h <<_ACEOF
22950#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22951_ACEOF
22952
22953
22954fi
22955
22956{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
22957echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
22958if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960else
22961 cat >conftest.$ac_ext <<_ACEOF
22962/* confdefs.h. */
22963_ACEOF
22964cat confdefs.h >>conftest.$ac_ext
22965cat >>conftest.$ac_ext <<_ACEOF
22966/* end confdefs.h. */
22967
22968#include <stdio.h>
22969#if HAVE_SYS_TYPES_H
22970# include <sys/types.h>
22971#endif
22972#include <netinet/in.h>
22973#include <arpa/nameser.h>
22974#include <resolv.h>
22975
22976
22977int
22978main ()
22979{
22980static struct __res_state ac_aggr;
22981if (ac_aggr.retrans)
22982return 0;
22983 ;
22984 return 0;
22985}
22986_ACEOF
22987rm -f conftest.$ac_objext
22988if { (ac_try="$ac_compile"
22989case "(($ac_try" in
22990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22991 *) ac_try_echo=$ac_try;;
22992esac
22993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22994 (eval "$ac_compile") 2>conftest.er1
22995 ac_status=$?
22996 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1
22998 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } && {
23001 test -z "$ac_c_werror_flag" ||
23002 test ! -s conftest.err
23003 } && test -s conftest.$ac_objext; then
23004 ac_cv_member_struct___res_state_retrans=yes
23005else
23006 echo "$as_me: failed program was:" >&5
23007sed 's/^/| /' conftest.$ac_ext >&5
23008
23009 cat >conftest.$ac_ext <<_ACEOF
23010/* confdefs.h. */
23011_ACEOF
23012cat confdefs.h >>conftest.$ac_ext
23013cat >>conftest.$ac_ext <<_ACEOF
23014/* end confdefs.h. */
23015
23016#include <stdio.h>
23017#if HAVE_SYS_TYPES_H
23018# include <sys/types.h>
23019#endif
23020#include <netinet/in.h>
23021#include <arpa/nameser.h>
23022#include <resolv.h>
23023
23024
23025int
23026main ()
23027{
23028static struct __res_state ac_aggr;
23029if (sizeof ac_aggr.retrans)
23030return 0;
23031 ;
23032 return 0;
23033}
23034_ACEOF
23035rm -f conftest.$ac_objext
23036if { (ac_try="$ac_compile"
23037case "(($ac_try" in
23038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039 *) ac_try_echo=$ac_try;;
23040esac
23041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042 (eval "$ac_compile") 2>conftest.er1
23043 ac_status=$?
23044 grep -v '^ *+' conftest.er1 >conftest.err
23045 rm -f conftest.er1
23046 cat conftest.err >&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && {
23049 test -z "$ac_c_werror_flag" ||
23050 test ! -s conftest.err
23051 } && test -s conftest.$ac_objext; then
23052 ac_cv_member_struct___res_state_retrans=yes
23053else
23054 echo "$as_me: failed program was:" >&5
23055sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ac_cv_member_struct___res_state_retrans=no
23058fi
23059
23060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23061fi
23062
23063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064fi
23065{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
23066echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
23067if test $ac_cv_member_struct___res_state_retrans = yes; then
23068 :
23069else
23070
23071cat >>confdefs.h <<\_ACEOF
23072#define __res_state state
23073_ACEOF
23074
23075fi
23076
23077
23078{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
23079echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23080if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23082else
23083
23084 cat >conftest.$ac_ext <<_ACEOF
23085/* confdefs.h. */
23086_ACEOF
23087cat confdefs.h >>conftest.$ac_ext
23088cat >>conftest.$ac_ext <<_ACEOF
23089/* end confdefs.h. */
23090
23091#include <sys/types.h>
23092#include <sys/socket.h>
23093
23094int
23095main ()
23096{
23097 struct sockaddr_storage s; s.ss_family = 1;
23098 ;
23099 return 0;
23100}
23101_ACEOF
23102rm -f conftest.$ac_objext
23103if { (ac_try="$ac_compile"
23104case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107esac
23108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 ac_cv_have_ss_family_in_struct_ss="yes"
23120else
23121 echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124 ac_cv_have_ss_family_in_struct_ss="no"
23125fi
23126
23127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128
23129fi
23130{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
23131echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
23132if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
23133
23134cat >>confdefs.h <<\_ACEOF
23135#define HAVE_SS_FAMILY_IN_SS 1
23136_ACEOF
23137
23138fi
23139
23140{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
23141echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23142if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23144else
23145
23146 cat >conftest.$ac_ext <<_ACEOF
23147/* confdefs.h. */
23148_ACEOF
23149cat confdefs.h >>conftest.$ac_ext
23150cat >>conftest.$ac_ext <<_ACEOF
23151/* end confdefs.h. */
23152
23153#include <sys/types.h>
23154#include <sys/socket.h>
23155
23156int
23157main ()
23158{
23159 struct sockaddr_storage s; s.__ss_family = 1;
23160 ;
23161 return 0;
23162}
23163_ACEOF
23164rm -f conftest.$ac_objext
23165if { (ac_try="$ac_compile"
23166case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169esac
23170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_compile") 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest.$ac_objext; then
23181 ac_cv_have___ss_family_in_struct_ss="yes"
23182else
23183 echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186 ac_cv_have___ss_family_in_struct_ss="no"
23187
23188fi
23189
23190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191
23192fi
23193{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
23194echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
23195if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
23196
23197cat >>confdefs.h <<\_ACEOF
23198#define HAVE___SS_FAMILY_IN_SS 1
23199_ACEOF
23200
23201fi
23202
23203{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
23204echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
23205if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23207else
23208
23209 cat >conftest.$ac_ext <<_ACEOF
23210/* confdefs.h. */
23211_ACEOF
23212cat confdefs.h >>conftest.$ac_ext
23213cat >>conftest.$ac_ext <<_ACEOF
23214/* end confdefs.h. */
23215
23216#include <pwd.h>
23217
23218int
23219main ()
23220{
23221 struct passwd p; p.pw_class = 0;
23222 ;
23223 return 0;
23224}
23225_ACEOF
23226rm -f conftest.$ac_objext
23227if { (ac_try="$ac_compile"
23228case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23231esac
23232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_compile") 2>conftest.er1
23234 ac_status=$?
23235 grep -v '^ *+' conftest.er1 >conftest.err
23236 rm -f conftest.er1
23237 cat conftest.err >&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); } && {
23240 test -z "$ac_c_werror_flag" ||
23241 test ! -s conftest.err
23242 } && test -s conftest.$ac_objext; then
23243 ac_cv_have_pw_class_in_struct_passwd="yes"
23244else
23245 echo "$as_me: failed program was:" >&5
23246sed 's/^/| /' conftest.$ac_ext >&5
23247
23248 ac_cv_have_pw_class_in_struct_passwd="no"
23249
23250fi
23251
23252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253
23254fi
23255{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
23256echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
23257if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
23258
23259cat >>confdefs.h <<\_ACEOF
23260#define HAVE_PW_CLASS_IN_PASSWD 1
23261_ACEOF
23262
23263fi
23264
23265{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
23266echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
23267if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
23268 echo $ECHO_N "(cached) $ECHO_C" >&6
23269else
23270
23271 cat >conftest.$ac_ext <<_ACEOF
23272/* confdefs.h. */
23273_ACEOF
23274cat confdefs.h >>conftest.$ac_ext
23275cat >>conftest.$ac_ext <<_ACEOF
23276/* end confdefs.h. */
23277
23278#include <pwd.h>
23279
23280int
23281main ()
23282{
23283 struct passwd p; p.pw_expire = 0;
23284 ;
23285 return 0;
23286}
23287_ACEOF
23288rm -f conftest.$ac_objext
23289if { (ac_try="$ac_compile"
23290case "(($ac_try" in
23291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292 *) ac_try_echo=$ac_try;;
23293esac
23294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23295 (eval "$ac_compile") 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } && {
23302 test -z "$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23304 } && test -s conftest.$ac_objext; then
23305 ac_cv_have_pw_expire_in_struct_passwd="yes"
23306else
23307 echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_cv_have_pw_expire_in_struct_passwd="no"
23311
23312fi
23313
23314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23315
23316fi
23317{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
23318echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
23319if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
23320
23321cat >>confdefs.h <<\_ACEOF
23322#define HAVE_PW_EXPIRE_IN_PASSWD 1
23323_ACEOF
23324
23325fi
23326
23327{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
23328echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
23329if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
23330 echo $ECHO_N "(cached) $ECHO_C" >&6
23331else
23332
23333 cat >conftest.$ac_ext <<_ACEOF
23334/* confdefs.h. */
23335_ACEOF
23336cat confdefs.h >>conftest.$ac_ext
23337cat >>conftest.$ac_ext <<_ACEOF
23338/* end confdefs.h. */
23339
23340#include <pwd.h>
23341
23342int
23343main ()
23344{
23345 struct passwd p; p.pw_change = 0;
23346 ;
23347 return 0;
23348}
23349_ACEOF
23350rm -f conftest.$ac_objext
23351if { (ac_try="$ac_compile"
23352case "(($ac_try" in
23353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354 *) ac_try_echo=$ac_try;;
23355esac
23356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357 (eval "$ac_compile") 2>conftest.er1
23358 ac_status=$?
23359 grep -v '^ *+' conftest.er1 >conftest.err
23360 rm -f conftest.er1
23361 cat conftest.err >&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } && {
23364 test -z "$ac_c_werror_flag" ||
23365 test ! -s conftest.err
23366 } && test -s conftest.$ac_objext; then
23367 ac_cv_have_pw_change_in_struct_passwd="yes"
23368else
23369 echo "$as_me: failed program was:" >&5
23370sed 's/^/| /' conftest.$ac_ext >&5
23371
23372 ac_cv_have_pw_change_in_struct_passwd="no"
23373
23374fi
23375
23376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377
23378fi
23379{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
23380echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
23381if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
23382
23383cat >>confdefs.h <<\_ACEOF
23384#define HAVE_PW_CHANGE_IN_PASSWD 1
23385_ACEOF
23386
23387fi
23388
23389{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
23390echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
23391if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23393else
23394
23395 cat >conftest.$ac_ext <<_ACEOF
23396
23397#include <sys/types.h>
23398#include <sys/socket.h>
23399#include <sys/uio.h>
23400int main() {
23401#ifdef msg_accrights
23402#error "msg_accrights is a macro"
23403exit(1);
23404#endif
23405struct msghdr m;
23406m.msg_accrights = 0;
23407exit(0);
23408}
23409
23410_ACEOF
23411rm -f conftest.$ac_objext
23412if { (ac_try="$ac_compile"
23413case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23416esac
23417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_compile") 2>conftest.er1
23419 ac_status=$?
23420 grep -v '^ *+' conftest.er1 >conftest.err
23421 rm -f conftest.er1
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && {
23425 test -z "$ac_c_werror_flag" ||
23426 test ! -s conftest.err
23427 } && test -s conftest.$ac_objext; then
23428 ac_cv_have_accrights_in_msghdr="yes"
23429else
23430 echo "$as_me: failed program was:" >&5
23431sed 's/^/| /' conftest.$ac_ext >&5
23432
23433 ac_cv_have_accrights_in_msghdr="no"
23434
23435fi
23436
23437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23438
23439fi
23440{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
23441echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
23442if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
23443
23444cat >>confdefs.h <<\_ACEOF
23445#define HAVE_ACCRIGHTS_IN_MSGHDR 1
23446_ACEOF
23447
23448fi
23449
23450{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
23451echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
23452if test "${ac_cv_have_control_in_msghdr+set}" = set; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23454else
23455
23456 cat >conftest.$ac_ext <<_ACEOF
23457
23458#include <sys/types.h>
23459#include <sys/socket.h>
23460#include <sys/uio.h>
23461int main() {
23462#ifdef msg_control
23463#error "msg_control is a macro"
23464exit(1);
23465#endif
23466struct msghdr m;
23467m.msg_control = 0;
23468exit(0);
23469}
23470
23471_ACEOF
23472rm -f conftest.$ac_objext
23473if { (ac_try="$ac_compile"
23474case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23477esac
23478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_compile") 2>conftest.er1
23480 ac_status=$?
23481 grep -v '^ *+' conftest.er1 >conftest.err
23482 rm -f conftest.er1
23483 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } && {
23486 test -z "$ac_c_werror_flag" ||
23487 test ! -s conftest.err
23488 } && test -s conftest.$ac_objext; then
23489 ac_cv_have_control_in_msghdr="yes"
23490else
23491 echo "$as_me: failed program was:" >&5
23492sed 's/^/| /' conftest.$ac_ext >&5
23493
23494 ac_cv_have_control_in_msghdr="no"
23495
23496fi
23497
23498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499
23500fi
23501{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
23502echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
23503if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
23504
23505cat >>confdefs.h <<\_ACEOF
23506#define HAVE_CONTROL_IN_MSGHDR 1
23507_ACEOF
23508
23509fi
23510
23511{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
23512echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
23513if test "${ac_cv_libc_defines___progname+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23515else
23516
23517 cat >conftest.$ac_ext <<_ACEOF
23518/* confdefs.h. */
23519_ACEOF
23520cat confdefs.h >>conftest.$ac_ext
23521cat >>conftest.$ac_ext <<_ACEOF
23522/* end confdefs.h. */
23523
23524int
23525main ()
23526{
23527 extern char *__progname; printf("%s", __progname);
23528 ;
23529 return 0;
23530}
23531_ACEOF
23532rm -f conftest.$ac_objext conftest$ac_exeext
23533if { (ac_try="$ac_link"
23534case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23537esac
23538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539 (eval "$ac_link") 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest$ac_exeext &&
23549 $as_test_x conftest$ac_exeext; then
23550 ac_cv_libc_defines___progname="yes"
23551else
23552 echo "$as_me: failed program was:" >&5
23553sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 ac_cv_libc_defines___progname="no"
23556
23557fi
23558
23559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23560 conftest$ac_exeext conftest.$ac_ext
23561
23562fi
23563{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
23564echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
23565if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
23566
23567cat >>confdefs.h <<\_ACEOF
23568#define HAVE___PROGNAME 1
23569_ACEOF
23570
23571fi
23572
23573{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
23574echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
23575if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577else
23578
23579 cat >conftest.$ac_ext <<_ACEOF
23580/* confdefs.h. */
23581_ACEOF
23582cat confdefs.h >>conftest.$ac_ext
23583cat >>conftest.$ac_ext <<_ACEOF
23584/* end confdefs.h. */
23585
23586#include <stdio.h>
23587
23588int
23589main ()
23590{
23591 printf("%s", __FUNCTION__);
23592 ;
23593 return 0;
23594}
23595_ACEOF
23596rm -f conftest.$ac_objext conftest$ac_exeext
23597if { (ac_try="$ac_link"
23598case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23601esac
23602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603 (eval "$ac_link") 2>conftest.er1
23604 ac_status=$?
23605 grep -v '^ *+' conftest.er1 >conftest.err
23606 rm -f conftest.er1
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } && {
23610 test -z "$ac_c_werror_flag" ||
23611 test ! -s conftest.err
23612 } && test -s conftest$ac_exeext &&
23613 $as_test_x conftest$ac_exeext; then
23614 ac_cv_cc_implements___FUNCTION__="yes"
23615else
23616 echo "$as_me: failed program was:" >&5
23617sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 ac_cv_cc_implements___FUNCTION__="no"
23620
23621fi
23622
23623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23624 conftest$ac_exeext conftest.$ac_ext
23625
23626fi
23627{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
23628echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
23629if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
23630
23631cat >>confdefs.h <<\_ACEOF
23632#define HAVE___FUNCTION__ 1
23633_ACEOF
23634
23635fi
23636
23637{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
23638echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
23639if test "${ac_cv_cc_implements___func__+set}" = set; then
23640 echo $ECHO_N "(cached) $ECHO_C" >&6
23641else
23642
23643 cat >conftest.$ac_ext <<_ACEOF
23644/* confdefs.h. */
23645_ACEOF
23646cat confdefs.h >>conftest.$ac_ext
23647cat >>conftest.$ac_ext <<_ACEOF
23648/* end confdefs.h. */
23649
23650#include <stdio.h>
23651
23652int
23653main ()
23654{
23655 printf("%s", __func__);
23656 ;
23657 return 0;
23658}
23659_ACEOF
23660rm -f conftest.$ac_objext conftest$ac_exeext
23661if { (ac_try="$ac_link"
23662case "(($ac_try" in
23663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664 *) ac_try_echo=$ac_try;;
23665esac
23666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667 (eval "$ac_link") 2>conftest.er1
23668 ac_status=$?
23669 grep -v '^ *+' conftest.er1 >conftest.err
23670 rm -f conftest.er1
23671 cat conftest.err >&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } && {
23674 test -z "$ac_c_werror_flag" ||
23675 test ! -s conftest.err
23676 } && test -s conftest$ac_exeext &&
23677 $as_test_x conftest$ac_exeext; then
23678 ac_cv_cc_implements___func__="yes"
23679else
23680 echo "$as_me: failed program was:" >&5
23681sed 's/^/| /' conftest.$ac_ext >&5
23682
23683 ac_cv_cc_implements___func__="no"
23684
23685fi
23686
23687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23688 conftest$ac_exeext conftest.$ac_ext
23689
23690fi
23691{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
23692echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
23693if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
23694
23695cat >>confdefs.h <<\_ACEOF
23696#define HAVE___func__ 1
23697_ACEOF
23698
23699fi
23700
23701{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
23702echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
23703if test "${ac_cv_have_va_copy+set}" = set; then
23704 echo $ECHO_N "(cached) $ECHO_C" >&6
23705else
23706
23707 cat >conftest.$ac_ext <<_ACEOF
23708/* confdefs.h. */
23709_ACEOF
23710cat confdefs.h >>conftest.$ac_ext
23711cat >>conftest.$ac_ext <<_ACEOF
23712/* end confdefs.h. */
23713#include <stdarg.h>
23714 va_list x,y;
23715int
23716main ()
23717{
23718va_copy(x,y);
23719 ;
23720 return 0;
23721}
23722_ACEOF
23723rm -f conftest.$ac_objext conftest$ac_exeext
23724if { (ac_try="$ac_link"
23725case "(($ac_try" in
23726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23728esac
23729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval "$ac_link") 2>conftest.er1
23731 ac_status=$?
23732 grep -v '^ *+' conftest.er1 >conftest.err
23733 rm -f conftest.er1
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } && {
23737 test -z "$ac_c_werror_flag" ||
23738 test ! -s conftest.err
23739 } && test -s conftest$ac_exeext &&
23740 $as_test_x conftest$ac_exeext; then
23741 ac_cv_have_va_copy="yes"
23742else
23743 echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ac_cv_have_va_copy="no"
23747
23748fi
23749
23750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23751 conftest$ac_exeext conftest.$ac_ext
23752
23753fi
23754{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
23755echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
23756if test "x$ac_cv_have_va_copy" = "xyes" ; then
23757
23758cat >>confdefs.h <<\_ACEOF
23759#define HAVE_VA_COPY 1
23760_ACEOF
23761
23762fi
23763
23764{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
23765echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
23766if test "${ac_cv_have___va_copy+set}" = set; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23768else
23769
23770 cat >conftest.$ac_ext <<_ACEOF
23771/* confdefs.h. */
23772_ACEOF
23773cat confdefs.h >>conftest.$ac_ext
23774cat >>conftest.$ac_ext <<_ACEOF
23775/* end confdefs.h. */
23776#include <stdarg.h>
23777 va_list x,y;
23778int
23779main ()
23780{
23781__va_copy(x,y);
23782 ;
23783 return 0;
23784}
23785_ACEOF
23786rm -f conftest.$ac_objext conftest$ac_exeext
23787if { (ac_try="$ac_link"
23788case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23791esac
23792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_link") 2>conftest.er1
23794 ac_status=$?
23795 grep -v '^ *+' conftest.er1 >conftest.err
23796 rm -f conftest.er1
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && {
23800 test -z "$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 } && test -s conftest$ac_exeext &&
23803 $as_test_x conftest$ac_exeext; then
23804 ac_cv_have___va_copy="yes"
23805else
23806 echo "$as_me: failed program was:" >&5
23807sed 's/^/| /' conftest.$ac_ext >&5
23808
23809 ac_cv_have___va_copy="no"
23810
23811fi
23812
23813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23814 conftest$ac_exeext conftest.$ac_ext
23815
23816fi
23817{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
23818echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
23819if test "x$ac_cv_have___va_copy" = "xyes" ; then
23820
23821cat >>confdefs.h <<\_ACEOF
23822#define HAVE___VA_COPY 1
23823_ACEOF
23824
23825fi
23826
23827{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
23828echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
23829if test "${ac_cv_have_getopt_optreset+set}" = set; then
23830 echo $ECHO_N "(cached) $ECHO_C" >&6
23831else
23832
23833 cat >conftest.$ac_ext <<_ACEOF
23834/* confdefs.h. */
23835_ACEOF
23836cat confdefs.h >>conftest.$ac_ext
23837cat >>conftest.$ac_ext <<_ACEOF
23838/* end confdefs.h. */
23839
23840#include <getopt.h>
23841
23842int
23843main ()
23844{
23845 extern int optreset; optreset = 0;
23846 ;
23847 return 0;
23848}
23849_ACEOF
23850rm -f conftest.$ac_objext conftest$ac_exeext
23851if { (ac_try="$ac_link"
23852case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23855esac
23856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857 (eval "$ac_link") 2>conftest.er1
23858 ac_status=$?
23859 grep -v '^ *+' conftest.er1 >conftest.err
23860 rm -f conftest.er1
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } && {
23864 test -z "$ac_c_werror_flag" ||
23865 test ! -s conftest.err
23866 } && test -s conftest$ac_exeext &&
23867 $as_test_x conftest$ac_exeext; then
23868 ac_cv_have_getopt_optreset="yes"
23869else
23870 echo "$as_me: failed program was:" >&5
23871sed 's/^/| /' conftest.$ac_ext >&5
23872
23873 ac_cv_have_getopt_optreset="no"
23874
23875fi
23876
23877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23878 conftest$ac_exeext conftest.$ac_ext
23879
23880fi
23881{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
23882echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
23883if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
23884
23885cat >>confdefs.h <<\_ACEOF
23886#define HAVE_GETOPT_OPTRESET 1
23887_ACEOF
23888
23889fi
23890
23891{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
23892echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
23893if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
23894 echo $ECHO_N "(cached) $ECHO_C" >&6
23895else
23896
23897 cat >conftest.$ac_ext <<_ACEOF
23898/* confdefs.h. */
23899_ACEOF
23900cat confdefs.h >>conftest.$ac_ext
23901cat >>conftest.$ac_ext <<_ACEOF
23902/* end confdefs.h. */
23903
23904int
23905main ()
23906{
23907 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
23908 ;
23909 return 0;
23910}
23911_ACEOF
23912rm -f conftest.$ac_objext conftest$ac_exeext
23913if { (ac_try="$ac_link"
23914case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23917esac
23918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_link") 2>conftest.er1
23920 ac_status=$?
23921 grep -v '^ *+' conftest.er1 >conftest.err
23922 rm -f conftest.er1
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest$ac_exeext &&
23929 $as_test_x conftest$ac_exeext; then
23930 ac_cv_libc_defines_sys_errlist="yes"
23931else
23932 echo "$as_me: failed program was:" >&5
23933sed 's/^/| /' conftest.$ac_ext >&5
23934
23935 ac_cv_libc_defines_sys_errlist="no"
23936
23937fi
23938
23939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23940 conftest$ac_exeext conftest.$ac_ext
23941
23942fi
23943{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
23944echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
23945if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
23946
23947cat >>confdefs.h <<\_ACEOF
23948#define HAVE_SYS_ERRLIST 1
23949_ACEOF
23950
23951fi
23952
23953
23954{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
23955echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
23956if test "${ac_cv_libc_defines_sys_nerr+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
23967int
23968main ()
23969{
23970 extern int sys_nerr; printf("%i", sys_nerr);
23971 ;
23972 return 0;
23973}
23974_ACEOF
23975rm -f conftest.$ac_objext conftest$ac_exeext
23976if { (ac_try="$ac_link"
23977case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23980esac
23981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_link") 2>conftest.er1
23983 ac_status=$?
23984 grep -v '^ *+' conftest.er1 >conftest.err
23985 rm -f conftest.er1
23986 cat conftest.err >&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } && {
23989 test -z "$ac_c_werror_flag" ||
23990 test ! -s conftest.err
23991 } && test -s conftest$ac_exeext &&
23992 $as_test_x conftest$ac_exeext; then
23993 ac_cv_libc_defines_sys_nerr="yes"
23994else
23995 echo "$as_me: failed program was:" >&5
23996sed 's/^/| /' conftest.$ac_ext >&5
23997
23998 ac_cv_libc_defines_sys_nerr="no"
23999
24000fi
24001
24002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24003 conftest$ac_exeext conftest.$ac_ext
24004
24005fi
24006{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
24007echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
24008if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
24009
24010cat >>confdefs.h <<\_ACEOF
24011#define HAVE_SYS_NERR 1
24012_ACEOF
24013
24014fi
24015
24016SCARD_MSG="no"
24017# Check whether user wants sectok support
24018
24019# Check whether --with-sectok was given.
24020if test "${with_sectok+set}" = set; then
24021 withval=$with_sectok;
24022 if test "x$withval" != "xno" ; then
24023 if test "x$withval" != "xyes" ; then
24024 CPPFLAGS="$CPPFLAGS -I${withval}"
24025 LDFLAGS="$LDFLAGS -L${withval}"
24026 if test ! -z "$need_dash_r" ; then
24027 LDFLAGS="$LDFLAGS -R${withval}"
24028 fi
24029 if test ! -z "$blibpath" ; then
24030 blibpath="$blibpath:${withval}"
24031 fi
24032 fi
24033
24034for ac_header in sectok.h
24035do
24036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
24042fi
24043ac_res=`eval echo '${'$as_ac_Header'}'`
24044 { echo "$as_me:$LINENO: result: $ac_res" >&5
24045echo "${ECHO_T}$ac_res" >&6; }
24046else
24047 # Is the header compilable?
24048{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24050cat >conftest.$ac_ext <<_ACEOF
24051/* confdefs.h. */
24052_ACEOF
24053cat confdefs.h >>conftest.$ac_ext
24054cat >>conftest.$ac_ext <<_ACEOF
24055/* end confdefs.h. */
24056$ac_includes_default
24057#include <$ac_header>
24058_ACEOF
24059rm -f conftest.$ac_objext
24060if { (ac_try="$ac_compile"
24061case "(($ac_try" in
24062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063 *) ac_try_echo=$ac_try;;
24064esac
24065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066 (eval "$ac_compile") 2>conftest.er1
24067 ac_status=$?
24068 grep -v '^ *+' conftest.er1 >conftest.err
24069 rm -f conftest.er1
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } && {
24073 test -z "$ac_c_werror_flag" ||
24074 test ! -s conftest.err
24075 } && test -s conftest.$ac_objext; then
24076 ac_header_compiler=yes
24077else
24078 echo "$as_me: failed program was:" >&5
24079sed 's/^/| /' conftest.$ac_ext >&5
24080
24081 ac_header_compiler=no
24082fi
24083
24084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24086echo "${ECHO_T}$ac_header_compiler" >&6; }
24087
24088# Is the header present?
24089{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24091cat >conftest.$ac_ext <<_ACEOF
24092/* confdefs.h. */
24093_ACEOF
24094cat confdefs.h >>conftest.$ac_ext
24095cat >>conftest.$ac_ext <<_ACEOF
24096/* end confdefs.h. */
24097#include <$ac_header>
24098_ACEOF
24099if { (ac_try="$ac_cpp conftest.$ac_ext"
24100case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24103esac
24104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24106 ac_status=$?
24107 grep -v '^ *+' conftest.er1 >conftest.err
24108 rm -f conftest.er1
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } >/dev/null && {
24112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 }; then
24115 ac_header_preproc=yes
24116else
24117 echo "$as_me: failed program was:" >&5
24118sed 's/^/| /' conftest.$ac_ext >&5
24119
24120 ac_header_preproc=no
24121fi
24122
24123rm -f conftest.err conftest.$ac_ext
24124{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24125echo "${ECHO_T}$ac_header_preproc" >&6; }
24126
24127# So? What about this header?
24128case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24129 yes:no: )
24130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24131echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24133echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24134 ac_header_preproc=yes
24135 ;;
24136 no:yes:* )
24137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24138echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24140echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24142echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24144echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24146echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24148echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24149 ( cat <<\_ASBOX
24150## ------------------------------------------- ##
24151## Report this to openssh-unix-dev@mindrot.org ##
24152## ------------------------------------------- ##
24153_ASBOX
24154 ) | sed "s/^/$as_me: WARNING: /" >&2
24155 ;;
24156esac
24157{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24160 echo $ECHO_N "(cached) $ECHO_C" >&6
24161else
24162 eval "$as_ac_Header=\$ac_header_preproc"
24163fi
24164ac_res=`eval echo '${'$as_ac_Header'}'`
24165 { echo "$as_me:$LINENO: result: $ac_res" >&5
24166echo "${ECHO_T}$ac_res" >&6; }
24167
24168fi
24169if test `eval echo '${'$as_ac_Header'}'` = yes; then
24170 cat >>confdefs.h <<_ACEOF
24171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24172_ACEOF
24173
24174fi
24175
24176done
24177
24178 if test "$ac_cv_header_sectok_h" != yes; then
24179 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
24180echo "$as_me: error: Can't find sectok.h" >&2;}
24181 { (exit 1); exit 1; }; }
24182 fi
24183
24184{ echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
24185echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
24186if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188else
24189 ac_check_lib_save_LIBS=$LIBS
24190LIBS="-lsectok $LIBS"
24191cat >conftest.$ac_ext <<_ACEOF
24192/* confdefs.h. */
24193_ACEOF
24194cat confdefs.h >>conftest.$ac_ext
24195cat >>conftest.$ac_ext <<_ACEOF
24196/* end confdefs.h. */
24197
24198/* Override any GCC internal prototype to avoid an error.
24199 Use char because int might match the return type of a GCC
24200 builtin and then its argument prototype would still apply. */
24201#ifdef __cplusplus
24202extern "C"
24203#endif
24204char sectok_open ();
24205int
24206main ()
24207{
24208return sectok_open ();
24209 ;
24210 return 0;
24211}
24212_ACEOF
24213rm -f conftest.$ac_objext conftest$ac_exeext
24214if { (ac_try="$ac_link"
24215case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218esac
24219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24220 (eval "$ac_link") 2>conftest.er1
24221 ac_status=$?
24222 grep -v '^ *+' conftest.er1 >conftest.err
24223 rm -f conftest.er1
24224 cat conftest.err >&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); } && {
24227 test -z "$ac_c_werror_flag" ||
24228 test ! -s conftest.err
24229 } && test -s conftest$ac_exeext &&
24230 $as_test_x conftest$ac_exeext; then
24231 ac_cv_lib_sectok_sectok_open=yes
24232else
24233 echo "$as_me: failed program was:" >&5
24234sed 's/^/| /' conftest.$ac_ext >&5
24235
24236 ac_cv_lib_sectok_sectok_open=no
24237fi
24238
24239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24240 conftest$ac_exeext conftest.$ac_ext
24241LIBS=$ac_check_lib_save_LIBS
24242fi
24243{ echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
24244echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
24245if test $ac_cv_lib_sectok_sectok_open = yes; then
24246 cat >>confdefs.h <<_ACEOF
24247#define HAVE_LIBSECTOK 1
24248_ACEOF
24249
24250 LIBS="-lsectok $LIBS"
24251
24252fi
24253
24254 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
24255 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
24256echo "$as_me: error: Can't find libsectok" >&2;}
24257 { (exit 1); exit 1; }; }
24258 fi
24259
24260cat >>confdefs.h <<\_ACEOF
24261#define SMARTCARD 1
24262_ACEOF
24263
24264
24265cat >>confdefs.h <<\_ACEOF
24266#define USE_SECTOK 1
24267_ACEOF
24268
24269 SCARD_MSG="yes, using sectok"
24270 fi
24271
24272
24273fi
24274
24275
24276# Check whether user wants OpenSC support
24277OPENSC_CONFIG="no"
24278
24279# Check whether --with-opensc was given.
24280if test "${with_opensc+set}" = set; then
24281 withval=$with_opensc;
24282 if test "x$withval" != "xno" ; then
24283 if test "x$withval" != "xyes" ; then
24284 OPENSC_CONFIG=$withval/bin/opensc-config
24285 else
24286 # Extract the first word of "opensc-config", so it can be a program name with args.
24287set dummy opensc-config; ac_word=$2
24288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24290if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292else
24293 case $OPENSC_CONFIG in
24294 [\\/]* | ?:[\\/]*)
24295 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
24296 ;;
24297 *)
24298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24299for as_dir in $PATH
24300do
24301 IFS=$as_save_IFS
24302 test -z "$as_dir" && as_dir=.
24303 for ac_exec_ext in '' $ac_executable_extensions; do
24304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24305 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24307 break 2
24308 fi
24309done
24310done
24311IFS=$as_save_IFS
24312
24313 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
24314 ;;
24315esac
24316fi
24317OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
24318if test -n "$OPENSC_CONFIG"; then
24319 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
24320echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
24321else
24322 { echo "$as_me:$LINENO: result: no" >&5
24323echo "${ECHO_T}no" >&6; }
24324fi
24325
24326
24327 fi
24328 if test "$OPENSC_CONFIG" != "no"; then
24329 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
24330 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
24331 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
24332 LIBS="$LIBS $LIBOPENSC_LIBS"
24333 cat >>confdefs.h <<\_ACEOF
24334#define SMARTCARD 1
24335_ACEOF
24336
24337
24338cat >>confdefs.h <<\_ACEOF
24339#define USE_OPENSC 1
24340_ACEOF
24341
24342 SCARD_MSG="yes, using OpenSC"
24343 fi
24344 fi
24345
24346
24347fi
24348
24349
24350# Check libraries needed by DNS fingerprint support
24351{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
24352echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
24353if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24354 echo $ECHO_N "(cached) $ECHO_C" >&6
24355else
24356 ac_func_search_save_LIBS=$LIBS
24357cat >conftest.$ac_ext <<_ACEOF
24358/* confdefs.h. */
24359_ACEOF
24360cat confdefs.h >>conftest.$ac_ext
24361cat >>conftest.$ac_ext <<_ACEOF
24362/* end confdefs.h. */
24363
24364/* Override any GCC internal prototype to avoid an error.
24365 Use char because int might match the return type of a GCC
24366 builtin and then its argument prototype would still apply. */
24367#ifdef __cplusplus
24368extern "C"
24369#endif
24370char getrrsetbyname ();
24371int
24372main ()
24373{
24374return getrrsetbyname ();
24375 ;
24376 return 0;
24377}
24378_ACEOF
24379for ac_lib in '' resolv; do
24380 if test -z "$ac_lib"; then
24381 ac_res="none required"
24382 else
24383 ac_res=-l$ac_lib
24384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24385 fi
24386 rm -f conftest.$ac_objext conftest$ac_exeext
24387if { (ac_try="$ac_link"
24388case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24391esac
24392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_link") 2>conftest.er1
24394 ac_status=$?
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest$ac_exeext &&
24403 $as_test_x conftest$ac_exeext; then
24404 ac_cv_search_getrrsetbyname=$ac_res
24405else
24406 echo "$as_me: failed program was:" >&5
24407sed 's/^/| /' conftest.$ac_ext >&5
24408
24409
24410fi
24411
24412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24413 conftest$ac_exeext
24414 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24415 break
24416fi
24417done
24418if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24419 :
24420else
24421 ac_cv_search_getrrsetbyname=no
24422fi
24423rm conftest.$ac_ext
24424LIBS=$ac_func_search_save_LIBS
24425fi
24426{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
24427echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
24428ac_res=$ac_cv_search_getrrsetbyname
24429if test "$ac_res" != no; then
24430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24431
24432cat >>confdefs.h <<\_ACEOF
24433#define HAVE_GETRRSETBYNAME 1
24434_ACEOF
24435
24436else
24437
24438 # Needed by our getrrsetbyname()
24439 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
24440echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
24441if test "${ac_cv_search_res_query+set}" = set; then
24442 echo $ECHO_N "(cached) $ECHO_C" >&6
24443else
24444 ac_func_search_save_LIBS=$LIBS
24445cat >conftest.$ac_ext <<_ACEOF
24446/* confdefs.h. */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h. */
24451
24452/* Override any GCC internal prototype to avoid an error.
24453 Use char because int might match the return type of a GCC
24454 builtin and then its argument prototype would still apply. */
24455#ifdef __cplusplus
24456extern "C"
24457#endif
24458char res_query ();
24459int
24460main ()
24461{
24462return res_query ();
24463 ;
24464 return 0;
24465}
24466_ACEOF
24467for ac_lib in '' resolv; do
24468 if test -z "$ac_lib"; then
24469 ac_res="none required"
24470 else
24471 ac_res=-l$ac_lib
24472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24473 fi
24474 rm -f conftest.$ac_objext conftest$ac_exeext
24475if { (ac_try="$ac_link"
24476case "(($ac_try" in
24477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24478 *) ac_try_echo=$ac_try;;
24479esac
24480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24481 (eval "$ac_link") 2>conftest.er1
24482 ac_status=$?
24483 grep -v '^ *+' conftest.er1 >conftest.err
24484 rm -f conftest.er1
24485 cat conftest.err >&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } && {
24488 test -z "$ac_c_werror_flag" ||
24489 test ! -s conftest.err
24490 } && test -s conftest$ac_exeext &&
24491 $as_test_x conftest$ac_exeext; then
24492 ac_cv_search_res_query=$ac_res
24493else
24494 echo "$as_me: failed program was:" >&5
24495sed 's/^/| /' conftest.$ac_ext >&5
24496
24497
24498fi
24499
24500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24501 conftest$ac_exeext
24502 if test "${ac_cv_search_res_query+set}" = set; then
24503 break
24504fi
24505done
24506if test "${ac_cv_search_res_query+set}" = set; then
24507 :
24508else
24509 ac_cv_search_res_query=no
24510fi
24511rm conftest.$ac_ext
24512LIBS=$ac_func_search_save_LIBS
24513fi
24514{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
24515echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
24516ac_res=$ac_cv_search_res_query
24517if test "$ac_res" != no; then
24518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24519
24520fi
24521
24522 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
24523echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
24524if test "${ac_cv_search_dn_expand+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24526else
24527 ac_func_search_save_LIBS=$LIBS
24528cat >conftest.$ac_ext <<_ACEOF
24529/* confdefs.h. */
24530_ACEOF
24531cat confdefs.h >>conftest.$ac_ext
24532cat >>conftest.$ac_ext <<_ACEOF
24533/* end confdefs.h. */
24534
24535/* Override any GCC internal prototype to avoid an error.
24536 Use char because int might match the return type of a GCC
24537 builtin and then its argument prototype would still apply. */
24538#ifdef __cplusplus
24539extern "C"
24540#endif
24541char dn_expand ();
24542int
24543main ()
24544{
24545return dn_expand ();
24546 ;
24547 return 0;
24548}
24549_ACEOF
24550for ac_lib in '' resolv; do
24551 if test -z "$ac_lib"; then
24552 ac_res="none required"
24553 else
24554 ac_res=-l$ac_lib
24555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24556 fi
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558if { (ac_try="$ac_link"
24559case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24562esac
24563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_link") 2>conftest.er1
24565 ac_status=$?
24566 grep -v '^ *+' conftest.er1 >conftest.err
24567 rm -f conftest.er1
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } && {
24571 test -z "$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24573 } && test -s conftest$ac_exeext &&
24574 $as_test_x conftest$ac_exeext; then
24575 ac_cv_search_dn_expand=$ac_res
24576else
24577 echo "$as_me: failed program was:" >&5
24578sed 's/^/| /' conftest.$ac_ext >&5
24579
24580
24581fi
24582
24583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24584 conftest$ac_exeext
24585 if test "${ac_cv_search_dn_expand+set}" = set; then
24586 break
24587fi
24588done
24589if test "${ac_cv_search_dn_expand+set}" = set; then
24590 :
24591else
24592 ac_cv_search_dn_expand=no
24593fi
24594rm conftest.$ac_ext
24595LIBS=$ac_func_search_save_LIBS
24596fi
24597{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
24598echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
24599ac_res=$ac_cv_search_dn_expand
24600if test "$ac_res" != no; then
24601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24602
24603fi
24604
24605 { echo "$as_me:$LINENO: checking if res_query will link" >&5
24606echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
24607 cat >conftest.$ac_ext <<_ACEOF
24608/* confdefs.h. */
24609_ACEOF
24610cat confdefs.h >>conftest.$ac_ext
24611cat >>conftest.$ac_ext <<_ACEOF
24612/* end confdefs.h. */
24613
24614/* Override any GCC internal prototype to avoid an error.
24615 Use char because int might match the return type of a GCC
24616 builtin and then its argument prototype would still apply. */
24617#ifdef __cplusplus
24618extern "C"
24619#endif
24620char res_query ();
24621int
24622main ()
24623{
24624return res_query ();
24625 ;
24626 return 0;
24627}
24628_ACEOF
24629rm -f conftest.$ac_objext conftest$ac_exeext
24630if { (ac_try="$ac_link"
24631case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634esac
24635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_link") 2>conftest.er1
24637 ac_status=$?
24638 grep -v '^ *+' conftest.er1 >conftest.err
24639 rm -f conftest.er1
24640 cat conftest.err >&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } && {
24643 test -z "$ac_c_werror_flag" ||
24644 test ! -s conftest.err
24645 } && test -s conftest$ac_exeext &&
24646 $as_test_x conftest$ac_exeext; then
24647 { echo "$as_me:$LINENO: result: yes" >&5
24648echo "${ECHO_T}yes" >&6; }
24649else
24650 echo "$as_me: failed program was:" >&5
24651sed 's/^/| /' conftest.$ac_ext >&5
24652
24653 { echo "$as_me:$LINENO: result: no" >&5
24654echo "${ECHO_T}no" >&6; }
24655 saved_LIBS="$LIBS"
24656 LIBS="$LIBS -lresolv"
24657 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
24658echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
24659 cat >conftest.$ac_ext <<_ACEOF
24660
24661#include <resolv.h>
24662int main()
24663{
24664 res_query (0, 0, 0, 0, 0);
24665 return 0;
24666}
24667
24668_ACEOF
24669rm -f conftest.$ac_objext conftest$ac_exeext
24670if { (ac_try="$ac_link"
24671case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24674esac
24675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_link") 2>conftest.er1
24677 ac_status=$?
24678 grep -v '^ *+' conftest.er1 >conftest.err
24679 rm -f conftest.er1
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } && {
24683 test -z "$ac_c_werror_flag" ||
24684 test ! -s conftest.err
24685 } && test -s conftest$ac_exeext &&
24686 $as_test_x conftest$ac_exeext; then
24687 LIBS="$LIBS -lresolv"
24688 { echo "$as_me:$LINENO: result: yes" >&5
24689echo "${ECHO_T}yes" >&6; }
24690else
24691 echo "$as_me: failed program was:" >&5
24692sed 's/^/| /' conftest.$ac_ext >&5
24693
24694 LIBS="$saved_LIBS"
24695 { echo "$as_me:$LINENO: result: no" >&5
24696echo "${ECHO_T}no" >&6; }
24697fi
24698
24699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24700 conftest$ac_exeext conftest.$ac_ext
24701
24702fi
24703
24704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24705 conftest$ac_exeext conftest.$ac_ext
24706
24707
24708for ac_func in _getshort _getlong
24709do
24710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24714 echo $ECHO_N "(cached) $ECHO_C" >&6
24715else
24716 cat >conftest.$ac_ext <<_ACEOF
24717/* confdefs.h. */
24718_ACEOF
24719cat confdefs.h >>conftest.$ac_ext
24720cat >>conftest.$ac_ext <<_ACEOF
24721/* end confdefs.h. */
24722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24724#define $ac_func innocuous_$ac_func
24725
24726/* System header to define __stub macros and hopefully few prototypes,
24727 which can conflict with char $ac_func (); below.
24728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24729 <limits.h> exists even on freestanding compilers. */
24730
24731#ifdef __STDC__
24732# include <limits.h>
24733#else
24734# include <assert.h>
24735#endif
24736
24737#undef $ac_func
24738
24739/* Override any GCC internal prototype to avoid an error.
24740 Use char because int might match the return type of a GCC
24741 builtin and then its argument prototype would still apply. */
24742#ifdef __cplusplus
24743extern "C"
24744#endif
24745char $ac_func ();
24746/* The GNU C library defines this for functions which it implements
24747 to always fail with ENOSYS. Some functions are actually named
24748 something starting with __ and the normal name is an alias. */
24749#if defined __stub_$ac_func || defined __stub___$ac_func
24750choke me
24751#endif
24752
24753int
24754main ()
24755{
24756return $ac_func ();
24757 ;
24758 return 0;
24759}
24760_ACEOF
24761rm -f conftest.$ac_objext conftest$ac_exeext
24762if { (ac_try="$ac_link"
24763case "(($ac_try" in
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765 *) ac_try_echo=$ac_try;;
24766esac
24767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24768 (eval "$ac_link") 2>conftest.er1
24769 ac_status=$?
24770 grep -v '^ *+' conftest.er1 >conftest.err
24771 rm -f conftest.er1
24772 cat conftest.err >&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } && {
24775 test -z "$ac_c_werror_flag" ||
24776 test ! -s conftest.err
24777 } && test -s conftest$ac_exeext &&
24778 $as_test_x conftest$ac_exeext; then
24779 eval "$as_ac_var=yes"
24780else
24781 echo "$as_me: failed program was:" >&5
24782sed 's/^/| /' conftest.$ac_ext >&5
24783
24784 eval "$as_ac_var=no"
24785fi
24786
24787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24788 conftest$ac_exeext conftest.$ac_ext
24789fi
24790ac_res=`eval echo '${'$as_ac_var'}'`
24791 { echo "$as_me:$LINENO: result: $ac_res" >&5
24792echo "${ECHO_T}$ac_res" >&6; }
24793if test `eval echo '${'$as_ac_var'}'` = yes; then
24794 cat >>confdefs.h <<_ACEOF
24795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24796_ACEOF
24797
24798fi
24799done
24800
24801 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
24802echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
24803if test "${ac_cv_have_decl__getshort+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24805else
24806 cat >conftest.$ac_ext <<_ACEOF
24807/* confdefs.h. */
24808_ACEOF
24809cat confdefs.h >>conftest.$ac_ext
24810cat >>conftest.$ac_ext <<_ACEOF
24811/* end confdefs.h. */
24812#include <sys/types.h>
24813 #include <arpa/nameser.h>
24814
24815int
24816main ()
24817{
24818#ifndef _getshort
24819 (void) _getshort;
24820#endif
24821
24822 ;
24823 return 0;
24824}
24825_ACEOF
24826rm -f conftest.$ac_objext
24827if { (ac_try="$ac_compile"
24828case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24831esac
24832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24834 ac_status=$?
24835 grep -v '^ *+' conftest.er1 >conftest.err
24836 rm -f conftest.er1
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest.$ac_objext; then
24843 ac_cv_have_decl__getshort=yes
24844else
24845 echo "$as_me: failed program was:" >&5
24846sed 's/^/| /' conftest.$ac_ext >&5
24847
24848 ac_cv_have_decl__getshort=no
24849fi
24850
24851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852fi
24853{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
24854echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
24855if test $ac_cv_have_decl__getshort = yes; then
24856
24857cat >>confdefs.h <<_ACEOF
24858#define HAVE_DECL__GETSHORT 1
24859_ACEOF
24860
24861
24862else
24863 cat >>confdefs.h <<_ACEOF
24864#define HAVE_DECL__GETSHORT 0
24865_ACEOF
24866
24867
24868fi
24869{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
24870echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
24871if test "${ac_cv_have_decl__getlong+set}" = set; then
24872 echo $ECHO_N "(cached) $ECHO_C" >&6
24873else
24874 cat >conftest.$ac_ext <<_ACEOF
24875/* confdefs.h. */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h. */
24880#include <sys/types.h>
24881 #include <arpa/nameser.h>
24882
24883int
24884main ()
24885{
24886#ifndef _getlong
24887 (void) _getlong;
24888#endif
24889
24890 ;
24891 return 0;
24892}
24893_ACEOF
24894rm -f conftest.$ac_objext
24895if { (ac_try="$ac_compile"
24896case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24899esac
24900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_compile") 2>conftest.er1
24902 ac_status=$?
24903 grep -v '^ *+' conftest.er1 >conftest.err
24904 rm -f conftest.er1
24905 cat conftest.err >&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } && {
24908 test -z "$ac_c_werror_flag" ||
24909 test ! -s conftest.err
24910 } && test -s conftest.$ac_objext; then
24911 ac_cv_have_decl__getlong=yes
24912else
24913 echo "$as_me: failed program was:" >&5
24914sed 's/^/| /' conftest.$ac_ext >&5
24915
24916 ac_cv_have_decl__getlong=no
24917fi
24918
24919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920fi
24921{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
24922echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
24923if test $ac_cv_have_decl__getlong = yes; then
24924
24925cat >>confdefs.h <<_ACEOF
24926#define HAVE_DECL__GETLONG 1
24927_ACEOF
24928
24929
24930else
24931 cat >>confdefs.h <<_ACEOF
24932#define HAVE_DECL__GETLONG 0
24933_ACEOF
24934
24935
24936fi
24937
24938
24939 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
24940echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
24941if test "${ac_cv_member_HEADER_ad+set}" = set; then
24942 echo $ECHO_N "(cached) $ECHO_C" >&6
24943else
24944 cat >conftest.$ac_ext <<_ACEOF
24945/* confdefs.h. */
24946_ACEOF
24947cat confdefs.h >>conftest.$ac_ext
24948cat >>conftest.$ac_ext <<_ACEOF
24949/* end confdefs.h. */
24950#include <arpa/nameser.h>
24951
24952int
24953main ()
24954{
24955static HEADER ac_aggr;
24956if (ac_aggr.ad)
24957return 0;
24958 ;
24959 return 0;
24960}
24961_ACEOF
24962rm -f conftest.$ac_objext
24963if { (ac_try="$ac_compile"
24964case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24967esac
24968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969 (eval "$ac_compile") 2>conftest.er1
24970 ac_status=$?
24971 grep -v '^ *+' conftest.er1 >conftest.err
24972 rm -f conftest.er1
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } && {
24976 test -z "$ac_c_werror_flag" ||
24977 test ! -s conftest.err
24978 } && test -s conftest.$ac_objext; then
24979 ac_cv_member_HEADER_ad=yes
24980else
24981 echo "$as_me: failed program was:" >&5
24982sed 's/^/| /' conftest.$ac_ext >&5
24983
24984 cat >conftest.$ac_ext <<_ACEOF
24985/* confdefs.h. */
24986_ACEOF
24987cat confdefs.h >>conftest.$ac_ext
24988cat >>conftest.$ac_ext <<_ACEOF
24989/* end confdefs.h. */
24990#include <arpa/nameser.h>
24991
24992int
24993main ()
24994{
24995static HEADER ac_aggr;
24996if (sizeof ac_aggr.ad)
24997return 0;
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002rm -f conftest.$ac_objext
25003if { (ac_try="$ac_compile"
25004case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25007esac
25008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009 (eval "$ac_compile") 2>conftest.er1
25010 ac_status=$?
25011 grep -v '^ *+' conftest.er1 >conftest.err
25012 rm -f conftest.er1
25013 cat conftest.err >&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } && {
25016 test -z "$ac_c_werror_flag" ||
25017 test ! -s conftest.err
25018 } && test -s conftest.$ac_objext; then
25019 ac_cv_member_HEADER_ad=yes
25020else
25021 echo "$as_me: failed program was:" >&5
25022sed 's/^/| /' conftest.$ac_ext >&5
25023
25024 ac_cv_member_HEADER_ad=no
25025fi
25026
25027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25028fi
25029
25030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25031fi
25032{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
25033echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
25034if test $ac_cv_member_HEADER_ad = yes; then
25035
25036cat >>confdefs.h <<\_ACEOF
25037#define HAVE_HEADER_AD 1
25038_ACEOF
25039
25040fi
25041
25042
25043fi
25044
25045
25046# Check whether user wants SELinux support
25047SELINUX_MSG="no"
25048LIBSELINUX=""
25049
25050# Check whether --with-selinux was given.
25051if test "${with_selinux+set}" = set; then
25052 withval=$with_selinux; if test "x$withval" != "xno" ; then
25053
25054cat >>confdefs.h <<\_ACEOF
25055#define WITH_SELINUX 1
25056_ACEOF
25057
25058 SELINUX_MSG="yes"
25059 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25060 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25061echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25062if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25063 echo $ECHO_N "(cached) $ECHO_C" >&6
25064fi
25065{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25066echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25067else
25068 # Is the header compilable?
25069{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
25070echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
25071cat >conftest.$ac_ext <<_ACEOF
25072/* confdefs.h. */
25073_ACEOF
25074cat confdefs.h >>conftest.$ac_ext
25075cat >>conftest.$ac_ext <<_ACEOF
25076/* end confdefs.h. */
25077$ac_includes_default
25078#include <selinux/selinux.h>
25079_ACEOF
25080rm -f conftest.$ac_objext
25081if { (ac_try="$ac_compile"
25082case "(($ac_try" in
25083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084 *) ac_try_echo=$ac_try;;
25085esac
25086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25087 (eval "$ac_compile") 2>conftest.er1
25088 ac_status=$?
25089 grep -v '^ *+' conftest.er1 >conftest.err
25090 rm -f conftest.er1
25091 cat conftest.err >&5
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } && {
25094 test -z "$ac_c_werror_flag" ||
25095 test ! -s conftest.err
25096 } && test -s conftest.$ac_objext; then
25097 ac_header_compiler=yes
25098else
25099 echo "$as_me: failed program was:" >&5
25100sed 's/^/| /' conftest.$ac_ext >&5
25101
25102 ac_header_compiler=no
25103fi
25104
25105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25107echo "${ECHO_T}$ac_header_compiler" >&6; }
25108
25109# Is the header present?
25110{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
25111echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
25112cat >conftest.$ac_ext <<_ACEOF
25113/* confdefs.h. */
25114_ACEOF
25115cat confdefs.h >>conftest.$ac_ext
25116cat >>conftest.$ac_ext <<_ACEOF
25117/* end confdefs.h. */
25118#include <selinux/selinux.h>
25119_ACEOF
25120if { (ac_try="$ac_cpp conftest.$ac_ext"
25121case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25124esac
25125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } >/dev/null && {
25133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 }; then
25136 ac_header_preproc=yes
25137else
25138 echo "$as_me: failed program was:" >&5
25139sed 's/^/| /' conftest.$ac_ext >&5
25140
25141 ac_header_preproc=no
25142fi
25143
25144rm -f conftest.err conftest.$ac_ext
25145{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25146echo "${ECHO_T}$ac_header_preproc" >&6; }
25147
25148# So? What about this header?
25149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25150 yes:no: )
25151 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25152echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25153 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25154echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25155 ac_header_preproc=yes
25156 ;;
25157 no:yes:* )
25158 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25159echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25160 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
25161echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
25162 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25163echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25164 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
25165echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
25166 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25167echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25169echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25170 ( cat <<\_ASBOX
25171## ------------------------------------------- ##
25172## Report this to openssh-unix-dev@mindrot.org ##
25173## ------------------------------------------- ##
25174_ASBOX
25175 ) | sed "s/^/$as_me: WARNING: /" >&2
25176 ;;
25177esac
25178{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25179echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25180if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25182else
25183 ac_cv_header_selinux_selinux_h=$ac_header_preproc
25184fi
25185{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25186echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25187
25188fi
25189if test $ac_cv_header_selinux_selinux_h = yes; then
25190 :
25191else
25192 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
25193echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
25194 { (exit 1); exit 1; }; }
25195fi
25196
25197
25198 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
25199echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
25200if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
25201 echo $ECHO_N "(cached) $ECHO_C" >&6
25202else
25203 ac_check_lib_save_LIBS=$LIBS
25204LIBS="-lselinux $LIBS"
25205cat >conftest.$ac_ext <<_ACEOF
25206/* confdefs.h. */
25207_ACEOF
25208cat confdefs.h >>conftest.$ac_ext
25209cat >>conftest.$ac_ext <<_ACEOF
25210/* end confdefs.h. */
25211
25212/* Override any GCC internal prototype to avoid an error.
25213 Use char because int might match the return type of a GCC
25214 builtin and then its argument prototype would still apply. */
25215#ifdef __cplusplus
25216extern "C"
25217#endif
25218char setexeccon ();
25219int
25220main ()
25221{
25222return setexeccon ();
25223 ;
25224 return 0;
25225}
25226_ACEOF
25227rm -f conftest.$ac_objext conftest$ac_exeext
25228if { (ac_try="$ac_link"
25229case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25232esac
25233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_link") 2>conftest.er1
25235 ac_status=$?
25236 grep -v '^ *+' conftest.er1 >conftest.err
25237 rm -f conftest.er1
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && {
25241 test -z "$ac_c_werror_flag" ||
25242 test ! -s conftest.err
25243 } && test -s conftest$ac_exeext &&
25244 $as_test_x conftest$ac_exeext; then
25245 ac_cv_lib_selinux_setexeccon=yes
25246else
25247 echo "$as_me: failed program was:" >&5
25248sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 ac_cv_lib_selinux_setexeccon=no
25251fi
25252
25253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25254 conftest$ac_exeext conftest.$ac_ext
25255LIBS=$ac_check_lib_save_LIBS
25256fi
25257{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
25258echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
25259if test $ac_cv_lib_selinux_setexeccon = yes; then
25260 LIBSELINUX="-lselinux"
25261else
25262 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
25263echo "$as_me: error: SELinux support requires libselinux library" >&2;}
25264 { (exit 1); exit 1; }; }
25265fi
25266
25267 save_LIBS="$LIBS"
25268 LIBS="$LIBS $LIBSELINUX"
25269
25270
25271for ac_func in getseuserbyname get_default_context_with_level
25272do
25273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25274{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25276if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25278else
25279 cat >conftest.$ac_ext <<_ACEOF
25280/* confdefs.h. */
25281_ACEOF
25282cat confdefs.h >>conftest.$ac_ext
25283cat >>conftest.$ac_ext <<_ACEOF
25284/* end confdefs.h. */
25285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25287#define $ac_func innocuous_$ac_func
25288
25289/* System header to define __stub macros and hopefully few prototypes,
25290 which can conflict with char $ac_func (); below.
25291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25292 <limits.h> exists even on freestanding compilers. */
25293
25294#ifdef __STDC__
25295# include <limits.h>
25296#else
25297# include <assert.h>
25298#endif
25299
25300#undef $ac_func
25301
25302/* Override any GCC internal prototype to avoid an error.
25303 Use char because int might match the return type of a GCC
25304 builtin and then its argument prototype would still apply. */
25305#ifdef __cplusplus
25306extern "C"
25307#endif
25308char $ac_func ();
25309/* The GNU C library defines this for functions which it implements
25310 to always fail with ENOSYS. Some functions are actually named
25311 something starting with __ and the normal name is an alias. */
25312#if defined __stub_$ac_func || defined __stub___$ac_func
25313choke me
25314#endif
25315
25316int
25317main ()
25318{
25319return $ac_func ();
25320 ;
25321 return 0;
25322}
25323_ACEOF
25324rm -f conftest.$ac_objext conftest$ac_exeext
25325if { (ac_try="$ac_link"
25326case "(($ac_try" in
25327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328 *) ac_try_echo=$ac_try;;
25329esac
25330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25331 (eval "$ac_link") 2>conftest.er1
25332 ac_status=$?
25333 grep -v '^ *+' conftest.er1 >conftest.err
25334 rm -f conftest.er1
25335 cat conftest.err >&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } && {
25338 test -z "$ac_c_werror_flag" ||
25339 test ! -s conftest.err
25340 } && test -s conftest$ac_exeext &&
25341 $as_test_x conftest$ac_exeext; then
25342 eval "$as_ac_var=yes"
25343else
25344 echo "$as_me: failed program was:" >&5
25345sed 's/^/| /' conftest.$ac_ext >&5
25346
25347 eval "$as_ac_var=no"
25348fi
25349
25350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25351 conftest$ac_exeext conftest.$ac_ext
25352fi
25353ac_res=`eval echo '${'$as_ac_var'}'`
25354 { echo "$as_me:$LINENO: result: $ac_res" >&5
25355echo "${ECHO_T}$ac_res" >&6; }
25356if test `eval echo '${'$as_ac_var'}'` = yes; then
25357 cat >>confdefs.h <<_ACEOF
25358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25359_ACEOF
25360
25361fi
25362done
25363
25364 LIBS="$save_LIBS"
25365 fi
25366
25367fi
25368
25369
25370
25371# Check whether user wants Kerberos 5 support
25372KRB5_MSG="no"
25373
25374# Check whether --with-kerberos5 was given.
25375if test "${with_kerberos5+set}" = set; then
25376 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
25377 if test "x$withval" = "xyes" ; then
25378 KRB5ROOT="/usr/local"
25379 else
25380 KRB5ROOT=${withval}
25381 fi
25382
25383
25384cat >>confdefs.h <<\_ACEOF
25385#define KRB5 1
25386_ACEOF
25387
25388 KRB5_MSG="yes"
25389
25390 { echo "$as_me:$LINENO: checking for krb5-config" >&5
25391echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
25392 if test -x $KRB5ROOT/bin/krb5-config ; then
25393 KRB5CONF=$KRB5ROOT/bin/krb5-config
25394 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
25395echo "${ECHO_T}$KRB5CONF" >&6; }
25396
25397 { echo "$as_me:$LINENO: checking for gssapi support" >&5
25398echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
25399 if $KRB5CONF | grep gssapi >/dev/null ; then
25400 { echo "$as_me:$LINENO: result: yes" >&5
25401echo "${ECHO_T}yes" >&6; }
25402
25403cat >>confdefs.h <<\_ACEOF
25404#define GSSAPI 1
25405_ACEOF
25406
25407 k5confopts=gssapi
25408 else
25409 { echo "$as_me:$LINENO: result: no" >&5
25410echo "${ECHO_T}no" >&6; }
25411 k5confopts=""
25412 fi
25413 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
25414 K5LIBS="`$KRB5CONF --libs $k5confopts`"
25415 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
25416 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
25417echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
25418 cat >conftest.$ac_ext <<_ACEOF
25419/* confdefs.h. */
25420_ACEOF
25421cat confdefs.h >>conftest.$ac_ext
25422cat >>conftest.$ac_ext <<_ACEOF
25423/* end confdefs.h. */
25424 #include <krb5.h>
25425int
25426main ()
25427{
25428 char *tmp = heimdal_version;
25429 ;
25430 return 0;
25431}
25432_ACEOF
25433rm -f conftest.$ac_objext
25434if { (ac_try="$ac_compile"
25435case "(($ac_try" in
25436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25438esac
25439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_compile") 2>conftest.er1
25441 ac_status=$?
25442 grep -v '^ *+' conftest.er1 >conftest.err
25443 rm -f conftest.er1
25444 cat conftest.err >&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } && {
25447 test -z "$ac_c_werror_flag" ||
25448 test ! -s conftest.err
25449 } && test -s conftest.$ac_objext; then
25450 { echo "$as_me:$LINENO: result: yes" >&5
25451echo "${ECHO_T}yes" >&6; }
25452
25453cat >>confdefs.h <<\_ACEOF
25454#define HEIMDAL 1
25455_ACEOF
25456
25457else
25458 echo "$as_me: failed program was:" >&5
25459sed 's/^/| /' conftest.$ac_ext >&5
25460
25461 { echo "$as_me:$LINENO: result: no" >&5
25462echo "${ECHO_T}no" >&6; }
25463
25464fi
25465
25466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 else
25468 { echo "$as_me:$LINENO: result: no" >&5
25469echo "${ECHO_T}no" >&6; }
25470 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
25471 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
25472 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
25473echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
25474 cat >conftest.$ac_ext <<_ACEOF
25475/* confdefs.h. */
25476_ACEOF
25477cat confdefs.h >>conftest.$ac_ext
25478cat >>conftest.$ac_ext <<_ACEOF
25479/* end confdefs.h. */
25480 #include <krb5.h>
25481int
25482main ()
25483{
25484 char *tmp = heimdal_version;
25485 ;
25486 return 0;
25487}
25488_ACEOF
25489rm -f conftest.$ac_objext
25490if { (ac_try="$ac_compile"
25491case "(($ac_try" in
25492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493 *) ac_try_echo=$ac_try;;
25494esac
25495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496 (eval "$ac_compile") 2>conftest.er1
25497 ac_status=$?
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest.$ac_objext; then
25506 { echo "$as_me:$LINENO: result: yes" >&5
25507echo "${ECHO_T}yes" >&6; }
25508 cat >>confdefs.h <<\_ACEOF
25509#define HEIMDAL 1
25510_ACEOF
25511
25512 K5LIBS="-lkrb5 -ldes"
25513 K5LIBS="$K5LIBS -lcom_err -lasn1"
25514 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
25515echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
25516if test "${ac_cv_lib_roken_net_write+set}" = set; then
25517 echo $ECHO_N "(cached) $ECHO_C" >&6
25518else
25519 ac_check_lib_save_LIBS=$LIBS
25520LIBS="-lroken $LIBS"
25521cat >conftest.$ac_ext <<_ACEOF
25522/* confdefs.h. */
25523_ACEOF
25524cat confdefs.h >>conftest.$ac_ext
25525cat >>conftest.$ac_ext <<_ACEOF
25526/* end confdefs.h. */
25527
25528/* Override any GCC internal prototype to avoid an error.
25529 Use char because int might match the return type of a GCC
25530 builtin and then its argument prototype would still apply. */
25531#ifdef __cplusplus
25532extern "C"
25533#endif
25534char net_write ();
25535int
25536main ()
25537{
25538return net_write ();
25539 ;
25540 return 0;
25541}
25542_ACEOF
25543rm -f conftest.$ac_objext conftest$ac_exeext
25544if { (ac_try="$ac_link"
25545case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25548esac
25549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550 (eval "$ac_link") 2>conftest.er1
25551 ac_status=$?
25552 grep -v '^ *+' conftest.er1 >conftest.err
25553 rm -f conftest.er1
25554 cat conftest.err >&5
25555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); } && {
25557 test -z "$ac_c_werror_flag" ||
25558 test ! -s conftest.err
25559 } && test -s conftest$ac_exeext &&
25560 $as_test_x conftest$ac_exeext; then
25561 ac_cv_lib_roken_net_write=yes
25562else
25563 echo "$as_me: failed program was:" >&5
25564sed 's/^/| /' conftest.$ac_ext >&5
25565
25566 ac_cv_lib_roken_net_write=no
25567fi
25568
25569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25570 conftest$ac_exeext conftest.$ac_ext
25571LIBS=$ac_check_lib_save_LIBS
25572fi
25573{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
25574echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
25575if test $ac_cv_lib_roken_net_write = yes; then
25576 K5LIBS="$K5LIBS -lroken"
25577fi
25578
25579
25580else
25581 echo "$as_me: failed program was:" >&5
25582sed 's/^/| /' conftest.$ac_ext >&5
25583
25584 { echo "$as_me:$LINENO: result: no" >&5
25585echo "${ECHO_T}no" >&6; }
25586 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
25587
25588
25589fi
25590
25591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25592 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
25593echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
25594if test "${ac_cv_search_dn_expand+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
25596else
25597 ac_func_search_save_LIBS=$LIBS
25598cat >conftest.$ac_ext <<_ACEOF
25599/* confdefs.h. */
25600_ACEOF
25601cat confdefs.h >>conftest.$ac_ext
25602cat >>conftest.$ac_ext <<_ACEOF
25603/* end confdefs.h. */
25604
25605/* Override any GCC internal prototype to avoid an error.
25606 Use char because int might match the return type of a GCC
25607 builtin and then its argument prototype would still apply. */
25608#ifdef __cplusplus
25609extern "C"
25610#endif
25611char dn_expand ();
25612int
25613main ()
25614{
25615return dn_expand ();
25616 ;
25617 return 0;
25618}
25619_ACEOF
25620for ac_lib in '' resolv; do
25621 if test -z "$ac_lib"; then
25622 ac_res="none required"
25623 else
25624 ac_res=-l$ac_lib
25625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25626 fi
25627 rm -f conftest.$ac_objext conftest$ac_exeext
25628if { (ac_try="$ac_link"
25629case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25632esac
25633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634 (eval "$ac_link") 2>conftest.er1
25635 ac_status=$?
25636 grep -v '^ *+' conftest.er1 >conftest.err
25637 rm -f conftest.er1
25638 cat conftest.err >&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } && {
25641 test -z "$ac_c_werror_flag" ||
25642 test ! -s conftest.err
25643 } && test -s conftest$ac_exeext &&
25644 $as_test_x conftest$ac_exeext; then
25645 ac_cv_search_dn_expand=$ac_res
25646else
25647 echo "$as_me: failed program was:" >&5
25648sed 's/^/| /' conftest.$ac_ext >&5
25649
25650
25651fi
25652
25653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25654 conftest$ac_exeext
25655 if test "${ac_cv_search_dn_expand+set}" = set; then
25656 break
25657fi
25658done
25659if test "${ac_cv_search_dn_expand+set}" = set; then
25660 :
25661else
25662 ac_cv_search_dn_expand=no
25663fi
25664rm conftest.$ac_ext
25665LIBS=$ac_func_search_save_LIBS
25666fi
25667{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
25668echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
25669ac_res=$ac_cv_search_dn_expand
25670if test "$ac_res" != no; then
25671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25672
25673fi
25674
25675
25676 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
25677echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
25678if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
25679 echo $ECHO_N "(cached) $ECHO_C" >&6
25680else
25681 ac_check_lib_save_LIBS=$LIBS
25682LIBS="-lgssapi $K5LIBS $LIBS"
25683cat >conftest.$ac_ext <<_ACEOF
25684/* confdefs.h. */
25685_ACEOF
25686cat confdefs.h >>conftest.$ac_ext
25687cat >>conftest.$ac_ext <<_ACEOF
25688/* end confdefs.h. */
25689
25690/* Override any GCC internal prototype to avoid an error.
25691 Use char because int might match the return type of a GCC
25692 builtin and then its argument prototype would still apply. */
25693#ifdef __cplusplus
25694extern "C"
25695#endif
25696char gss_init_sec_context ();
25697int
25698main ()
25699{
25700return gss_init_sec_context ();
25701 ;
25702 return 0;
25703}
25704_ACEOF
25705rm -f conftest.$ac_objext conftest$ac_exeext
25706if { (ac_try="$ac_link"
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_link") 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_exeext &&
25722 $as_test_x conftest$ac_exeext; then
25723 ac_cv_lib_gssapi_gss_init_sec_context=yes
25724else
25725 echo "$as_me: failed program was:" >&5
25726sed 's/^/| /' conftest.$ac_ext >&5
25727
25728 ac_cv_lib_gssapi_gss_init_sec_context=no
25729fi
25730
25731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25732 conftest$ac_exeext conftest.$ac_ext
25733LIBS=$ac_check_lib_save_LIBS
25734fi
25735{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
25736echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
25737if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
25738 cat >>confdefs.h <<\_ACEOF
25739#define GSSAPI 1
25740_ACEOF
25741
25742 K5LIBS="-lgssapi $K5LIBS"
25743else
25744 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
25745echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
25746if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25748else
25749 ac_check_lib_save_LIBS=$LIBS
25750LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
25751cat >conftest.$ac_ext <<_ACEOF
25752/* confdefs.h. */
25753_ACEOF
25754cat confdefs.h >>conftest.$ac_ext
25755cat >>conftest.$ac_ext <<_ACEOF
25756/* end confdefs.h. */
25757
25758/* Override any GCC internal prototype to avoid an error.
25759 Use char because int might match the return type of a GCC
25760 builtin and then its argument prototype would still apply. */
25761#ifdef __cplusplus
25762extern "C"
25763#endif
25764char gss_init_sec_context ();
25765int
25766main ()
25767{
25768return gss_init_sec_context ();
25769 ;
25770 return 0;
25771}
25772_ACEOF
25773rm -f conftest.$ac_objext conftest$ac_exeext
25774if { (ac_try="$ac_link"
25775case "(($ac_try" in
25776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777 *) ac_try_echo=$ac_try;;
25778esac
25779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25780 (eval "$ac_link") 2>conftest.er1
25781 ac_status=$?
25782 grep -v '^ *+' conftest.er1 >conftest.err
25783 rm -f conftest.er1
25784 cat conftest.err >&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); } && {
25787 test -z "$ac_c_werror_flag" ||
25788 test ! -s conftest.err
25789 } && test -s conftest$ac_exeext &&
25790 $as_test_x conftest$ac_exeext; then
25791 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
25792else
25793 echo "$as_me: failed program was:" >&5
25794sed 's/^/| /' conftest.$ac_ext >&5
25795
25796 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
25797fi
25798
25799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25800 conftest$ac_exeext conftest.$ac_ext
25801LIBS=$ac_check_lib_save_LIBS
25802fi
25803{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
25804echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
25805if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
25806 cat >>confdefs.h <<\_ACEOF
25807#define GSSAPI 1
25808_ACEOF
25809
25810 K5LIBS="-lgssapi_krb5 $K5LIBS"
25811else
25812 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
25813echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
25814fi
25815
25816
25817fi
25818
25819
25820 if test "${ac_cv_header_gssapi_h+set}" = set; then
25821 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
25822echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
25823if test "${ac_cv_header_gssapi_h+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25825fi
25826{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
25827echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
25828else
25829 # Is the header compilable?
25830{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
25831echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
25832cat >conftest.$ac_ext <<_ACEOF
25833/* confdefs.h. */
25834_ACEOF
25835cat confdefs.h >>conftest.$ac_ext
25836cat >>conftest.$ac_ext <<_ACEOF
25837/* end confdefs.h. */
25838$ac_includes_default
25839#include <gssapi.h>
25840_ACEOF
25841rm -f conftest.$ac_objext
25842if { (ac_try="$ac_compile"
25843case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25846esac
25847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_compile") 2>conftest.er1
25849 ac_status=$?
25850 grep -v '^ *+' conftest.er1 >conftest.err
25851 rm -f conftest.er1
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } && {
25855 test -z "$ac_c_werror_flag" ||
25856 test ! -s conftest.err
25857 } && test -s conftest.$ac_objext; then
25858 ac_header_compiler=yes
25859else
25860 echo "$as_me: failed program was:" >&5
25861sed 's/^/| /' conftest.$ac_ext >&5
25862
25863 ac_header_compiler=no
25864fi
25865
25866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25867{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25868echo "${ECHO_T}$ac_header_compiler" >&6; }
25869
25870# Is the header present?
25871{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
25872echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
25873cat >conftest.$ac_ext <<_ACEOF
25874/* confdefs.h. */
25875_ACEOF
25876cat confdefs.h >>conftest.$ac_ext
25877cat >>conftest.$ac_ext <<_ACEOF
25878/* end confdefs.h. */
25879#include <gssapi.h>
25880_ACEOF
25881if { (ac_try="$ac_cpp conftest.$ac_ext"
25882case "(($ac_try" in
25883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25884 *) ac_try_echo=$ac_try;;
25885esac
25886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25888 ac_status=$?
25889 grep -v '^ *+' conftest.er1 >conftest.err
25890 rm -f conftest.er1
25891 cat conftest.err >&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); } >/dev/null && {
25894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25895 test ! -s conftest.err
25896 }; then
25897 ac_header_preproc=yes
25898else
25899 echo "$as_me: failed program was:" >&5
25900sed 's/^/| /' conftest.$ac_ext >&5
25901
25902 ac_header_preproc=no
25903fi
25904
25905rm -f conftest.err conftest.$ac_ext
25906{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25907echo "${ECHO_T}$ac_header_preproc" >&6; }
25908
25909# So? What about this header?
25910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25911 yes:no: )
25912 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
25913echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25914 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
25915echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
25916 ac_header_preproc=yes
25917 ;;
25918 no:yes:* )
25919 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
25920echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
25921 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
25922echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
25923 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
25924echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
25925 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
25926echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
25927 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
25928echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
25929 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
25930echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
25931 ( cat <<\_ASBOX
25932## ------------------------------------------- ##
25933## Report this to openssh-unix-dev@mindrot.org ##
25934## ------------------------------------------- ##
25935_ASBOX
25936 ) | sed "s/^/$as_me: WARNING: /" >&2
25937 ;;
25938esac
25939{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
25940echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
25941if test "${ac_cv_header_gssapi_h+set}" = set; then
25942 echo $ECHO_N "(cached) $ECHO_C" >&6
25943else
25944 ac_cv_header_gssapi_h=$ac_header_preproc
25945fi
25946{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
25947echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
25948
25949fi
25950if test $ac_cv_header_gssapi_h = yes; then
25951 :
25952else
25953 unset ac_cv_header_gssapi_h
25954 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
25955
25956for ac_header in gssapi.h
25957do
25958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25964fi
25965ac_res=`eval echo '${'$as_ac_Header'}'`
25966 { echo "$as_me:$LINENO: result: $ac_res" >&5
25967echo "${ECHO_T}$ac_res" >&6; }
25968else
25969 # Is the header compilable?
25970{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25972cat >conftest.$ac_ext <<_ACEOF
25973/* confdefs.h. */
25974_ACEOF
25975cat confdefs.h >>conftest.$ac_ext
25976cat >>conftest.$ac_ext <<_ACEOF
25977/* end confdefs.h. */
25978$ac_includes_default
25979#include <$ac_header>
25980_ACEOF
25981rm -f conftest.$ac_objext
25982if { (ac_try="$ac_compile"
25983case "(($ac_try" in
25984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25985 *) ac_try_echo=$ac_try;;
25986esac
25987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25988 (eval "$ac_compile") 2>conftest.er1
25989 ac_status=$?
25990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } && {
25995 test -z "$ac_c_werror_flag" ||
25996 test ! -s conftest.err
25997 } && test -s conftest.$ac_objext; then
25998 ac_header_compiler=yes
25999else
26000 echo "$as_me: failed program was:" >&5
26001sed 's/^/| /' conftest.$ac_ext >&5
26002
26003 ac_header_compiler=no
26004fi
26005
26006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26008echo "${ECHO_T}$ac_header_compiler" >&6; }
26009
26010# Is the header present?
26011{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26013cat >conftest.$ac_ext <<_ACEOF
26014/* confdefs.h. */
26015_ACEOF
26016cat confdefs.h >>conftest.$ac_ext
26017cat >>conftest.$ac_ext <<_ACEOF
26018/* end confdefs.h. */
26019#include <$ac_header>
26020_ACEOF
26021if { (ac_try="$ac_cpp conftest.$ac_ext"
26022case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26025esac
26026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } >/dev/null && {
26034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26035 test ! -s conftest.err
26036 }; then
26037 ac_header_preproc=yes
26038else
26039 echo "$as_me: failed program was:" >&5
26040sed 's/^/| /' conftest.$ac_ext >&5
26041
26042 ac_header_preproc=no
26043fi
26044
26045rm -f conftest.err conftest.$ac_ext
26046{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26047echo "${ECHO_T}$ac_header_preproc" >&6; }
26048
26049# So? What about this header?
26050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26051 yes:no: )
26052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26056 ac_header_preproc=yes
26057 ;;
26058 no:yes:* )
26059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26071 ( cat <<\_ASBOX
26072## ------------------------------------------- ##
26073## Report this to openssh-unix-dev@mindrot.org ##
26074## ------------------------------------------- ##
26075_ASBOX
26076 ) | sed "s/^/$as_me: WARNING: /" >&2
26077 ;;
26078esac
26079{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26083else
26084 eval "$as_ac_Header=\$ac_header_preproc"
26085fi
26086ac_res=`eval echo '${'$as_ac_Header'}'`
26087 { echo "$as_me:$LINENO: result: $ac_res" >&5
26088echo "${ECHO_T}$ac_res" >&6; }
26089
26090fi
26091if test `eval echo '${'$as_ac_Header'}'` = yes; then
26092 cat >>confdefs.h <<_ACEOF
26093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26094_ACEOF
26095
26096else
26097 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
26098echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
26099
26100fi
26101
26102done
26103
26104
26105
26106fi
26107
26108
26109
26110 oldCPP="$CPPFLAGS"
26111 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26112 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26113 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26114echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26115if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26116 echo $ECHO_N "(cached) $ECHO_C" >&6
26117fi
26118{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26119echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26120else
26121 # Is the header compilable?
26122{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
26123echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
26124cat >conftest.$ac_ext <<_ACEOF
26125/* confdefs.h. */
26126_ACEOF
26127cat confdefs.h >>conftest.$ac_ext
26128cat >>conftest.$ac_ext <<_ACEOF
26129/* end confdefs.h. */
26130$ac_includes_default
26131#include <gssapi_krb5.h>
26132_ACEOF
26133rm -f conftest.$ac_objext
26134if { (ac_try="$ac_compile"
26135case "(($ac_try" in
26136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137 *) ac_try_echo=$ac_try;;
26138esac
26139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26140 (eval "$ac_compile") 2>conftest.er1
26141 ac_status=$?
26142 grep -v '^ *+' conftest.er1 >conftest.err
26143 rm -f conftest.er1
26144 cat conftest.err >&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } && {
26147 test -z "$ac_c_werror_flag" ||
26148 test ! -s conftest.err
26149 } && test -s conftest.$ac_objext; then
26150 ac_header_compiler=yes
26151else
26152 echo "$as_me: failed program was:" >&5
26153sed 's/^/| /' conftest.$ac_ext >&5
26154
26155 ac_header_compiler=no
26156fi
26157
26158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26159{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26160echo "${ECHO_T}$ac_header_compiler" >&6; }
26161
26162# Is the header present?
26163{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
26164echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
26165cat >conftest.$ac_ext <<_ACEOF
26166/* confdefs.h. */
26167_ACEOF
26168cat confdefs.h >>conftest.$ac_ext
26169cat >>conftest.$ac_ext <<_ACEOF
26170/* end confdefs.h. */
26171#include <gssapi_krb5.h>
26172_ACEOF
26173if { (ac_try="$ac_cpp conftest.$ac_ext"
26174case "(($ac_try" in
26175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26176 *) ac_try_echo=$ac_try;;
26177esac
26178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26180 ac_status=$?
26181 grep -v '^ *+' conftest.er1 >conftest.err
26182 rm -f conftest.er1
26183 cat conftest.err >&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } >/dev/null && {
26186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26187 test ! -s conftest.err
26188 }; then
26189 ac_header_preproc=yes
26190else
26191 echo "$as_me: failed program was:" >&5
26192sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 ac_header_preproc=no
26195fi
26196
26197rm -f conftest.err conftest.$ac_ext
26198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26199echo "${ECHO_T}$ac_header_preproc" >&6; }
26200
26201# So? What about this header?
26202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26203 yes:no: )
26204 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
26205echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
26207echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
26208 ac_header_preproc=yes
26209 ;;
26210 no:yes:* )
26211 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
26212echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
26213 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
26214echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
26215 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
26216echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
26217 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
26218echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
26219 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
26220echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
26221 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
26222echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
26223 ( cat <<\_ASBOX
26224## ------------------------------------------- ##
26225## Report this to openssh-unix-dev@mindrot.org ##
26226## ------------------------------------------- ##
26227_ASBOX
26228 ) | sed "s/^/$as_me: WARNING: /" >&2
26229 ;;
26230esac
26231{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26232echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26233if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26234 echo $ECHO_N "(cached) $ECHO_C" >&6
26235else
26236 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
26237fi
26238{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26239echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26240
26241fi
26242if test $ac_cv_header_gssapi_krb5_h = yes; then
26243 :
26244else
26245 CPPFLAGS="$oldCPP"
26246fi
26247
26248
26249
26250 fi
26251 if test ! -z "$need_dash_r" ; then
26252 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
26253 fi
26254 if test ! -z "$blibpath" ; then
26255 blibpath="$blibpath:${KRB5ROOT}/lib"
26256 fi
26257
26258
26259
26260for ac_header in gssapi.h gssapi/gssapi.h
26261do
26262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26268fi
26269ac_res=`eval echo '${'$as_ac_Header'}'`
26270 { echo "$as_me:$LINENO: result: $ac_res" >&5
26271echo "${ECHO_T}$ac_res" >&6; }
26272else
26273 # Is the header compilable?
26274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26276cat >conftest.$ac_ext <<_ACEOF
26277/* confdefs.h. */
26278_ACEOF
26279cat confdefs.h >>conftest.$ac_ext
26280cat >>conftest.$ac_ext <<_ACEOF
26281/* end confdefs.h. */
26282$ac_includes_default
26283#include <$ac_header>
26284_ACEOF
26285rm -f conftest.$ac_objext
26286if { (ac_try="$ac_compile"
26287case "(($ac_try" in
26288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26289 *) ac_try_echo=$ac_try;;
26290esac
26291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26292 (eval "$ac_compile") 2>conftest.er1
26293 ac_status=$?
26294 grep -v '^ *+' conftest.er1 >conftest.err
26295 rm -f conftest.er1
26296 cat conftest.err >&5
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); } && {
26299 test -z "$ac_c_werror_flag" ||
26300 test ! -s conftest.err
26301 } && test -s conftest.$ac_objext; then
26302 ac_header_compiler=yes
26303else
26304 echo "$as_me: failed program was:" >&5
26305sed 's/^/| /' conftest.$ac_ext >&5
26306
26307 ac_header_compiler=no
26308fi
26309
26310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26312echo "${ECHO_T}$ac_header_compiler" >&6; }
26313
26314# Is the header present?
26315{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26317cat >conftest.$ac_ext <<_ACEOF
26318/* confdefs.h. */
26319_ACEOF
26320cat confdefs.h >>conftest.$ac_ext
26321cat >>conftest.$ac_ext <<_ACEOF
26322/* end confdefs.h. */
26323#include <$ac_header>
26324_ACEOF
26325if { (ac_try="$ac_cpp conftest.$ac_ext"
26326case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26329esac
26330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26332 ac_status=$?
26333 grep -v '^ *+' conftest.er1 >conftest.err
26334 rm -f conftest.er1
26335 cat conftest.err >&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } >/dev/null && {
26338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26339 test ! -s conftest.err
26340 }; then
26341 ac_header_preproc=yes
26342else
26343 echo "$as_me: failed program was:" >&5
26344sed 's/^/| /' conftest.$ac_ext >&5
26345
26346 ac_header_preproc=no
26347fi
26348
26349rm -f conftest.err conftest.$ac_ext
26350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26351echo "${ECHO_T}$ac_header_preproc" >&6; }
26352
26353# So? What about this header?
26354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26355 yes:no: )
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26360 ac_header_preproc=yes
26361 ;;
26362 no:yes:* )
26363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26375 ( cat <<\_ASBOX
26376## ------------------------------------------- ##
26377## Report this to openssh-unix-dev@mindrot.org ##
26378## ------------------------------------------- ##
26379_ASBOX
26380 ) | sed "s/^/$as_me: WARNING: /" >&2
26381 ;;
26382esac
26383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388 eval "$as_ac_Header=\$ac_header_preproc"
26389fi
26390ac_res=`eval echo '${'$as_ac_Header'}'`
26391 { echo "$as_me:$LINENO: result: $ac_res" >&5
26392echo "${ECHO_T}$ac_res" >&6; }
26393
26394fi
26395if test `eval echo '${'$as_ac_Header'}'` = yes; then
26396 cat >>confdefs.h <<_ACEOF
26397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26398_ACEOF
26399
26400fi
26401
26402done
26403
26404
26405
26406for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
26407do
26408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26413 echo $ECHO_N "(cached) $ECHO_C" >&6
26414fi
26415ac_res=`eval echo '${'$as_ac_Header'}'`
26416 { echo "$as_me:$LINENO: result: $ac_res" >&5
26417echo "${ECHO_T}$ac_res" >&6; }
26418else
26419 # Is the header compilable?
26420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26422cat >conftest.$ac_ext <<_ACEOF
26423/* confdefs.h. */
26424_ACEOF
26425cat confdefs.h >>conftest.$ac_ext
26426cat >>conftest.$ac_ext <<_ACEOF
26427/* end confdefs.h. */
26428$ac_includes_default
26429#include <$ac_header>
26430_ACEOF
26431rm -f conftest.$ac_objext
26432if { (ac_try="$ac_compile"
26433case "(($ac_try" in
26434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26435 *) ac_try_echo=$ac_try;;
26436esac
26437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26438 (eval "$ac_compile") 2>conftest.er1
26439 ac_status=$?
26440 grep -v '^ *+' conftest.er1 >conftest.err
26441 rm -f conftest.er1
26442 cat conftest.err >&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } && {
26445 test -z "$ac_c_werror_flag" ||
26446 test ! -s conftest.err
26447 } && test -s conftest.$ac_objext; then
26448 ac_header_compiler=yes
26449else
26450 echo "$as_me: failed program was:" >&5
26451sed 's/^/| /' conftest.$ac_ext >&5
26452
26453 ac_header_compiler=no
26454fi
26455
26456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26458echo "${ECHO_T}$ac_header_compiler" >&6; }
26459
26460# Is the header present?
26461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26463cat >conftest.$ac_ext <<_ACEOF
26464/* confdefs.h. */
26465_ACEOF
26466cat confdefs.h >>conftest.$ac_ext
26467cat >>conftest.$ac_ext <<_ACEOF
26468/* end confdefs.h. */
26469#include <$ac_header>
26470_ACEOF
26471if { (ac_try="$ac_cpp conftest.$ac_ext"
26472case "(($ac_try" in
26473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474 *) ac_try_echo=$ac_try;;
26475esac
26476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26478 ac_status=$?
26479 grep -v '^ *+' conftest.er1 >conftest.err
26480 rm -f conftest.er1
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } >/dev/null && {
26484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26485 test ! -s conftest.err
26486 }; then
26487 ac_header_preproc=yes
26488else
26489 echo "$as_me: failed program was:" >&5
26490sed 's/^/| /' conftest.$ac_ext >&5
26491
26492 ac_header_preproc=no
26493fi
26494
26495rm -f conftest.err conftest.$ac_ext
26496{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26497echo "${ECHO_T}$ac_header_preproc" >&6; }
26498
26499# So? What about this header?
26500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26501 yes:no: )
26502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26506 ac_header_preproc=yes
26507 ;;
26508 no:yes:* )
26509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26512echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26516echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26521 ( cat <<\_ASBOX
26522## ------------------------------------------- ##
26523## Report this to openssh-unix-dev@mindrot.org ##
26524## ------------------------------------------- ##
26525_ASBOX
26526 ) | sed "s/^/$as_me: WARNING: /" >&2
26527 ;;
26528esac
26529{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26533else
26534 eval "$as_ac_Header=\$ac_header_preproc"
26535fi
26536ac_res=`eval echo '${'$as_ac_Header'}'`
26537 { echo "$as_me:$LINENO: result: $ac_res" >&5
26538echo "${ECHO_T}$ac_res" >&6; }
26539
26540fi
26541if test `eval echo '${'$as_ac_Header'}'` = yes; then
26542 cat >>confdefs.h <<_ACEOF
26543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26544_ACEOF
26545
26546fi
26547
26548done
26549
26550
26551
26552for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
26553do
26554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26560fi
26561ac_res=`eval echo '${'$as_ac_Header'}'`
26562 { echo "$as_me:$LINENO: result: $ac_res" >&5
26563echo "${ECHO_T}$ac_res" >&6; }
26564else
26565 # Is the header compilable?
26566{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26568cat >conftest.$ac_ext <<_ACEOF
26569/* confdefs.h. */
26570_ACEOF
26571cat confdefs.h >>conftest.$ac_ext
26572cat >>conftest.$ac_ext <<_ACEOF
26573/* end confdefs.h. */
26574$ac_includes_default
26575#include <$ac_header>
26576_ACEOF
26577rm -f conftest.$ac_objext
26578if { (ac_try="$ac_compile"
26579case "(($ac_try" in
26580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581 *) ac_try_echo=$ac_try;;
26582esac
26583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584 (eval "$ac_compile") 2>conftest.er1
26585 ac_status=$?
26586 grep -v '^ *+' conftest.er1 >conftest.err
26587 rm -f conftest.er1
26588 cat conftest.err >&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && {
26591 test -z "$ac_c_werror_flag" ||
26592 test ! -s conftest.err
26593 } && test -s conftest.$ac_objext; then
26594 ac_header_compiler=yes
26595else
26596 echo "$as_me: failed program was:" >&5
26597sed 's/^/| /' conftest.$ac_ext >&5
26598
26599 ac_header_compiler=no
26600fi
26601
26602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26604echo "${ECHO_T}$ac_header_compiler" >&6; }
26605
26606# Is the header present?
26607{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26609cat >conftest.$ac_ext <<_ACEOF
26610/* confdefs.h. */
26611_ACEOF
26612cat confdefs.h >>conftest.$ac_ext
26613cat >>conftest.$ac_ext <<_ACEOF
26614/* end confdefs.h. */
26615#include <$ac_header>
26616_ACEOF
26617if { (ac_try="$ac_cpp conftest.$ac_ext"
26618case "(($ac_try" in
26619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26620 *) ac_try_echo=$ac_try;;
26621esac
26622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26624 ac_status=$?
26625 grep -v '^ *+' conftest.er1 >conftest.err
26626 rm -f conftest.er1
26627 cat conftest.err >&5
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } >/dev/null && {
26630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26631 test ! -s conftest.err
26632 }; then
26633 ac_header_preproc=yes
26634else
26635 echo "$as_me: failed program was:" >&5
26636sed 's/^/| /' conftest.$ac_ext >&5
26637
26638 ac_header_preproc=no
26639fi
26640
26641rm -f conftest.err conftest.$ac_ext
26642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26643echo "${ECHO_T}$ac_header_preproc" >&6; }
26644
26645# So? What about this header?
26646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26647 yes:no: )
26648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26652 ac_header_preproc=yes
26653 ;;
26654 no:yes:* )
26655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26667 ( cat <<\_ASBOX
26668## ------------------------------------------- ##
26669## Report this to openssh-unix-dev@mindrot.org ##
26670## ------------------------------------------- ##
26671_ASBOX
26672 ) | sed "s/^/$as_me: WARNING: /" >&2
26673 ;;
26674esac
26675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26678 echo $ECHO_N "(cached) $ECHO_C" >&6
26679else
26680 eval "$as_ac_Header=\$ac_header_preproc"
26681fi
26682ac_res=`eval echo '${'$as_ac_Header'}'`
26683 { echo "$as_me:$LINENO: result: $ac_res" >&5
26684echo "${ECHO_T}$ac_res" >&6; }
26685
26686fi
26687if test `eval echo '${'$as_ac_Header'}'` = yes; then
26688 cat >>confdefs.h <<_ACEOF
26689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26690_ACEOF
26691
26692fi
26693
26694done
26695
26696
26697 LIBS="$LIBS $K5LIBS"
26698 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
26699echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
26700if test "${ac_cv_search_k_hasafs+set}" = set; then
26701 echo $ECHO_N "(cached) $ECHO_C" >&6
26702else
26703 ac_func_search_save_LIBS=$LIBS
26704cat >conftest.$ac_ext <<_ACEOF
26705/* confdefs.h. */
26706_ACEOF
26707cat confdefs.h >>conftest.$ac_ext
26708cat >>conftest.$ac_ext <<_ACEOF
26709/* end confdefs.h. */
26710
26711/* Override any GCC internal prototype to avoid an error.
26712 Use char because int might match the return type of a GCC
26713 builtin and then its argument prototype would still apply. */
26714#ifdef __cplusplus
26715extern "C"
26716#endif
26717char k_hasafs ();
26718int
26719main ()
26720{
26721return k_hasafs ();
26722 ;
26723 return 0;
26724}
26725_ACEOF
26726for ac_lib in '' kafs; do
26727 if test -z "$ac_lib"; then
26728 ac_res="none required"
26729 else
26730 ac_res=-l$ac_lib
26731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26732 fi
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734if { (ac_try="$ac_link"
26735case "(($ac_try" in
26736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737 *) ac_try_echo=$ac_try;;
26738esac
26739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26740 (eval "$ac_link") 2>conftest.er1
26741 ac_status=$?
26742 grep -v '^ *+' conftest.er1 >conftest.err
26743 rm -f conftest.er1
26744 cat conftest.err >&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } && {
26747 test -z "$ac_c_werror_flag" ||
26748 test ! -s conftest.err
26749 } && test -s conftest$ac_exeext &&
26750 $as_test_x conftest$ac_exeext; then
26751 ac_cv_search_k_hasafs=$ac_res
26752else
26753 echo "$as_me: failed program was:" >&5
26754sed 's/^/| /' conftest.$ac_ext >&5
26755
26756
26757fi
26758
26759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26760 conftest$ac_exeext
26761 if test "${ac_cv_search_k_hasafs+set}" = set; then
26762 break
26763fi
26764done
26765if test "${ac_cv_search_k_hasafs+set}" = set; then
26766 :
26767else
26768 ac_cv_search_k_hasafs=no
26769fi
26770rm conftest.$ac_ext
26771LIBS=$ac_func_search_save_LIBS
26772fi
26773{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
26774echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
26775ac_res=$ac_cv_search_k_hasafs
26776if test "$ac_res" != no; then
26777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26778
26779cat >>confdefs.h <<\_ACEOF
26780#define USE_AFS 1
26781_ACEOF
26782
26783fi
26784
26785 fi
26786
26787
26788fi
26789
26790
26791# Looking for programs, paths and files
26792
26793PRIVSEP_PATH=/var/empty
26794
26795# Check whether --with-privsep-path was given.
26796if test "${with_privsep_path+set}" = set; then
26797 withval=$with_privsep_path;
26798 if test -n "$withval" && test "x$withval" != "xno" && \
26799 test "x${withval}" != "xyes"; then
26800 PRIVSEP_PATH=$withval
26801 fi
26802
26803
26804fi
26805
26806
26807
26808
26809# Check whether --with-xauth was given.
26810if test "${with_xauth+set}" = set; then
26811 withval=$with_xauth;
26812 if test -n "$withval" && test "x$withval" != "xno" && \
26813 test "x${withval}" != "xyes"; then
26814 xauth_path=$withval
26815 fi
26816
26817else
26818
26819 TestPath="$PATH"
26820 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
26821 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
26822 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
26823 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
26824 # Extract the first word of "xauth", so it can be a program name with args.
26825set dummy xauth; ac_word=$2
26826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26828if test "${ac_cv_path_xauth_path+set}" = set; then
26829 echo $ECHO_N "(cached) $ECHO_C" >&6
26830else
26831 case $xauth_path in
26832 [\\/]* | ?:[\\/]*)
26833 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
26834 ;;
26835 *)
26836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26837for as_dir in $TestPath
26838do
26839 IFS=$as_save_IFS
26840 test -z "$as_dir" && as_dir=.
26841 for ac_exec_ext in '' $ac_executable_extensions; do
26842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26843 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
26844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26845 break 2
26846 fi
26847done
26848done
26849IFS=$as_save_IFS
26850
26851 ;;
26852esac
26853fi
26854xauth_path=$ac_cv_path_xauth_path
26855if test -n "$xauth_path"; then
26856 { echo "$as_me:$LINENO: result: $xauth_path" >&5
26857echo "${ECHO_T}$xauth_path" >&6; }
26858else
26859 { echo "$as_me:$LINENO: result: no" >&5
26860echo "${ECHO_T}no" >&6; }
26861fi
26862
26863
26864 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
26865 xauth_path="/usr/openwin/bin/xauth"
26866 fi
26867
26868
26869fi
26870
26871
26872STRIP_OPT=-s
26873# Check whether --enable-strip was given.
26874if test "${enable_strip+set}" = set; then
26875 enableval=$enable_strip;
26876 if test "x$enableval" = "xno" ; then
26877 STRIP_OPT=
26878 fi
26879
26880
26881fi
26882
26883
26884
26885if test -z "$xauth_path" ; then
26886 XAUTH_PATH="undefined"
26887
26888else
26889
26890cat >>confdefs.h <<_ACEOF
26891#define XAUTH_PATH "$xauth_path"
26892_ACEOF
26893
26894 XAUTH_PATH=$xauth_path
26895
26896fi
26897
26898# Check for mail directory (last resort if we cannot get it from headers)
26899if test ! -z "$MAIL" ; then
26900 maildir=`dirname $MAIL`
26901
26902cat >>confdefs.h <<_ACEOF
26903#define MAIL_DIRECTORY "$maildir"
26904_ACEOF
26905
26906fi
26907
26908if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
26909 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
26910echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
26911 disable_ptmx_check=yes
26912fi
26913if test -z "$no_dev_ptmx" ; then
26914 if test "x$disable_ptmx_check" != "xyes" ; then
26915 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
26916echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
26917if test "${ac_cv_file___dev_ptmx_+set}" = set; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26919else
26920 test "$cross_compiling" = yes &&
26921 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
26922echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
26923 { (exit 1); exit 1; }; }
26924if test -r ""/dev/ptmx""; then
26925 ac_cv_file___dev_ptmx_=yes
26926else
26927 ac_cv_file___dev_ptmx_=no
26928fi
26929fi
26930{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
26931echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
26932if test $ac_cv_file___dev_ptmx_ = yes; then
26933
26934
26935cat >>confdefs.h <<_ACEOF
26936#define HAVE_DEV_PTMX 1
26937_ACEOF
26938
26939 have_dev_ptmx=1
26940
26941
26942fi
26943
26944 fi
26945fi
26946
26947if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
26948 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
26949echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
26950if test "${ac_cv_file___dev_ptc_+set}" = set; then
26951 echo $ECHO_N "(cached) $ECHO_C" >&6
26952else
26953 test "$cross_compiling" = yes &&
26954 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
26955echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
26956 { (exit 1); exit 1; }; }
26957if test -r ""/dev/ptc""; then
26958 ac_cv_file___dev_ptc_=yes
26959else
26960 ac_cv_file___dev_ptc_=no
26961fi
26962fi
26963{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
26964echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
26965if test $ac_cv_file___dev_ptc_ = yes; then
26966
26967
26968cat >>confdefs.h <<_ACEOF
26969#define HAVE_DEV_PTS_AND_PTC 1
26970_ACEOF
26971
26972 have_dev_ptc=1
26973
26974
26975fi
26976
26977else
26978 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
26979echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
26980fi
26981
26982# Options from here on. Some of these are preset by platform above
26983
26984# Check whether --with-mantype was given.
26985if test "${with_mantype+set}" = set; then
26986 withval=$with_mantype;
26987 case "$withval" in
26988 man|cat|doc)
26989 MANTYPE=$withval
26990 ;;
26991 *)
26992 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
26993echo "$as_me: error: invalid man type: $withval" >&2;}
26994 { (exit 1); exit 1; }; }
26995 ;;
26996 esac
26997
26998
26999fi
27000
27001if test -z "$MANTYPE"; then
27002 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
27003 for ac_prog in nroff awf
27004do
27005 # Extract the first word of "$ac_prog", so it can be a program name with args.
27006set dummy $ac_prog; ac_word=$2
27007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27009if test "${ac_cv_path_NROFF+set}" = set; then
27010 echo $ECHO_N "(cached) $ECHO_C" >&6
27011else
27012 case $NROFF in
27013 [\\/]* | ?:[\\/]*)
27014 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27015 ;;
27016 *)
27017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27018for as_dir in $TestPath
27019do
27020 IFS=$as_save_IFS
27021 test -z "$as_dir" && as_dir=.
27022 for ac_exec_ext in '' $ac_executable_extensions; do
27023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27024 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27026 break 2
27027 fi
27028done
27029done
27030IFS=$as_save_IFS
27031
27032 ;;
27033esac
27034fi
27035NROFF=$ac_cv_path_NROFF
27036if test -n "$NROFF"; then
27037 { echo "$as_me:$LINENO: result: $NROFF" >&5
27038echo "${ECHO_T}$NROFF" >&6; }
27039else
27040 { echo "$as_me:$LINENO: result: no" >&5
27041echo "${ECHO_T}no" >&6; }
27042fi
27043
27044
27045 test -n "$NROFF" && break
27046done
27047test -n "$NROFF" || NROFF="/bin/false"
27048
27049 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
27050 MANTYPE=doc
27051 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
27052 MANTYPE=man
27053 else
27054 MANTYPE=cat
27055 fi
27056fi
27057
27058if test "$MANTYPE" = "doc"; then
27059 mansubdir=man;
27060else
27061 mansubdir=$MANTYPE;
27062fi
27063
27064
27065# Check whether to enable MD5 passwords
27066MD5_MSG="no"
27067
27068# Check whether --with-md5-passwords was given.
27069if test "${with_md5_passwords+set}" = set; then
27070 withval=$with_md5_passwords;
27071 if test "x$withval" != "xno" ; then
27072
27073cat >>confdefs.h <<\_ACEOF
27074#define HAVE_MD5_PASSWORDS 1
27075_ACEOF
27076
27077 MD5_MSG="yes"
27078 fi
27079
27080
27081fi
27082
27083
27084# Whether to disable shadow password support
27085
27086# Check whether --with-shadow was given.
27087if test "${with_shadow+set}" = set; then
27088 withval=$with_shadow;
27089 if test "x$withval" = "xno" ; then
27090 cat >>confdefs.h <<\_ACEOF
27091#define DISABLE_SHADOW 1
27092_ACEOF
27093
27094 disable_shadow=yes
27095 fi
27096
27097
27098fi
27099
27100
27101if test -z "$disable_shadow" ; then
27102 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
27103echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
27104 cat >conftest.$ac_ext <<_ACEOF
27105/* confdefs.h. */
27106_ACEOF
27107cat confdefs.h >>conftest.$ac_ext
27108cat >>conftest.$ac_ext <<_ACEOF
27109/* end confdefs.h. */
27110
27111#include <sys/types.h>
27112#include <shadow.h>
27113 struct spwd sp;
27114
27115int
27116main ()
27117{
27118 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
27119 ;
27120 return 0;
27121}
27122_ACEOF
27123rm -f conftest.$ac_objext
27124if { (ac_try="$ac_compile"
27125case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27128esac
27129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_compile") 2>conftest.er1
27131 ac_status=$?
27132 grep -v '^ *+' conftest.er1 >conftest.err
27133 rm -f conftest.er1
27134 cat conftest.err >&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } && {
27137 test -z "$ac_c_werror_flag" ||
27138 test ! -s conftest.err
27139 } && test -s conftest.$ac_objext; then
27140 sp_expire_available=yes
27141else
27142 echo "$as_me: failed program was:" >&5
27143sed 's/^/| /' conftest.$ac_ext >&5
27144
27145
27146
27147fi
27148
27149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27150
27151 if test "x$sp_expire_available" = "xyes" ; then
27152 { echo "$as_me:$LINENO: result: yes" >&5
27153echo "${ECHO_T}yes" >&6; }
27154
27155cat >>confdefs.h <<\_ACEOF
27156#define HAS_SHADOW_EXPIRE 1
27157_ACEOF
27158
27159 else
27160 { echo "$as_me:$LINENO: result: no" >&5
27161echo "${ECHO_T}no" >&6; }
27162 fi
27163fi
27164
27165# Use ip address instead of hostname in $DISPLAY
27166if test ! -z "$IPADDR_IN_DISPLAY" ; then
27167 DISPLAY_HACK_MSG="yes"
27168
27169cat >>confdefs.h <<\_ACEOF
27170#define IPADDR_IN_DISPLAY 1
27171_ACEOF
27172
27173else
27174 DISPLAY_HACK_MSG="no"
27175
27176# Check whether --with-ipaddr-display was given.
27177if test "${with_ipaddr_display+set}" = set; then
27178 withval=$with_ipaddr_display;
27179 if test "x$withval" != "xno" ; then
27180 cat >>confdefs.h <<\_ACEOF
27181#define IPADDR_IN_DISPLAY 1
27182_ACEOF
27183
27184 DISPLAY_HACK_MSG="yes"
27185 fi
27186
27187
27188fi
27189
27190fi
27191
27192# check for /etc/default/login and use it if present.
27193# Check whether --enable-etc-default-login was given.
27194if test "${enable_etc_default_login+set}" = set; then
27195 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
27196 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
27197echo "$as_me: /etc/default/login handling disabled" >&6;}
27198 etc_default_login=no
27199 else
27200 etc_default_login=yes
27201 fi
27202else
27203 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
27204 then
27205 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
27206echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
27207 etc_default_login=no
27208 else
27209 etc_default_login=yes
27210 fi
27211
27212fi
27213
27214
27215if test "x$etc_default_login" != "xno"; then
27216 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
27217echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
27218if test "${ac_cv_file___etc_default_login_+set}" = set; then
27219 echo $ECHO_N "(cached) $ECHO_C" >&6
27220else
27221 test "$cross_compiling" = yes &&
27222 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27223echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27224 { (exit 1); exit 1; }; }
27225if test -r ""/etc/default/login""; then
27226 ac_cv_file___etc_default_login_=yes
27227else
27228 ac_cv_file___etc_default_login_=no
27229fi
27230fi
27231{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
27232echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
27233if test $ac_cv_file___etc_default_login_ = yes; then
27234 external_path_file=/etc/default/login
27235fi
27236
27237 if test "x$external_path_file" = "x/etc/default/login"; then
27238
27239cat >>confdefs.h <<\_ACEOF
27240#define HAVE_ETC_DEFAULT_LOGIN 1
27241_ACEOF
27242
27243 fi
27244fi
27245
27246if test $ac_cv_func_login_getcapbool = "yes" && \
27247 test $ac_cv_header_login_cap_h = "yes" ; then
27248 external_path_file=/etc/login.conf
27249fi
27250
27251# Whether to mess with the default path
27252SERVER_PATH_MSG="(default)"
27253
27254# Check whether --with-default-path was given.
27255if test "${with_default_path+set}" = set; then
27256 withval=$with_default_path;
27257 if test "x$external_path_file" = "x/etc/login.conf" ; then
27258 { echo "$as_me:$LINENO: WARNING:
27259--with-default-path=PATH has no effect on this system.
27260Edit /etc/login.conf instead." >&5
27261echo "$as_me: WARNING:
27262--with-default-path=PATH has no effect on this system.
27263Edit /etc/login.conf instead." >&2;}
27264 elif test "x$withval" != "xno" ; then
27265 if test ! -z "$external_path_file" ; then
27266 { echo "$as_me:$LINENO: WARNING:
27267--with-default-path=PATH will only be used if PATH is not defined in
27268$external_path_file ." >&5
27269echo "$as_me: WARNING:
27270--with-default-path=PATH will only be used if PATH is not defined in
27271$external_path_file ." >&2;}
27272 fi
27273 user_path="$withval"
27274 SERVER_PATH_MSG="$withval"
27275 fi
27276
27277else
27278 if test "x$external_path_file" = "x/etc/login.conf" ; then
27279 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
27280echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
27281 else
27282 if test ! -z "$external_path_file" ; then
27283 { echo "$as_me:$LINENO: WARNING:
27284If PATH is defined in $external_path_file, ensure the path to scp is included,
27285otherwise scp will not work." >&5
27286echo "$as_me: WARNING:
27287If PATH is defined in $external_path_file, ensure the path to scp is included,
27288otherwise scp will not work." >&2;}
27289 fi
27290 if test "$cross_compiling" = yes; then
27291 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
27292
27293else
27294 cat >conftest.$ac_ext <<_ACEOF
27295/* confdefs.h. */
27296_ACEOF
27297cat confdefs.h >>conftest.$ac_ext
27298cat >>conftest.$ac_ext <<_ACEOF
27299/* end confdefs.h. */
27300
27301/* find out what STDPATH is */
27302#include <stdio.h>
27303#ifdef HAVE_PATHS_H
27304# include <paths.h>
27305#endif
27306#ifndef _PATH_STDPATH
27307# ifdef _PATH_USERPATH /* Irix */
27308# define _PATH_STDPATH _PATH_USERPATH
27309# else
27310# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
27311# endif
27312#endif
27313#include <sys/types.h>
27314#include <sys/stat.h>
27315#include <fcntl.h>
27316#define DATA "conftest.stdpath"
27317
27318main()
27319{
27320 FILE *fd;
27321 int rc;
27322
27323 fd = fopen(DATA,"w");
27324 if(fd == NULL)
27325 exit(1);
27326
27327 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
27328 exit(1);
27329
27330 exit(0);
27331}
27332
27333_ACEOF
27334rm -f conftest$ac_exeext
27335if { (ac_try="$ac_link"
27336case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27339esac
27340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_link") 2>&5
27342 ac_status=$?
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27345 { (case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27348esac
27349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_try") 2>&5
27351 ac_status=$?
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
27354 user_path=`cat conftest.stdpath`
27355else
27356 echo "$as_me: program exited with status $ac_status" >&5
27357echo "$as_me: failed program was:" >&5
27358sed 's/^/| /' conftest.$ac_ext >&5
27359
27360( exit $ac_status )
27361 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
27362fi
27363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27364fi
27365
27366
27367# make sure $bindir is in USER_PATH so scp will work
27368 t_bindir=`eval echo ${bindir}`
27369 case $t_bindir in
27370 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
27371 esac
27372 case $t_bindir in
27373 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
27374 esac
27375 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
27376 if test $? -ne 0 ; then
27377 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
27378 if test $? -ne 0 ; then
27379 user_path=$user_path:$t_bindir
27380 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
27381echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
27382 fi
27383 fi
27384 fi
27385
27386fi
27387
27388if test "x$external_path_file" != "x/etc/login.conf" ; then
27389
27390cat >>confdefs.h <<_ACEOF
27391#define USER_PATH "$user_path"
27392_ACEOF
27393
27394
27395fi
27396
27397# Set superuser path separately to user path
27398
27399# Check whether --with-superuser-path was given.
27400if test "${with_superuser_path+set}" = set; then
27401 withval=$with_superuser_path;
27402 if test -n "$withval" && test "x$withval" != "xno" && \
27403 test "x${withval}" != "xyes"; then
27404
27405cat >>confdefs.h <<_ACEOF
27406#define SUPERUSER_PATH "$withval"
27407_ACEOF
27408
27409 superuser_path=$withval
27410 fi
27411
27412
27413fi
27414
27415
27416
27417{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
27418echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
27419IPV4_IN6_HACK_MSG="no"
27420
27421# Check whether --with-4in6 was given.
27422if test "${with_4in6+set}" = set; then
27423 withval=$with_4in6;
27424 if test "x$withval" != "xno" ; then
27425 { echo "$as_me:$LINENO: result: yes" >&5
27426echo "${ECHO_T}yes" >&6; }
27427
27428cat >>confdefs.h <<\_ACEOF
27429#define IPV4_IN_IPV6 1
27430_ACEOF
27431
27432 IPV4_IN6_HACK_MSG="yes"
27433 else
27434 { echo "$as_me:$LINENO: result: no" >&5
27435echo "${ECHO_T}no" >&6; }
27436 fi
27437
27438else
27439
27440 if test "x$inet6_default_4in6" = "xyes"; then
27441 { echo "$as_me:$LINENO: result: yes (default)" >&5
27442echo "${ECHO_T}yes (default)" >&6; }
27443 cat >>confdefs.h <<\_ACEOF
27444#define IPV4_IN_IPV6 1
27445_ACEOF
27446
27447 IPV4_IN6_HACK_MSG="yes"
27448 else
27449 { echo "$as_me:$LINENO: result: no (default)" >&5
27450echo "${ECHO_T}no (default)" >&6; }
27451 fi
27452
27453
27454fi
27455
27456
27457# Whether to enable BSD auth support
27458BSD_AUTH_MSG=no
27459
27460# Check whether --with-bsd-auth was given.
27461if test "${with_bsd_auth+set}" = set; then
27462 withval=$with_bsd_auth;
27463 if test "x$withval" != "xno" ; then
27464
27465cat >>confdefs.h <<\_ACEOF
27466#define BSD_AUTH 1
27467_ACEOF
27468
27469 BSD_AUTH_MSG=yes
27470 fi
27471
27472
27473fi
27474
27475
27476# Where to place sshd.pid
27477piddir=/var/run
27478# make sure the directory exists
27479if test ! -d $piddir ; then
27480 piddir=`eval echo ${sysconfdir}`
27481 case $piddir in
27482 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
27483 esac
27484fi
27485
27486
27487# Check whether --with-pid-dir was given.
27488if test "${with_pid_dir+set}" = set; then
27489 withval=$with_pid_dir;
27490 if test -n "$withval" && test "x$withval" != "xno" && \
27491 test "x${withval}" != "xyes"; then
27492 piddir=$withval
27493 if test ! -d $piddir ; then
27494 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
27495echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
27496 fi
27497 fi
27498
27499
27500fi
27501
27502
27503
27504cat >>confdefs.h <<_ACEOF
27505#define _PATH_SSH_PIDDIR "$piddir"
27506_ACEOF
27507
27508
27509
27510# Check whether --enable-lastlog was given.
27511if test "${enable_lastlog+set}" = set; then
27512 enableval=$enable_lastlog;
27513 if test "x$enableval" = "xno" ; then
27514 cat >>confdefs.h <<\_ACEOF
27515#define DISABLE_LASTLOG 1
27516_ACEOF
27517
27518 fi
27519
27520
27521fi
27522
27523# Check whether --enable-utmp was given.
27524if test "${enable_utmp+set}" = set; then
27525 enableval=$enable_utmp;
27526 if test "x$enableval" = "xno" ; then
27527 cat >>confdefs.h <<\_ACEOF
27528#define DISABLE_UTMP 1
27529_ACEOF
27530
27531 fi
27532
27533
27534fi
27535
27536# Check whether --enable-utmpx was given.
27537if test "${enable_utmpx+set}" = set; then
27538 enableval=$enable_utmpx;
27539 if test "x$enableval" = "xno" ; then
27540
27541cat >>confdefs.h <<\_ACEOF
27542#define DISABLE_UTMPX 1
27543_ACEOF
27544
27545 fi
27546
27547
27548fi
27549
27550# Check whether --enable-wtmp was given.
27551if test "${enable_wtmp+set}" = set; then
27552 enableval=$enable_wtmp;
27553 if test "x$enableval" = "xno" ; then
27554 cat >>confdefs.h <<\_ACEOF
27555#define DISABLE_WTMP 1
27556_ACEOF
27557
27558 fi
27559
27560
27561fi
27562
27563# Check whether --enable-wtmpx was given.
27564if test "${enable_wtmpx+set}" = set; then
27565 enableval=$enable_wtmpx;
27566 if test "x$enableval" = "xno" ; then
27567
27568cat >>confdefs.h <<\_ACEOF
27569#define DISABLE_WTMPX 1
27570_ACEOF
27571
27572 fi
27573
27574
27575fi
27576
27577# Check whether --enable-libutil was given.
27578if test "${enable_libutil+set}" = set; then
27579 enableval=$enable_libutil;
27580 if test "x$enableval" = "xno" ; then
27581 cat >>confdefs.h <<\_ACEOF
27582#define DISABLE_LOGIN 1
27583_ACEOF
27584
27585 fi
27586
27587
27588fi
27589
27590# Check whether --enable-pututline was given.
27591if test "${enable_pututline+set}" = set; then
27592 enableval=$enable_pututline;
27593 if test "x$enableval" = "xno" ; then
27594
27595cat >>confdefs.h <<\_ACEOF
27596#define DISABLE_PUTUTLINE 1
27597_ACEOF
27598
27599 fi
27600
27601
27602fi
27603
27604# Check whether --enable-pututxline was given.
27605if test "${enable_pututxline+set}" = set; then
27606 enableval=$enable_pututxline;
27607 if test "x$enableval" = "xno" ; then
27608
27609cat >>confdefs.h <<\_ACEOF
27610#define DISABLE_PUTUTXLINE 1
27611_ACEOF
27612
27613 fi
27614
27615
27616fi
27617
27618
27619# Check whether --with-lastlog was given.
27620if test "${with_lastlog+set}" = set; then
27621 withval=$with_lastlog;
27622 if test "x$withval" = "xno" ; then
27623 cat >>confdefs.h <<\_ACEOF
27624#define DISABLE_LASTLOG 1
27625_ACEOF
27626
27627 elif test -n "$withval" && test "x${withval}" != "xyes"; then
27628 conf_lastlog_location=$withval
27629 fi
27630
27631
27632fi
27633
27634
27635
27636{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
27637echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
27638cat >conftest.$ac_ext <<_ACEOF
27639/* confdefs.h. */
27640_ACEOF
27641cat confdefs.h >>conftest.$ac_ext
27642cat >>conftest.$ac_ext <<_ACEOF
27643/* end confdefs.h. */
27644
27645#include <sys/types.h>
27646#include <utmp.h>
27647#ifdef HAVE_LASTLOG_H
27648# include <lastlog.h>
27649#endif
27650#ifdef HAVE_PATHS_H
27651# include <paths.h>
27652#endif
27653#ifdef HAVE_LOGIN_H
27654# include <login.h>
27655#endif
27656
27657int
27658main ()
27659{
27660 char *lastlog = LASTLOG_FILE;
27661 ;
27662 return 0;
27663}
27664_ACEOF
27665rm -f conftest.$ac_objext
27666if { (ac_try="$ac_compile"
27667case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27670esac
27671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_compile") 2>conftest.er1
27673 ac_status=$?
27674 grep -v '^ *+' conftest.er1 >conftest.err
27675 rm -f conftest.er1
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } && {
27679 test -z "$ac_c_werror_flag" ||
27680 test ! -s conftest.err
27681 } && test -s conftest.$ac_objext; then
27682 { echo "$as_me:$LINENO: result: yes" >&5
27683echo "${ECHO_T}yes" >&6; }
27684else
27685 echo "$as_me: failed program was:" >&5
27686sed 's/^/| /' conftest.$ac_ext >&5
27687
27688
27689 { echo "$as_me:$LINENO: result: no" >&5
27690echo "${ECHO_T}no" >&6; }
27691 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
27692echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
27693 cat >conftest.$ac_ext <<_ACEOF
27694/* confdefs.h. */
27695_ACEOF
27696cat confdefs.h >>conftest.$ac_ext
27697cat >>conftest.$ac_ext <<_ACEOF
27698/* end confdefs.h. */
27699
27700#include <sys/types.h>
27701#include <utmp.h>
27702#ifdef HAVE_LASTLOG_H
27703# include <lastlog.h>
27704#endif
27705#ifdef HAVE_PATHS_H
27706# include <paths.h>
27707#endif
27708
27709int
27710main ()
27711{
27712 char *lastlog = _PATH_LASTLOG;
27713 ;
27714 return 0;
27715}
27716_ACEOF
27717rm -f conftest.$ac_objext
27718if { (ac_try="$ac_compile"
27719case "(($ac_try" in
27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721 *) ac_try_echo=$ac_try;;
27722esac
27723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724 (eval "$ac_compile") 2>conftest.er1
27725 ac_status=$?
27726 grep -v '^ *+' conftest.er1 >conftest.err
27727 rm -f conftest.er1
27728 cat conftest.err >&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } && {
27731 test -z "$ac_c_werror_flag" ||
27732 test ! -s conftest.err
27733 } && test -s conftest.$ac_objext; then
27734 { echo "$as_me:$LINENO: result: yes" >&5
27735echo "${ECHO_T}yes" >&6; }
27736else
27737 echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740
27741 { echo "$as_me:$LINENO: result: no" >&5
27742echo "${ECHO_T}no" >&6; }
27743 system_lastlog_path=no
27744
27745fi
27746
27747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27748
27749
27750fi
27751
27752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27753
27754if test -z "$conf_lastlog_location"; then
27755 if test x"$system_lastlog_path" = x"no" ; then
27756 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
27757 if (test -d "$f" || test -f "$f") ; then
27758 conf_lastlog_location=$f
27759 fi
27760 done
27761 if test -z "$conf_lastlog_location"; then
27762 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
27763echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
27764 fi
27765 fi
27766fi
27767
27768if test -n "$conf_lastlog_location"; then
27769
27770cat >>confdefs.h <<_ACEOF
27771#define CONF_LASTLOG_FILE "$conf_lastlog_location"
27772_ACEOF
27773
27774fi
27775
27776{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
27777echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
27778cat >conftest.$ac_ext <<_ACEOF
27779/* confdefs.h. */
27780_ACEOF
27781cat confdefs.h >>conftest.$ac_ext
27782cat >>conftest.$ac_ext <<_ACEOF
27783/* end confdefs.h. */
27784
27785#include <sys/types.h>
27786#include <utmp.h>
27787#ifdef HAVE_PATHS_H
27788# include <paths.h>
27789#endif
27790
27791int
27792main ()
27793{
27794 char *utmp = UTMP_FILE;
27795 ;
27796 return 0;
27797}
27798_ACEOF
27799rm -f conftest.$ac_objext
27800if { (ac_try="$ac_compile"
27801case "(($ac_try" in
27802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803 *) ac_try_echo=$ac_try;;
27804esac
27805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27806 (eval "$ac_compile") 2>conftest.er1
27807 ac_status=$?
27808 grep -v '^ *+' conftest.er1 >conftest.err
27809 rm -f conftest.er1
27810 cat conftest.err >&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } && {
27813 test -z "$ac_c_werror_flag" ||
27814 test ! -s conftest.err
27815 } && test -s conftest.$ac_objext; then
27816 { echo "$as_me:$LINENO: result: yes" >&5
27817echo "${ECHO_T}yes" >&6; }
27818else
27819 echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
27822 { echo "$as_me:$LINENO: result: no" >&5
27823echo "${ECHO_T}no" >&6; }
27824 system_utmp_path=no
27825
27826fi
27827
27828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27829if test -z "$conf_utmp_location"; then
27830 if test x"$system_utmp_path" = x"no" ; then
27831 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
27832 if test -f $f ; then
27833 conf_utmp_location=$f
27834 fi
27835 done
27836 if test -z "$conf_utmp_location"; then
27837 cat >>confdefs.h <<\_ACEOF
27838#define DISABLE_UTMP 1
27839_ACEOF
27840
27841 fi
27842 fi
27843fi
27844if test -n "$conf_utmp_location"; then
27845
27846cat >>confdefs.h <<_ACEOF
27847#define CONF_UTMP_FILE "$conf_utmp_location"
27848_ACEOF
27849
27850fi
27851
27852{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
27853echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
27854cat >conftest.$ac_ext <<_ACEOF
27855/* confdefs.h. */
27856_ACEOF
27857cat confdefs.h >>conftest.$ac_ext
27858cat >>conftest.$ac_ext <<_ACEOF
27859/* end confdefs.h. */
27860
27861#include <sys/types.h>
27862#include <utmp.h>
27863#ifdef HAVE_PATHS_H
27864# include <paths.h>
27865#endif
27866
27867int
27868main ()
27869{
27870 char *wtmp = WTMP_FILE;
27871 ;
27872 return 0;
27873}
27874_ACEOF
27875rm -f conftest.$ac_objext
27876if { (ac_try="$ac_compile"
27877case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27880esac
27881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_compile") 2>conftest.er1
27883 ac_status=$?
27884 grep -v '^ *+' conftest.er1 >conftest.err
27885 rm -f conftest.er1
27886 cat conftest.err >&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); } && {
27889 test -z "$ac_c_werror_flag" ||
27890 test ! -s conftest.err
27891 } && test -s conftest.$ac_objext; then
27892 { echo "$as_me:$LINENO: result: yes" >&5
27893echo "${ECHO_T}yes" >&6; }
27894else
27895 echo "$as_me: failed program was:" >&5
27896sed 's/^/| /' conftest.$ac_ext >&5
27897
27898 { echo "$as_me:$LINENO: result: no" >&5
27899echo "${ECHO_T}no" >&6; }
27900 system_wtmp_path=no
27901
27902fi
27903
27904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27905if test -z "$conf_wtmp_location"; then
27906 if test x"$system_wtmp_path" = x"no" ; then
27907 for f in /usr/adm/wtmp /var/log/wtmp; do
27908 if test -f $f ; then
27909 conf_wtmp_location=$f
27910 fi
27911 done
27912 if test -z "$conf_wtmp_location"; then
27913 cat >>confdefs.h <<\_ACEOF
27914#define DISABLE_WTMP 1
27915_ACEOF
27916
27917 fi
27918 fi
27919fi
27920if test -n "$conf_wtmp_location"; then
27921
27922cat >>confdefs.h <<_ACEOF
27923#define CONF_WTMP_FILE "$conf_wtmp_location"
27924_ACEOF
27925
27926fi
27927
27928
27929{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
27930echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
27931cat >conftest.$ac_ext <<_ACEOF
27932/* confdefs.h. */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h. */
27937
27938#include <sys/types.h>
27939#include <utmp.h>
27940#ifdef HAVE_UTMPX_H
27941#include <utmpx.h>
27942#endif
27943#ifdef HAVE_PATHS_H
27944# include <paths.h>
27945#endif
27946
27947int
27948main ()
27949{
27950 char *utmpx = UTMPX_FILE;
27951 ;
27952 return 0;
27953}
27954_ACEOF
27955rm -f conftest.$ac_objext
27956if { (ac_try="$ac_compile"
27957case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27960esac
27961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_compile") 2>conftest.er1
27963 ac_status=$?
27964 grep -v '^ *+' conftest.er1 >conftest.err
27965 rm -f conftest.er1
27966 cat conftest.err >&5
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); } && {
27969 test -z "$ac_c_werror_flag" ||
27970 test ! -s conftest.err
27971 } && test -s conftest.$ac_objext; then
27972 { echo "$as_me:$LINENO: result: yes" >&5
27973echo "${ECHO_T}yes" >&6; }
27974else
27975 echo "$as_me: failed program was:" >&5
27976sed 's/^/| /' conftest.$ac_ext >&5
27977
27978 { echo "$as_me:$LINENO: result: no" >&5
27979echo "${ECHO_T}no" >&6; }
27980 system_utmpx_path=no
27981
27982fi
27983
27984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27985if test -z "$conf_utmpx_location"; then
27986 if test x"$system_utmpx_path" = x"no" ; then
27987 cat >>confdefs.h <<\_ACEOF
27988#define DISABLE_UTMPX 1
27989_ACEOF
27990
27991 fi
27992else
27993
27994cat >>confdefs.h <<_ACEOF
27995#define CONF_UTMPX_FILE "$conf_utmpx_location"
27996_ACEOF
27997
27998fi
27999
28000{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
28001echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
28002cat >conftest.$ac_ext <<_ACEOF
28003/* confdefs.h. */
28004_ACEOF
28005cat confdefs.h >>conftest.$ac_ext
28006cat >>conftest.$ac_ext <<_ACEOF
28007/* end confdefs.h. */
28008
28009#include <sys/types.h>
28010#include <utmp.h>
28011#ifdef HAVE_UTMPX_H
28012#include <utmpx.h>
28013#endif
28014#ifdef HAVE_PATHS_H
28015# include <paths.h>
28016#endif
28017
28018int
28019main ()
28020{
28021 char *wtmpx = WTMPX_FILE;
28022 ;
28023 return 0;
28024}
28025_ACEOF
28026rm -f conftest.$ac_objext
28027if { (ac_try="$ac_compile"
28028case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031esac
28032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_compile") 2>conftest.er1
28034 ac_status=$?
28035 grep -v '^ *+' conftest.er1 >conftest.err
28036 rm -f conftest.er1
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } && {
28040 test -z "$ac_c_werror_flag" ||
28041 test ! -s conftest.err
28042 } && test -s conftest.$ac_objext; then
28043 { echo "$as_me:$LINENO: result: yes" >&5
28044echo "${ECHO_T}yes" >&6; }
28045else
28046 echo "$as_me: failed program was:" >&5
28047sed 's/^/| /' conftest.$ac_ext >&5
28048
28049 { echo "$as_me:$LINENO: result: no" >&5
28050echo "${ECHO_T}no" >&6; }
28051 system_wtmpx_path=no
28052
28053fi
28054
28055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28056if test -z "$conf_wtmpx_location"; then
28057 if test x"$system_wtmpx_path" = x"no" ; then
28058 cat >>confdefs.h <<\_ACEOF
28059#define DISABLE_WTMPX 1
28060_ACEOF
28061
28062 fi
28063else
28064
28065cat >>confdefs.h <<_ACEOF
28066#define CONF_WTMPX_FILE "$conf_wtmpx_location"
28067_ACEOF
28068
28069fi
28070
28071
28072if test ! -z "$blibpath" ; then
28073 LDFLAGS="$LDFLAGS $blibflags$blibpath"
28074 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
28075echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
28076fi
28077
28078CFLAGS="$CFLAGS $werror_flags"
28079
28080
28081ac_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"
28082
28083cat >confcache <<\_ACEOF
28084# This file is a shell script that caches the results of configure
28085# tests run on this system so they can be shared between configure
28086# scripts and configure runs, see configure's option --config-cache.
28087# It is not useful on other systems. If it contains results you don't
28088# want to keep, you may remove or edit it.
28089#
28090# config.status only pays attention to the cache file if you give it
28091# the --recheck option to rerun configure.
28092#
28093# `ac_cv_env_foo' variables (set or unset) will be overridden when
28094# loading this file, other *unset* `ac_cv_foo' will be assigned the
28095# following values.
28096
28097_ACEOF
28098
28099# The following way of writing the cache mishandles newlines in values,
28100# but we know of no workaround that is simple, portable, and efficient.
28101# So, we kill variables containing newlines.
28102# Ultrix sh set writes to stderr and can't be redirected directly,
28103# and sets the high bit in the cache file unless we assign to the vars.
28104(
28105 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28106 eval ac_val=\$$ac_var
28107 case $ac_val in #(
28108 *${as_nl}*)
28109 case $ac_var in #(
28110 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28111echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28112 esac
28113 case $ac_var in #(
28114 _ | IFS | as_nl) ;; #(
28115 *) $as_unset $ac_var ;;
28116 esac ;;
28117 esac
28118 done
28119
28120 (set) 2>&1 |
28121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28122 *${as_nl}ac_space=\ *)
28123 # `set' does not quote correctly, so add quotes (double-quote
28124 # substitution turns \\\\ into \\, and sed turns \\ into \).
28125 sed -n \
28126 "s/'/'\\\\''/g;
28127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28128 ;; #(
28129 *)
28130 # `set' quotes correctly as required by POSIX, so do not add quotes.
28131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28132 ;;
28133 esac |
28134 sort
28135) |
28136 sed '
28137 /^ac_cv_env_/b end
28138 t clear
28139 :clear
28140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28141 t end
28142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28143 :end' >>confcache
28144if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28145 if test -w "$cache_file"; then
28146 test "x$cache_file" != "x/dev/null" &&
28147 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28148echo "$as_me: updating cache $cache_file" >&6;}
28149 cat confcache >$cache_file
28150 else
28151 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28152echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28153 fi
28154fi
28155rm -f confcache
28156
28157test "x$prefix" = xNONE && prefix=$ac_default_prefix
28158# Let make expand exec_prefix.
28159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28160
28161DEFS=-DHAVE_CONFIG_H
28162
28163ac_libobjs=
28164ac_ltlibobjs=
28165for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28166 # 1. Remove the extension, and $U if already installed.
28167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28168 ac_i=`echo "$ac_i" | sed "$ac_script"`
28169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28170 # will be set to the directory where LIBOBJS objects are built.
28171 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28172 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28173done
28174LIBOBJS=$ac_libobjs
28175
28176LTLIBOBJS=$ac_ltlibobjs
28177
28178
28179
28180: ${CONFIG_STATUS=./config.status}
28181ac_clean_files_save=$ac_clean_files
28182ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28183{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28184echo "$as_me: creating $CONFIG_STATUS" >&6;}
28185cat >$CONFIG_STATUS <<_ACEOF
28186#! $SHELL
28187# Generated by $as_me.
28188# Run this file to recreate the current configuration.
28189# Compiler output produced by configure, useful for debugging
28190# configure, is in config.log if it exists.
28191
28192debug=false
28193ac_cs_recheck=false
28194ac_cs_silent=false
28195SHELL=\${CONFIG_SHELL-$SHELL}
28196_ACEOF
28197
28198cat >>$CONFIG_STATUS <<\_ACEOF
28199## --------------------- ##
28200## M4sh Initialization. ##
28201## --------------------- ##
28202
28203# Be more Bourne compatible
28204DUALCASE=1; export DUALCASE # for MKS sh
28205if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28206 emulate sh
28207 NULLCMD=:
28208 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28209 # is contrary to our usage. Disable this feature.
28210 alias -g '${1+"$@"}'='"$@"'
28211 setopt NO_GLOB_SUBST
28212else
28213 case `(set -o) 2>/dev/null` in
28214 *posix*) set -o posix ;;
28215esac
28216
28217fi
28218
28219
28220
28221
28222# PATH needs CR
28223# Avoid depending upon Character Ranges.
28224as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28225as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28226as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28227as_cr_digits='0123456789'
28228as_cr_alnum=$as_cr_Letters$as_cr_digits
28229
28230# The user is always right.
28231if test "${PATH_SEPARATOR+set}" != set; then
28232 echo "#! /bin/sh" >conf$$.sh
28233 echo "exit 0" >>conf$$.sh
28234 chmod +x conf$$.sh
28235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28236 PATH_SEPARATOR=';'
28237 else
28238 PATH_SEPARATOR=:
28239 fi
28240 rm -f conf$$.sh
28241fi
28242
28243# Support unset when possible.
28244if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28245 as_unset=unset
28246else
28247 as_unset=false
28248fi
28249
28250
28251# IFS
28252# We need space, tab and new line, in precisely that order. Quoting is
28253# there to prevent editors from complaining about space-tab.
28254# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28255# splitting by setting IFS to empty value.)
28256as_nl='
28257'
28258IFS=" "" $as_nl"
28259
28260# Find who we are. Look in the path if we contain no directory separator.
28261case $0 in
28262 *[\\/]* ) as_myself=$0 ;;
28263 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28264for as_dir in $PATH
28265do
28266 IFS=$as_save_IFS
28267 test -z "$as_dir" && as_dir=.
28268 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28269done
28270IFS=$as_save_IFS
28271
28272 ;;
28273esac
28274# We did not find ourselves, most probably we were run as `sh COMMAND'
28275# in which case we are not to be found in the path.
28276if test "x$as_myself" = x; then
28277 as_myself=$0
28278fi
28279if test ! -f "$as_myself"; then
28280 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28281 { (exit 1); exit 1; }
28282fi
28283
28284# Work around bugs in pre-3.0 UWIN ksh.
28285for as_var in ENV MAIL MAILPATH
28286do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28287done
28288PS1='$ '
28289PS2='> '
28290PS4='+ '
28291
28292# NLS nuisances.
28293for as_var in \
28294 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28295 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28296 LC_TELEPHONE LC_TIME
28297do
28298 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28299 eval $as_var=C; export $as_var
28300 else
28301 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28302 fi
28303done
28304
28305# Required to use basename.
28306if expr a : '\(a\)' >/dev/null 2>&1 &&
28307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28308 as_expr=expr
28309else
28310 as_expr=false
28311fi
28312
28313if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28314 as_basename=basename
28315else
28316 as_basename=false
28317fi
28318
28319
28320# Name of the executable.
28321as_me=`$as_basename -- "$0" ||
28322$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28323 X"$0" : 'X\(//\)$' \| \
28324 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28325echo X/"$0" |
28326 sed '/^.*\/\([^/][^/]*\)\/*$/{
28327 s//\1/
28328 q
28329 }
28330 /^X\/\(\/\/\)$/{
28331 s//\1/
28332 q
28333 }
28334 /^X\/\(\/\).*/{
28335 s//\1/
28336 q
28337 }
28338 s/.*/./; q'`
28339
28340# CDPATH.
28341$as_unset CDPATH
28342
28343
28344
28345 as_lineno_1=$LINENO
28346 as_lineno_2=$LINENO
28347 test "x$as_lineno_1" != "x$as_lineno_2" &&
28348 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28349
28350 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28351 # uniformly replaced by the line number. The first 'sed' inserts a
28352 # line-number line after each line using $LINENO; the second 'sed'
28353 # does the real work. The second script uses 'N' to pair each
28354 # line-number line with the line containing $LINENO, and appends
28355 # trailing '-' during substitution so that $LINENO is not a special
28356 # case at line end.
28357 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28358 # scripts with optimization help from Paolo Bonzini. Blame Lee
28359 # E. McMahon (1931-1989) for sed's syntax. :-)
28360 sed -n '
28361 p
28362 /[$]LINENO/=
28363 ' <$as_myself |
28364 sed '
28365 s/[$]LINENO.*/&-/
28366 t lineno
28367 b
28368 :lineno
28369 N
28370 :loop
28371 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28372 t loop
28373 s/-\n.*//
28374 ' >$as_me.lineno &&
28375 chmod +x "$as_me.lineno" ||
28376 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28377 { (exit 1); exit 1; }; }
28378
28379 # Don't try to exec as it changes $[0], causing all sort of problems
28380 # (the dirname of $[0] is not the place where we might find the
28381 # original and so on. Autoconf is especially sensitive to this).
28382 . "./$as_me.lineno"
28383 # Exit status is that of the last command.
28384 exit
28385}
28386
28387
28388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28389 as_dirname=dirname
28390else
28391 as_dirname=false
28392fi
28393
28394ECHO_C= ECHO_N= ECHO_T=
28395case `echo -n x` in
28396-n*)
28397 case `echo 'x\c'` in
28398 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28399 *) ECHO_C='\c';;
28400 esac;;
28401*)
28402 ECHO_N='-n';;
28403esac
28404
28405if expr a : '\(a\)' >/dev/null 2>&1 &&
28406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28407 as_expr=expr
28408else
28409 as_expr=false
28410fi
28411
28412rm -f conf$$ conf$$.exe conf$$.file
28413if test -d conf$$.dir; then
28414 rm -f conf$$.dir/conf$$.file
28415else
28416 rm -f conf$$.dir
28417 mkdir conf$$.dir
28418fi
28419echo >conf$$.file
28420if ln -s conf$$.file conf$$ 2>/dev/null; then
28421 as_ln_s='ln -s'
28422 # ... but there are two gotchas:
28423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28425 # In both cases, we have to default to `cp -p'.
28426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28427 as_ln_s='cp -p'
28428elif ln conf$$.file conf$$ 2>/dev/null; then
28429 as_ln_s=ln
28430else
28431 as_ln_s='cp -p'
28432fi
28433rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28434rmdir conf$$.dir 2>/dev/null
28435
28436if mkdir -p . 2>/dev/null; then
28437 as_mkdir_p=:
28438else
28439 test -d ./-p && rmdir ./-p
28440 as_mkdir_p=false
28441fi
28442
28443if test -x / >/dev/null 2>&1; then
28444 as_test_x='test -x'
28445else
28446 if ls -dL / >/dev/null 2>&1; then
28447 as_ls_L_option=L
28448 else
28449 as_ls_L_option=
28450 fi
28451 as_test_x='
28452 eval sh -c '\''
28453 if test -d "$1"; then
28454 test -d "$1/.";
28455 else
28456 case $1 in
28457 -*)set "./$1";;
28458 esac;
28459 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28460 ???[sx]*):;;*)false;;esac;fi
28461 '\'' sh
28462 '
28463fi
28464as_executable_p=$as_test_x
28465
28466# Sed expression to map a string onto a valid CPP name.
28467as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28468
28469# Sed expression to map a string onto a valid variable name.
28470as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28471
28472
28473exec 6>&1
28474
28475# Save the log message, to keep $[0] and so on meaningful, and to
28476# report actual input values of CONFIG_FILES etc. instead of their
28477# values after options handling.
28478ac_log="
28479This file was extended by OpenSSH $as_me Portable, which was
28480generated by GNU Autoconf 2.61. Invocation command line was
28481
28482 CONFIG_FILES = $CONFIG_FILES
28483 CONFIG_HEADERS = $CONFIG_HEADERS
28484 CONFIG_LINKS = $CONFIG_LINKS
28485 CONFIG_COMMANDS = $CONFIG_COMMANDS
28486 $ $0 $@
28487
28488on `(hostname || uname -n) 2>/dev/null | sed 1q`
28489"
28490
28491_ACEOF
28492
28493cat >>$CONFIG_STATUS <<_ACEOF
28494# Files that config.status was made for.
28495config_files="$ac_config_files"
28496config_headers="$ac_config_headers"
28497
28498_ACEOF
28499
28500cat >>$CONFIG_STATUS <<\_ACEOF
28501ac_cs_usage="\
28502\`$as_me' instantiates files from templates according to the
28503current configuration.
28504
28505Usage: $0 [OPTIONS] [FILE]...
28506
28507 -h, --help print this help, then exit
28508 -V, --version print version number and configuration settings, then exit
28509 -q, --quiet do not print progress messages
28510 -d, --debug don't remove temporary files
28511 --recheck update $as_me by reconfiguring in the same conditions
28512 --file=FILE[:TEMPLATE]
28513 instantiate the configuration file FILE
28514 --header=FILE[:TEMPLATE]
28515 instantiate the configuration header FILE
28516
28517Configuration files:
28518$config_files
28519
28520Configuration headers:
28521$config_headers
28522
28523Report bugs to <bug-autoconf@gnu.org>."
28524
28525_ACEOF
28526cat >>$CONFIG_STATUS <<_ACEOF
28527ac_cs_version="\\
28528OpenSSH config.status Portable
28529configured by $0, generated by GNU Autoconf 2.61,
28530 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28531
28532Copyright (C) 2006 Free Software Foundation, Inc.
28533This config.status script is free software; the Free Software Foundation
28534gives unlimited permission to copy, distribute and modify it."
28535
28536ac_pwd='$ac_pwd'
28537srcdir='$srcdir'
28538INSTALL='$INSTALL'
28539_ACEOF
28540
28541cat >>$CONFIG_STATUS <<\_ACEOF
28542# If no file are specified by the user, then we need to provide default
28543# value. By we need to know if files were specified by the user.
28544ac_need_defaults=:
28545while test $# != 0
28546do
28547 case $1 in
28548 --*=*)
28549 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28550 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28551 ac_shift=:
28552 ;;
28553 *)
28554 ac_option=$1
28555 ac_optarg=$2
28556 ac_shift=shift
28557 ;;
28558 esac
28559
28560 case $ac_option in
28561 # Handling of the options.
28562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28563 ac_cs_recheck=: ;;
28564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28565 echo "$ac_cs_version"; exit ;;
28566 --debug | --debu | --deb | --de | --d | -d )
28567 debug=: ;;
28568 --file | --fil | --fi | --f )
28569 $ac_shift
28570 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28571 ac_need_defaults=false;;
28572 --header | --heade | --head | --hea )
28573 $ac_shift
28574 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28575 ac_need_defaults=false;;
28576 --he | --h)
28577 # Conflict between --help and --header
28578 { echo "$as_me: error: ambiguous option: $1
28579Try \`$0 --help' for more information." >&2
28580 { (exit 1); exit 1; }; };;
28581 --help | --hel | -h )
28582 echo "$ac_cs_usage"; exit ;;
28583 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28584 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28585 ac_cs_silent=: ;;
28586
28587 # This is an error.
28588 -*) { echo "$as_me: error: unrecognized option: $1
28589Try \`$0 --help' for more information." >&2
28590 { (exit 1); exit 1; }; } ;;
28591
28592 *) ac_config_targets="$ac_config_targets $1"
28593 ac_need_defaults=false ;;
28594
28595 esac
28596 shift
28597done
28598
28599ac_configure_extra_args=
28600
28601if $ac_cs_silent; then
28602 exec 6>/dev/null
28603 ac_configure_extra_args="$ac_configure_extra_args --silent"
28604fi
28605
28606_ACEOF
28607cat >>$CONFIG_STATUS <<_ACEOF
28608if \$ac_cs_recheck; then
28609 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28610 CONFIG_SHELL=$SHELL
28611 export CONFIG_SHELL
28612 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28613fi
28614
28615_ACEOF
28616cat >>$CONFIG_STATUS <<\_ACEOF
28617exec 5>>config.log
28618{
28619 echo
28620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28621## Running $as_me. ##
28622_ASBOX
28623 echo "$ac_log"
28624} >&5
28625
28626_ACEOF
28627cat >>$CONFIG_STATUS <<_ACEOF
28628_ACEOF
28629
28630cat >>$CONFIG_STATUS <<\_ACEOF
28631
28632# Handling of arguments.
28633for ac_config_target in $ac_config_targets
28634do
28635 case $ac_config_target in
28636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28638 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
28639 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
28640 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
28641 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
28642 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
28643 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
28644 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
28645 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
28646
28647 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28648echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28649 { (exit 1); exit 1; }; };;
28650 esac
28651done
28652
28653
28654# If the user did not use the arguments to specify the items to instantiate,
28655# then the envvar interface is used. Set only those that are not.
28656# We use the long form for the default assignment because of an extremely
28657# bizarre bug on SunOS 4.1.3.
28658if $ac_need_defaults; then
28659 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28660 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28661fi
28662
28663# Have a temporary directory for convenience. Make it in the build tree
28664# simply because there is no reason against having it here, and in addition,
28665# creating and moving files from /tmp can sometimes cause problems.
28666# Hook for its removal unless debugging.
28667# Note that there is a small window in which the directory will not be cleaned:
28668# after its creation but before its name has been assigned to `$tmp'.
28669$debug ||
28670{
28671 tmp=
28672 trap 'exit_status=$?
28673 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28674' 0
28675 trap '{ (exit 1); exit 1; }' 1 2 13 15
28676}
28677# Create a (secure) tmp directory for tmp files.
28678
28679{
28680 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28681 test -n "$tmp" && test -d "$tmp"
28682} ||
28683{
28684 tmp=./conf$$-$RANDOM
28685 (umask 077 && mkdir "$tmp")
28686} ||
28687{
28688 echo "$me: cannot create a temporary directory in ." >&2
28689 { (exit 1); exit 1; }
28690}
28691
28692#
28693# Set up the sed scripts for CONFIG_FILES section.
28694#
28695
28696# No need to generate the scripts if there are no CONFIG_FILES.
28697# This happens for instance when ./config.status config.h
28698if test -n "$CONFIG_FILES"; then
28699
28700_ACEOF
28701
28702
28703
28704ac_delim='%!_!# '
28705for ac_last_try in false false false false false :; do
28706 cat >conf$$subs.sed <<_ACEOF
28707SHELL!$SHELL$ac_delim
28708PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28709PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28710PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28711PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28712PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28713PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28714exec_prefix!$exec_prefix$ac_delim
28715prefix!$prefix$ac_delim
28716program_transform_name!$program_transform_name$ac_delim
28717bindir!$bindir$ac_delim
28718sbindir!$sbindir$ac_delim
28719libexecdir!$libexecdir$ac_delim
28720datarootdir!$datarootdir$ac_delim
28721datadir!$datadir$ac_delim
28722sysconfdir!$sysconfdir$ac_delim
28723sharedstatedir!$sharedstatedir$ac_delim
28724localstatedir!$localstatedir$ac_delim
28725includedir!$includedir$ac_delim
28726oldincludedir!$oldincludedir$ac_delim
28727docdir!$docdir$ac_delim
28728infodir!$infodir$ac_delim
28729htmldir!$htmldir$ac_delim
28730dvidir!$dvidir$ac_delim
28731pdfdir!$pdfdir$ac_delim
28732psdir!$psdir$ac_delim
28733libdir!$libdir$ac_delim
28734localedir!$localedir$ac_delim
28735mandir!$mandir$ac_delim
28736DEFS!$DEFS$ac_delim
28737ECHO_C!$ECHO_C$ac_delim
28738ECHO_N!$ECHO_N$ac_delim
28739ECHO_T!$ECHO_T$ac_delim
28740LIBS!$LIBS$ac_delim
28741build_alias!$build_alias$ac_delim
28742host_alias!$host_alias$ac_delim
28743target_alias!$target_alias$ac_delim
28744CC!$CC$ac_delim
28745CFLAGS!$CFLAGS$ac_delim
28746LDFLAGS!$LDFLAGS$ac_delim
28747CPPFLAGS!$CPPFLAGS$ac_delim
28748ac_ct_CC!$ac_ct_CC$ac_delim
28749EXEEXT!$EXEEXT$ac_delim
28750OBJEXT!$OBJEXT$ac_delim
28751build!$build$ac_delim
28752build_cpu!$build_cpu$ac_delim
28753build_vendor!$build_vendor$ac_delim
28754build_os!$build_os$ac_delim
28755host!$host$ac_delim
28756host_cpu!$host_cpu$ac_delim
28757host_vendor!$host_vendor$ac_delim
28758host_os!$host_os$ac_delim
28759CPP!$CPP$ac_delim
28760GREP!$GREP$ac_delim
28761EGREP!$EGREP$ac_delim
28762AWK!$AWK$ac_delim
28763RANLIB!$RANLIB$ac_delim
28764INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28765INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28766INSTALL_DATA!$INSTALL_DATA$ac_delim
28767AR!$AR$ac_delim
28768CAT!$CAT$ac_delim
28769KILL!$KILL$ac_delim
28770PERL!$PERL$ac_delim
28771SED!$SED$ac_delim
28772ENT!$ENT$ac_delim
28773TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
28774SH!$SH$ac_delim
28775TEST_SHELL!$TEST_SHELL$ac_delim
28776PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
28777PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
28778MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
28779STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
28780LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
28781PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
28782LD!$LD$ac_delim
28783SSHDLIBS!$SSHDLIBS$ac_delim
28784LIBWRAP!$LIBWRAP$ac_delim
28785LIBEDIT!$LIBEDIT$ac_delim
28786LIBPAM!$LIBPAM$ac_delim
28787INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
28788SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
28789PROG_LS!$PROG_LS$ac_delim
28790PROG_NETSTAT!$PROG_NETSTAT$ac_delim
28791PROG_ARP!$PROG_ARP$ac_delim
28792PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
28793PROG_JSTAT!$PROG_JSTAT$ac_delim
28794PROG_PS!$PROG_PS$ac_delim
28795PROG_SAR!$PROG_SAR$ac_delim
28796PROG_W!$PROG_W$ac_delim
28797PROG_WHO!$PROG_WHO$ac_delim
28798PROG_LAST!$PROG_LAST$ac_delim
28799PROG_LASTLOG!$PROG_LASTLOG$ac_delim
28800PROG_DF!$PROG_DF$ac_delim
28801PROG_VMSTAT!$PROG_VMSTAT$ac_delim
28802PROG_UPTIME!$PROG_UPTIME$ac_delim
28803PROG_IPCS!$PROG_IPCS$ac_delim
28804_ACEOF
28805
28806 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28807 break
28808 elif $ac_last_try; then
28809 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28810echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28811 { (exit 1); exit 1; }; }
28812 else
28813 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28814 fi
28815done
28816
28817ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28818if test -n "$ac_eof"; then
28819 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28820 ac_eof=`expr $ac_eof + 1`
28821fi
28822
28823cat >>$CONFIG_STATUS <<_ACEOF
28824cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28825/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28826_ACEOF
28827sed '
28828s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28829s/^/s,@/; s/!/@,|#_!!_#|/
28830:n
28831t n
28832s/'"$ac_delim"'$/,g/; t
28833s/$/\\/; p
28834N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28835' >>$CONFIG_STATUS <conf$$subs.sed
28836rm -f conf$$subs.sed
28837cat >>$CONFIG_STATUS <<_ACEOF
28838CEOF$ac_eof
28839_ACEOF
28840
28841
28842ac_delim='%!_!# '
28843for ac_last_try in false false false false false :; do
28844 cat >conf$$subs.sed <<_ACEOF
28845PROG_TAIL!$PROG_TAIL$ac_delim
28846INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
28847OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
28848LIBSELINUX!$LIBSELINUX$ac_delim
28849PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
28850xauth_path!$xauth_path$ac_delim
28851STRIP_OPT!$STRIP_OPT$ac_delim
28852XAUTH_PATH!$XAUTH_PATH$ac_delim
28853NROFF!$NROFF$ac_delim
28854MANTYPE!$MANTYPE$ac_delim
28855mansubdir!$mansubdir$ac_delim
28856user_path!$user_path$ac_delim
28857piddir!$piddir$ac_delim
28858LIBOBJS!$LIBOBJS$ac_delim
28859LTLIBOBJS!$LTLIBOBJS$ac_delim
28860_ACEOF
28861
28862 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
28863 break
28864 elif $ac_last_try; then
28865 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28866echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28867 { (exit 1); exit 1; }; }
28868 else
28869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28870 fi
28871done
28872
28873ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28874if test -n "$ac_eof"; then
28875 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28876 ac_eof=`expr $ac_eof + 1`
28877fi
28878
28879cat >>$CONFIG_STATUS <<_ACEOF
28880cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28881/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28882_ACEOF
28883sed '
28884s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28885s/^/s,@/; s/!/@,|#_!!_#|/
28886:n
28887t n
28888s/'"$ac_delim"'$/,g/; t
28889s/$/\\/; p
28890N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28891' >>$CONFIG_STATUS <conf$$subs.sed
28892rm -f conf$$subs.sed
28893cat >>$CONFIG_STATUS <<_ACEOF
28894:end
28895s/|#_!!_#|//g
28896CEOF$ac_eof
28897_ACEOF
28898
28899
28900# VPATH may cause trouble with some makes, so we remove $(srcdir),
28901# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28902# trailing colons and then remove the whole line if VPATH becomes empty
28903# (actually we leave an empty line to preserve line numbers).
28904if test "x$srcdir" = x.; then
28905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28906s/:*\$(srcdir):*/:/
28907s/:*\${srcdir}:*/:/
28908s/:*@srcdir@:*/:/
28909s/^\([^=]*=[ ]*\):*/\1/
28910s/:*$//
28911s/^[^=]*=[ ]*$//
28912}'
28913fi
28914
28915cat >>$CONFIG_STATUS <<\_ACEOF
28916fi # test -n "$CONFIG_FILES"
28917
28918
28919for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28920do
28921 case $ac_tag in
28922 :[FHLC]) ac_mode=$ac_tag; continue;;
28923 esac
28924 case $ac_mode$ac_tag in
28925 :[FHL]*:*);;
28926 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28927echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28928 { (exit 1); exit 1; }; };;
28929 :[FH]-) ac_tag=-:-;;
28930 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28931 esac
28932 ac_save_IFS=$IFS
28933 IFS=:
28934 set x $ac_tag
28935 IFS=$ac_save_IFS
28936 shift
28937 ac_file=$1
28938 shift
28939
28940 case $ac_mode in
28941 :L) ac_source=$1;;
28942 :[FH])
28943 ac_file_inputs=
28944 for ac_f
28945 do
28946 case $ac_f in
28947 -) ac_f="$tmp/stdin";;
28948 *) # Look for the file first in the build tree, then in the source tree
28949 # (if the path is not absolute). The absolute path cannot be DOS-style,
28950 # because $ac_f cannot contain `:'.
28951 test -f "$ac_f" ||
28952 case $ac_f in
28953 [\\/$]*) false;;
28954 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28955 esac ||
28956 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28957echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28958 { (exit 1); exit 1; }; };;
28959 esac
28960 ac_file_inputs="$ac_file_inputs $ac_f"
28961 done
28962
28963 # Let's still pretend it is `configure' which instantiates (i.e., don't
28964 # use $as_me), people would be surprised to read:
28965 # /* config.h. Generated by config.status. */
28966 configure_input="Generated from "`IFS=:
28967 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28968 if test x"$ac_file" != x-; then
28969 configure_input="$ac_file. $configure_input"
28970 { echo "$as_me:$LINENO: creating $ac_file" >&5
28971echo "$as_me: creating $ac_file" >&6;}
28972 fi
28973
28974 case $ac_tag in
28975 *:-:* | *:-) cat >"$tmp/stdin";;
28976 esac
28977 ;;
28978 esac
28979
28980 ac_dir=`$as_dirname -- "$ac_file" ||
28981$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28982 X"$ac_file" : 'X\(//\)[^/]' \| \
28983 X"$ac_file" : 'X\(//\)$' \| \
28984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28985echo X"$ac_file" |
28986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28987 s//\1/
28988 q
28989 }
28990 /^X\(\/\/\)[^/].*/{
28991 s//\1/
28992 q
28993 }
28994 /^X\(\/\/\)$/{
28995 s//\1/
28996 q
28997 }
28998 /^X\(\/\).*/{
28999 s//\1/
29000 q
29001 }
29002 s/.*/./; q'`
29003 { as_dir="$ac_dir"
29004 case $as_dir in #(
29005 -*) as_dir=./$as_dir;;
29006 esac
29007 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29008 as_dirs=
29009 while :; do
29010 case $as_dir in #(
29011 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29012 *) as_qdir=$as_dir;;
29013 esac
29014 as_dirs="'$as_qdir' $as_dirs"
29015 as_dir=`$as_dirname -- "$as_dir" ||
29016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29017 X"$as_dir" : 'X\(//\)[^/]' \| \
29018 X"$as_dir" : 'X\(//\)$' \| \
29019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29020echo X"$as_dir" |
29021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29022 s//\1/
29023 q
29024 }
29025 /^X\(\/\/\)[^/].*/{
29026 s//\1/
29027 q
29028 }
29029 /^X\(\/\/\)$/{
29030 s//\1/
29031 q
29032 }
29033 /^X\(\/\).*/{
29034 s//\1/
29035 q
29036 }
29037 s/.*/./; q'`
29038 test -d "$as_dir" && break
29039 done
29040 test -z "$as_dirs" || eval "mkdir $as_dirs"
29041 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29042echo "$as_me: error: cannot create directory $as_dir" >&2;}
29043 { (exit 1); exit 1; }; }; }
29044 ac_builddir=.
29045
29046case "$ac_dir" in
29047.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29048*)
29049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29050 # A ".." for each directory in $ac_dir_suffix.
29051 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29052 case $ac_top_builddir_sub in
29053 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29054 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29055 esac ;;
29056esac
29057ac_abs_top_builddir=$ac_pwd
29058ac_abs_builddir=$ac_pwd$ac_dir_suffix
29059# for backward compatibility:
29060ac_top_builddir=$ac_top_build_prefix
29061
29062case $srcdir in
29063 .) # We are building in place.
29064 ac_srcdir=.
29065 ac_top_srcdir=$ac_top_builddir_sub
29066 ac_abs_top_srcdir=$ac_pwd ;;
29067 [\\/]* | ?:[\\/]* ) # Absolute name.
29068 ac_srcdir=$srcdir$ac_dir_suffix;
29069 ac_top_srcdir=$srcdir
29070 ac_abs_top_srcdir=$srcdir ;;
29071 *) # Relative name.
29072 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29073 ac_top_srcdir=$ac_top_build_prefix$srcdir
29074 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29075esac
29076ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29077
29078
29079 case $ac_mode in
29080 :F)
29081 #
29082 # CONFIG_FILE
29083 #
29084
29085 case $INSTALL in
29086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29087 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29088 esac
29089_ACEOF
29090
29091cat >>$CONFIG_STATUS <<\_ACEOF
29092# If the template does not know about datarootdir, expand it.
29093# FIXME: This hack should be removed a few years after 2.60.
29094ac_datarootdir_hack=; ac_datarootdir_seen=
29095
29096case `sed -n '/datarootdir/ {
29097 p
29098 q
29099}
29100/@datadir@/p
29101/@docdir@/p
29102/@infodir@/p
29103/@localedir@/p
29104/@mandir@/p
29105' $ac_file_inputs` in
29106*datarootdir*) ac_datarootdir_seen=yes;;
29107*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29108 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29109echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29110_ACEOF
29111cat >>$CONFIG_STATUS <<_ACEOF
29112 ac_datarootdir_hack='
29113 s&@datadir@&$datadir&g
29114 s&@docdir@&$docdir&g
29115 s&@infodir@&$infodir&g
29116 s&@localedir@&$localedir&g
29117 s&@mandir@&$mandir&g
29118 s&\\\${datarootdir}&$datarootdir&g' ;;
29119esac
29120_ACEOF
29121
29122# Neutralize VPATH when `$srcdir' = `.'.
29123# Shell code in configure.ac might set extrasub.
29124# FIXME: do we really want to maintain this feature?
29125cat >>$CONFIG_STATUS <<_ACEOF
29126 sed "$ac_vpsub
29127$extrasub
29128_ACEOF
29129cat >>$CONFIG_STATUS <<\_ACEOF
29130:t
29131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29132s&@configure_input@&$configure_input&;t t
29133s&@top_builddir@&$ac_top_builddir_sub&;t t
29134s&@srcdir@&$ac_srcdir&;t t
29135s&@abs_srcdir@&$ac_abs_srcdir&;t t
29136s&@top_srcdir@&$ac_top_srcdir&;t t
29137s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29138s&@builddir@&$ac_builddir&;t t
29139s&@abs_builddir@&$ac_abs_builddir&;t t
29140s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29141s&@INSTALL@&$ac_INSTALL&;t t
29142$ac_datarootdir_hack
29143" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29144
29145test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29146 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29147 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29148 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29149which seems to be undefined. Please make sure it is defined." >&5
29150echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29151which seems to be undefined. Please make sure it is defined." >&2;}
29152
29153 rm -f "$tmp/stdin"
29154 case $ac_file in
29155 -) cat "$tmp/out"; rm -f "$tmp/out";;
29156 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29157 esac
29158 ;;
29159 :H)
29160 #
29161 # CONFIG_HEADER
29162 #
29163_ACEOF
29164
29165# Transform confdefs.h into a sed script `conftest.defines', that
29166# substitutes the proper values into config.h.in to produce config.h.
29167rm -f conftest.defines conftest.tail
29168# First, append a space to every undef/define line, to ease matching.
29169echo 's/$/ /' >conftest.defines
29170# Then, protect against being on the right side of a sed subst, or in
29171# an unquoted here document, in config.status. If some macros were
29172# called several times there might be several #defines for the same
29173# symbol, which is useless. But do not sort them, since the last
29174# AC_DEFINE must be honored.
29175ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29176# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29177# NAME is the cpp macro being defined, VALUE is the value it is being given.
29178# PARAMS is the parameter list in the macro definition--in most cases, it's
29179# just an empty string.
29180ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29181ac_dB='\\)[ (].*,\\1define\\2'
29182ac_dC=' '
29183ac_dD=' ,'
29184
29185uniq confdefs.h |
29186 sed -n '
29187 t rset
29188 :rset
29189 s/^[ ]*#[ ]*define[ ][ ]*//
29190 t ok
29191 d
29192 :ok
29193 s/[\\&,]/\\&/g
29194 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29195 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29196 ' >>conftest.defines
29197
29198# Remove the space that was appended to ease matching.
29199# Then replace #undef with comments. This is necessary, for
29200# example, in the case of _POSIX_SOURCE, which is predefined and required
29201# on some systems where configure will not decide to define it.
29202# (The regexp can be short, since the line contains either #define or #undef.)
29203echo 's/ $//
29204s,^[ #]*u.*,/* & */,' >>conftest.defines
29205
29206# Break up conftest.defines:
29207ac_max_sed_lines=50
29208
29209# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29210# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29211# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29212# et cetera.
29213ac_in='$ac_file_inputs'
29214ac_out='"$tmp/out1"'
29215ac_nxt='"$tmp/out2"'
29216
29217while :
29218do
29219 # Write a here document:
29220 cat >>$CONFIG_STATUS <<_ACEOF
29221 # First, check the format of the line:
29222 cat >"\$tmp/defines.sed" <<\\CEOF
29223/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29224/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29225b
29226:def
29227_ACEOF
29228 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29229 echo 'CEOF
29230 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29231 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29232 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29233 grep . conftest.tail >/dev/null || break
29234 rm -f conftest.defines
29235 mv conftest.tail conftest.defines
29236done
29237rm -f conftest.defines conftest.tail
29238
29239echo "ac_result=$ac_in" >>$CONFIG_STATUS
29240cat >>$CONFIG_STATUS <<\_ACEOF
29241 if test x"$ac_file" != x-; then
29242 echo "/* $configure_input */" >"$tmp/config.h"
29243 cat "$ac_result" >>"$tmp/config.h"
29244 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29245 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29246echo "$as_me: $ac_file is unchanged" >&6;}
29247 else
29248 rm -f $ac_file
29249 mv "$tmp/config.h" $ac_file
29250 fi
29251 else
29252 echo "/* $configure_input */"
29253 cat "$ac_result"
29254 fi
29255 rm -f "$tmp/out12"
29256 ;;
29257
29258
29259 esac
29260
29261done # for ac_tag
29262
29263
29264{ (exit 0); exit 0; }
29265_ACEOF
29266chmod +x $CONFIG_STATUS
29267ac_clean_files=$ac_clean_files_save
29268
29269
29270# configure is writing to config.log, and then calls config.status.
29271# config.status does its own redirection, appending to config.log.
29272# Unfortunately, on DOS this fails, as config.log is still kept open
29273# by configure, so config.status won't be able to write to it; its
29274# output is simply discarded. So we exec the FD to /dev/null,
29275# effectively closing config.log, so it can be properly (re)opened and
29276# appended to by config.status. When coming back to configure, we
29277# need to make the FD available again.
29278if test "$no_create" != yes; then
29279 ac_cs_success=:
29280 ac_config_status_args=
29281 test "$silent" = yes &&
29282 ac_config_status_args="$ac_config_status_args --quiet"
29283 exec 5>/dev/null
29284 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29285 exec 5>>config.log
29286 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29287 # would make configure fail if this is the last instruction.
29288 $ac_cs_success || { (exit 1); exit 1; }
29289fi
29290
29291
29292# Print summary of options
29293
29294# Someone please show me a better way :)
29295A=`eval echo ${prefix}` ; A=`eval echo ${A}`
29296B=`eval echo ${bindir}` ; B=`eval echo ${B}`
29297C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
29298D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
29299E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
29300F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
29301G=`eval echo ${piddir}` ; G=`eval echo ${G}`
29302H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
29303I=`eval echo ${user_path}` ; I=`eval echo ${I}`
29304J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
29305
29306echo ""
29307echo "OpenSSH has been configured with the following options:"
29308echo " User binaries: $B"
29309echo " System binaries: $C"
29310echo " Configuration files: $D"
29311echo " Askpass program: $E"
29312echo " Manual pages: $F"
29313echo " PID file: $G"
29314echo " Privilege separation chroot path: $H"
29315if test "x$external_path_file" = "x/etc/login.conf" ; then
29316echo " At runtime, sshd will use the path defined in $external_path_file"
29317echo " Make sure the path to scp is present, otherwise scp will not work"
29318else
29319echo " sshd default user PATH: $I"
29320 if test ! -z "$external_path_file"; then
29321echo " (If PATH is set in $external_path_file it will be used instead. If"
29322echo " used, ensure the path to scp is present, otherwise scp will not work.)"
29323 fi
29324fi
29325if test ! -z "$superuser_path" ; then
29326echo " sshd superuser user PATH: $J"
29327fi
29328echo " Manpage format: $MANTYPE"
29329echo " PAM support: $PAM_MSG"
29330echo " OSF SIA support: $SIA_MSG"
29331echo " KerberosV support: $KRB5_MSG"
29332echo " SELinux support: $SELINUX_MSG"
29333echo " Smartcard support: $SCARD_MSG"
29334echo " S/KEY support: $SKEY_MSG"
29335echo " TCP Wrappers support: $TCPW_MSG"
29336echo " MD5 password support: $MD5_MSG"
29337echo " libedit support: $LIBEDIT_MSG"
29338echo " Solaris process contract support: $SPC_MSG"
29339echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
29340echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
29341echo " BSD Auth support: $BSD_AUTH_MSG"
29342echo " Random number source: $RAND_MSG"
29343if test ! -z "$USE_RAND_HELPER" ; then
29344echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
29345fi
29346
29347echo ""
29348
29349echo " Host: ${host}"
29350echo " Compiler: ${CC}"
29351echo " Compiler flags: ${CFLAGS}"
29352echo "Preprocessor flags: ${CPPFLAGS}"
29353echo " Linker flags: ${LDFLAGS}"
29354echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
29355
29356echo ""
29357
29358if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
29359 echo "SVR4 style packages are supported with \"make package\""
29360 echo ""
29361fi
29362
29363if test "x$PAM_MSG" = "xyes" ; then
29364 echo "PAM is enabled. You may need to install a PAM control file "
29365 echo "for sshd, otherwise password authentication may fail. "
29366 echo "Example PAM control files can be found in the contrib/ "
29367 echo "subdirectory"
29368 echo ""
29369fi
29370
29371if test ! -z "$RAND_HELPER_CMDHASH" ; then
29372 echo "WARNING: you are using the builtin random number collection "
29373 echo "service. Please read WARNING.RNG and request that your OS "
29374 echo "vendor includes kernel-based random number collection in "
29375 echo "future versions of your OS."
29376 echo ""
29377fi
29378
29379if test ! -z "$NO_PEERCHECK" ; then
29380 echo "WARNING: the operating system that you are using does not "
29381 echo "appear to support either the getpeereid() API nor the "
29382 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
29383 echo "enforce security checks to prevent unauthorised connections to "
29384 echo "ssh-agent. Their absence increases the risk that a malicious "
29385 echo "user can connect to your agent. "
29386 echo ""
29387fi
29388
29389if test "$AUDIT_MODULE" = "bsm" ; then
29390 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
29391 echo "See the Solaris section in README.platform for details."
29392fi