summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36697
1 files changed, 36697 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..803c5bcde
--- /dev/null
+++ b/configure
@@ -0,0 +1,36697 @@
1#! /bin/sh
2# From configure.ac Revision: 1.583 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.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
680ac_ct_AR
681CAT
682KILL
683PERL
684SED
685ENT
686TEST_MINUS_S_SH
687SH
688GROFF
689NROFF
690MANDOC
691TEST_SHELL
692MANFMT
693PATH_GROUPADD_PROG
694PATH_USERADD_PROG
695MAKE_PACKAGE_SUPPORTED
696STARTUP_SCRIPT_SHELL
697LOGIN_PROGRAM_FALLBACK
698PATH_PASSWD_PROG
699LD
700PKGCONFIG
701LIBEDIT
702TEST_SSH_ECC
703COMMENT_OUT_ECC
704SSH_PRIVSEP_USER
705SSHLIBS
706SSHDLIBS
707KRB5CONF
708GSSLIBS
709K5LIBS
710PRIVSEP_PATH
711xauth_path
712STRIP_OPT
713XAUTH_PATH
714MANTYPE
715mansubdir
716user_path
717piddir
718TEST_SSH_IPV6
719TEST_MALLOC_OPTIONS
720UNSUPPORTED_ALGORITHMS
721LIBOBJS
722LTLIBOBJS'
723ac_subst_files=''
724 ac_precious_vars='build_alias
725host_alias
726target_alias
727CC
728CFLAGS
729LDFLAGS
730LIBS
731CPPFLAGS
732CPP'
733
734
735# Initialize some variables set by options.
736ac_init_help=
737ac_init_version=false
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\$ac_option
788 ac_prev=
789 continue
790 fi
791
792 case $ac_option in
793 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *) ac_optarg=yes ;;
795 esac
796
797 # Accept the important Cygnus configure options, so we can diagnose typos.
798
799 case $ac_dashdash$ac_option in
800 --)
801 ac_dashdash=yes ;;
802
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
807
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
812
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
819
820 --config-cache | -C)
821 cache_file=config.cache ;;
822
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
827
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
834
835 -disable-* | --disable-*)
836 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=no ;;
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
853
854 -enable-* | --enable-*)
855 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=\$ac_optarg ;;
862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
882
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
887
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
917
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
991
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1011
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1022
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1027
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1032
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1039
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1044
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1047
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1050
1051 -with-* | --with-*)
1052 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=\$ac_optarg ;;
1059
1060 -without-* | --without-*)
1061 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=no ;;
1068
1069 --x)
1070 # Obsolete; use --with-x.
1071 with_x=yes ;;
1072
1073 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074 | --x-incl | --x-inc | --x-in | --x-i)
1075 ac_prev=x_includes ;;
1076 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078 x_includes=$ac_optarg ;;
1079
1080 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082 ac_prev=x_libraries ;;
1083 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085 x_libraries=$ac_optarg ;;
1086
1087 -*) { echo "$as_me: error: unrecognized option: $ac_option
1088Try \`$0 --help' for more information." >&2
1089 { (exit 1); exit 1; }; }
1090 ;;
1091
1092 *=*)
1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097 { (exit 1); exit 1; }; }
1098 eval $ac_envvar=\$ac_optarg
1099 export $ac_envvar ;;
1100
1101 *)
1102 # FIXME: should be removed in autoconf 3.0.
1103 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107 ;;
1108
1109 esac
1110done
1111
1112if test -n "$ac_prev"; then
1113 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114 { echo "$as_me: error: missing argument to $ac_option" >&2
1115 { (exit 1); exit 1; }; }
1116fi
1117
1118# Be sure to have absolute directory names.
1119for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120 datadir sysconfdir sharedstatedir localstatedir includedir \
1121 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122 libdir localedir mandir
1123do
1124 eval ac_val=\$$ac_var
1125 case $ac_val in
1126 [\\/$]* | ?:[\\/]* ) continue;;
1127 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128 esac
1129 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130 { (exit 1); exit 1; }; }
1131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142 if test "x$build_alias" = x; then
1143 cross_compiling=maybe
1144 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145 If a cross compiler is detected then cross compile mode will be used." >&2
1146 elif test "x$build_alias" != "x$host_alias"; then
1147 cross_compiling=yes
1148 fi
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160 { echo "$as_me: error: Working directory cannot be determined" >&2
1161 { (exit 1); exit 1; }; }
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 { echo "$as_me: error: pwd does not report name of working directory" >&2
1164 { (exit 1); exit 1; }; }
1165
1166
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169 ac_srcdir_defaulted=yes
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir=`$as_dirname -- "$0" ||
1172$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173 X"$0" : 'X\(//\)[^/]' \| \
1174 X"$0" : 'X\(//\)$' \| \
1175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1176echo X"$0" |
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\/\)[^/].*/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\).*/{
1190 s//\1/
1191 q
1192 }
1193 s/.*/./; q'`
1194 srcdir=$ac_confdir
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 srcdir=..
1197 fi
1198else
1199 ac_srcdir_defaulted=no
1200fi
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204 { (exit 1); exit 1; }; }
1205fi
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_abs_confdir=`(
1208 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209 { (exit 1); exit 1; }; }
1210 pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1234 cat <<_ACEOF
1235\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE. See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254
1255Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
1257 [$ac_default_prefix]
1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1259 [PREFIX]
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
1288_ACEOF
1289
1290 cat <<\_ACEOF
1291
1292System types:
1293 --build=BUILD configure for building on BUILD [guessed]
1294 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1295_ACEOF
1296fi
1297
1298if test -n "$ac_init_help"; then
1299 case $ac_init_help in
1300 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1301 esac
1302 cat <<\_ACEOF
1303
1304Optional Features:
1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1307 --disable-largefile omit support for large files
1308 --disable-strip Disable calling strip(1) on install
1309 --disable-etc-default-login Disable using PATH from /etc/default/login no
1310 --disable-lastlog disable use of lastlog even if detected no
1311 --disable-utmp disable use of utmp even if detected no
1312 --disable-utmpx disable use of utmpx even if detected no
1313 --disable-wtmp disable use of wtmp even if detected no
1314 --disable-wtmpx disable use of wtmpx even if detected no
1315 --disable-libutil disable use of libutil (login() etc.) no
1316 --disable-pututline disable use of pututline() etc. (uwtmp) no
1317 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1318
1319Optional Packages:
1320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1322 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1323 --without-ssh1 Enable support for SSH protocol 1
1324 --without-stackprotect Don't use compiler's stack protection
1325 --without-hardening Don't use toolchain hardening flags
1326 --without-rpath Disable auto-added -R linker paths
1327 --with-cflags Specify additional flags to pass to compiler
1328 --with-cppflags Specify additional flags to pass to preprocessor
1329 --with-ldflags Specify additional flags to pass to linker
1330 --with-libs Specify additional libraries to link with
1331 --with-Werror Build main code with -Werror
1332 --with-solaris-contracts Enable Solaris process contracts (experimental)
1333 --with-solaris-projects Enable Solaris projects (experimental)
1334 --with-osfsia Enable Digital Unix SIA
1335 --with-zlib=PATH Use zlib in PATH
1336 --without-zlib-version-check Disable zlib version check
1337 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1338 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1339 --with-libedit[=PATH] Enable libedit support for sftp
1340 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1341 --with-pie Build Position Independent Executables if possible
1342 --with-ssl-dir=PATH Specify path to OpenSSL installation
1343 --without-openssl-header-check Disable OpenSSL version consistency check
1344 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1345 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1346 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1347 --with-pam Enable PAM support
1348 --with-privsep-user=user Specify non-privileged user for privilege separation
1349 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1350 --with-selinux Enable SELinux support
1351 --with-kerberos5=PATH Enable Kerberos 5 support
1352 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1353 --with-xauth=PATH Specify path to xauth program
1354 --with-maildir=/path/to/mail Specify your system mail directory
1355 --with-mantype=man|cat|doc Set man page type
1356 --with-md5-passwords Enable use of MD5 passwords
1357 --without-shadow Disable shadow password support
1358 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1359 --with-default-path= Specify default $PATH environment for server
1360 --with-superuser-path= Specify different path for super-user
1361 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1362 --with-bsd-auth Enable BSD auth support
1363 --with-pid-dir=PATH Specify location of ssh.pid file
1364 --with-lastlog=FILE|DIR specify lastlog location common locations
1365
1366Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CPP C preprocessor
1375
1376Use these variables to override the choices made by `configure' or to help
1377it to find libraries and programs with nonstandard names/locations.
1378
1379Report bugs to <openssh-unix-dev@mindrot.org>.
1380_ACEOF
1381ac_status=$?
1382fi
1383
1384if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" || continue
1388 ac_builddir=.
1389
1390case "$ac_dir" in
1391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392*)
1393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400esac
1401ac_abs_top_builddir=$ac_pwd
1402ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403# for backward compatibility:
1404ac_top_builddir=$ac_top_build_prefix
1405
1406case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419esac
1420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435fi
1436
1437test -n "$ac_init_help" && exit $ac_status
1438if $ac_init_version; then
1439 cat <<\_ACEOF
1440OpenSSH configure Portable
1441generated by GNU Autoconf 2.61
1442
1443Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445This configure script is free software; the Free Software Foundation
1446gives unlimited permission to copy, distribute and modify it.
1447_ACEOF
1448 exit
1449fi
1450cat >config.log <<_ACEOF
1451This file contains any messages produced by compilers while
1452running configure, to aid debugging if configure makes a mistake.
1453
1454It was created by OpenSSH $as_me Portable, which was
1455generated by GNU Autoconf 2.61. Invocation command line was
1456
1457 $ $0 $@
1458
1459_ACEOF
1460exec 5>>config.log
1461{
1462cat <<_ASUNAME
1463## --------- ##
1464## Platform. ##
1465## --------- ##
1466
1467hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1475
1476/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1483
1484_ASUNAME
1485
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 echo "PATH: $as_dir"
1492done
1493IFS=$as_save_IFS
1494
1495} >&5
1496
1497cat >&5 <<_ACEOF
1498
1499
1500## ----------- ##
1501## Core tests. ##
1502## ----------- ##
1503
1504_ACEOF
1505
1506
1507# Keep a trace of the command line.
1508# Strip out --no-create and --no-recursion so they do not pile up.
1509# Strip out --silent because we don't want to record it for future runs.
1510# Also quote any args containing shell meta-characters.
1511# Make two passes to allow for proper duplicate-argument suppression.
1512ac_configure_args=
1513ac_configure_args0=
1514ac_configure_args1=
1515ac_must_keep_next=false
1516for ac_pass in 1 2
1517do
1518 for ac_arg
1519 do
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530 2)
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1543 ;;
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1546 fi
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 ;;
1549 esac
1550 done
1551done
1552$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555# When interrupted or exit'd, cleanup temporary files, and complete
1556# config.log. We remove comments because anyway the quotes in there
1557# would cause problems or look ugly.
1558# WARNING: Use '\'' to represent an apostrophe within the trap.
1559# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1562 {
1563 echo
1564
1565 cat <<\_ASBOX
1566## ---------------- ##
1567## Cache variables. ##
1568## ---------------- ##
1569_ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1572(
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1584 esac ;;
1585 esac
1586 done
1587 (set) 2>&1 |
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1590 sed -n \
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 ;; #(
1594 *)
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ;;
1597 esac |
1598 sort
1599)
1600 echo
1601
1602 cat <<\_ASBOX
1603## ----------------- ##
1604## Output variables. ##
1605## ----------------- ##
1606_ASBOX
1607 echo
1608 for ac_var in $ac_subst_vars
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617
1618 if test -n "$ac_subst_files"; then
1619 cat <<\_ASBOX
1620## ------------------- ##
1621## File substitutions. ##
1622## ------------------- ##
1623_ASBOX
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 cat <<\_ASBOX
1638## ----------- ##
1639## confdefs.h. ##
1640## ----------- ##
1641_ASBOX
1642 echo
1643 cat confdefs.h
1644 echo
1645 fi
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1653' 0
1654for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656done
1657ac_signal=0
1658
1659# confdefs.h avoids OS command line length limits that DEFS can exceed.
1660rm -f -r conftest* confdefs.h
1661
1662# Predefined preprocessor variables.
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_NAME "$PACKAGE_NAME"
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_VERSION "$PACKAGE_VERSION"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_STRING "$PACKAGE_STRING"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686_ACEOF
1687
1688
1689# Let the site file select an alternate cache file if it wants to.
1690# Prefer explicitly selected file to automatically selected ones.
1691if test -n "$CONFIG_SITE"; then
1692 set x "$CONFIG_SITE"
1693elif test "x$prefix" != xNONE; then
1694 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695else
1696 set x "$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1698fi
1699shift
1700for ac_site_file
1701do
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1706 . "$ac_site_file"
1707 fi
1708done
1709
1710if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715echo "$as_me: loading cache $cache_file" >&6;}
1716 case $cache_file in
1717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718 *) . "./$cache_file";;
1719 esac
1720 fi
1721else
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723echo "$as_me: creating cache $cache_file" >&6;}
1724 >$cache_file
1725fi
1726
1727# Check that the precious variables saved in the cache have kept the same
1728# value.
1729ac_cache_corrupted=false
1730for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1736 set,)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,set)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,);;
1745 *)
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1750echo "$as_me: former value: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1752echo "$as_me: current value: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1754 fi;;
1755 esac
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1758 case $ac_new_val in
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1761 esac
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765 esac
1766 fi
1767done
1768if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1774fi
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800ac_ext=c
1801ac_cpp='$CPP $CPPFLAGS'
1802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814
1815
1816ac_config_headers="$ac_config_headers config.h"
1817
1818ac_ext=c
1819ac_cpp='$CPP $CPPFLAGS'
1820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823if test -n "$ac_tool_prefix"; then
1824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1825set dummy ${ac_tool_prefix}gcc; ac_word=$2
1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845done
1846done
1847IFS=$as_save_IFS
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 { echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6; }
1855else
1856 { echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6; }
1858fi
1859
1860
1861fi
1862if test -z "$ac_cv_prog_CC"; then
1863 ac_ct_CC=$CC
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865set dummy gcc; ac_word=$2
1866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885done
1886done
1887IFS=$as_save_IFS
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6; }
1895else
1896 { echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6; }
1898fi
1899
1900 if test "x$ac_ct_CC" = x; then
1901 CC=""
1902 else
1903 case $cross_compiling:$ac_tool_warned in
1904yes:)
1905{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1906whose name does not start with the host triplet. If you think this
1907configuration is useful to you, please write to autoconf@gnu.org." >&5
1908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1909whose name does not start with the host triplet. If you think this
1910configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1911ac_tool_warned=yes ;;
1912esac
1913 CC=$ac_ct_CC
1914 fi
1915else
1916 CC="$ac_cv_prog_CC"
1917fi
1918
1919if test -z "$CC"; then
1920 if test -n "$ac_tool_prefix"; then
1921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1922set dummy ${ac_tool_prefix}cc; ac_word=$2
1923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1925if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1938 ac_cv_prog_CC="${ac_tool_prefix}cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1941 fi
1942done
1943done
1944IFS=$as_save_IFS
1945
1946fi
1947fi
1948CC=$ac_cv_prog_CC
1949if test -n "$CC"; then
1950 { echo "$as_me:$LINENO: result: $CC" >&5
1951echo "${ECHO_T}$CC" >&6; }
1952else
1953 { echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6; }
1955fi
1956
1957
1958 fi
1959fi
1960if test -z "$CC"; then
1961 # Extract the first word of "cc", so it can be a program name with args.
1962set dummy cc; ac_word=$2
1963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1970else
1971 ac_prog_rejected=no
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980 ac_prog_rejected=yes
1981 continue
1982 fi
1983 ac_cv_prog_CC="cc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987done
1988done
1989IFS=$as_save_IFS
1990
1991if test $ac_prog_rejected = yes; then
1992 # We found a bogon in the path, so make sure we never use it.
1993 set dummy $ac_cv_prog_CC
1994 shift
1995 if test $# != 0; then
1996 # We chose a different compiler from the bogus one.
1997 # However, it has the same basename, so the bogon will be chosen
1998 # first if we set CC to just the basename; use the full file name.
1999 shift
2000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001 fi
2002fi
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015fi
2016if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in cl.exe
2019 do
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041done
2042done
2043IFS=$as_save_IFS
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049 { echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6; }
2051else
2052 { echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6; }
2054fi
2055
2056
2057 test -n "$CC" && break
2058 done
2059fi
2060if test -z "$CC"; then
2061 ac_ct_CC=$CC
2062 for ac_prog in cl.exe
2063do
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065set dummy $ac_prog; ac_word=$2
2066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_ac_ct_CC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085done
2086done
2087IFS=$as_save_IFS
2088
2089fi
2090fi
2091ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092if test -n "$ac_ct_CC"; then
2093 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094echo "${ECHO_T}$ac_ct_CC" >&6; }
2095else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6; }
2098fi
2099
2100
2101 test -n "$ac_ct_CC" && break
2102done
2103
2104 if test "x$ac_ct_CC" = x; then
2105 CC=""
2106 else
2107 case $cross_compiling:$ac_tool_warned in
2108yes:)
2109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet. If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&5
2112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113whose name does not start with the host triplet. If you think this
2114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115ac_tool_warned=yes ;;
2116esac
2117 CC=$ac_ct_CC
2118 fi
2119fi
2120
2121fi
2122
2123
2124test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2125See \`config.log' for more details." >&5
2126echo "$as_me: error: no acceptable C compiler found in \$PATH
2127See \`config.log' for more details." >&2;}
2128 { (exit 1); exit 1; }; }
2129
2130# Provide some information about the compiler.
2131echo "$as_me:$LINENO: checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (ac_try="$ac_compiler --version >&5"
2134case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137esac
2138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler --version >&5") 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143{ (ac_try="$ac_compiler -v >&5"
2144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
2148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_compiler -v >&5") 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153{ (ac_try="$ac_compiler -V >&5"
2154case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157esac
2158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159 (eval "$ac_compiler -V >&5") 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h. */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h. */
2170
2171int
2172main ()
2173{
2174
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187#
2188# List of possible output files, starting from the most likely.
2189# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2190# only as a last resort. b.out is created by i960 compilers.
2191ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2192#
2193# The IRIX 6 linker writes into existing files which may not be
2194# executable, retaining their permissions. Remove them first so a
2195# subsequent execution test works.
2196ac_rmfiles=
2197for ac_file in $ac_files
2198do
2199 case $ac_file in
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2201 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2202 esac
2203done
2204rm -f $ac_rmfiles
2205
2206if { (ac_try="$ac_link_default"
2207case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210esac
2211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_link_default") 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2217# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2218# in a Makefile. We should not override ac_cv_exeext if it was cached,
2219# so that the user can short-circuit this test for compilers unknown to
2220# Autoconf.
2221for ac_file in $ac_files ''
2222do
2223 test -f "$ac_file" || continue
2224 case $ac_file in
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2226 ;;
2227 [ab].out )
2228 # We found the default executable, but exeext='' is most
2229 # certainly right.
2230 break;;
2231 *.* )
2232 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2233 then :; else
2234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 fi
2236 # We set ac_cv_exeext here because the later test for it is not
2237 # safe: cross compilers may not add the suffix if given an `-o'
2238 # argument, so we may need to know it at that point already.
2239 # Even if this section looks crufty: it has the advantage of
2240 # actually working.
2241 break;;
2242 * )
2243 break;;
2244 esac
2245done
2246test "$ac_cv_exeext" = no && ac_cv_exeext=
2247
2248else
2249 ac_file=''
2250fi
2251
2252{ echo "$as_me:$LINENO: result: $ac_file" >&5
2253echo "${ECHO_T}$ac_file" >&6; }
2254if test -z "$ac_file"; then
2255 echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: C compiler cannot create executables
2261See \`config.log' for more details." >&2;}
2262 { (exit 77); exit 77; }; }
2263fi
2264
2265ac_exeext=$ac_cv_exeext
2266
2267# Check that the compiler produces executables we can run. If not, either
2268# the compiler is broken, or we cross compile.
2269{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2271# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272# If not cross compiling, check that we can run a simple program.
2273if test "$cross_compiling" != yes; then
2274 if { ac_try='./$ac_file'
2275 { (case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
2279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_try") 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 cross_compiling=no
2285 else
2286 if test "$cross_compiling" = maybe; then
2287 cross_compiling=yes
2288 else
2289 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot run C compiled programs.
2293If you meant to cross compile, use \`--host'.
2294See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2296 fi
2297 fi
2298fi
2299{ echo "$as_me:$LINENO: result: yes" >&5
2300echo "${ECHO_T}yes" >&6; }
2301
2302rm -f a.out a.exe conftest$ac_cv_exeext b.out
2303ac_clean_files=$ac_clean_files_save
2304# Check that the compiler produces executables we can run. If not, either
2305# the compiler is broken, or we cross compile.
2306{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2307echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2308{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2309echo "${ECHO_T}$cross_compiling" >&6; }
2310
2311{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2312echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2313if { (ac_try="$ac_link"
2314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_link") 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325# work properly (i.e., refer to `conftest.exe'), while it won't with
2326# `rm'.
2327for ac_file in conftest.exe conftest conftest.*; do
2328 test -f "$ac_file" || continue
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 break;;
2333 * ) break;;
2334 esac
2335done
2336else
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest$ac_cv_exeext
2345{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2346echo "${ECHO_T}$ac_cv_exeext" >&6; }
2347
2348rm -f conftest.$ac_ext
2349EXEEXT=$ac_cv_exeext
2350ac_exeext=$EXEEXT
2351{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2353if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h. */
2362
2363int
2364main ()
2365{
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.o conftest.obj
2372if { (ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 for ac_file in conftest.o conftest.obj conftest.*; do
2383 test -f "$ac_file" || continue;
2384 case $ac_file in
2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2387 break;;
2388 esac
2389done
2390else
2391 echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2395See \`config.log' for more details." >&5
2396echo "$as_me: error: cannot compute suffix of object files: cannot compile
2397See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2399fi
2400
2401rm -f conftest.$ac_cv_objext conftest.$ac_ext
2402fi
2403{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2404echo "${ECHO_T}$ac_cv_objext" >&6; }
2405OBJEXT=$ac_cv_objext
2406ac_objext=$OBJEXT
2407{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2408echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2409if test "${ac_cv_c_compiler_gnu+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
2418
2419int
2420main ()
2421{
2422#ifndef __GNUC__
2423 choke me
2424#endif
2425
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (ac_try="$ac_compile"
2432case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_compile") 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest.$ac_objext; then
2447 ac_compiler_gnu=yes
2448else
2449 echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_compiler_gnu=no
2453fi
2454
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2466if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 ac_save_c_werror_flag=$ac_c_werror_flag
2470 ac_c_werror_flag=yes
2471 ac_cv_prog_cc_g=no
2472 CFLAGS="-g"
2473 cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479
2480int
2481main ()
2482{
2483
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (ac_try="$ac_compile"
2490case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493esac
2494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_compile") 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } && {
2502 test -z "$ac_c_werror_flag" ||
2503 test ! -s conftest.err
2504 } && test -s conftest.$ac_objext; then
2505 ac_cv_prog_cc_g=yes
2506else
2507 echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 CFLAGS=""
2511 cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h. */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h. */
2517
2518int
2519main ()
2520{
2521
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
2527if { (ac_try="$ac_compile"
2528case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compile") 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } && {
2540 test -z "$ac_c_werror_flag" ||
2541 test ! -s conftest.err
2542 } && test -s conftest.$ac_objext; then
2543 :
2544else
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_c_werror_flag=$ac_save_c_werror_flag
2549 CFLAGS="-g"
2550 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (ac_try="$ac_compile"
2567case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_compile") 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } && {
2579 test -z "$ac_c_werror_flag" ||
2580 test ! -s conftest.err
2581 } && test -s conftest.$ac_objext; then
2582 ac_cv_prog_cc_g=yes
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
2588fi
2589
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595
2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2598fi
2599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
2606 else
2607 CFLAGS="-g"
2608 fi
2609else
2610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
2612 else
2613 CFLAGS=
2614 fi
2615fi
2616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 ac_cv_prog_cc_c89=no
2622ac_save_CC=$CC
2623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629#include <stdarg.h>
2630#include <stdio.h>
2631#include <sys/types.h>
2632#include <sys/stat.h>
2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634struct buf { int x; };
2635FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636static char *e (p, i)
2637 char **p;
2638 int i;
2639{
2640 return p[i];
2641}
2642static char *f (char * (*g) (char **, int), char **p, ...)
2643{
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2650}
2651
2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std. */
2659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2663#define FOO(x) 'x'
2664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
2666int test (int i, double x);
2667struct s1 {int (*f) (int a);};
2668struct s2 {int (*f) (double a);};
2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670int argc;
2671char **argv;
2672int
2673main ()
2674{
2675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682do
2683 CC="$ac_save_CC $ac_arg"
2684 rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } && {
2698 test -z "$ac_c_werror_flag" ||
2699 test ! -s conftest.err
2700 } && test -s conftest.$ac_objext; then
2701 ac_cv_prog_cc_c89=$ac_arg
2702else
2703 echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706
2707fi
2708
2709rm -f core conftest.err conftest.$ac_objext
2710 test "x$ac_cv_prog_cc_c89" != "xno" && break
2711done
2712rm -f conftest.$ac_ext
2713CC=$ac_save_CC
2714
2715fi
2716# AC_CACHE_VAL
2717case "x$ac_cv_prog_cc_c89" in
2718 x)
2719 { echo "$as_me:$LINENO: result: none needed" >&5
2720echo "${ECHO_T}none needed" >&6; } ;;
2721 xno)
2722 { echo "$as_me:$LINENO: result: unsupported" >&5
2723echo "${ECHO_T}unsupported" >&6; } ;;
2724 *)
2725 CC="$CC $ac_cv_prog_cc_c89"
2726 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2727echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2728esac
2729
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737ac_aux_dir=
2738for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 break
2751 fi
2752done
2753if test -z "$ac_aux_dir"; then
2754 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2755echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2756 { (exit 1); exit 1; }; }
2757fi
2758
2759# These three variables are undocumented and unsupported,
2760# and are intended to be withdrawn in a future Autoconf release.
2761# They can cause serious problems if a builder's source tree is in a directory
2762# whose full name contains unusual characters.
2763ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766
2767
2768# Make sure we can run config.sub.
2769$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2771echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2772 { (exit 1); exit 1; }; }
2773
2774{ echo "$as_me:$LINENO: checking build system type" >&5
2775echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2776if test "${ac_cv_build+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779 ac_build_alias=$build_alias
2780test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782test "x$ac_build_alias" = x &&
2783 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2784echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2785 { (exit 1); exit 1; }; }
2786ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2788echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2789 { (exit 1); exit 1; }; }
2790
2791fi
2792{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2793echo "${ECHO_T}$ac_cv_build" >&6; }
2794case $ac_cv_build in
2795*-*-*) ;;
2796*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2797echo "$as_me: error: invalid value of canonical build" >&2;}
2798 { (exit 1); exit 1; }; };;
2799esac
2800build=$ac_cv_build
2801ac_save_IFS=$IFS; IFS='-'
2802set x $ac_cv_build
2803shift
2804build_cpu=$1
2805build_vendor=$2
2806shift; shift
2807# Remember, the first character of IFS is used to create $*,
2808# except with old shells:
2809build_os=$*
2810IFS=$ac_save_IFS
2811case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814{ echo "$as_me:$LINENO: checking host system type" >&5
2815echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2816if test "${ac_cv_host+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test "x$host_alias" = x; then
2820 ac_cv_host=$ac_cv_build
2821else
2822 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2824echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2825 { (exit 1); exit 1; }; }
2826fi
2827
2828fi
2829{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2830echo "${ECHO_T}$ac_cv_host" >&6; }
2831case $ac_cv_host in
2832*-*-*) ;;
2833*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2834echo "$as_me: error: invalid value of canonical host" >&2;}
2835 { (exit 1); exit 1; }; };;
2836esac
2837host=$ac_cv_host
2838ac_save_IFS=$IFS; IFS='-'
2839set x $ac_cv_host
2840shift
2841host_cpu=$1
2842host_vendor=$2
2843shift; shift
2844# Remember, the first character of IFS is used to create $*,
2845# except with old shells:
2846host_os=$*
2847IFS=$ac_save_IFS
2848case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849
2850
2851
2852ac_ext=c
2853ac_cpp='$CPP $CPPFLAGS'
2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2858echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2859# On Suns, sometimes $CPP names a directory.
2860if test -n "$CPP" && test -d "$CPP"; then
2861 CPP=
2862fi
2863if test -z "$CPP"; then
2864 if test "${ac_cv_prog_CPP+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867 # Double quotes because CPP needs to be expanded
2868 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2869 do
2870 ac_preproc_ok=false
2871for ac_c_preproc_warn_flag in '' yes
2872do
2873 # Use a header file that comes with gcc, so configuring glibc
2874 # with a fresh cross-compiler works.
2875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2876 # <limits.h> exists even on freestanding compilers.
2877 # On the NeXT, cc -E runs the code through the compiler's parser,
2878 # not just through cpp. "Syntax error" is here to catch this case.
2879 cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h. */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h. */
2885#ifdef __STDC__
2886# include <limits.h>
2887#else
2888# include <assert.h>
2889#endif
2890 Syntax error
2891_ACEOF
2892if { (ac_try="$ac_cpp conftest.$ac_ext"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } >/dev/null && {
2905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 }; then
2908 :
2909else
2910 echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 # Broken: fails on valid input.
2914continue
2915fi
2916
2917rm -f conftest.err conftest.$ac_ext
2918
2919 # OK, works on sane cases. Now check whether nonexistent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927#include <ac_nonexistent.h>
2928_ACEOF
2929if { (ac_try="$ac_cpp conftest.$ac_ext"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null && {
2942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 }; then
2945 # Broken: success on invalid input.
2946continue
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 # Passes both tests.
2952ac_preproc_ok=:
2953break
2954fi
2955
2956rm -f conftest.err conftest.$ac_ext
2957
2958done
2959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960rm -f conftest.err conftest.$ac_ext
2961if $ac_preproc_ok; then
2962 break
2963fi
2964
2965 done
2966 ac_cv_prog_CPP=$CPP
2967
2968fi
2969 CPP=$ac_cv_prog_CPP
2970else
2971 ac_cv_prog_CPP=$CPP
2972fi
2973{ echo "$as_me:$LINENO: result: $CPP" >&5
2974echo "${ECHO_T}$CPP" >&6; }
2975ac_preproc_ok=false
2976for ac_c_preproc_warn_flag in '' yes
2977do
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
2982 # On the NeXT, cc -E runs the code through the compiler's parser,
2983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990#ifdef __STDC__
2991# include <limits.h>
2992#else
2993# include <assert.h>
2994#endif
2995 Syntax error
2996_ACEOF
2997if { (ac_try="$ac_cpp conftest.$ac_ext"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null && {
3010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 }; then
3013 :
3014else
3015 echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 # Broken: fails on valid input.
3019continue
3020fi
3021
3022rm -f conftest.err conftest.$ac_ext
3023
3024 # OK, works on sane cases. Now check whether nonexistent headers
3025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h. */
3032#include <ac_nonexistent.h>
3033_ACEOF
3034if { (ac_try="$ac_cpp conftest.$ac_ext"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null && {
3047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 }; then
3050 # Broken: success on invalid input.
3051continue
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 # Passes both tests.
3057ac_preproc_ok=:
3058break
3059fi
3060
3061rm -f conftest.err conftest.$ac_ext
3062
3063done
3064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065rm -f conftest.err conftest.$ac_ext
3066if $ac_preproc_ok; then
3067 :
3068else
3069 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3070See \`config.log' for more details." >&5
3071echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3072See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }
3074fi
3075
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081
3082
3083{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3084echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3085if test "${ac_cv_path_GREP+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088 # Extract the first word of "grep ggrep" to use in msg output
3089if test -z "$GREP"; then
3090set dummy grep ggrep; ac_prog_name=$2
3091if test "${ac_cv_path_GREP+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 ac_path_GREP_found=false
3095# Loop through the user's path and test for each of PROGNAME-LIST
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_prog in grep ggrep; do
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3104 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3105 # Check for GNU ac_path_GREP and select it if it is found.
3106 # Check for GNU $ac_path_GREP
3107case `"$ac_path_GREP" --version 2>&1` in
3108*GNU*)
3109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3110*)
3111 ac_count=0
3112 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3113 while :
3114 do
3115 cat "conftest.in" "conftest.in" >"conftest.tmp"
3116 mv "conftest.tmp" "conftest.in"
3117 cp "conftest.in" "conftest.nl"
3118 echo 'GREP' >> "conftest.nl"
3119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3121 ac_count=`expr $ac_count + 1`
3122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3123 # Best one so far, save it but keep looking for a better one
3124 ac_cv_path_GREP="$ac_path_GREP"
3125 ac_path_GREP_max=$ac_count
3126 fi
3127 # 10*(2^10) chars as input seems more than enough
3128 test $ac_count -gt 10 && break
3129 done
3130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3131esac
3132
3133
3134 $ac_path_GREP_found && break 3
3135 done
3136done
3137
3138done
3139IFS=$as_save_IFS
3140
3141
3142fi
3143
3144GREP="$ac_cv_path_GREP"
3145if test -z "$GREP"; then
3146 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3147echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3148 { (exit 1); exit 1; }; }
3149fi
3150
3151else
3152 ac_cv_path_GREP=$GREP
3153fi
3154
3155
3156fi
3157{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3158echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3159 GREP="$ac_cv_path_GREP"
3160
3161
3162{ echo "$as_me:$LINENO: checking for egrep" >&5
3163echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3164if test "${ac_cv_path_EGREP+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3168 then ac_cv_path_EGREP="$GREP -E"
3169 else
3170 # Extract the first word of "egrep" to use in msg output
3171if test -z "$EGREP"; then
3172set dummy egrep; ac_prog_name=$2
3173if test "${ac_cv_path_EGREP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 ac_path_EGREP_found=false
3177# Loop through the user's path and test for each of PROGNAME-LIST
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3180do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_prog in egrep; do
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3187 # Check for GNU ac_path_EGREP and select it if it is found.
3188 # Check for GNU $ac_path_EGREP
3189case `"$ac_path_EGREP" --version 2>&1` in
3190*GNU*)
3191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3192*)
3193 ac_count=0
3194 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3195 while :
3196 do
3197 cat "conftest.in" "conftest.in" >"conftest.tmp"
3198 mv "conftest.tmp" "conftest.in"
3199 cp "conftest.in" "conftest.nl"
3200 echo 'EGREP' >> "conftest.nl"
3201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3203 ac_count=`expr $ac_count + 1`
3204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3205 # Best one so far, save it but keep looking for a better one
3206 ac_cv_path_EGREP="$ac_path_EGREP"
3207 ac_path_EGREP_max=$ac_count
3208 fi
3209 # 10*(2^10) chars as input seems more than enough
3210 test $ac_count -gt 10 && break
3211 done
3212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3213esac
3214
3215
3216 $ac_path_EGREP_found && break 3
3217 done
3218done
3219
3220done
3221IFS=$as_save_IFS
3222
3223
3224fi
3225
3226EGREP="$ac_cv_path_EGREP"
3227if test -z "$EGREP"; then
3228 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3229echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3230 { (exit 1); exit 1; }; }
3231fi
3232
3233else
3234 ac_cv_path_EGREP=$EGREP
3235fi
3236
3237
3238 fi
3239fi
3240{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3241echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3242 EGREP="$ac_cv_path_EGREP"
3243
3244
3245{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3246echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3247if test "${ac_cv_header_stdc+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256#include <stdlib.h>
3257#include <stdarg.h>
3258#include <string.h>
3259#include <float.h>
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (ac_try="$ac_compile"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3286 ac_cv_header_stdc=yes
3287else
3288 echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 ac_cv_header_stdc=no
3292fi
3293
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295
3296if test $ac_cv_header_stdc = yes; then
3297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3298 cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304#include <string.h>
3305
3306_ACEOF
3307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "memchr" >/dev/null 2>&1; then
3309 :
3310else
3311 ac_cv_header_stdc=no
3312fi
3313rm -f conftest*
3314
3315fi
3316
3317if test $ac_cv_header_stdc = yes; then
3318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3319 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
3325#include <stdlib.h>
3326
3327_ACEOF
3328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 $EGREP "free" >/dev/null 2>&1; then
3330 :
3331else
3332 ac_cv_header_stdc=no
3333fi
3334rm -f conftest*
3335
3336fi
3337
3338if test $ac_cv_header_stdc = yes; then
3339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3340 if test "$cross_compiling" = yes; then
3341 :
3342else
3343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
3349#include <ctype.h>
3350#include <stdlib.h>
3351#if ((' ' & 0x0FF) == 0x020)
3352# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3353# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3354#else
3355# define ISLOWER(c) \
3356 (('a' <= (c) && (c) <= 'i') \
3357 || ('j' <= (c) && (c) <= 'r') \
3358 || ('s' <= (c) && (c) <= 'z'))
3359# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3360#endif
3361
3362#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3363int
3364main ()
3365{
3366 int i;
3367 for (i = 0; i < 256; i++)
3368 if (XOR (islower (i), ISLOWER (i))
3369 || toupper (i) != TOUPPER (i))
3370 return 2;
3371 return 0;
3372}
3373_ACEOF
3374rm -f conftest$ac_exeext
3375if { (ac_try="$ac_link"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 :
3395else
3396 echo "$as_me: program exited with status $ac_status" >&5
3397echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400( exit $ac_status )
3401ac_cv_header_stdc=no
3402fi
3403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3404fi
3405
3406
3407fi
3408fi
3409{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3410echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3411if test $ac_cv_header_stdc = yes; then
3412
3413cat >>confdefs.h <<\_ACEOF
3414#define STDC_HEADERS 1
3415_ACEOF
3416
3417fi
3418
3419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3430 inttypes.h stdint.h unistd.h
3431do
3432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h. */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h. */
3444$ac_includes_default
3445
3446#include <$ac_header>
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
3454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_compile") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } && {
3462 test -z "$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 } && test -s conftest.$ac_objext; then
3465 eval "$as_ac_Header=yes"
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 eval "$as_ac_Header=no"
3471fi
3472
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474fi
3475ac_res=`eval echo '${'$as_ac_Header'}'`
3476 { echo "$as_me:$LINENO: result: $ac_res" >&5
3477echo "${ECHO_T}$ac_res" >&6; }
3478if test `eval echo '${'$as_ac_Header'}'` = yes; then
3479 cat >>confdefs.h <<_ACEOF
3480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3481_ACEOF
3482
3483fi
3484
3485done
3486
3487
3488{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3489echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3490if test "${ac_cv_c_bigendian+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 # See if sys/param.h defines the BYTE_ORDER macro.
3494cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h. */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h. */
3500#include <sys/types.h>
3501#include <sys/param.h>
3502
3503int
3504main ()
3505{
3506#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3507 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3508 bogus endian macros
3509#endif
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
3515rm -f conftest.$ac_objext
3516if { (ac_try="$ac_compile"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 # It does; now see whether it defined to BIG_ENDIAN or not.
3533cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539#include <sys/types.h>
3540#include <sys/param.h>
3541
3542int
3543main ()
3544{
3545#if BYTE_ORDER != BIG_ENDIAN
3546 not big endian
3547#endif
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (ac_try="$ac_compile"
3555case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558esac
3559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3570 ac_cv_c_bigendian=yes
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_cv_c_bigendian=no
3576fi
3577
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579else
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 # It does not; compile a test program.
3584if test "$cross_compiling" = yes; then
3585 # try to guess the endianness by grepping values into an object file
3586 ac_cv_c_bigendian=unknown
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3594short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3595void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3596short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3597short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3598void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3599int
3600main ()
3601{
3602 _ascii (); _ebcdic ();
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (ac_try="$ac_compile"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3625 ac_cv_c_bigendian=yes
3626fi
3627if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3628 if test "$ac_cv_c_bigendian" = unknown; then
3629 ac_cv_c_bigendian=no
3630 else
3631 # finding both strings is unlikely to happen, but who knows?
3632 ac_cv_c_bigendian=unknown
3633 fi
3634fi
3635else
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639
3640fi
3641
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643else
3644 cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
3650$ac_includes_default
3651int
3652main ()
3653{
3654
3655 /* Are we little or big endian? From Harbison&Steele. */
3656 union
3657 {
3658 long int l;
3659 char c[sizeof (long int)];
3660 } u;
3661 u.l = 1;
3662 return u.c[sizeof (long int) - 1] == 1;
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
3668rm -f conftest$ac_exeext
3669if { (ac_try="$ac_link"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_link") 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3679 { (case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682esac
3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_try") 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_c_bigendian=no
3689else
3690 echo "$as_me: program exited with status $ac_status" >&5
3691echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694( exit $ac_status )
3695ac_cv_c_bigendian=yes
3696fi
3697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3698fi
3699
3700
3701fi
3702
3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704fi
3705{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3706echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3707case $ac_cv_c_bigendian in
3708 yes)
3709
3710cat >>confdefs.h <<\_ACEOF
3711#define WORDS_BIGENDIAN 1
3712_ACEOF
3713 ;;
3714 no)
3715 ;;
3716 *)
3717 { { echo "$as_me:$LINENO: error: unknown endianness
3718presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3719echo "$as_me: error: unknown endianness
3720presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3721 { (exit 1); exit 1; }; } ;;
3722esac
3723
3724
3725# Checks for programs.
3726for ac_prog in gawk mawk nawk awk
3727do
3728 # Extract the first word of "$ac_prog", so it can be a program name with args.
3729set dummy $ac_prog; ac_word=$2
3730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3732if test "${ac_cv_prog_AWK+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 if test -n "$AWK"; then
3736 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_AWK="$ac_prog"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749done
3750done
3751IFS=$as_save_IFS
3752
3753fi
3754fi
3755AWK=$ac_cv_prog_AWK
3756if test -n "$AWK"; then
3757 { echo "$as_me:$LINENO: result: $AWK" >&5
3758echo "${ECHO_T}$AWK" >&6; }
3759else
3760 { echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6; }
3762fi
3763
3764
3765 test -n "$AWK" && break
3766done
3767
3768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3774echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3775# On Suns, sometimes $CPP names a directory.
3776if test -n "$CPP" && test -d "$CPP"; then
3777 CPP=
3778fi
3779if test -z "$CPP"; then
3780 if test "${ac_cv_prog_CPP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 # Double quotes because CPP needs to be expanded
3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785 do
3786 ac_preproc_ok=false
3787for ac_c_preproc_warn_flag in '' yes
3788do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801#ifdef __STDC__
3802# include <limits.h>
3803#else
3804# include <assert.h>
3805#endif
3806 Syntax error
3807_ACEOF
3808if { (ac_try="$ac_cpp conftest.$ac_ext"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null && {
3821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 }; then
3824 :
3825else
3826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 # Broken: fails on valid input.
3830continue
3831fi
3832
3833rm -f conftest.err conftest.$ac_ext
3834
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if { (ac_try="$ac_cpp conftest.$ac_ext"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null && {
3858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 }; then
3861 # Broken: success on invalid input.
3862continue
3863else
3864 echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 # Passes both tests.
3868ac_preproc_ok=:
3869break
3870fi
3871
3872rm -f conftest.err conftest.$ac_ext
3873
3874done
3875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876rm -f conftest.err conftest.$ac_ext
3877if $ac_preproc_ok; then
3878 break
3879fi
3880
3881 done
3882 ac_cv_prog_CPP=$CPP
3883
3884fi
3885 CPP=$ac_cv_prog_CPP
3886else
3887 ac_cv_prog_CPP=$CPP
3888fi
3889{ echo "$as_me:$LINENO: result: $CPP" >&5
3890echo "${ECHO_T}$CPP" >&6; }
3891ac_preproc_ok=false
3892for ac_c_preproc_warn_flag in '' yes
3893do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906#ifdef __STDC__
3907# include <limits.h>
3908#else
3909# include <assert.h>
3910#endif
3911 Syntax error
3912_ACEOF
3913if { (ac_try="$ac_cpp conftest.$ac_ext"
3914case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917esac
3918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 }; then
3929 :
3930else
3931 echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 # Broken: fails on valid input.
3935continue
3936fi
3937
3938rm -f conftest.err conftest.$ac_ext
3939
3940 # OK, works on sane cases. Now check whether nonexistent headers
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <ac_nonexistent.h>
3949_ACEOF
3950if { (ac_try="$ac_cpp conftest.$ac_ext"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } >/dev/null && {
3963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 }; then
3966 # Broken: success on invalid input.
3967continue
3968else
3969 echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 # Passes both tests.
3973ac_preproc_ok=:
3974break
3975fi
3976
3977rm -f conftest.err conftest.$ac_ext
3978
3979done
3980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981rm -f conftest.err conftest.$ac_ext
3982if $ac_preproc_ok; then
3983 :
3984else
3985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3986See \`config.log' for more details." >&5
3987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3988See \`config.log' for more details." >&2;}
3989 { (exit 1); exit 1; }; }
3990fi
3991
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4003if test "${ac_cv_prog_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 if test -n "$RANLIB"; then
4007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008else
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020done
4021done
4022IFS=$as_save_IFS
4023
4024fi
4025fi
4026RANLIB=$ac_cv_prog_RANLIB
4027if test -n "$RANLIB"; then
4028 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4029echo "${ECHO_T}$RANLIB" >&6; }
4030else
4031 { echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6; }
4033fi
4034
4035
4036fi
4037if test -z "$ac_cv_prog_RANLIB"; then
4038 ac_ct_RANLIB=$RANLIB
4039 # Extract the first word of "ranlib", so it can be a program name with args.
4040set dummy ranlib; ac_word=$2
4041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 if test -n "$ac_ct_RANLIB"; then
4047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_prog_ac_ct_RANLIB="ranlib"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4067if test -n "$ac_ct_RANLIB"; then
4068 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4069echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4070else
4071 { echo "$as_me:$LINENO: result: no" >&5
4072echo "${ECHO_T}no" >&6; }
4073fi
4074
4075 if test "x$ac_ct_RANLIB" = x; then
4076 RANLIB=":"
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079yes:)
4080{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4081whose name does not start with the host triplet. If you think this
4082configuration is useful to you, please write to autoconf@gnu.org." >&5
4083echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4084whose name does not start with the host triplet. If you think this
4085configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4086ac_tool_warned=yes ;;
4087esac
4088 RANLIB=$ac_ct_RANLIB
4089 fi
4090else
4091 RANLIB="$ac_cv_prog_RANLIB"
4092fi
4093
4094# Find a good install program. We prefer a C program (faster),
4095# so one script is as good as another. But avoid the broken or
4096# incompatible versions:
4097# SysV /etc/install, /usr/sbin/install
4098# SunOS /usr/etc/install
4099# IRIX /sbin/install
4100# AIX /bin/install
4101# AmigaOS /C/install, which installs bootblocks on floppy discs
4102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4105# OS/2's system install, which has a completely different semantic
4106# ./install, which can be erroneously created by make from ./install.sh.
4107{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4109if test -z "$INSTALL"; then
4110if test "${ac_cv_path_install+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 # Account for people who put trailing slashes in PATH elements.
4119case $as_dir/ in
4120 ./ | .// | /cC/* | \
4121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4123 /usr/ucb/* ) ;;
4124 *)
4125 # OSF1 and SCO ODT 3.0 have their own names for install.
4126 # Don't use installbsd from OSF since it installs stuff as root
4127 # by default.
4128 for ac_prog in ginstall scoinst install; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4131 if test $ac_prog = install &&
4132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # AIX install. It has an incompatible calling convention.
4134 :
4135 elif test $ac_prog = install &&
4136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137 # program-specific install script used by HP pwplus--don't use.
4138 :
4139 else
4140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4141 break 3
4142 fi
4143 fi
4144 done
4145 done
4146 ;;
4147esac
4148done
4149IFS=$as_save_IFS
4150
4151
4152fi
4153 if test "${ac_cv_path_install+set}" = set; then
4154 INSTALL=$ac_cv_path_install
4155 else
4156 # As a last resort, use the slow shell script. Don't cache a
4157 # value for INSTALL within a source directory, because that will
4158 # break other packages using the cache if that directory is
4159 # removed, or if the value is a relative name.
4160 INSTALL=$ac_install_sh
4161 fi
4162fi
4163{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4164echo "${ECHO_T}$INSTALL" >&6; }
4165
4166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167# It thinks the first close brace ends the variable substitution.
4168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4169
4170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4171
4172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4173
4174{ echo "$as_me:$LINENO: checking for egrep" >&5
4175echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4176if test "${ac_cv_path_EGREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180 then ac_cv_path_EGREP="$GREP -E"
4181 else
4182 # Extract the first word of "egrep" to use in msg output
4183if test -z "$EGREP"; then
4184set dummy egrep; ac_prog_name=$2
4185if test "${ac_cv_path_EGREP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 ac_path_EGREP_found=false
4189# Loop through the user's path and test for each of PROGNAME-LIST
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in egrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4199 # Check for GNU ac_path_EGREP and select it if it is found.
4200 # Check for GNU $ac_path_EGREP
4201case `"$ac_path_EGREP" --version 2>&1` in
4202*GNU*)
4203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4204*)
4205 ac_count=0
4206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 echo 'EGREP' >> "conftest.nl"
4213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 ac_count=`expr $ac_count + 1`
4216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_EGREP="$ac_path_EGREP"
4219 ac_path_EGREP_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225esac
4226
4227
4228 $ac_path_EGREP_found && break 3
4229 done
4230done
4231
4232done
4233IFS=$as_save_IFS
4234
4235
4236fi
4237
4238EGREP="$ac_cv_path_EGREP"
4239if test -z "$EGREP"; then
4240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4241echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4242 { (exit 1); exit 1; }; }
4243fi
4244
4245else
4246 ac_cv_path_EGREP=$EGREP
4247fi
4248
4249
4250 fi
4251fi
4252{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4253echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
4255
4256
4257if test -n "$ac_tool_prefix"; then
4258 for ac_prog in ar
4259 do
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264if test "${ac_cv_prog_AR+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267 if test -n "$AR"; then
4268 ac_cv_prog_AR="$AR" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281done
4282done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287AR=$ac_cv_prog_AR
4288if test -n "$AR"; then
4289 { echo "$as_me:$LINENO: result: $AR" >&5
4290echo "${ECHO_T}$AR" >&6; }
4291else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6; }
4294fi
4295
4296
4297 test -n "$AR" && break
4298 done
4299fi
4300if test -z "$AR"; then
4301 ac_ct_AR=$AR
4302 for ac_prog in ar
4303do
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305set dummy $ac_prog; ac_word=$2
4306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 if test -n "$ac_ct_AR"; then
4312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_AR="$ac_prog"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326done
4327IFS=$as_save_IFS
4328
4329fi
4330fi
4331ac_ct_AR=$ac_cv_prog_ac_ct_AR
4332if test -n "$ac_ct_AR"; then
4333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4334echo "${ECHO_T}$ac_ct_AR" >&6; }
4335else
4336 { echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6; }
4338fi
4339
4340
4341 test -n "$ac_ct_AR" && break
4342done
4343
4344 if test "x$ac_ct_AR" = x; then
4345 AR=""
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348yes:)
4349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4350whose name does not start with the host triplet. If you think this
4351configuration is useful to you, please write to autoconf@gnu.org." >&5
4352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4353whose name does not start with the host triplet. If you think this
4354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357 AR=$ac_ct_AR
4358 fi
4359fi
4360
4361# Extract the first word of "cat", so it can be a program name with args.
4362set dummy cat; ac_word=$2
4363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365if test "${ac_cv_path_CAT+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 case $CAT in
4369 [\\/]* | ?:[\\/]*)
4370 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4371 ;;
4372 *)
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385done
4386IFS=$as_save_IFS
4387
4388 ;;
4389esac
4390fi
4391CAT=$ac_cv_path_CAT
4392if test -n "$CAT"; then
4393 { echo "$as_me:$LINENO: result: $CAT" >&5
4394echo "${ECHO_T}$CAT" >&6; }
4395else
4396 { echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6; }
4398fi
4399
4400
4401# Extract the first word of "kill", so it can be a program name with args.
4402set dummy kill; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_path_KILL+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 case $KILL in
4409 [\\/]* | ?:[\\/]*)
4410 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4411 ;;
4412 *)
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425done
4426IFS=$as_save_IFS
4427
4428 ;;
4429esac
4430fi
4431KILL=$ac_cv_path_KILL
4432if test -n "$KILL"; then
4433 { echo "$as_me:$LINENO: result: $KILL" >&5
4434echo "${ECHO_T}$KILL" >&6; }
4435else
4436 { echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6; }
4438fi
4439
4440
4441for ac_prog in perl5 perl
4442do
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
4445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447if test "${ac_cv_path_PERL+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 case $PERL in
4451 [\\/]* | ?:[\\/]*)
4452 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4453 ;;
4454 *)
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466done
4467done
4468IFS=$as_save_IFS
4469
4470 ;;
4471esac
4472fi
4473PERL=$ac_cv_path_PERL
4474if test -n "$PERL"; then
4475 { echo "$as_me:$LINENO: result: $PERL" >&5
4476echo "${ECHO_T}$PERL" >&6; }
4477else
4478 { echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6; }
4480fi
4481
4482
4483 test -n "$PERL" && break
4484done
4485
4486# Extract the first word of "sed", so it can be a program name with args.
4487set dummy sed; ac_word=$2
4488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490if test "${ac_cv_path_SED+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 case $SED in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4496 ;;
4497 *)
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511IFS=$as_save_IFS
4512
4513 ;;
4514esac
4515fi
4516SED=$ac_cv_path_SED
4517if test -n "$SED"; then
4518 { echo "$as_me:$LINENO: result: $SED" >&5
4519echo "${ECHO_T}$SED" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526
4527# Extract the first word of "ent", so it can be a program name with args.
4528set dummy ent; ac_word=$2
4529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531if test "${ac_cv_path_ENT+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 case $ENT in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4537 ;;
4538 *)
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551done
4552IFS=$as_save_IFS
4553
4554 ;;
4555esac
4556fi
4557ENT=$ac_cv_path_ENT
4558if test -n "$ENT"; then
4559 { echo "$as_me:$LINENO: result: $ENT" >&5
4560echo "${ECHO_T}$ENT" >&6; }
4561else
4562 { echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6; }
4564fi
4565
4566
4567
4568# Extract the first word of "bash", so it can be a program name with args.
4569set dummy bash; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 case $TEST_MINUS_S_SH in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593IFS=$as_save_IFS
4594
4595 ;;
4596esac
4597fi
4598TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4599if test -n "$TEST_MINUS_S_SH"; then
4600 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4601echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4602else
4603 { echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6; }
4605fi
4606
4607
4608# Extract the first word of "ksh", so it can be a program name with args.
4609set dummy ksh; ac_word=$2
4610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 case $TEST_MINUS_S_SH in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4618 ;;
4619 *)
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635 ;;
4636esac
4637fi
4638TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4639if test -n "$TEST_MINUS_S_SH"; then
4640 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4641echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4642else
4643 { echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6; }
4645fi
4646
4647
4648# Extract the first word of "sh", so it can be a program name with args.
4649set dummy sh; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 case $TEST_MINUS_S_SH in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675 ;;
4676esac
4677fi
4678TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4679if test -n "$TEST_MINUS_S_SH"; then
4680 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4681echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4682else
4683 { echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6; }
4685fi
4686
4687
4688# Extract the first word of "sh", so it can be a program name with args.
4689set dummy sh; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_path_SH+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case $SH in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
4713IFS=$as_save_IFS
4714
4715 ;;
4716esac
4717fi
4718SH=$ac_cv_path_SH
4719if test -n "$SH"; then
4720 { echo "$as_me:$LINENO: result: $SH" >&5
4721echo "${ECHO_T}$SH" >&6; }
4722else
4723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
4725fi
4726
4727
4728# Extract the first word of "groff", so it can be a program name with args.
4729set dummy groff; ac_word=$2
4730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_path_GROFF+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 case $GROFF in
4736 [\\/]* | ?:[\\/]*)
4737 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4738 ;;
4739 *)
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
4752done
4753IFS=$as_save_IFS
4754
4755 ;;
4756esac
4757fi
4758GROFF=$ac_cv_path_GROFF
4759if test -n "$GROFF"; then
4760 { echo "$as_me:$LINENO: result: $GROFF" >&5
4761echo "${ECHO_T}$GROFF" >&6; }
4762else
4763 { echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6; }
4765fi
4766
4767
4768# Extract the first word of "nroff", so it can be a program name with args.
4769set dummy nroff; ac_word=$2
4770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772if test "${ac_cv_path_NROFF+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 case $NROFF in
4776 [\\/]* | ?:[\\/]*)
4777 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4778 ;;
4779 *)
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795 ;;
4796esac
4797fi
4798NROFF=$ac_cv_path_NROFF
4799if test -n "$NROFF"; then
4800 { echo "$as_me:$LINENO: result: $NROFF" >&5
4801echo "${ECHO_T}$NROFF" >&6; }
4802else
4803 { echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6; }
4805fi
4806
4807
4808# Extract the first word of "mandoc", so it can be a program name with args.
4809set dummy mandoc; ac_word=$2
4810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812if test "${ac_cv_path_MANDOC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 case $MANDOC in
4816 [\\/]* | ?:[\\/]*)
4817 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4818 ;;
4819 *)
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832done
4833IFS=$as_save_IFS
4834
4835 ;;
4836esac
4837fi
4838MANDOC=$ac_cv_path_MANDOC
4839if test -n "$MANDOC"; then
4840 { echo "$as_me:$LINENO: result: $MANDOC" >&5
4841echo "${ECHO_T}$MANDOC" >&6; }
4842else
4843 { echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6; }
4845fi
4846
4847
4848TEST_SHELL=sh
4849
4850
4851if test "x$MANDOC" != "x" ; then
4852 MANFMT="$MANDOC"
4853elif test "x$NROFF" != "x" ; then
4854 MANFMT="$NROFF -mandoc"
4855elif test "x$GROFF" != "x" ; then
4856 MANFMT="$GROFF -mandoc -Tascii"
4857else
4858 { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
4859echo "$as_me: WARNING: no manpage formatted found" >&2;}
4860 MANFMT="false"
4861fi
4862
4863
4864# Extract the first word of "groupadd", so it can be a program name with args.
4865set dummy groupadd; ac_word=$2
4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871 case $PATH_GROUPADD_PROG in
4872 [\\/]* | ?:[\\/]*)
4873 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4874 ;;
4875 *)
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887done
4888done
4889IFS=$as_save_IFS
4890
4891 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4892 ;;
4893esac
4894fi
4895PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4896if test -n "$PATH_GROUPADD_PROG"; then
4897 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4898echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4899else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6; }
4902fi
4903
4904
4905# Extract the first word of "useradd", so it can be a program name with args.
4906set dummy useradd; ac_word=$2
4907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 case $PATH_USERADD_PROG in
4913 [\\/]* | ?:[\\/]*)
4914 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4915 ;;
4916 *)
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928done
4929done
4930IFS=$as_save_IFS
4931
4932 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4933 ;;
4934esac
4935fi
4936PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4937if test -n "$PATH_USERADD_PROG"; then
4938 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4939echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4940else
4941 { echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6; }
4943fi
4944
4945
4946# Extract the first word of "pkgmk", so it can be a program name with args.
4947set dummy pkgmk; ac_word=$2
4948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4954 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967done
4968done
4969IFS=$as_save_IFS
4970
4971 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4972fi
4973fi
4974MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4975if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4976 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4977echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4978else
4979 { echo "$as_me:$LINENO: result: no" >&5
4980echo "${ECHO_T}no" >&6; }
4981fi
4982
4983
4984if test -x /sbin/sh; then
4985 STARTUP_SCRIPT_SHELL=/sbin/sh
4986
4987else
4988 STARTUP_SCRIPT_SHELL=/bin/sh
4989
4990fi
4991
4992# System features
4993# Check whether --enable-largefile was given.
4994if test "${enable_largefile+set}" = set; then
4995 enableval=$enable_largefile;
4996fi
4997
4998if test "$enable_largefile" != no; then
4999
5000 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5001echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5002if test "${ac_cv_sys_largefile_CC+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 ac_cv_sys_largefile_CC=no
5006 if test "$GCC" != yes; then
5007 ac_save_CC=$CC
5008 while :; do
5009 # IRIX 6.2 and later do not support large files by default,
5010 # so use the C compiler's -n32 option if that helps.
5011 cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017#include <sys/types.h>
5018 /* Check that off_t can represent 2**63 - 1 correctly.
5019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5020 since some C++ compilers masquerading as C compilers
5021 incorrectly reject 9223372036854775807. */
5022#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5024 && LARGE_OFF_T % 2147483647 == 1)
5025 ? 1 : -1];
5026int
5027main ()
5028{
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034 rm -f conftest.$ac_objext
5035if { (ac_try="$ac_compile"
5036case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest.$ac_objext; then
5051 break
5052else
5053 echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056
5057fi
5058
5059rm -f core conftest.err conftest.$ac_objext
5060 CC="$CC -n32"
5061 rm -f conftest.$ac_objext
5062if { (ac_try="$ac_compile"
5063case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066esac
5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } && {
5075 test -z "$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 } && test -s conftest.$ac_objext; then
5078 ac_cv_sys_largefile_CC=' -n32'; break
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083
5084fi
5085
5086rm -f core conftest.err conftest.$ac_objext
5087 break
5088 done
5089 CC=$ac_save_CC
5090 rm -f conftest.$ac_ext
5091 fi
5092fi
5093{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5094echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5095 if test "$ac_cv_sys_largefile_CC" != no; then
5096 CC=$CC$ac_cv_sys_largefile_CC
5097 fi
5098
5099 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5100echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5101if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 while :; do
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114 since some C++ compilers masquerading as C compilers
5115 incorrectly reject 9223372036854775807. */
5116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118 && LARGE_OFF_T % 2147483647 == 1)
5119 ? 1 : -1];
5120int
5121main ()
5122{
5123
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext
5129if { (ac_try="$ac_compile"
5130case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 ac_cv_sys_file_offset_bits=no; break
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150
5151fi
5152
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160#define _FILE_OFFSET_BITS 64
5161#include <sys/types.h>
5162 /* Check that off_t can represent 2**63 - 1 correctly.
5163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5164 since some C++ compilers masquerading as C compilers
5165 incorrectly reject 9223372036854775807. */
5166#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5168 && LARGE_OFF_T % 2147483647 == 1)
5169 ? 1 : -1];
5170int
5171main ()
5172{
5173
5174 ;
5175 return 0;
5176}
5177_ACEOF
5178rm -f conftest.$ac_objext
5179if { (ac_try="$ac_compile"
5180case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_compile") 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && {
5192 test -z "$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 } && test -s conftest.$ac_objext; then
5195 ac_cv_sys_file_offset_bits=64; break
5196else
5197 echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200
5201fi
5202
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ac_cv_sys_file_offset_bits=unknown
5205 break
5206done
5207fi
5208{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5209echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5210case $ac_cv_sys_file_offset_bits in #(
5211 no | unknown) ;;
5212 *)
5213cat >>confdefs.h <<_ACEOF
5214#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5215_ACEOF
5216;;
5217esac
5218rm -f conftest*
5219 if test $ac_cv_sys_file_offset_bits = unknown; then
5220 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5221echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5222if test "${ac_cv_sys_large_files+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 while :; do
5226 cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
5232#include <sys/types.h>
5233 /* Check that off_t can represent 2**63 - 1 correctly.
5234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5235 since some C++ compilers masquerading as C compilers
5236 incorrectly reject 9223372036854775807. */
5237#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5239 && LARGE_OFF_T % 2147483647 == 1)
5240 ? 1 : -1];
5241int
5242main ()
5243{
5244
5245 ;
5246 return 0;
5247}
5248_ACEOF
5249rm -f conftest.$ac_objext
5250if { (ac_try="$ac_compile"
5251case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_compile") 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && {
5263 test -z "$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 } && test -s conftest.$ac_objext; then
5266 ac_cv_sys_large_files=no; break
5267else
5268 echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271
5272fi
5273
5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h. */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h. */
5281#define _LARGE_FILES 1
5282#include <sys/types.h>
5283 /* Check that off_t can represent 2**63 - 1 correctly.
5284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5285 since some C++ compilers masquerading as C compilers
5286 incorrectly reject 9223372036854775807. */
5287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5289 && LARGE_OFF_T % 2147483647 == 1)
5290 ? 1 : -1];
5291int
5292main ()
5293{
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && {
5313 test -z "$ac_c_werror_flag" ||
5314 test ! -s conftest.err
5315 } && test -s conftest.$ac_objext; then
5316 ac_cv_sys_large_files=1; break
5317else
5318 echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
5321
5322fi
5323
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 ac_cv_sys_large_files=unknown
5326 break
5327done
5328fi
5329{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5330echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5331case $ac_cv_sys_large_files in #(
5332 no | unknown) ;;
5333 *)
5334cat >>confdefs.h <<_ACEOF
5335#define _LARGE_FILES $ac_cv_sys_large_files
5336_ACEOF
5337;;
5338esac
5339rm -f conftest*
5340 fi
5341fi
5342
5343
5344if test -z "$AR" ; then
5345 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5346echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5347 { (exit 1); exit 1; }; }
5348fi
5349
5350# Use LOGIN_PROGRAM from environment if possible
5351if test ! -z "$LOGIN_PROGRAM" ; then
5352
5353cat >>confdefs.h <<_ACEOF
5354#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5355_ACEOF
5356
5357else
5358 # Search for login
5359 # Extract the first word of "login", so it can be a program name with args.
5360set dummy login; ac_word=$2
5361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5363if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 case $LOGIN_PROGRAM_FALLBACK in
5367 [\\/]* | ?:[\\/]*)
5368 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5369 ;;
5370 *)
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382done
5383done
5384IFS=$as_save_IFS
5385
5386 ;;
5387esac
5388fi
5389LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5390if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5391 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5392echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5393else
5394 { echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6; }
5396fi
5397
5398
5399 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5400 cat >>confdefs.h <<_ACEOF
5401#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5402_ACEOF
5403
5404 fi
5405fi
5406
5407# Extract the first word of "passwd", so it can be a program name with args.
5408set dummy passwd; ac_word=$2
5409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5411if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 case $PATH_PASSWD_PROG in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5417 ;;
5418 *)
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430done
5431done
5432IFS=$as_save_IFS
5433
5434 ;;
5435esac
5436fi
5437PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5438if test -n "$PATH_PASSWD_PROG"; then
5439 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5440echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5441else
5442 { echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6; }
5444fi
5445
5446
5447if test ! -z "$PATH_PASSWD_PROG" ; then
5448
5449cat >>confdefs.h <<_ACEOF
5450#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5451_ACEOF
5452
5453fi
5454
5455if test -z "$LD" ; then
5456 LD=$CC
5457fi
5458
5459
5460{ echo "$as_me:$LINENO: checking for inline" >&5
5461echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5462if test "${ac_cv_c_inline+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 ac_cv_c_inline=no
5466for ac_kw in inline __inline__ __inline; do
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473#ifndef __cplusplus
5474typedef int foo_t;
5475static $ac_kw foo_t static_foo () {return 0; }
5476$ac_kw foo_t foo () {return 0; }
5477#endif
5478
5479_ACEOF
5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5497 ac_cv_c_inline=$ac_kw
5498else
5499 echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502
5503fi
5504
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 test "$ac_cv_c_inline" != no && break
5507done
5508
5509fi
5510{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5511echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5512
5513
5514case $ac_cv_c_inline in
5515 inline | yes) ;;
5516 *)
5517 case $ac_cv_c_inline in
5518 no) ac_val=;;
5519 *) ac_val=$ac_cv_c_inline;;
5520 esac
5521 cat >>confdefs.h <<_ACEOF
5522#ifndef __cplusplus
5523#define inline $ac_val
5524#endif
5525_ACEOF
5526 ;;
5527esac
5528
5529
5530{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5531echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5532if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541#include <limits.h>
5542
5543int
5544main ()
5545{
5546#ifndef LLONG_MAX
5547 (void) LLONG_MAX;
5548#endif
5549
5550 ;
5551 return 0;
5552}
5553_ACEOF
5554rm -f conftest.$ac_objext
5555if { (ac_try="$ac_compile"
5556case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5571 ac_cv_have_decl_LLONG_MAX=yes
5572else
5573 echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576 ac_cv_have_decl_LLONG_MAX=no
5577fi
5578
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580fi
5581{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5582echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5583if test $ac_cv_have_decl_LLONG_MAX = yes; then
5584 have_llong_max=1
5585fi
5586
5587{ echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5
5588echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; }
5589if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592 cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h. */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h. */
5598
5599 #include <sys/types.h>
5600 #include <sys/param.h>
5601 #include <dev/systrace.h>
5602
5603
5604int
5605main ()
5606{
5607#ifndef SYSTR_POLICY_KILL
5608 (void) SYSTR_POLICY_KILL;
5609#endif
5610
5611 ;
5612 return 0;
5613}
5614_ACEOF
5615rm -f conftest.$ac_objext
5616if { (ac_try="$ac_compile"
5617case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_cv_have_decl_SYSTR_POLICY_KILL=yes
5633else
5634 echo "$as_me: failed program was:" >&5
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_cv_have_decl_SYSTR_POLICY_KILL=no
5638fi
5639
5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641fi
5642{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5
5643echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; }
5644if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then
5645 have_systr_policy_kill=1
5646fi
5647
5648{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
5649echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; }
5650if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659
5660 #include <sys/types.h>
5661 #include <sys/resource.h>
5662
5663
5664int
5665main ()
5666{
5667#ifndef RLIMIT_NPROC
5668 (void) RLIMIT_NPROC;
5669#endif
5670
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 ac_cv_have_decl_RLIMIT_NPROC=yes
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_have_decl_RLIMIT_NPROC=no
5698fi
5699
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701fi
5702{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5
5703echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; }
5704if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then
5705
5706cat >>confdefs.h <<\_ACEOF
5707#define HAVE_RLIMIT_NPROC
5708_ACEOF
5709
5710fi
5711
5712{ echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5
5713echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; }
5714if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724 #include <sys/types.h>
5725 #include <linux/prctl.h>
5726
5727
5728int
5729main ()
5730{
5731#ifndef PR_SET_NO_NEW_PRIVS
5732 (void) PR_SET_NO_NEW_PRIVS;
5733#endif
5734
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext
5740if { (ac_try="$ac_compile"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no
5762fi
5763
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5
5767echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; }
5768if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then
5769 have_linux_no_new_privs=1
5770fi
5771
5772
5773openssl=yes
5774ssh1=yes
5775
5776# Check whether --with-openssl was given.
5777if test "${with_openssl+set}" = set; then
5778 withval=$with_openssl; if test "x$withval" = "xno" ; then
5779 openssl=no
5780 ssh1=no
5781 fi
5782
5783
5784fi
5785
5786{ echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5
5787echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; }
5788if test "x$openssl" = "xyes" ; then
5789 { echo "$as_me:$LINENO: result: yes" >&5
5790echo "${ECHO_T}yes" >&6; }
5791
5792cat >>confdefs.h <<_ACEOF
5793#define WITH_OPENSSL 1
5794_ACEOF
5795
5796else
5797 { echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6; }
5799fi
5800
5801
5802# Check whether --with-ssh1 was given.
5803if test "${with_ssh1+set}" = set; then
5804 withval=$with_ssh1;
5805 if test "x$withval" = "xyes" ; then
5806 if test "x$openssl" = "xno" ; then
5807 { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5
5808echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;}
5809 { (exit 1); exit 1; }; }
5810 fi
5811 ssh1=yes
5812 elif test "x$withval" = "xno" ; then
5813 ssh1=no
5814 else
5815 { { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5
5816echo "$as_me: error: unknown --with-ssh1 argument" >&2;}
5817 { (exit 1); exit 1; }; }
5818 fi
5819
5820
5821fi
5822
5823{ echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5
5824echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; }
5825if test "x$ssh1" = "xyes" ; then
5826 { echo "$as_me:$LINENO: result: yes" >&5
5827echo "${ECHO_T}yes" >&6; }
5828
5829cat >>confdefs.h <<_ACEOF
5830#define WITH_SSH1 1
5831_ACEOF
5832
5833else
5834 { echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6; }
5836fi
5837
5838use_stack_protector=1
5839use_toolchain_hardening=1
5840
5841# Check whether --with-stackprotect was given.
5842if test "${with_stackprotect+set}" = set; then
5843 withval=$with_stackprotect;
5844 if test "x$withval" = "xno"; then
5845 use_stack_protector=0
5846 fi
5847fi
5848
5849
5850# Check whether --with-hardening was given.
5851if test "${with_hardening+set}" = set; then
5852 withval=$with_hardening;
5853 if test "x$withval" = "xno"; then
5854 use_toolchain_hardening=0
5855 fi
5856fi
5857
5858
5859# We use -Werror for the tests only so that we catch warnings like "this is
5860# on by default" for things like -fPIE.
5861{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
5862echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
5863saved_CFLAGS="$CFLAGS"
5864CFLAGS="$CFLAGS -Werror"
5865cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h. */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h. */
5871int main(void) { return 0; }
5872_ACEOF
5873rm -f conftest.$ac_objext
5874if { (ac_try="$ac_compile"
5875case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_compile") 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } && {
5887 test -z "$ac_c_werror_flag" ||
5888 test ! -s conftest.err
5889 } && test -s conftest.$ac_objext; then
5890 { echo "$as_me:$LINENO: result: yes" >&5
5891echo "${ECHO_T}yes" >&6; }
5892 WERROR="-Werror"
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
5899 WERROR=""
5900
5901fi
5902
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904CFLAGS="$saved_CFLAGS"
5905
5906if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5907 {
5908 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5
5909echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; }
5910 saved_CFLAGS="$CFLAGS"
5911 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5912 _define_flag=""
5913 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920
5921#include <stdlib.h>
5922#include <stdio.h>
5923int main(int argc, char **argv) {
5924 /* Some math to catch -ftrapv problems in the toolchain */
5925 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5926 float l = i * 2.1;
5927 double m = l / 0.5;
5928 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5929 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5930 exit(0);
5931}
5932
5933_ACEOF
5934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951
5952if `grep -i "unrecognized option" conftest.err >/dev/null`
5953then
5954 { echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
5956 CFLAGS="$saved_CFLAGS"
5957else
5958 { echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6; }
5960 CFLAGS="$saved_CFLAGS $_define_flag"
5961fi
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 { echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6; }
5968 CFLAGS="$saved_CFLAGS"
5969
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973}
5974 {
5975 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5976echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; }
5977 saved_CFLAGS="$CFLAGS"
5978 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5979 _define_flag=""
5980 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5981 cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987
5988#include <stdlib.h>
5989#include <stdio.h>
5990int main(int argc, char **argv) {
5991 /* Some math to catch -ftrapv problems in the toolchain */
5992 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5993 float l = i * 2.1;
5994 double m = l / 0.5;
5995 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5996 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5997 exit(0);
5998}
5999
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6018
6019if `grep -i "unrecognized option" conftest.err >/dev/null`
6020then
6021 { echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
6023 CFLAGS="$saved_CFLAGS"
6024else
6025 { echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6; }
6027 CFLAGS="$saved_CFLAGS $_define_flag"
6028fi
6029else
6030 echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
6035 CFLAGS="$saved_CFLAGS"
6036
6037fi
6038
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040}
6041 {
6042 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5
6043echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; }
6044 saved_CFLAGS="$CFLAGS"
6045 CFLAGS="$CFLAGS $WERROR -Wall"
6046 _define_flag=""
6047 test "x$_define_flag" = "x" && _define_flag="-Wall"
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054
6055#include <stdlib.h>
6056#include <stdio.h>
6057int main(int argc, char **argv) {
6058 /* Some math to catch -ftrapv problems in the toolchain */
6059 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6060 float l = i * 2.1;
6061 double m = l / 0.5;
6062 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6063 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6064 exit(0);
6065}
6066
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (ac_try="$ac_compile"
6070case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085
6086if `grep -i "unrecognized option" conftest.err >/dev/null`
6087then
6088 { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
6090 CFLAGS="$saved_CFLAGS"
6091else
6092 { echo "$as_me:$LINENO: result: yes" >&5
6093echo "${ECHO_T}yes" >&6; }
6094 CFLAGS="$saved_CFLAGS $_define_flag"
6095fi
6096else
6097 echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
6102 CFLAGS="$saved_CFLAGS"
6103
6104fi
6105
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107}
6108 {
6109 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5
6110echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; }
6111 saved_CFLAGS="$CFLAGS"
6112 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
6113 _define_flag=""
6114 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121
6122#include <stdlib.h>
6123#include <stdio.h>
6124int main(int argc, char **argv) {
6125 /* Some math to catch -ftrapv problems in the toolchain */
6126 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6127 float l = i * 2.1;
6128 double m = l / 0.5;
6129 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6130 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6131 exit(0);
6132}
6133
6134_ACEOF
6135rm -f conftest.$ac_objext
6136if { (ac_try="$ac_compile"
6137case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140esac
6141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6143 ac_status=$?
6144 grep -v '^ *+' conftest.er1 >conftest.err
6145 rm -f conftest.er1
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.$ac_objext; then
6152
6153if `grep -i "unrecognized option" conftest.err >/dev/null`
6154then
6155 { echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157 CFLAGS="$saved_CFLAGS"
6158else
6159 { echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6; }
6161 CFLAGS="$saved_CFLAGS $_define_flag"
6162fi
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
6169 CFLAGS="$saved_CFLAGS"
6170
6171fi
6172
6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174}
6175 {
6176 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5
6177echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; }
6178 saved_CFLAGS="$CFLAGS"
6179 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
6180 _define_flag=""
6181 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
6182 cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h. */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h. */
6188
6189#include <stdlib.h>
6190#include <stdio.h>
6191int main(int argc, char **argv) {
6192 /* Some math to catch -ftrapv problems in the toolchain */
6193 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6194 float l = i * 2.1;
6195 double m = l / 0.5;
6196 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6197 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6198 exit(0);
6199}
6200
6201_ACEOF
6202rm -f conftest.$ac_objext
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219
6220if `grep -i "unrecognized option" conftest.err >/dev/null`
6221then
6222 { echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6; }
6224 CFLAGS="$saved_CFLAGS"
6225else
6226 { echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6; }
6228 CFLAGS="$saved_CFLAGS $_define_flag"
6229fi
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 { echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6; }
6236 CFLAGS="$saved_CFLAGS"
6237
6238fi
6239
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241}
6242 {
6243 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5
6244echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; }
6245 saved_CFLAGS="$CFLAGS"
6246 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
6247 _define_flag=""
6248 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255
6256#include <stdlib.h>
6257#include <stdio.h>
6258int main(int argc, char **argv) {
6259 /* Some math to catch -ftrapv problems in the toolchain */
6260 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6261 float l = i * 2.1;
6262 double m = l / 0.5;
6263 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6264 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6265 exit(0);
6266}
6267
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_compile") 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } && {
6283 test -z "$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 } && test -s conftest.$ac_objext; then
6286
6287if `grep -i "unrecognized option" conftest.err >/dev/null`
6288then
6289 { echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6; }
6291 CFLAGS="$saved_CFLAGS"
6292else
6293 { echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6; }
6295 CFLAGS="$saved_CFLAGS $_define_flag"
6296fi
6297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
6303 CFLAGS="$saved_CFLAGS"
6304
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308}
6309 {
6310 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5
6311echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; }
6312 saved_CFLAGS="$CFLAGS"
6313 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6314 _define_flag=""
6315 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6316 cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322
6323#include <stdlib.h>
6324#include <stdio.h>
6325int main(int argc, char **argv) {
6326 /* Some math to catch -ftrapv problems in the toolchain */
6327 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6328 float l = i * 2.1;
6329 double m = l / 0.5;
6330 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6331 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6332 exit(0);
6333}
6334
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest.$ac_objext; then
6353
6354if `grep -i "unrecognized option" conftest.err >/dev/null`
6355then
6356 { echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
6358 CFLAGS="$saved_CFLAGS"
6359else
6360 { echo "$as_me:$LINENO: result: yes" >&5
6361echo "${ECHO_T}yes" >&6; }
6362 CFLAGS="$saved_CFLAGS $_define_flag"
6363fi
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 { echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6; }
6370 CFLAGS="$saved_CFLAGS"
6371
6372fi
6373
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375}
6376 {
6377 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6378echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; }
6379 saved_CFLAGS="$CFLAGS"
6380 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6381 _define_flag=""
6382 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6383 cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h. */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h. */
6389
6390#include <stdlib.h>
6391#include <stdio.h>
6392int main(int argc, char **argv) {
6393 /* Some math to catch -ftrapv problems in the toolchain */
6394 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6395 float l = i * 2.1;
6396 double m = l / 0.5;
6397 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6398 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6399 exit(0);
6400}
6401
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (ac_try="$ac_compile"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420
6421if `grep -i "unrecognized option" conftest.err >/dev/null`
6422then
6423 { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
6425 CFLAGS="$saved_CFLAGS"
6426else
6427 { echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6; }
6429 CFLAGS="$saved_CFLAGS $_define_flag"
6430fi
6431else
6432 echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 { echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6; }
6437 CFLAGS="$saved_CFLAGS"
6438
6439fi
6440
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442}
6443 {
6444 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5
6445echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; }
6446 saved_CFLAGS="$CFLAGS"
6447 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6448 _define_flag="-Wno-pointer-sign"
6449 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6450 cat >conftest.$ac_ext <<_ACEOF
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
6456
6457#include <stdlib.h>
6458#include <stdio.h>
6459int main(int argc, char **argv) {
6460 /* Some math to catch -ftrapv problems in the toolchain */
6461 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6462 float l = i * 2.1;
6463 double m = l / 0.5;
6464 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6465 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6466 exit(0);
6467}
6468
6469_ACEOF
6470rm -f conftest.$ac_objext
6471if { (ac_try="$ac_compile"
6472case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6487
6488if `grep -i "unrecognized option" conftest.err >/dev/null`
6489then
6490 { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
6492 CFLAGS="$saved_CFLAGS"
6493else
6494 { echo "$as_me:$LINENO: result: yes" >&5
6495echo "${ECHO_T}yes" >&6; }
6496 CFLAGS="$saved_CFLAGS $_define_flag"
6497fi
6498else
6499 echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504 CFLAGS="$saved_CFLAGS"
6505
6506fi
6507
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509}
6510 {
6511 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5
6512echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; }
6513 saved_CFLAGS="$CFLAGS"
6514 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6515 _define_flag="-Wno-unused-result"
6516 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6517 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h. */
6523
6524#include <stdlib.h>
6525#include <stdio.h>
6526int main(int argc, char **argv) {
6527 /* Some math to catch -ftrapv problems in the toolchain */
6528 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6529 float l = i * 2.1;
6530 double m = l / 0.5;
6531 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6532 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6533 exit(0);
6534}
6535
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554
6555if `grep -i "unrecognized option" conftest.err >/dev/null`
6556then
6557 { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559 CFLAGS="$saved_CFLAGS"
6560else
6561 { echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6; }
6563 CFLAGS="$saved_CFLAGS $_define_flag"
6564fi
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 { echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6; }
6571 CFLAGS="$saved_CFLAGS"
6572
6573fi
6574
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576}
6577 {
6578 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6579echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; }
6580 saved_CFLAGS="$CFLAGS"
6581 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6582 _define_flag=""
6583 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6584 cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590
6591#include <stdlib.h>
6592#include <stdio.h>
6593int main(int argc, char **argv) {
6594 /* Some math to catch -ftrapv problems in the toolchain */
6595 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6596 float l = i * 2.1;
6597 double m = l / 0.5;
6598 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6599 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6600 exit(0);
6601}
6602
6603_ACEOF
6604rm -f conftest.$ac_objext
6605if { (ac_try="$ac_compile"
6606case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609esac
6610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_compile") 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && {
6618 test -z "$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 } && test -s conftest.$ac_objext; then
6621
6622if `grep -i "unrecognized option" conftest.err >/dev/null`
6623then
6624 { echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6; }
6626 CFLAGS="$saved_CFLAGS"
6627else
6628 { echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6; }
6630 CFLAGS="$saved_CFLAGS $_define_flag"
6631fi
6632else
6633 echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
6638 CFLAGS="$saved_CFLAGS"
6639
6640fi
6641
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643}
6644 {
6645 { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6646echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; }
6647 saved_CFLAGS="$CFLAGS"
6648 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6649 _define_flag=""
6650 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657
6658#include <stdlib.h>
6659#include <stdio.h>
6660int main(int argc, char **argv) {
6661 /* Some math to catch -ftrapv problems in the toolchain */
6662 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6663 float l = i * 2.1;
6664 double m = l / 0.5;
6665 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6666 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6667 exit(0);
6668}
6669
6670_ACEOF
6671rm -f conftest.$ac_objext
6672if { (ac_try="$ac_compile"
6673case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676esac
6677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_compile") 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 } && test -s conftest.$ac_objext; then
6688
6689if `grep -i "unrecognized option" conftest.err >/dev/null`
6690then
6691 { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693 CFLAGS="$saved_CFLAGS"
6694else
6695 { echo "$as_me:$LINENO: result: yes" >&5
6696echo "${ECHO_T}yes" >&6; }
6697 CFLAGS="$saved_CFLAGS $_define_flag"
6698fi
6699else
6700 echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
6705 CFLAGS="$saved_CFLAGS"
6706
6707fi
6708
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710}
6711 if test "x$use_toolchain_hardening" = "x1"; then
6712 {
6713 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5
6714echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; }
6715 saved_LDFLAGS="$LDFLAGS"
6716 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6717 _define_flag=""
6718 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6719 cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h. */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h. */
6725
6726#include <stdlib.h>
6727#include <stdio.h>
6728int main(int argc, char **argv) {
6729 /* Some math to catch -ftrapv problems in the toolchain */
6730 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6731 float l = i * 2.1;
6732 double m = l / 0.5;
6733 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6734 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6735 exit(0);
6736}
6737
6738_ACEOF
6739rm -f conftest.$ac_objext conftest$ac_exeext
6740if { (ac_try="$ac_link"
6741case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744esac
6745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_link") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } && {
6753 test -z "$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 } && test -s conftest$ac_exeext &&
6756 $as_test_x conftest$ac_exeext; then
6757 { echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6; }
6759 LDFLAGS="$saved_LDFLAGS $_define_flag"
6760else
6761 echo "$as_me: failed program was:" >&5
6762sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766 LDFLAGS="$saved_LDFLAGS"
6767
6768fi
6769
6770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6771 conftest$ac_exeext conftest.$ac_ext
6772}
6773 {
6774 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5
6775echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; }
6776 saved_LDFLAGS="$LDFLAGS"
6777 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6778 _define_flag=""
6779 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6780 cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h. */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h. */
6786
6787#include <stdlib.h>
6788#include <stdio.h>
6789int main(int argc, char **argv) {
6790 /* Some math to catch -ftrapv problems in the toolchain */
6791 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6792 float l = i * 2.1;
6793 double m = l / 0.5;
6794 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6795 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6796 exit(0);
6797}
6798
6799_ACEOF
6800rm -f conftest.$ac_objext conftest$ac_exeext
6801if { (ac_try="$ac_link"
6802case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805esac
6806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_link") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest$ac_exeext &&
6817 $as_test_x conftest$ac_exeext; then
6818 { echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6; }
6820 LDFLAGS="$saved_LDFLAGS $_define_flag"
6821else
6822 echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
6827 LDFLAGS="$saved_LDFLAGS"
6828
6829fi
6830
6831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833}
6834 {
6835 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6836echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; }
6837 saved_LDFLAGS="$LDFLAGS"
6838 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6839 _define_flag=""
6840 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6841 cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
6847
6848#include <stdlib.h>
6849#include <stdio.h>
6850int main(int argc, char **argv) {
6851 /* Some math to catch -ftrapv problems in the toolchain */
6852 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6853 float l = i * 2.1;
6854 double m = l / 0.5;
6855 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6856 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6857 exit(0);
6858}
6859
6860_ACEOF
6861rm -f conftest.$ac_objext conftest$ac_exeext
6862if { (ac_try="$ac_link"
6863case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866esac
6867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest$ac_exeext &&
6878 $as_test_x conftest$ac_exeext; then
6879 { echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6; }
6881 LDFLAGS="$saved_LDFLAGS $_define_flag"
6882else
6883 echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888 LDFLAGS="$saved_LDFLAGS"
6889
6890fi
6891
6892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6893 conftest$ac_exeext conftest.$ac_ext
6894}
6895 # NB. -ftrapv expects certain support functions to be present in
6896 # the compiler library (libgcc or similar) to detect integer operations
6897 # that can overflow. We must check that the result of enabling it
6898 # actually links. The test program compiled/linked includes a number
6899 # of integer operations that should exercise this.
6900 {
6901 { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6902echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; }
6903 saved_CFLAGS="$CFLAGS"
6904 CFLAGS="$CFLAGS $WERROR -ftrapv"
6905 _define_flag=""
6906 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6907 cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h. */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h. */
6913
6914#include <stdlib.h>
6915#include <stdio.h>
6916int main(int argc, char **argv) {
6917 /* Some math to catch -ftrapv problems in the toolchain */
6918 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6919 float l = i * 2.1;
6920 double m = l / 0.5;
6921 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6922 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6923 exit(0);
6924}
6925
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (ac_try="$ac_link"
6929case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_link") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } && {
6941 test -z "$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 } && test -s conftest$ac_exeext &&
6944 $as_test_x conftest$ac_exeext; then
6945
6946if `grep -i "unrecognized option" conftest.err >/dev/null`
6947then
6948 { echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6; }
6950 CFLAGS="$saved_CFLAGS"
6951else
6952 { echo "$as_me:$LINENO: result: yes" >&5
6953echo "${ECHO_T}yes" >&6; }
6954 CFLAGS="$saved_CFLAGS $_define_flag"
6955fi
6956else
6957 echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962 CFLAGS="$saved_CFLAGS"
6963
6964fi
6965
6966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6967 conftest$ac_exeext conftest.$ac_ext
6968}
6969 fi
6970 { echo "$as_me:$LINENO: checking gcc version" >&5
6971echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
6972 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6973 case $GCC_VER in
6974 1.*) no_attrib_nonnull=1 ;;
6975 2.8* | 2.9*)
6976 no_attrib_nonnull=1
6977 ;;
6978 2.*) no_attrib_nonnull=1 ;;
6979 *) ;;
6980 esac
6981 { echo "$as_me:$LINENO: result: $GCC_VER" >&5
6982echo "${ECHO_T}$GCC_VER" >&6; }
6983
6984 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
6985echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
6986 saved_CFLAGS="$CFLAGS"
6987 CFLAGS="$CFLAGS -fno-builtin-memset"
6988 cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
6994 #include <string.h>
6995int
6996main ()
6997{
6998 char b[10]; memset(b, 0, sizeof(b));
6999 ;
7000 return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (ac_try="$ac_link"
7005case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008esac
7009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
7021 { echo "$as_me:$LINENO: result: yes" >&5
7022echo "${ECHO_T}yes" >&6; }
7023else
7024 echo "$as_me: failed program was:" >&5
7025sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029 CFLAGS="$saved_CFLAGS"
7030
7031fi
7032
7033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7034 conftest$ac_exeext conftest.$ac_ext
7035
7036 # -fstack-protector-all doesn't always work for some GCC versions
7037 # and/or platforms, so we test if we can. If it's not supported
7038 # on a given platform gcc will emit a warning so we use -Werror.
7039 if test "x$use_stack_protector" = "x1"; then
7040 for t in -fstack-protector-strong -fstack-protector-all \
7041 -fstack-protector; do
7042 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
7043echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
7044 saved_CFLAGS="$CFLAGS"
7045 saved_LDFLAGS="$LDFLAGS"
7046 CFLAGS="$CFLAGS $t -Werror"
7047 LDFLAGS="$LDFLAGS $t -Werror"
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054 #include <stdio.h>
7055int
7056main ()
7057{
7058
7059 char x[256];
7060 snprintf(x, sizeof(x), "XXX");
7061
7062 ;
7063 return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext conftest$ac_exeext
7067if { (ac_try="$ac_link"
7068case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest$ac_exeext &&
7083 $as_test_x conftest$ac_exeext; then
7084 { echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6; }
7086 CFLAGS="$saved_CFLAGS $t"
7087 LDFLAGS="$saved_LDFLAGS $t"
7088 { echo "$as_me:$LINENO: checking if $t works" >&5
7089echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
7090 if test "$cross_compiling" = yes; then
7091 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
7092echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
7093 break
7094
7095else
7096 cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h. */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h. */
7102 #include <stdio.h>
7103int
7104main ()
7105{
7106
7107 char x[256];
7108 snprintf(x, sizeof(x), "XXX");
7109
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114rm -f conftest$ac_exeext
7115if { (ac_try="$ac_link"
7116case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119esac
7120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_link") 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125 { (case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128esac
7129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_try") 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 { echo "$as_me:$LINENO: result: yes" >&5
7135echo "${ECHO_T}yes" >&6; }
7136 break
7137else
7138 echo "$as_me: program exited with status $ac_status" >&5
7139echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142( exit $ac_status )
7143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
7145fi
7146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7147fi
7148
7149
7150
7151else
7152 echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157
7158fi
7159
7160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7161 conftest$ac_exeext conftest.$ac_ext
7162 CFLAGS="$saved_CFLAGS"
7163 LDFLAGS="$saved_LDFLAGS"
7164 done
7165 fi
7166
7167 if test -z "$have_llong_max"; then
7168 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
7169 unset ac_cv_have_decl_LLONG_MAX
7170 saved_CFLAGS="$CFLAGS"
7171 CFLAGS="$CFLAGS -std=gnu99"
7172 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
7173echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
7174if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h. */
7183#include <limits.h>
7184
7185
7186int
7187main ()
7188{
7189#ifndef LLONG_MAX
7190 (void) LLONG_MAX;
7191#endif
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197rm -f conftest.$ac_objext
7198if { (ac_try="$ac_compile"
7199case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
7214 ac_cv_have_decl_LLONG_MAX=yes
7215else
7216 echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_cv_have_decl_LLONG_MAX=no
7220fi
7221
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223fi
7224{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
7225echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
7226if test $ac_cv_have_decl_LLONG_MAX = yes; then
7227 have_llong_max=1
7228else
7229 CFLAGS="$saved_CFLAGS"
7230fi
7231
7232 fi
7233fi
7234
7235{ echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5
7236echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; }
7237cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h. */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h. */
7243
7244#include <stdlib.h>
7245__attribute__((__unused__)) static void foo(void){return;}
7246int
7247main ()
7248{
7249 exit(0);
7250 ;
7251 return 0;
7252}
7253_ACEOF
7254rm -f conftest.$ac_objext
7255if { (ac_try="$ac_compile"
7256case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259esac
7260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_compile") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest.$ac_objext; then
7271 { echo "$as_me:$LINENO: result: yes" >&5
7272echo "${ECHO_T}yes" >&6; }
7273else
7274 echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define NO_ATTRIBUTE_ON_RETURN_TYPE 1
7282_ACEOF
7283
7284
7285fi
7286
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288
7289if test "x$no_attrib_nonnull" != "x1" ; then
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define HAVE_ATTRIBUTE__NONNULL__ 1
7293_ACEOF
7294
7295fi
7296
7297
7298# Check whether --with-rpath was given.
7299if test "${with_rpath+set}" = set; then
7300 withval=$with_rpath;
7301 if test "x$withval" = "xno" ; then
7302 need_dash_r=""
7303 fi
7304 if test "x$withval" = "xyes" ; then
7305 need_dash_r=1
7306 fi
7307
7308
7309fi
7310
7311
7312# Allow user to specify flags
7313
7314# Check whether --with-cflags was given.
7315if test "${with_cflags+set}" = set; then
7316 withval=$with_cflags;
7317 if test -n "$withval" && test "x$withval" != "xno" && \
7318 test "x${withval}" != "xyes"; then
7319 CFLAGS="$CFLAGS $withval"
7320 fi
7321
7322
7323fi
7324
7325
7326# Check whether --with-cppflags was given.
7327if test "${with_cppflags+set}" = set; then
7328 withval=$with_cppflags;
7329 if test -n "$withval" && test "x$withval" != "xno" && \
7330 test "x${withval}" != "xyes"; then
7331 CPPFLAGS="$CPPFLAGS $withval"
7332 fi
7333
7334
7335fi
7336
7337
7338# Check whether --with-ldflags was given.
7339if test "${with_ldflags+set}" = set; then
7340 withval=$with_ldflags;
7341 if test -n "$withval" && test "x$withval" != "xno" && \
7342 test "x${withval}" != "xyes"; then
7343 LDFLAGS="$LDFLAGS $withval"
7344 fi
7345
7346
7347fi
7348
7349
7350# Check whether --with-libs was given.
7351if test "${with_libs+set}" = set; then
7352 withval=$with_libs;
7353 if test -n "$withval" && test "x$withval" != "xno" && \
7354 test "x${withval}" != "xyes"; then
7355 LIBS="$LIBS $withval"
7356 fi
7357
7358
7359fi
7360
7361
7362# Check whether --with-Werror was given.
7363if test "${with_Werror+set}" = set; then
7364 withval=$with_Werror;
7365 if test -n "$withval" && test "x$withval" != "xno"; then
7366 werror_flags="-Werror"
7367 if test "x${withval}" != "xyes"; then
7368 werror_flags="$withval"
7369 fi
7370 fi
7371
7372
7373fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443for ac_header in \
7444 blf.h \
7445 bstring.h \
7446 crypt.h \
7447 crypto/sha2.h \
7448 dirent.h \
7449 endian.h \
7450 elf.h \
7451 features.h \
7452 fcntl.h \
7453 floatingpoint.h \
7454 getopt.h \
7455 glob.h \
7456 ia.h \
7457 iaf.h \
7458 inttypes.h \
7459 limits.h \
7460 locale.h \
7461 login.h \
7462 maillock.h \
7463 ndir.h \
7464 net/if_tun.h \
7465 netdb.h \
7466 netgroup.h \
7467 pam/pam_appl.h \
7468 paths.h \
7469 poll.h \
7470 pty.h \
7471 readpassphrase.h \
7472 rpc/types.h \
7473 security/pam_appl.h \
7474 sha2.h \
7475 shadow.h \
7476 stddef.h \
7477 stdint.h \
7478 string.h \
7479 strings.h \
7480 sys/audit.h \
7481 sys/bitypes.h \
7482 sys/bsdtty.h \
7483 sys/capability.h \
7484 sys/cdefs.h \
7485 sys/dir.h \
7486 sys/mman.h \
7487 sys/ndir.h \
7488 sys/poll.h \
7489 sys/prctl.h \
7490 sys/pstat.h \
7491 sys/select.h \
7492 sys/stat.h \
7493 sys/stream.h \
7494 sys/stropts.h \
7495 sys/strtio.h \
7496 sys/statvfs.h \
7497 sys/sysmacros.h \
7498 sys/time.h \
7499 sys/timers.h \
7500 time.h \
7501 tmpdir.h \
7502 ttyent.h \
7503 ucred.h \
7504 unistd.h \
7505 usersec.h \
7506 util.h \
7507 utime.h \
7508 utmp.h \
7509 utmpx.h \
7510 vis.h \
7511
7512do
7513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519fi
7520ac_res=`eval echo '${'$as_ac_Header'}'`
7521 { echo "$as_me:$LINENO: result: $ac_res" >&5
7522echo "${ECHO_T}$ac_res" >&6; }
7523else
7524 # Is the header compilable?
7525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7527cat >conftest.$ac_ext <<_ACEOF
7528/* confdefs.h. */
7529_ACEOF
7530cat confdefs.h >>conftest.$ac_ext
7531cat >>conftest.$ac_ext <<_ACEOF
7532/* end confdefs.h. */
7533$ac_includes_default
7534#include <$ac_header>
7535_ACEOF
7536rm -f conftest.$ac_objext
7537if { (ac_try="$ac_compile"
7538case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541esac
7542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 ac_header_compiler=yes
7554else
7555 echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ac_header_compiler=no
7559fi
7560
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7563echo "${ECHO_T}$ac_header_compiler" >&6; }
7564
7565# Is the header present?
7566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7568cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
7574#include <$ac_header>
7575_ACEOF
7576if { (ac_try="$ac_cpp conftest.$ac_ext"
7577case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580esac
7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } >/dev/null && {
7589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 }; then
7592 ac_header_preproc=yes
7593else
7594 echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 ac_header_preproc=no
7598fi
7599
7600rm -f conftest.err conftest.$ac_ext
7601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7602echo "${ECHO_T}$ac_header_preproc" >&6; }
7603
7604# So? What about this header?
7605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7606 yes:no: )
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7611 ac_header_preproc=yes
7612 ;;
7613 no:yes:* )
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7626 ( cat <<\_ASBOX
7627## ------------------------------------------- ##
7628## Report this to openssh-unix-dev@mindrot.org ##
7629## ------------------------------------------- ##
7630_ASBOX
7631 ) | sed "s/^/$as_me: WARNING: /" >&2
7632 ;;
7633esac
7634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 eval "$as_ac_Header=\$ac_header_preproc"
7640fi
7641ac_res=`eval echo '${'$as_ac_Header'}'`
7642 { echo "$as_me:$LINENO: result: $ac_res" >&5
7643echo "${ECHO_T}$ac_res" >&6; }
7644
7645fi
7646if test `eval echo '${'$as_ac_Header'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649_ACEOF
7650
7651fi
7652
7653done
7654
7655
7656# lastlog.h requires sys/time.h to be included first on Solaris
7657
7658for ac_header in lastlog.h
7659do
7660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */
7672
7673#ifdef HAVE_SYS_TIME_H
7674# include <sys/time.h>
7675#endif
7676
7677
7678#include <$ac_header>
7679_ACEOF
7680rm -f conftest.$ac_objext
7681if { (ac_try="$ac_compile"
7682case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.$ac_objext; then
7697 eval "$as_ac_Header=yes"
7698else
7699 echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702 eval "$as_ac_Header=no"
7703fi
7704
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706fi
7707ac_res=`eval echo '${'$as_ac_Header'}'`
7708 { echo "$as_me:$LINENO: result: $ac_res" >&5
7709echo "${ECHO_T}$ac_res" >&6; }
7710if test `eval echo '${'$as_ac_Header'}'` = yes; then
7711 cat >>confdefs.h <<_ACEOF
7712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719
7720# sys/ptms.h requires sys/stream.h to be included first on Solaris
7721
7722for ac_header in sys/ptms.h
7723do
7724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736
7737#ifdef HAVE_SYS_STREAM_H
7738# include <sys/stream.h>
7739#endif
7740
7741
7742#include <$ac_header>
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (ac_try="$ac_compile"
7746case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
7750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_compile") 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest.$ac_objext; then
7761 eval "$as_ac_Header=yes"
7762else
7763 echo "$as_me: failed program was:" >&5
7764sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 eval "$as_ac_Header=no"
7767fi
7768
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771ac_res=`eval echo '${'$as_ac_Header'}'`
7772 { echo "$as_me:$LINENO: result: $ac_res" >&5
7773echo "${ECHO_T}$ac_res" >&6; }
7774if test `eval echo '${'$as_ac_Header'}'` = yes; then
7775 cat >>confdefs.h <<_ACEOF
7776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7777_ACEOF
7778
7779fi
7780
7781done
7782
7783
7784# login_cap.h requires sys/types.h on NetBSD
7785
7786for ac_header in login_cap.h
7787do
7788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800
7801#include <sys/types.h>
7802
7803
7804#include <$ac_header>
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (ac_try="$ac_compile"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 eval "$as_ac_Header=yes"
7824else
7825 echo "$as_me: failed program was:" >&5
7826sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 eval "$as_ac_Header=no"
7829fi
7830
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833ac_res=`eval echo '${'$as_ac_Header'}'`
7834 { echo "$as_me:$LINENO: result: $ac_res" >&5
7835echo "${ECHO_T}$ac_res" >&6; }
7836if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839_ACEOF
7840
7841fi
7842
7843done
7844
7845
7846# older BSDs need sys/param.h before sys/mount.h
7847
7848for ac_header in sys/mount.h
7849do
7850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h. */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h. */
7862
7863#include <sys/param.h>
7864
7865
7866#include <$ac_header>
7867_ACEOF
7868rm -f conftest.$ac_objext
7869if { (ac_try="$ac_compile"
7870case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.$ac_objext; then
7885 eval "$as_ac_Header=yes"
7886else
7887 echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 eval "$as_ac_Header=no"
7891fi
7892
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894fi
7895ac_res=`eval echo '${'$as_ac_Header'}'`
7896 { echo "$as_me:$LINENO: result: $ac_res" >&5
7897echo "${ECHO_T}$ac_res" >&6; }
7898if test `eval echo '${'$as_ac_Header'}'` = yes; then
7899 cat >>confdefs.h <<_ACEOF
7900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901_ACEOF
7902
7903fi
7904
7905done
7906
7907
7908# Android requires sys/socket.h to be included before sys/un.h
7909
7910for ac_header in sys/un.h
7911do
7912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924
7925#include <sys/types.h>
7926#include <sys/socket.h>
7927
7928
7929#include <$ac_header>
7930_ACEOF
7931rm -f conftest.$ac_objext
7932if { (ac_try="$ac_compile"
7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 eval "$as_ac_Header=yes"
7949else
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 eval "$as_ac_Header=no"
7954fi
7955
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958ac_res=`eval echo '${'$as_ac_Header'}'`
7959 { echo "$as_me:$LINENO: result: $ac_res" >&5
7960echo "${ECHO_T}$ac_res" >&6; }
7961if test `eval echo '${'$as_ac_Header'}'` = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7964_ACEOF
7965
7966fi
7967
7968done
7969
7970
7971# Messages for features tested for in target-specific section
7972SIA_MSG="no"
7973SPC_MSG="no"
7974SP_MSG="no"
7975
7976# Check for some target-specific stuff
7977case "$host" in
7978*-*-aix*)
7979 # Some versions of VAC won't allow macro redefinitions at
7980 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7981 # particularly with older versions of vac or xlc.
7982 # It also throws errors about null macro argments, but these are
7983 # not fatal.
7984 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
7985echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
7986 cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
7992
7993#define testmacro foo
7994#define testmacro bar
7995int
7996main ()
7997{
7998 exit(0);
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext
8004if { (ac_try="$ac_compile"
8005case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008esac
8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 { echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6; }
8022else
8023 echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 { echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6; }
8028 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
8029 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
8030 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8031 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8032
8033
8034fi
8035
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037
8038 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
8039echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
8040 if (test -z "$blibpath"); then
8041 blibpath="/usr/lib:/lib"
8042 fi
8043 saved_LDFLAGS="$LDFLAGS"
8044 if test "$GCC" = "yes"; then
8045 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
8046 else
8047 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
8048 fi
8049 for tryflags in $flags ;do
8050 if (test -z "$blibflags"); then
8051 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
8052 cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h. */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h. */
8058
8059int
8060main ()
8061{
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
8068if { (ac_try="$ac_link"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_link") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest$ac_exeext &&
8084 $as_test_x conftest$ac_exeext; then
8085 blibflags=$tryflags
8086else
8087 echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090
8091fi
8092
8093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8094 conftest$ac_exeext conftest.$ac_ext
8095 fi
8096 done
8097 if (test -z "$blibflags"); then
8098 { echo "$as_me:$LINENO: result: not found" >&5
8099echo "${ECHO_T}not found" >&6; }
8100 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
8101echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
8102 { (exit 1); exit 1; }; }
8103 else
8104 { echo "$as_me:$LINENO: result: $blibflags" >&5
8105echo "${ECHO_T}$blibflags" >&6; }
8106 fi
8107 LDFLAGS="$saved_LDFLAGS"
8108 { echo "$as_me:$LINENO: checking for authenticate" >&5
8109echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
8110if test "${ac_cv_func_authenticate+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
8120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8121#define authenticate innocuous_authenticate
8122
8123/* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char authenticate (); below.
8125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126 <limits.h> exists even on freestanding compilers. */
8127
8128#ifdef __STDC__
8129# include <limits.h>
8130#else
8131# include <assert.h>
8132#endif
8133
8134#undef authenticate
8135
8136/* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
8139#ifdef __cplusplus
8140extern "C"
8141#endif
8142char authenticate ();
8143/* The GNU C library defines this for functions which it implements
8144 to always fail with ENOSYS. Some functions are actually named
8145 something starting with __ and the normal name is an alias. */
8146#if defined __stub_authenticate || defined __stub___authenticate
8147choke me
8148#endif
8149
8150int
8151main ()
8152{
8153return authenticate ();
8154 ;
8155 return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (ac_try="$ac_link"
8160case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_link") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest$ac_exeext &&
8175 $as_test_x conftest$ac_exeext; then
8176 ac_cv_func_authenticate=yes
8177else
8178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_cv_func_authenticate=no
8182fi
8183
8184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8186fi
8187{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
8188echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
8189if test $ac_cv_func_authenticate = yes; then
8190
8191cat >>confdefs.h <<\_ACEOF
8192#define WITH_AIXAUTHENTICATE 1
8193_ACEOF
8194
8195else
8196 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
8197echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
8198if test "${ac_cv_lib_s_authenticate+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 ac_check_lib_save_LIBS=$LIBS
8202LIBS="-ls $LIBS"
8203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */
8209
8210/* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8213#ifdef __cplusplus
8214extern "C"
8215#endif
8216char authenticate ();
8217int
8218main ()
8219{
8220return authenticate ();
8221 ;
8222 return 0;
8223}
8224_ACEOF
8225rm -f conftest.$ac_objext conftest$ac_exeext
8226if { (ac_try="$ac_link"
8227case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_link") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest$ac_exeext &&
8242 $as_test_x conftest$ac_exeext; then
8243 ac_cv_lib_s_authenticate=yes
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_cv_lib_s_authenticate=no
8249fi
8250
8251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8252 conftest$ac_exeext conftest.$ac_ext
8253LIBS=$ac_check_lib_save_LIBS
8254fi
8255{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
8256echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
8257if test $ac_cv_lib_s_authenticate = yes; then
8258 cat >>confdefs.h <<\_ACEOF
8259#define WITH_AIXAUTHENTICATE 1
8260_ACEOF
8261
8262 LIBS="$LIBS -ls"
8263
8264fi
8265
8266
8267fi
8268
8269 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
8270echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
8271if test "${ac_cv_have_decl_authenticate+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280#include <usersec.h>
8281
8282int
8283main ()
8284{
8285#ifndef authenticate
8286 (void) authenticate;
8287#endif
8288
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293rm -f conftest.$ac_objext
8294if { (ac_try="$ac_compile"
8295case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_have_decl_authenticate=yes
8311else
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_have_decl_authenticate=no
8316fi
8317
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319fi
8320{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
8321echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
8322if test $ac_cv_have_decl_authenticate = yes; then
8323
8324cat >>confdefs.h <<_ACEOF
8325#define HAVE_DECL_AUTHENTICATE 1
8326_ACEOF
8327
8328
8329else
8330 cat >>confdefs.h <<_ACEOF
8331#define HAVE_DECL_AUTHENTICATE 0
8332_ACEOF
8333
8334
8335fi
8336{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
8337echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
8338if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341 cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
8347#include <usersec.h>
8348
8349int
8350main ()
8351{
8352#ifndef loginrestrictions
8353 (void) loginrestrictions;
8354#endif
8355
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext
8361if { (ac_try="$ac_compile"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_have_decl_loginrestrictions=yes
8378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_have_decl_loginrestrictions=no
8383fi
8384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386fi
8387{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
8388echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
8389if test $ac_cv_have_decl_loginrestrictions = yes; then
8390
8391cat >>confdefs.h <<_ACEOF
8392#define HAVE_DECL_LOGINRESTRICTIONS 1
8393_ACEOF
8394
8395
8396else
8397 cat >>confdefs.h <<_ACEOF
8398#define HAVE_DECL_LOGINRESTRICTIONS 0
8399_ACEOF
8400
8401
8402fi
8403{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
8404echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
8405if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414#include <usersec.h>
8415
8416int
8417main ()
8418{
8419#ifndef loginsuccess
8420 (void) loginsuccess;
8421#endif
8422
8423 ;
8424 return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (ac_try="$ac_compile"
8429case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_have_decl_loginsuccess=yes
8445else
8446 echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_have_decl_loginsuccess=no
8450fi
8451
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453fi
8454{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
8455echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
8456if test $ac_cv_have_decl_loginsuccess = yes; then
8457
8458cat >>confdefs.h <<_ACEOF
8459#define HAVE_DECL_LOGINSUCCESS 1
8460_ACEOF
8461
8462
8463else
8464 cat >>confdefs.h <<_ACEOF
8465#define HAVE_DECL_LOGINSUCCESS 0
8466_ACEOF
8467
8468
8469fi
8470{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
8471echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
8472if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475 cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
8481#include <usersec.h>
8482
8483int
8484main ()
8485{
8486#ifndef passwdexpired
8487 (void) passwdexpired;
8488#endif
8489
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_have_decl_passwdexpired=yes
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_have_decl_passwdexpired=no
8517fi
8518
8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520fi
8521{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
8522echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
8523if test $ac_cv_have_decl_passwdexpired = yes; then
8524
8525cat >>confdefs.h <<_ACEOF
8526#define HAVE_DECL_PASSWDEXPIRED 1
8527_ACEOF
8528
8529
8530else
8531 cat >>confdefs.h <<_ACEOF
8532#define HAVE_DECL_PASSWDEXPIRED 0
8533_ACEOF
8534
8535
8536fi
8537{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
8538echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
8539if test "${ac_cv_have_decl_setauthdb+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542 cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h. */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h. */
8548#include <usersec.h>
8549
8550int
8551main ()
8552{
8553#ifndef setauthdb
8554 (void) setauthdb;
8555#endif
8556
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext
8562if { (ac_try="$ac_compile"
8563case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_have_decl_setauthdb=yes
8579else
8580 echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_have_decl_setauthdb=no
8584fi
8585
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
8589echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
8590if test $ac_cv_have_decl_setauthdb = yes; then
8591
8592cat >>confdefs.h <<_ACEOF
8593#define HAVE_DECL_SETAUTHDB 1
8594_ACEOF
8595
8596
8597else
8598 cat >>confdefs.h <<_ACEOF
8599#define HAVE_DECL_SETAUTHDB 0
8600_ACEOF
8601
8602
8603fi
8604
8605
8606 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
8607echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
8608if test "${ac_cv_have_decl_loginfailed+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611 cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617#include <usersec.h>
8618
8619
8620int
8621main ()
8622{
8623#ifndef loginfailed
8624 (void) loginfailed;
8625#endif
8626
8627 ;
8628 return 0;
8629}
8630_ACEOF
8631rm -f conftest.$ac_objext
8632if { (ac_try="$ac_compile"
8633case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_have_decl_loginfailed=yes
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_cv_have_decl_loginfailed=no
8654fi
8655
8656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657fi
8658{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
8659echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
8660if test $ac_cv_have_decl_loginfailed = yes; then
8661
8662cat >>confdefs.h <<_ACEOF
8663#define HAVE_DECL_LOGINFAILED 1
8664_ACEOF
8665
8666{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
8667echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
8668 cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h. */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h. */
8674 #include <usersec.h>
8675int
8676main ()
8677{
8678 (void)loginfailed("user","host","tty",0);
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext
8684if { (ac_try="$ac_compile"
8685case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688esac
8689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 { echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6; }
8702
8703cat >>confdefs.h <<\_ACEOF
8704#define AIX_LOGINFAILED_4ARG 1
8705_ACEOF
8706
8707else
8708 echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 { echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6; }
8713
8714fi
8715
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717else
8718 cat >>confdefs.h <<_ACEOF
8719#define HAVE_DECL_LOGINFAILED 0
8720_ACEOF
8721
8722
8723fi
8724
8725
8726
8727
8728for ac_func in getgrset setauthdb
8729do
8730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8731{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735else
8736 cat >conftest.$ac_ext <<_ACEOF
8737/* confdefs.h. */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h. */
8742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8744#define $ac_func innocuous_$ac_func
8745
8746/* System header to define __stub macros and hopefully few prototypes,
8747 which can conflict with char $ac_func (); below.
8748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749 <limits.h> exists even on freestanding compilers. */
8750
8751#ifdef __STDC__
8752# include <limits.h>
8753#else
8754# include <assert.h>
8755#endif
8756
8757#undef $ac_func
8758
8759/* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8762#ifdef __cplusplus
8763extern "C"
8764#endif
8765char $ac_func ();
8766/* The GNU C library defines this for functions which it implements
8767 to always fail with ENOSYS. Some functions are actually named
8768 something starting with __ and the normal name is an alias. */
8769#if defined __stub_$ac_func || defined __stub___$ac_func
8770choke me
8771#endif
8772
8773int
8774main ()
8775{
8776return $ac_func ();
8777 ;
8778 return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext conftest$ac_exeext
8782if { (ac_try="$ac_link"
8783case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_link") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest$ac_exeext &&
8798 $as_test_x conftest$ac_exeext; then
8799 eval "$as_ac_var=yes"
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 eval "$as_ac_var=no"
8805fi
8806
8807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8808 conftest$ac_exeext conftest.$ac_ext
8809fi
8810ac_res=`eval echo '${'$as_ac_var'}'`
8811 { echo "$as_me:$LINENO: result: $ac_res" >&5
8812echo "${ECHO_T}$ac_res" >&6; }
8813if test `eval echo '${'$as_ac_var'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816_ACEOF
8817
8818fi
8819done
8820
8821 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
8822echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
8823if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825else
8826 cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h. */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */
8832 #include <limits.h>
8833 #include <fcntl.h>
8834
8835
8836int
8837main ()
8838{
8839#ifndef F_CLOSEM
8840 (void) F_CLOSEM;
8841#endif
8842
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext
8848if { (ac_try="$ac_compile"
8849case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest.$ac_objext; then
8864 ac_cv_have_decl_F_CLOSEM=yes
8865else
8866 echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_cv_have_decl_F_CLOSEM=no
8870fi
8871
8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873fi
8874{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
8875echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
8876if test $ac_cv_have_decl_F_CLOSEM = yes; then
8877
8878cat >>confdefs.h <<\_ACEOF
8879#define HAVE_FCNTL_CLOSEM 1
8880_ACEOF
8881
8882fi
8883
8884 check_for_aix_broken_getaddrinfo=1
8885
8886cat >>confdefs.h <<\_ACEOF
8887#define BROKEN_REALPATH 1
8888_ACEOF
8889
8890
8891cat >>confdefs.h <<\_ACEOF
8892#define SETEUID_BREAKS_SETUID 1
8893_ACEOF
8894
8895
8896cat >>confdefs.h <<\_ACEOF
8897#define BROKEN_SETREUID 1
8898_ACEOF
8899
8900
8901cat >>confdefs.h <<\_ACEOF
8902#define BROKEN_SETREGID 1
8903_ACEOF
8904
8905
8906cat >>confdefs.h <<\_ACEOF
8907#define DISABLE_LASTLOG 1
8908_ACEOF
8909
8910
8911cat >>confdefs.h <<\_ACEOF
8912#define LOGIN_NEEDS_UTMPX 1
8913_ACEOF
8914
8915
8916cat >>confdefs.h <<\_ACEOF
8917#define SPT_TYPE SPT_REUSEARGV
8918_ACEOF
8919
8920
8921cat >>confdefs.h <<\_ACEOF
8922#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8923_ACEOF
8924
8925
8926cat >>confdefs.h <<\_ACEOF
8927#define PTY_ZEROREAD 1
8928_ACEOF
8929
8930
8931cat >>confdefs.h <<\_ACEOF
8932#define PLATFORM_SYS_DIR_UID 2
8933_ACEOF
8934
8935 ;;
8936*-*-android*)
8937
8938cat >>confdefs.h <<\_ACEOF
8939#define DISABLE_UTMP 1
8940_ACEOF
8941
8942
8943cat >>confdefs.h <<\_ACEOF
8944#define DISABLE_WTMP 1
8945_ACEOF
8946
8947 ;;
8948*-*-cygwin*)
8949 check_for_libcrypt_later=1
8950 LIBS="$LIBS /usr/lib/textreadmode.o"
8951
8952cat >>confdefs.h <<\_ACEOF
8953#define HAVE_CYGWIN 1
8954_ACEOF
8955
8956
8957cat >>confdefs.h <<\_ACEOF
8958#define USE_PIPES 1
8959_ACEOF
8960
8961
8962cat >>confdefs.h <<\_ACEOF
8963#define DISABLE_SHADOW 1
8964_ACEOF
8965
8966
8967cat >>confdefs.h <<\_ACEOF
8968#define NO_X11_UNIX_SOCKETS 1
8969_ACEOF
8970
8971
8972cat >>confdefs.h <<\_ACEOF
8973#define NO_IPPORT_RESERVED_CONCEPT 1
8974_ACEOF
8975
8976
8977cat >>confdefs.h <<\_ACEOF
8978#define DISABLE_FD_PASSING 1
8979_ACEOF
8980
8981
8982cat >>confdefs.h <<\_ACEOF
8983#define SSH_IOBUFSZ 65535
8984_ACEOF
8985
8986
8987cat >>confdefs.h <<\_ACEOF
8988#define FILESYSTEM_NO_BACKSLASH 1
8989_ACEOF
8990
8991 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
8992 # reasons which cause compile warnings, so we disable those warnings.
8993 {
8994 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5
8995echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; }
8996 saved_CFLAGS="$CFLAGS"
8997 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
8998 _define_flag=""
8999 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
9000 cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h. */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h. */
9006
9007#include <stdlib.h>
9008#include <stdio.h>
9009int main(int argc, char **argv) {
9010 /* Some math to catch -ftrapv problems in the toolchain */
9011 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
9012 float l = i * 2.1;
9013 double m = l / 0.5;
9014 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
9015 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
9016 exit(0);
9017}
9018
9019_ACEOF
9020rm -f conftest.$ac_objext
9021if { (ac_try="$ac_compile"
9022case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025esac
9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_compile") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest.$ac_objext; then
9037
9038if `grep -i "unrecognized option" conftest.err >/dev/null`
9039then
9040 { echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6; }
9042 CFLAGS="$saved_CFLAGS"
9043else
9044 { echo "$as_me:$LINENO: result: yes" >&5
9045echo "${ECHO_T}yes" >&6; }
9046 CFLAGS="$saved_CFLAGS $_define_flag"
9047fi
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 { echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6; }
9054 CFLAGS="$saved_CFLAGS"
9055
9056fi
9057
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059}
9060 ;;
9061*-*-dgux*)
9062
9063cat >>confdefs.h <<\_ACEOF
9064#define IP_TOS_IS_BROKEN 1
9065_ACEOF
9066
9067 cat >>confdefs.h <<\_ACEOF
9068#define SETEUID_BREAKS_SETUID 1
9069_ACEOF
9070
9071 cat >>confdefs.h <<\_ACEOF
9072#define BROKEN_SETREUID 1
9073_ACEOF
9074
9075 cat >>confdefs.h <<\_ACEOF
9076#define BROKEN_SETREGID 1
9077_ACEOF
9078
9079 ;;
9080*-*-darwin*)
9081 use_pie=auto
9082 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
9083echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
9084 if test "$cross_compiling" = yes; then
9085 { echo "$as_me:$LINENO: result: assume it is working" >&5
9086echo "${ECHO_T}assume it is working" >&6; }
9087else
9088 cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h. */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h. */
9094 #include <mach-o/dyld.h>
9095main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
9096 exit(0);
9097 else
9098 exit(1);
9099}
9100
9101_ACEOF
9102rm -f conftest$ac_exeext
9103if { (ac_try="$ac_link"
9104case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9107esac
9108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_link") 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9113 { (case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_try") 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 { echo "$as_me:$LINENO: result: working" >&5
9123echo "${ECHO_T}working" >&6; }
9124else
9125 echo "$as_me: program exited with status $ac_status" >&5
9126echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129( exit $ac_status )
9130{ echo "$as_me:$LINENO: result: buggy" >&5
9131echo "${ECHO_T}buggy" >&6; }
9132
9133cat >>confdefs.h <<\_ACEOF
9134#define BROKEN_GETADDRINFO 1
9135_ACEOF
9136
9137
9138fi
9139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9140fi
9141
9142
9143 cat >>confdefs.h <<\_ACEOF
9144#define SETEUID_BREAKS_SETUID 1
9145_ACEOF
9146
9147 cat >>confdefs.h <<\_ACEOF
9148#define BROKEN_SETREUID 1
9149_ACEOF
9150
9151 cat >>confdefs.h <<\_ACEOF
9152#define BROKEN_SETREGID 1
9153_ACEOF
9154
9155
9156cat >>confdefs.h <<\_ACEOF
9157#define BROKEN_GLOB 1
9158_ACEOF
9159
9160
9161cat >>confdefs.h <<_ACEOF
9162#define BIND_8_COMPAT 1
9163_ACEOF
9164
9165
9166cat >>confdefs.h <<\_ACEOF
9167#define SSH_TUN_FREEBSD 1
9168_ACEOF
9169
9170
9171cat >>confdefs.h <<\_ACEOF
9172#define SSH_TUN_COMPAT_AF 1
9173_ACEOF
9174
9175
9176cat >>confdefs.h <<\_ACEOF
9177#define SSH_TUN_PREPEND_AF 1
9178_ACEOF
9179
9180
9181 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
9182echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
9183if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h. */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h. */
9192$ac_includes_default
9193int
9194main ()
9195{
9196#ifndef AU_IPv4
9197 (void) AU_IPv4;
9198#endif
9199
9200 ;
9201 return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext
9205if { (ac_try="$ac_compile"
9206case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_compile") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest.$ac_objext; then
9221 ac_cv_have_decl_AU_IPv4=yes
9222else
9223 echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 ac_cv_have_decl_AU_IPv4=no
9227fi
9228
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
9232echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
9233if test $ac_cv_have_decl_AU_IPv4 = yes; then
9234 :
9235else
9236
9237cat >>confdefs.h <<\_ACEOF
9238#define AU_IPv4 0
9239_ACEOF
9240
9241 #include <bsm/audit.h>
9242
9243cat >>confdefs.h <<\_ACEOF
9244#define LASTLOG_WRITE_PUTUTXLINE 1
9245_ACEOF
9246
9247
9248fi
9249
9250
9251cat >>confdefs.h <<\_ACEOF
9252#define SPT_TYPE SPT_REUSEARGV
9253_ACEOF
9254
9255
9256for ac_func in sandbox_init
9257do
9258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264 cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h. */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h. */
9270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9272#define $ac_func innocuous_$ac_func
9273
9274/* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func (); below.
9276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277 <limits.h> exists even on freestanding compilers. */
9278
9279#ifdef __STDC__
9280# include <limits.h>
9281#else
9282# include <assert.h>
9283#endif
9284
9285#undef $ac_func
9286
9287/* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9290#ifdef __cplusplus
9291extern "C"
9292#endif
9293char $ac_func ();
9294/* The GNU C library defines this for functions which it implements
9295 to always fail with ENOSYS. Some functions are actually named
9296 something starting with __ and the normal name is an alias. */
9297#if defined __stub_$ac_func || defined __stub___$ac_func
9298choke me
9299#endif
9300
9301int
9302main ()
9303{
9304return $ac_func ();
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (ac_try="$ac_link"
9311case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314esac
9315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_link") 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest$ac_exeext &&
9326 $as_test_x conftest$ac_exeext; then
9327 eval "$as_ac_var=yes"
9328else
9329 echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 eval "$as_ac_var=no"
9333fi
9334
9335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9336 conftest$ac_exeext conftest.$ac_ext
9337fi
9338ac_res=`eval echo '${'$as_ac_var'}'`
9339 { echo "$as_me:$LINENO: result: $ac_res" >&5
9340echo "${ECHO_T}$ac_res" >&6; }
9341if test `eval echo '${'$as_ac_var'}'` = yes; then
9342 cat >>confdefs.h <<_ACEOF
9343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9344_ACEOF
9345
9346fi
9347done
9348
9349
9350for ac_header in sandbox.h
9351do
9352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358fi
9359ac_res=`eval echo '${'$as_ac_Header'}'`
9360 { echo "$as_me:$LINENO: result: $ac_res" >&5
9361echo "${ECHO_T}$ac_res" >&6; }
9362else
9363 # Is the header compilable?
9364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9366cat >conftest.$ac_ext <<_ACEOF
9367/* confdefs.h. */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h. */
9372$ac_includes_default
9373#include <$ac_header>
9374_ACEOF
9375rm -f conftest.$ac_objext
9376if { (ac_try="$ac_compile"
9377case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9380esac
9381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_compile") 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && {
9389 test -z "$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest.$ac_objext; then
9392 ac_header_compiler=yes
9393else
9394 echo "$as_me: failed program was:" >&5
9395sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 ac_header_compiler=no
9398fi
9399
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9402echo "${ECHO_T}$ac_header_compiler" >&6; }
9403
9404# Is the header present?
9405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9407cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h. */
9413#include <$ac_header>
9414_ACEOF
9415if { (ac_try="$ac_cpp conftest.$ac_ext"
9416case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } >/dev/null && {
9428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 }; then
9431 ac_header_preproc=yes
9432else
9433 echo "$as_me: failed program was:" >&5
9434sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 ac_header_preproc=no
9437fi
9438
9439rm -f conftest.err conftest.$ac_ext
9440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441echo "${ECHO_T}$ac_header_preproc" >&6; }
9442
9443# So? What about this header?
9444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9445 yes:no: )
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9450 ac_header_preproc=yes
9451 ;;
9452 no:yes:* )
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465 ( cat <<\_ASBOX
9466## ------------------------------------------- ##
9467## Report this to openssh-unix-dev@mindrot.org ##
9468## ------------------------------------------- ##
9469_ASBOX
9470 ) | sed "s/^/$as_me: WARNING: /" >&2
9471 ;;
9472esac
9473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478 eval "$as_ac_Header=\$ac_header_preproc"
9479fi
9480ac_res=`eval echo '${'$as_ac_Header'}'`
9481 { echo "$as_me:$LINENO: result: $ac_res" >&5
9482echo "${ECHO_T}$ac_res" >&6; }
9483
9484fi
9485if test `eval echo '${'$as_ac_Header'}'` = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9488_ACEOF
9489
9490fi
9491
9492done
9493
9494 ;;
9495*-*-dragonfly*)
9496 SSHDLIBS="$SSHDLIBS -lcrypt"
9497 TEST_MALLOC_OPTIONS="AFGJPRX"
9498 ;;
9499*-*-haiku*)
9500 LIBS="$LIBS -lbsd "
9501
9502{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
9503echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
9504if test "${ac_cv_lib_network_socket+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507 ac_check_lib_save_LIBS=$LIBS
9508LIBS="-lnetwork $LIBS"
9509cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515
9516/* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519#ifdef __cplusplus
9520extern "C"
9521#endif
9522char socket ();
9523int
9524main ()
9525{
9526return socket ();
9527 ;
9528 return 0;
9529}
9530_ACEOF
9531rm -f conftest.$ac_objext conftest$ac_exeext
9532if { (ac_try="$ac_link"
9533case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536esac
9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_link") 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && {
9545 test -z "$ac_c_werror_flag" ||
9546 test ! -s conftest.err
9547 } && test -s conftest$ac_exeext &&
9548 $as_test_x conftest$ac_exeext; then
9549 ac_cv_lib_network_socket=yes
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_cv_lib_network_socket=no
9555fi
9556
9557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558 conftest$ac_exeext conftest.$ac_ext
9559LIBS=$ac_check_lib_save_LIBS
9560fi
9561{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
9562echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
9563if test $ac_cv_lib_network_socket = yes; then
9564 cat >>confdefs.h <<_ACEOF
9565#define HAVE_LIBNETWORK 1
9566_ACEOF
9567
9568 LIBS="-lnetwork $LIBS"
9569
9570fi
9571
9572 cat >>confdefs.h <<\_ACEOF
9573#define HAVE_U_INT64_T 1
9574_ACEOF
9575
9576 MANTYPE=man
9577 ;;
9578*-*-hpux*)
9579 # first we define all of the options common to all HP-UX releases
9580 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
9581 IPADDR_IN_DISPLAY=yes
9582 cat >>confdefs.h <<\_ACEOF
9583#define USE_PIPES 1
9584_ACEOF
9585
9586
9587cat >>confdefs.h <<\_ACEOF
9588#define LOGIN_NO_ENDOPT 1
9589_ACEOF
9590
9591 cat >>confdefs.h <<\_ACEOF
9592#define LOGIN_NEEDS_UTMPX 1
9593_ACEOF
9594
9595
9596cat >>confdefs.h <<\_ACEOF
9597#define LOCKED_PASSWD_STRING "*"
9598_ACEOF
9599
9600 cat >>confdefs.h <<\_ACEOF
9601#define SPT_TYPE SPT_PSTAT
9602_ACEOF
9603
9604
9605cat >>confdefs.h <<\_ACEOF
9606#define PLATFORM_SYS_DIR_UID 2
9607_ACEOF
9608
9609 maildir="/var/mail"
9610 LIBS="$LIBS -lsec"
9611
9612{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
9613echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
9614if test "${ac_cv_lib_xnet_t_error+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617 ac_check_lib_save_LIBS=$LIBS
9618LIBS="-lxnet $LIBS"
9619cat >conftest.$ac_ext <<_ACEOF
9620/* confdefs.h. */
9621_ACEOF
9622cat confdefs.h >>conftest.$ac_ext
9623cat >>conftest.$ac_ext <<_ACEOF
9624/* end confdefs.h. */
9625
9626/* Override any GCC internal prototype to avoid an error.
9627 Use char because int might match the return type of a GCC
9628 builtin and then its argument prototype would still apply. */
9629#ifdef __cplusplus
9630extern "C"
9631#endif
9632char t_error ();
9633int
9634main ()
9635{
9636return t_error ();
9637 ;
9638 return 0;
9639}
9640_ACEOF
9641rm -f conftest.$ac_objext conftest$ac_exeext
9642if { (ac_try="$ac_link"
9643case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } && {
9655 test -z "$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 } && test -s conftest$ac_exeext &&
9658 $as_test_x conftest$ac_exeext; then
9659 ac_cv_lib_xnet_t_error=yes
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_cv_lib_xnet_t_error=no
9665fi
9666
9667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9668 conftest$ac_exeext conftest.$ac_ext
9669LIBS=$ac_check_lib_save_LIBS
9670fi
9671{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
9672echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
9673if test $ac_cv_lib_xnet_t_error = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675#define HAVE_LIBXNET 1
9676_ACEOF
9677
9678 LIBS="-lxnet $LIBS"
9679
9680else
9681 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
9682echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
9683 { (exit 1); exit 1; }; }
9684fi
9685
9686
9687 # next, we define all of the options specific to major releases
9688 case "$host" in
9689 *-*-hpux10*)
9690 if test -z "$GCC"; then
9691 CFLAGS="$CFLAGS -Ae"
9692 fi
9693 ;;
9694 *-*-hpux11*)
9695
9696cat >>confdefs.h <<\_ACEOF
9697#define PAM_SUN_CODEBASE 1
9698_ACEOF
9699
9700
9701cat >>confdefs.h <<\_ACEOF
9702#define DISABLE_UTMP 1
9703_ACEOF
9704
9705
9706cat >>confdefs.h <<\_ACEOF
9707#define USE_BTMP 1
9708_ACEOF
9709
9710 check_for_hpux_broken_getaddrinfo=1
9711 check_for_conflicting_getspnam=1
9712 ;;
9713 esac
9714
9715 # lastly, we define options specific to minor releases
9716 case "$host" in
9717 *-*-hpux10.26)
9718
9719cat >>confdefs.h <<\_ACEOF
9720#define HAVE_SECUREWARE 1
9721_ACEOF
9722
9723 disable_ptmx_check=yes
9724 LIBS="$LIBS -lsecpw"
9725 ;;
9726 esac
9727 ;;
9728*-*-irix5*)
9729 PATH="$PATH:/usr/etc"
9730
9731cat >>confdefs.h <<\_ACEOF
9732#define BROKEN_INET_NTOA 1
9733_ACEOF
9734
9735 cat >>confdefs.h <<\_ACEOF
9736#define SETEUID_BREAKS_SETUID 1
9737_ACEOF
9738
9739 cat >>confdefs.h <<\_ACEOF
9740#define BROKEN_SETREUID 1
9741_ACEOF
9742
9743 cat >>confdefs.h <<\_ACEOF
9744#define BROKEN_SETREGID 1
9745_ACEOF
9746
9747
9748cat >>confdefs.h <<\_ACEOF
9749#define WITH_ABBREV_NO_TTY 1
9750_ACEOF
9751
9752 cat >>confdefs.h <<\_ACEOF
9753#define LOCKED_PASSWD_STRING "*LK*"
9754_ACEOF
9755
9756 ;;
9757*-*-irix6*)
9758 PATH="$PATH:/usr/etc"
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define WITH_IRIX_ARRAY 1
9762_ACEOF
9763
9764
9765cat >>confdefs.h <<\_ACEOF
9766#define WITH_IRIX_PROJECT 1
9767_ACEOF
9768
9769
9770cat >>confdefs.h <<\_ACEOF
9771#define WITH_IRIX_AUDIT 1
9772_ACEOF
9773
9774 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
9775echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
9776if test "${ac_cv_func_jlimit_startjob+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778else
9779 cat >conftest.$ac_ext <<_ACEOF
9780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
9786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9787#define jlimit_startjob innocuous_jlimit_startjob
9788
9789/* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char jlimit_startjob (); below.
9791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792 <limits.h> exists even on freestanding compilers. */
9793
9794#ifdef __STDC__
9795# include <limits.h>
9796#else
9797# include <assert.h>
9798#endif
9799
9800#undef jlimit_startjob
9801
9802/* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808char jlimit_startjob ();
9809/* The GNU C library defines this for functions which it implements
9810 to always fail with ENOSYS. Some functions are actually named
9811 something starting with __ and the normal name is an alias. */
9812#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
9813choke me
9814#endif
9815
9816int
9817main ()
9818{
9819return jlimit_startjob ();
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext conftest$ac_exeext
9825if { (ac_try="$ac_link"
9826case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
9830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_link") 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest$ac_exeext &&
9841 $as_test_x conftest$ac_exeext; then
9842 ac_cv_func_jlimit_startjob=yes
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_cv_func_jlimit_startjob=no
9848fi
9849
9850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9851 conftest$ac_exeext conftest.$ac_ext
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
9854echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
9855if test $ac_cv_func_jlimit_startjob = yes; then
9856
9857cat >>confdefs.h <<\_ACEOF
9858#define WITH_IRIX_JOBS 1
9859_ACEOF
9860
9861fi
9862
9863 cat >>confdefs.h <<\_ACEOF
9864#define BROKEN_INET_NTOA 1
9865_ACEOF
9866
9867 cat >>confdefs.h <<\_ACEOF
9868#define SETEUID_BREAKS_SETUID 1
9869_ACEOF
9870
9871 cat >>confdefs.h <<\_ACEOF
9872#define BROKEN_SETREUID 1
9873_ACEOF
9874
9875 cat >>confdefs.h <<\_ACEOF
9876#define BROKEN_SETREGID 1
9877_ACEOF
9878
9879
9880cat >>confdefs.h <<\_ACEOF
9881#define BROKEN_UPDWTMPX 1
9882_ACEOF
9883
9884 cat >>confdefs.h <<\_ACEOF
9885#define WITH_ABBREV_NO_TTY 1
9886_ACEOF
9887
9888 cat >>confdefs.h <<\_ACEOF
9889#define LOCKED_PASSWD_STRING "*LK*"
9890_ACEOF
9891
9892 ;;
9893*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9894 check_for_libcrypt_later=1
9895 cat >>confdefs.h <<\_ACEOF
9896#define PAM_TTY_KLUDGE 1
9897_ACEOF
9898
9899 cat >>confdefs.h <<\_ACEOF
9900#define LOCKED_PASSWD_PREFIX "!"
9901_ACEOF
9902
9903 cat >>confdefs.h <<\_ACEOF
9904#define SPT_TYPE SPT_REUSEARGV
9905_ACEOF
9906
9907
9908cat >>confdefs.h <<\_ACEOF
9909#define _PATH_BTMP "/var/log/btmp"
9910_ACEOF
9911
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define USE_BTMP 1
9915_ACEOF
9916
9917 ;;
9918*-*-linux*)
9919 no_dev_ptmx=1
9920 use_pie=auto
9921 check_for_libcrypt_later=1
9922 check_for_openpty_ctty_bug=1
9923
9924cat >>confdefs.h <<\_ACEOF
9925#define PAM_TTY_KLUDGE 1
9926_ACEOF
9927
9928
9929cat >>confdefs.h <<\_ACEOF
9930#define LOCKED_PASSWD_PREFIX "!"
9931_ACEOF
9932
9933 cat >>confdefs.h <<\_ACEOF
9934#define SPT_TYPE SPT_REUSEARGV
9935_ACEOF
9936
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define LINK_OPNOTSUPP_ERRNO EPERM
9940_ACEOF
9941
9942
9943cat >>confdefs.h <<\_ACEOF
9944#define _PATH_BTMP "/var/log/btmp"
9945_ACEOF
9946
9947 cat >>confdefs.h <<\_ACEOF
9948#define USE_BTMP 1
9949_ACEOF
9950
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define LINUX_OOM_ADJUST 1
9954_ACEOF
9955
9956 inet6_default_4in6=yes
9957 case `uname -r` in
9958 1.*|2.0.*)
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define BROKEN_CMSG_TYPE 1
9962_ACEOF
9963
9964 ;;
9965 esac
9966 # tun(4) forwarding compat code
9967
9968for ac_header in linux/if_tun.h
9969do
9970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976fi
9977ac_res=`eval echo '${'$as_ac_Header'}'`
9978 { echo "$as_me:$LINENO: result: $ac_res" >&5
9979echo "${ECHO_T}$ac_res" >&6; }
9980else
9981 # Is the header compilable?
9982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h. */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h. */
9990$ac_includes_default
9991#include <$ac_header>
9992_ACEOF
9993rm -f conftest.$ac_objext
9994if { (ac_try="$ac_compile"
9995case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998esac
9999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_compile") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest.$ac_objext; then
10010 ac_header_compiler=yes
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_header_compiler=no
10016fi
10017
10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020echo "${ECHO_T}$ac_header_compiler" >&6; }
10021
10022# Is the header present?
10023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10025cat >conftest.$ac_ext <<_ACEOF
10026/* confdefs.h. */
10027_ACEOF
10028cat confdefs.h >>conftest.$ac_ext
10029cat >>conftest.$ac_ext <<_ACEOF
10030/* end confdefs.h. */
10031#include <$ac_header>
10032_ACEOF
10033if { (ac_try="$ac_cpp conftest.$ac_ext"
10034case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } >/dev/null && {
10046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10047 test ! -s conftest.err
10048 }; then
10049 ac_header_preproc=yes
10050else
10051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_header_preproc=no
10055fi
10056
10057rm -f conftest.err conftest.$ac_ext
10058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10059echo "${ECHO_T}$ac_header_preproc" >&6; }
10060
10061# So? What about this header?
10062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063 yes:no: )
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10068 ac_header_preproc=yes
10069 ;;
10070 no:yes:* )
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10083 ( cat <<\_ASBOX
10084## ------------------------------------------- ##
10085## Report this to openssh-unix-dev@mindrot.org ##
10086## ------------------------------------------- ##
10087_ASBOX
10088 ) | sed "s/^/$as_me: WARNING: /" >&2
10089 ;;
10090esac
10091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096 eval "$as_ac_Header=\$ac_header_preproc"
10097fi
10098ac_res=`eval echo '${'$as_ac_Header'}'`
10099 { echo "$as_me:$LINENO: result: $ac_res" >&5
10100echo "${ECHO_T}$ac_res" >&6; }
10101
10102fi
10103if test `eval echo '${'$as_ac_Header'}'` = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106_ACEOF
10107
10108fi
10109
10110done
10111
10112 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
10113
10114cat >>confdefs.h <<\_ACEOF
10115#define SSH_TUN_LINUX 1
10116_ACEOF
10117
10118
10119cat >>confdefs.h <<\_ACEOF
10120#define SSH_TUN_COMPAT_AF 1
10121_ACEOF
10122
10123
10124cat >>confdefs.h <<\_ACEOF
10125#define SSH_TUN_PREPEND_AF 1
10126_ACEOF
10127
10128 fi
10129
10130
10131
10132for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
10133do
10134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140 cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h. */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h. */
10146#include <linux/types.h>
10147
10148#include <$ac_header>
10149_ACEOF
10150rm -f conftest.$ac_objext
10151if { (ac_try="$ac_compile"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_compile") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest.$ac_objext; then
10167 eval "$as_ac_Header=yes"
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 eval "$as_ac_Header=no"
10173fi
10174
10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176fi
10177ac_res=`eval echo '${'$as_ac_Header'}'`
10178 { echo "$as_me:$LINENO: result: $ac_res" >&5
10179echo "${ECHO_T}$ac_res" >&6; }
10180if test `eval echo '${'$as_ac_Header'}'` = yes; then
10181 cat >>confdefs.h <<_ACEOF
10182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10183_ACEOF
10184
10185fi
10186
10187done
10188
10189
10190for ac_func in prctl
10191do
10192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10206#define $ac_func innocuous_$ac_func
10207
10208/* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char $ac_func (); below.
10210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211 <limits.h> exists even on freestanding compilers. */
10212
10213#ifdef __STDC__
10214# include <limits.h>
10215#else
10216# include <assert.h>
10217#endif
10218
10219#undef $ac_func
10220
10221/* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224#ifdef __cplusplus
10225extern "C"
10226#endif
10227char $ac_func ();
10228/* The GNU C library defines this for functions which it implements
10229 to always fail with ENOSYS. Some functions are actually named
10230 something starting with __ and the normal name is an alias. */
10231#if defined __stub_$ac_func || defined __stub___$ac_func
10232choke me
10233#endif
10234
10235int
10236main ()
10237{
10238return $ac_func ();
10239 ;
10240 return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
10244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest$ac_exeext &&
10260 $as_test_x conftest$ac_exeext; then
10261 eval "$as_ac_var=yes"
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 eval "$as_ac_var=no"
10267fi
10268
10269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10271fi
10272ac_res=`eval echo '${'$as_ac_var'}'`
10273 { echo "$as_me:$LINENO: result: $ac_res" >&5
10274echo "${ECHO_T}$ac_res" >&6; }
10275if test `eval echo '${'$as_ac_var'}'` = yes; then
10276 cat >>confdefs.h <<_ACEOF
10277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278_ACEOF
10279
10280fi
10281done
10282
10283 { echo "$as_me:$LINENO: checking for seccomp architecture" >&5
10284echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; }
10285 seccomp_audit_arch=
10286 case "$host" in
10287 x86_64-*)
10288 seccomp_audit_arch=AUDIT_ARCH_X86_64
10289 ;;
10290 i*86-*)
10291 seccomp_audit_arch=AUDIT_ARCH_I386
10292 ;;
10293 arm*-*)
10294 seccomp_audit_arch=AUDIT_ARCH_ARM
10295 ;;
10296 aarch64*-*)
10297 seccomp_audit_arch=AUDIT_ARCH_AARCH64
10298 ;;
10299 esac
10300 if test "x$seccomp_audit_arch" != "x" ; then
10301 { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5
10302echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; }
10303
10304cat >>confdefs.h <<_ACEOF
10305#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
10306_ACEOF
10307
10308 else
10309 { echo "$as_me:$LINENO: result: architecture not supported" >&5
10310echo "${ECHO_T}architecture not supported" >&6; }
10311 fi
10312 ;;
10313mips-sony-bsd|mips-sony-newsos4)
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define NEED_SETPGRP 1
10317_ACEOF
10318
10319 SONY=1
10320 ;;
10321*-*-netbsd*)
10322 check_for_libcrypt_before=1
10323 if test "x$withval" != "xno" ; then
10324 need_dash_r=1
10325 fi
10326
10327cat >>confdefs.h <<\_ACEOF
10328#define SSH_TUN_FREEBSD 1
10329_ACEOF
10330
10331 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10332 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10333echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10334if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336fi
10337{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10338echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10339else
10340 # Is the header compilable?
10341{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10342echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10343cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h. */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h. */
10349$ac_includes_default
10350#include <net/if_tap.h>
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (ac_try="$ac_compile"
10354case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest.$ac_objext; then
10369 ac_header_compiler=yes
10370else
10371 echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_header_compiler=no
10375fi
10376
10377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10379echo "${ECHO_T}$ac_header_compiler" >&6; }
10380
10381# Is the header present?
10382{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10383echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390#include <net/if_tap.h>
10391_ACEOF
10392if { (ac_try="$ac_cpp conftest.$ac_ext"
10393case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null && {
10405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 }; then
10408 ac_header_preproc=yes
10409else
10410 echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ac_header_preproc=no
10414fi
10415
10416rm -f conftest.err conftest.$ac_ext
10417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418echo "${ECHO_T}$ac_header_preproc" >&6; }
10419
10420# So? What about this header?
10421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10422 yes:no: )
10423 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10424echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10426echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10427 ac_header_preproc=yes
10428 ;;
10429 no:yes:* )
10430 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10431echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10433echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10435echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10437echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10439echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10441echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10442 ( cat <<\_ASBOX
10443## ------------------------------------------- ##
10444## Report this to openssh-unix-dev@mindrot.org ##
10445## ------------------------------------------- ##
10446_ASBOX
10447 ) | sed "s/^/$as_me: WARNING: /" >&2
10448 ;;
10449esac
10450{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10451echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10452if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455 ac_cv_header_net_if_tap_h=$ac_header_preproc
10456fi
10457{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10458echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10459
10460fi
10461if test $ac_cv_header_net_if_tap_h = yes; then
10462 :
10463else
10464
10465cat >>confdefs.h <<\_ACEOF
10466#define SSH_TUN_NO_L2 1
10467_ACEOF
10468
10469fi
10470
10471
10472
10473cat >>confdefs.h <<\_ACEOF
10474#define SSH_TUN_PREPEND_AF 1
10475_ACEOF
10476
10477 TEST_MALLOC_OPTIONS="AJRX"
10478
10479cat >>confdefs.h <<\_ACEOF
10480#define BROKEN_STRNVIS 1
10481_ACEOF
10482
10483
10484cat >>confdefs.h <<\_ACEOF
10485#define BROKEN_READ_COMPARISON 1
10486_ACEOF
10487
10488 ;;
10489*-*-freebsd*)
10490 check_for_libcrypt_later=1
10491
10492cat >>confdefs.h <<\_ACEOF
10493#define LOCKED_PASSWD_PREFIX "*LOCKED*"
10494_ACEOF
10495
10496
10497cat >>confdefs.h <<\_ACEOF
10498#define SSH_TUN_FREEBSD 1
10499_ACEOF
10500
10501 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10502 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10503echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10504if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506fi
10507{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10508echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10509else
10510 # Is the header compilable?
10511{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10512echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519$ac_includes_default
10520#include <net/if_tap.h>
10521_ACEOF
10522rm -f conftest.$ac_objext
10523if { (ac_try="$ac_compile"
10524case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10539 ac_header_compiler=yes
10540else
10541 echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544 ac_header_compiler=no
10545fi
10546
10547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10549echo "${ECHO_T}$ac_header_compiler" >&6; }
10550
10551# Is the header present?
10552{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10553echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10554cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h. */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h. */
10560#include <net/if_tap.h>
10561_ACEOF
10562if { (ac_try="$ac_cpp conftest.$ac_ext"
10563case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566esac
10567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } >/dev/null && {
10575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 }; then
10578 ac_header_preproc=yes
10579else
10580 echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
10582
10583 ac_header_preproc=no
10584fi
10585
10586rm -f conftest.err conftest.$ac_ext
10587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10588echo "${ECHO_T}$ac_header_preproc" >&6; }
10589
10590# So? What about this header?
10591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10592 yes:no: )
10593 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10594echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10596echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10597 ac_header_preproc=yes
10598 ;;
10599 no:yes:* )
10600 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10601echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10603echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10605echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10607echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10609echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10611echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10612 ( cat <<\_ASBOX
10613## ------------------------------------------- ##
10614## Report this to openssh-unix-dev@mindrot.org ##
10615## ------------------------------------------- ##
10616_ASBOX
10617 ) | sed "s/^/$as_me: WARNING: /" >&2
10618 ;;
10619esac
10620{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10621echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10622if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 ac_cv_header_net_if_tap_h=$ac_header_preproc
10626fi
10627{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10628echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10629
10630fi
10631if test $ac_cv_header_net_if_tap_h = yes; then
10632 :
10633else
10634
10635cat >>confdefs.h <<\_ACEOF
10636#define SSH_TUN_NO_L2 1
10637_ACEOF
10638
10639fi
10640
10641
10642
10643cat >>confdefs.h <<\_ACEOF
10644#define BROKEN_GLOB 1
10645_ACEOF
10646
10647
10648cat >>confdefs.h <<\_ACEOF
10649#define BROKEN_STRNVIS 1
10650_ACEOF
10651
10652 TEST_MALLOC_OPTIONS="AJRX"
10653 # Preauth crypto occasionally uses file descriptors for crypto offload
10654 # and will crash if they cannot be opened.
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define SANDBOX_SKIP_RLIMIT_NOFILE 1
10658_ACEOF
10659
10660 ;;
10661*-*-bsdi*)
10662 cat >>confdefs.h <<\_ACEOF
10663#define SETEUID_BREAKS_SETUID 1
10664_ACEOF
10665
10666 cat >>confdefs.h <<\_ACEOF
10667#define BROKEN_SETREUID 1
10668_ACEOF
10669
10670 cat >>confdefs.h <<\_ACEOF
10671#define BROKEN_SETREGID 1
10672_ACEOF
10673
10674 ;;
10675*-next-*)
10676 conf_lastlog_location="/usr/adm/lastlog"
10677 conf_utmp_location=/etc/utmp
10678 conf_wtmp_location=/usr/adm/wtmp
10679 maildir=/usr/spool/mail
10680
10681cat >>confdefs.h <<\_ACEOF
10682#define HAVE_NEXT 1
10683_ACEOF
10684
10685 cat >>confdefs.h <<\_ACEOF
10686#define BROKEN_REALPATH 1
10687_ACEOF
10688
10689 cat >>confdefs.h <<\_ACEOF
10690#define USE_PIPES 1
10691_ACEOF
10692
10693
10694cat >>confdefs.h <<\_ACEOF
10695#define BROKEN_SAVED_UIDS 1
10696_ACEOF
10697
10698 ;;
10699*-*-openbsd*)
10700 use_pie=auto
10701
10702cat >>confdefs.h <<\_ACEOF
10703#define HAVE_ATTRIBUTE__SENTINEL__ 1
10704_ACEOF
10705
10706
10707cat >>confdefs.h <<\_ACEOF
10708#define HAVE_ATTRIBUTE__BOUNDED__ 1
10709_ACEOF
10710
10711
10712cat >>confdefs.h <<\_ACEOF
10713#define SSH_TUN_OPENBSD 1
10714_ACEOF
10715
10716
10717cat >>confdefs.h <<\_ACEOF
10718#define SYSLOG_R_SAFE_IN_SIGHAND 1
10719_ACEOF
10720
10721 TEST_MALLOC_OPTIONS="AFGJPRX"
10722 ;;
10723*-*-solaris*)
10724 if test "x$withval" != "xno" ; then
10725 need_dash_r=1
10726 fi
10727 cat >>confdefs.h <<\_ACEOF
10728#define PAM_SUN_CODEBASE 1
10729_ACEOF
10730
10731 cat >>confdefs.h <<\_ACEOF
10732#define LOGIN_NEEDS_UTMPX 1
10733_ACEOF
10734
10735
10736cat >>confdefs.h <<\_ACEOF
10737#define LOGIN_NEEDS_TERM 1
10738_ACEOF
10739
10740 cat >>confdefs.h <<\_ACEOF
10741#define PAM_TTY_KLUDGE 1
10742_ACEOF
10743
10744
10745cat >>confdefs.h <<\_ACEOF
10746#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
10747_ACEOF
10748
10749 cat >>confdefs.h <<\_ACEOF
10750#define LOCKED_PASSWD_STRING "*LK*"
10751_ACEOF
10752
10753 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
10754
10755cat >>confdefs.h <<\_ACEOF
10756#define SSHD_ACQUIRES_CTTY 1
10757_ACEOF
10758
10759
10760cat >>confdefs.h <<\_ACEOF
10761#define PASSWD_NEEDS_USERNAME 1
10762_ACEOF
10763
10764
10765cat >>confdefs.h <<\_ACEOF
10766#define BROKEN_TCGETATTR_ICANON 1
10767_ACEOF
10768
10769 external_path_file=/etc/default/login
10770 # hardwire lastlog location (can't detect it on some versions)
10771 conf_lastlog_location="/var/adm/lastlog"
10772 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
10773echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
10774 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
10775 if test "$sol2ver" -ge 8; then
10776 { echo "$as_me:$LINENO: result: yes" >&5
10777echo "${ECHO_T}yes" >&6; }
10778 cat >>confdefs.h <<\_ACEOF
10779#define DISABLE_UTMP 1
10780_ACEOF
10781
10782
10783cat >>confdefs.h <<\_ACEOF
10784#define DISABLE_WTMP 1
10785_ACEOF
10786
10787 else
10788 { echo "$as_me:$LINENO: result: no" >&5
10789echo "${ECHO_T}no" >&6; }
10790 fi
10791
10792# Check whether --with-solaris-contracts was given.
10793if test "${with_solaris_contracts+set}" = set; then
10794 withval=$with_solaris_contracts;
10795 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
10796echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
10797if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 ac_check_lib_save_LIBS=$LIBS
10801LIBS="-lcontract $LIBS"
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h. */
10808
10809/* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815char ct_tmpl_activate ();
10816int
10817main ()
10818{
10819return ct_tmpl_activate ();
10820 ;
10821 return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (ac_try="$ac_link"
10826case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829esac
10830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 ac_cv_lib_contract_ct_tmpl_activate=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_lib_contract_ct_tmpl_activate=no
10848fi
10849
10850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10852LIBS=$ac_check_lib_save_LIBS
10853fi
10854{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
10855echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
10856if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
10857
10858cat >>confdefs.h <<\_ACEOF
10859#define USE_SOLARIS_PROCESS_CONTRACTS 1
10860_ACEOF
10861
10862 SSHDLIBS="$SSHDLIBS -lcontract"
10863 SPC_MSG="yes"
10864fi
10865
10866
10867fi
10868
10869
10870# Check whether --with-solaris-projects was given.
10871if test "${with_solaris_projects+set}" = set; then
10872 withval=$with_solaris_projects;
10873 { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
10874echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
10875if test "${ac_cv_lib_project_setproject+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 ac_check_lib_save_LIBS=$LIBS
10879LIBS="-lproject $LIBS"
10880cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h. */
10886
10887/* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10890#ifdef __cplusplus
10891extern "C"
10892#endif
10893char setproject ();
10894int
10895main ()
10896{
10897return setproject ();
10898 ;
10899 return 0;
10900}
10901_ACEOF
10902rm -f conftest.$ac_objext conftest$ac_exeext
10903if { (ac_try="$ac_link"
10904case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_link") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext &&
10919 $as_test_x conftest$ac_exeext; then
10920 ac_cv_lib_project_setproject=yes
10921else
10922 echo "$as_me: failed program was:" >&5
10923sed 's/^/| /' conftest.$ac_ext >&5
10924
10925 ac_cv_lib_project_setproject=no
10926fi
10927
10928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929 conftest$ac_exeext conftest.$ac_ext
10930LIBS=$ac_check_lib_save_LIBS
10931fi
10932{ echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
10933echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
10934if test $ac_cv_lib_project_setproject = yes; then
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define USE_SOLARIS_PROJECTS 1
10938_ACEOF
10939
10940 SSHDLIBS="$SSHDLIBS -lproject"
10941 SP_MSG="yes"
10942fi
10943
10944
10945fi
10946
10947 TEST_SHELL=$SHELL # let configure find us a capable shell
10948 ;;
10949*-*-sunos4*)
10950 CPPFLAGS="$CPPFLAGS -DSUNOS4"
10951
10952for ac_func in getpwanam
10953do
10954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960 cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h. */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h. */
10966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968#define $ac_func innocuous_$ac_func
10969
10970/* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10974
10975#ifdef __STDC__
10976# include <limits.h>
10977#else
10978# include <assert.h>
10979#endif
10980
10981#undef $ac_func
10982
10983/* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10986#ifdef __cplusplus
10987extern "C"
10988#endif
10989char $ac_func ();
10990/* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993#if defined __stub_$ac_func || defined __stub___$ac_func
10994choke me
10995#endif
10996
10997int
10998main ()
10999{
11000return $ac_func ();
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && {
11019 test -z "$ac_c_werror_flag" ||
11020 test ! -s conftest.err
11021 } && test -s conftest$ac_exeext &&
11022 $as_test_x conftest$ac_exeext; then
11023 eval "$as_ac_var=yes"
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028 eval "$as_ac_var=no"
11029fi
11030
11031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11033fi
11034ac_res=`eval echo '${'$as_ac_var'}'`
11035 { echo "$as_me:$LINENO: result: $ac_res" >&5
11036echo "${ECHO_T}$ac_res" >&6; }
11037if test `eval echo '${'$as_ac_var'}'` = yes; then
11038 cat >>confdefs.h <<_ACEOF
11039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040_ACEOF
11041
11042fi
11043done
11044
11045 cat >>confdefs.h <<\_ACEOF
11046#define PAM_SUN_CODEBASE 1
11047_ACEOF
11048
11049 conf_utmp_location=/etc/utmp
11050 conf_wtmp_location=/var/adm/wtmp
11051 conf_lastlog_location=/var/adm/lastlog
11052 cat >>confdefs.h <<\_ACEOF
11053#define USE_PIPES 1
11054_ACEOF
11055
11056 ;;
11057*-ncr-sysv*)
11058 LIBS="$LIBS -lc89"
11059 cat >>confdefs.h <<\_ACEOF
11060#define USE_PIPES 1
11061_ACEOF
11062
11063 cat >>confdefs.h <<\_ACEOF
11064#define SSHD_ACQUIRES_CTTY 1
11065_ACEOF
11066
11067 cat >>confdefs.h <<\_ACEOF
11068#define SETEUID_BREAKS_SETUID 1
11069_ACEOF
11070
11071 cat >>confdefs.h <<\_ACEOF
11072#define BROKEN_SETREUID 1
11073_ACEOF
11074
11075 cat >>confdefs.h <<\_ACEOF
11076#define BROKEN_SETREGID 1
11077_ACEOF
11078
11079 ;;
11080*-sni-sysv*)
11081 # /usr/ucblib MUST NOT be searched on ReliantUNIX
11082
11083{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11084echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
11085if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087else
11088 ac_check_lib_save_LIBS=$LIBS
11089LIBS="-ldl $LIBS"
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char dlsym ();
11104int
11105main ()
11106{
11107return dlsym ();
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest$ac_exeext &&
11129 $as_test_x conftest$ac_exeext; then
11130 ac_cv_lib_dl_dlsym=yes
11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135 ac_cv_lib_dl_dlsym=no
11136fi
11137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139 conftest$ac_exeext conftest.$ac_ext
11140LIBS=$ac_check_lib_save_LIBS
11141fi
11142{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11143echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
11144if test $ac_cv_lib_dl_dlsym = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146#define HAVE_LIBDL 1
11147_ACEOF
11148
11149 LIBS="-ldl $LIBS"
11150
11151fi
11152
11153 # -lresolv needs to be at the end of LIBS or DNS lookups break
11154 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11155echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11156if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159 ac_check_lib_save_LIBS=$LIBS
11160LIBS="-lresolv $LIBS"
11161cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167
11168/* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11171#ifdef __cplusplus
11172extern "C"
11173#endif
11174char res_query ();
11175int
11176main ()
11177{
11178return res_query ();
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (ac_try="$ac_link"
11185case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_link") 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && {
11197 test -z "$ac_c_werror_flag" ||
11198 test ! -s conftest.err
11199 } && test -s conftest$ac_exeext &&
11200 $as_test_x conftest$ac_exeext; then
11201 ac_cv_lib_resolv_res_query=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_cv_lib_resolv_res_query=no
11207fi
11208
11209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210 conftest$ac_exeext conftest.$ac_ext
11211LIBS=$ac_check_lib_save_LIBS
11212fi
11213{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11214echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
11215if test $ac_cv_lib_resolv_res_query = yes; then
11216 LIBS="$LIBS -lresolv"
11217fi
11218
11219 IPADDR_IN_DISPLAY=yes
11220 cat >>confdefs.h <<\_ACEOF
11221#define USE_PIPES 1
11222_ACEOF
11223
11224 cat >>confdefs.h <<\_ACEOF
11225#define IP_TOS_IS_BROKEN 1
11226_ACEOF
11227
11228 cat >>confdefs.h <<\_ACEOF
11229#define SETEUID_BREAKS_SETUID 1
11230_ACEOF
11231
11232 cat >>confdefs.h <<\_ACEOF
11233#define BROKEN_SETREUID 1
11234_ACEOF
11235
11236 cat >>confdefs.h <<\_ACEOF
11237#define BROKEN_SETREGID 1
11238_ACEOF
11239
11240 cat >>confdefs.h <<\_ACEOF
11241#define SSHD_ACQUIRES_CTTY 1
11242_ACEOF
11243
11244 external_path_file=/etc/default/login
11245 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
11246 # Attention: always take care to bind libsocket and libnsl before libc,
11247 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
11248 ;;
11249# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
11250*-*-sysv4.2*)
11251 cat >>confdefs.h <<\_ACEOF
11252#define USE_PIPES 1
11253_ACEOF
11254
11255 cat >>confdefs.h <<\_ACEOF
11256#define SETEUID_BREAKS_SETUID 1
11257_ACEOF
11258
11259 cat >>confdefs.h <<\_ACEOF
11260#define BROKEN_SETREUID 1
11261_ACEOF
11262
11263 cat >>confdefs.h <<\_ACEOF
11264#define BROKEN_SETREGID 1
11265_ACEOF
11266
11267
11268cat >>confdefs.h <<\_ACEOF
11269#define PASSWD_NEEDS_USERNAME 1
11270_ACEOF
11271
11272 cat >>confdefs.h <<\_ACEOF
11273#define LOCKED_PASSWD_STRING "*LK*"
11274_ACEOF
11275
11276 TEST_SHELL=$SHELL # let configure find us a capable shell
11277 ;;
11278# UnixWare 7.x, OpenUNIX 8
11279*-*-sysv5*)
11280 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
11281
11282cat >>confdefs.h <<\_ACEOF
11283#define UNIXWARE_LONG_PASSWORDS 1
11284_ACEOF
11285
11286 cat >>confdefs.h <<\_ACEOF
11287#define USE_PIPES 1
11288_ACEOF
11289
11290 cat >>confdefs.h <<\_ACEOF
11291#define SETEUID_BREAKS_SETUID 1
11292_ACEOF
11293
11294 cat >>confdefs.h <<\_ACEOF
11295#define BROKEN_GETADDRINFO 1
11296_ACEOF
11297
11298 cat >>confdefs.h <<\_ACEOF
11299#define BROKEN_SETREUID 1
11300_ACEOF
11301
11302 cat >>confdefs.h <<\_ACEOF
11303#define BROKEN_SETREGID 1
11304_ACEOF
11305
11306 cat >>confdefs.h <<\_ACEOF
11307#define PASSWD_NEEDS_USERNAME 1
11308_ACEOF
11309
11310 TEST_SHELL=$SHELL # let configure find us a capable shell
11311 case "$host" in
11312 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
11313 maildir=/var/spool/mail
11314
11315cat >>confdefs.h <<\_ACEOF
11316#define BROKEN_LIBIAF 1
11317_ACEOF
11318
11319 cat >>confdefs.h <<\_ACEOF
11320#define BROKEN_UPDWTMPX 1
11321_ACEOF
11322
11323 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
11324echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
11325if test "${ac_cv_lib_prot_getluid+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 ac_check_lib_save_LIBS=$LIBS
11329LIBS="-lprot $LIBS"
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char getluid ();
11344int
11345main ()
11346{
11347return getluid ();
11348 ;
11349 return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
11353if { (ac_try="$ac_link"
11354case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_link") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest$ac_exeext &&
11369 $as_test_x conftest$ac_exeext; then
11370 ac_cv_lib_prot_getluid=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_cv_lib_prot_getluid=no
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11379 conftest$ac_exeext conftest.$ac_ext
11380LIBS=$ac_check_lib_save_LIBS
11381fi
11382{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
11383echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
11384if test $ac_cv_lib_prot_getluid = yes; then
11385 LIBS="$LIBS -lprot"
11386
11387
11388for ac_func in getluid setluid
11389do
11390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404#define $ac_func innocuous_$ac_func
11405
11406/* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11410
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
11416
11417#undef $ac_func
11418
11419/* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425char $ac_func ();
11426/* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429#if defined __stub_$ac_func || defined __stub___$ac_func
11430choke me
11431#endif
11432
11433int
11434main ()
11435{
11436return $ac_func ();
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext conftest$ac_exeext
11442if { (ac_try="$ac_link"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11459 eval "$as_ac_var=yes"
11460else
11461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 eval "$as_ac_var=no"
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11469fi
11470ac_res=`eval echo '${'$as_ac_var'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472echo "${ECHO_T}$ac_res" >&6; }
11473if test `eval echo '${'$as_ac_var'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476_ACEOF
11477
11478fi
11479done
11480
11481 cat >>confdefs.h <<\_ACEOF
11482#define HAVE_SECUREWARE 1
11483_ACEOF
11484
11485 cat >>confdefs.h <<\_ACEOF
11486#define DISABLE_SHADOW 1
11487_ACEOF
11488
11489
11490fi
11491
11492 ;;
11493 *) cat >>confdefs.h <<\_ACEOF
11494#define LOCKED_PASSWD_STRING "*LK*"
11495_ACEOF
11496
11497 check_for_libcrypt_later=1
11498 ;;
11499 esac
11500 ;;
11501*-*-sysv*)
11502 ;;
11503# SCO UNIX and OEM versions of SCO UNIX
11504*-*-sco3.2v4*)
11505 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
11506echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
11507 { (exit 1); exit 1; }; }
11508 ;;
11509# SCO OpenServer 5.x
11510*-*-sco3.2v5*)
11511 if test -z "$GCC"; then
11512 CFLAGS="$CFLAGS -belf"
11513 fi
11514 LIBS="$LIBS -lprot -lx -ltinfo -lm"
11515 no_dev_ptmx=1
11516 cat >>confdefs.h <<\_ACEOF
11517#define USE_PIPES 1
11518_ACEOF
11519
11520 cat >>confdefs.h <<\_ACEOF
11521#define HAVE_SECUREWARE 1
11522_ACEOF
11523
11524 cat >>confdefs.h <<\_ACEOF
11525#define DISABLE_SHADOW 1
11526_ACEOF
11527
11528 cat >>confdefs.h <<\_ACEOF
11529#define DISABLE_FD_PASSING 1
11530_ACEOF
11531
11532 cat >>confdefs.h <<\_ACEOF
11533#define SETEUID_BREAKS_SETUID 1
11534_ACEOF
11535
11536 cat >>confdefs.h <<\_ACEOF
11537#define BROKEN_GETADDRINFO 1
11538_ACEOF
11539
11540 cat >>confdefs.h <<\_ACEOF
11541#define BROKEN_SETREUID 1
11542_ACEOF
11543
11544 cat >>confdefs.h <<\_ACEOF
11545#define BROKEN_SETREGID 1
11546_ACEOF
11547
11548 cat >>confdefs.h <<\_ACEOF
11549#define WITH_ABBREV_NO_TTY 1
11550_ACEOF
11551
11552 cat >>confdefs.h <<\_ACEOF
11553#define BROKEN_UPDWTMPX 1
11554_ACEOF
11555
11556 cat >>confdefs.h <<\_ACEOF
11557#define PASSWD_NEEDS_USERNAME 1
11558_ACEOF
11559
11560
11561
11562for ac_func in getluid setluid
11563do
11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578#define $ac_func innocuous_$ac_func
11579
11580/* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11584
11585#ifdef __STDC__
11586# include <limits.h>
11587#else
11588# include <assert.h>
11589#endif
11590
11591#undef $ac_func
11592
11593/* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char $ac_func ();
11600/* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603#if defined __stub_$ac_func || defined __stub___$ac_func
11604choke me
11605#endif
11606
11607int
11608main ()
11609{
11610return $ac_func ();
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (ac_try="$ac_link"
11617case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest$ac_exeext &&
11632 $as_test_x conftest$ac_exeext; then
11633 eval "$as_ac_var=yes"
11634else
11635 echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 eval "$as_ac_var=no"
11639fi
11640
11641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642 conftest$ac_exeext conftest.$ac_ext
11643fi
11644ac_res=`eval echo '${'$as_ac_var'}'`
11645 { echo "$as_me:$LINENO: result: $ac_res" >&5
11646echo "${ECHO_T}$ac_res" >&6; }
11647if test `eval echo '${'$as_ac_var'}'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650_ACEOF
11651
11652fi
11653done
11654
11655 MANTYPE=man
11656 TEST_SHELL=$SHELL # let configure find us a capable shell
11657 SKIP_DISABLE_LASTLOG_DEFINE=yes
11658 ;;
11659*-*-unicosmk*)
11660
11661cat >>confdefs.h <<\_ACEOF
11662#define NO_SSH_LASTLOG 1
11663_ACEOF
11664
11665 cat >>confdefs.h <<\_ACEOF
11666#define SETEUID_BREAKS_SETUID 1
11667_ACEOF
11668
11669 cat >>confdefs.h <<\_ACEOF
11670#define BROKEN_SETREUID 1
11671_ACEOF
11672
11673 cat >>confdefs.h <<\_ACEOF
11674#define BROKEN_SETREGID 1
11675_ACEOF
11676
11677 cat >>confdefs.h <<\_ACEOF
11678#define USE_PIPES 1
11679_ACEOF
11680
11681 cat >>confdefs.h <<\_ACEOF
11682#define DISABLE_FD_PASSING 1
11683_ACEOF
11684
11685 LDFLAGS="$LDFLAGS"
11686 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11687 MANTYPE=cat
11688 ;;
11689*-*-unicosmp*)
11690 cat >>confdefs.h <<\_ACEOF
11691#define SETEUID_BREAKS_SETUID 1
11692_ACEOF
11693
11694 cat >>confdefs.h <<\_ACEOF
11695#define BROKEN_SETREUID 1
11696_ACEOF
11697
11698 cat >>confdefs.h <<\_ACEOF
11699#define BROKEN_SETREGID 1
11700_ACEOF
11701
11702 cat >>confdefs.h <<\_ACEOF
11703#define WITH_ABBREV_NO_TTY 1
11704_ACEOF
11705
11706 cat >>confdefs.h <<\_ACEOF
11707#define USE_PIPES 1
11708_ACEOF
11709
11710 cat >>confdefs.h <<\_ACEOF
11711#define DISABLE_FD_PASSING 1
11712_ACEOF
11713
11714 LDFLAGS="$LDFLAGS"
11715 LIBS="$LIBS -lgen -lacid -ldb"
11716 MANTYPE=cat
11717 ;;
11718*-*-unicos*)
11719 cat >>confdefs.h <<\_ACEOF
11720#define SETEUID_BREAKS_SETUID 1
11721_ACEOF
11722
11723 cat >>confdefs.h <<\_ACEOF
11724#define BROKEN_SETREUID 1
11725_ACEOF
11726
11727 cat >>confdefs.h <<\_ACEOF
11728#define BROKEN_SETREGID 1
11729_ACEOF
11730
11731 cat >>confdefs.h <<\_ACEOF
11732#define USE_PIPES 1
11733_ACEOF
11734
11735 cat >>confdefs.h <<\_ACEOF
11736#define DISABLE_FD_PASSING 1
11737_ACEOF
11738
11739 cat >>confdefs.h <<\_ACEOF
11740#define NO_SSH_LASTLOG 1
11741_ACEOF
11742
11743 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
11744 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11745 MANTYPE=cat
11746 ;;
11747*-dec-osf*)
11748 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
11749echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
11750 no_osfsia=""
11751
11752# Check whether --with-osfsia was given.
11753if test "${with_osfsia+set}" = set; then
11754 withval=$with_osfsia;
11755 if test "x$withval" = "xno" ; then
11756 { echo "$as_me:$LINENO: result: disabled" >&5
11757echo "${ECHO_T}disabled" >&6; }
11758 no_osfsia=1
11759 fi
11760
11761fi
11762
11763 if test -z "$no_osfsia" ; then
11764 if test -f /etc/sia/matrix.conf; then
11765 { echo "$as_me:$LINENO: result: yes" >&5
11766echo "${ECHO_T}yes" >&6; }
11767
11768cat >>confdefs.h <<\_ACEOF
11769#define HAVE_OSF_SIA 1
11770_ACEOF
11771
11772
11773cat >>confdefs.h <<\_ACEOF
11774#define DISABLE_LOGIN 1
11775_ACEOF
11776
11777 cat >>confdefs.h <<\_ACEOF
11778#define DISABLE_FD_PASSING 1
11779_ACEOF
11780
11781 LIBS="$LIBS -lsecurity -ldb -lm -laud"
11782 SIA_MSG="yes"
11783 else
11784 { echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786
11787cat >>confdefs.h <<\_ACEOF
11788#define LOCKED_PASSWD_SUBSTR "Nologin"
11789_ACEOF
11790
11791 fi
11792 fi
11793 cat >>confdefs.h <<\_ACEOF
11794#define BROKEN_GETADDRINFO 1
11795_ACEOF
11796
11797 cat >>confdefs.h <<\_ACEOF
11798#define SETEUID_BREAKS_SETUID 1
11799_ACEOF
11800
11801 cat >>confdefs.h <<\_ACEOF
11802#define BROKEN_SETREUID 1
11803_ACEOF
11804
11805 cat >>confdefs.h <<\_ACEOF
11806#define BROKEN_SETREGID 1
11807_ACEOF
11808
11809
11810cat >>confdefs.h <<\_ACEOF
11811#define BROKEN_READV_COMPARISON 1
11812_ACEOF
11813
11814 ;;
11815
11816*-*-nto-qnx*)
11817 cat >>confdefs.h <<\_ACEOF
11818#define USE_PIPES 1
11819_ACEOF
11820
11821 cat >>confdefs.h <<\_ACEOF
11822#define NO_X11_UNIX_SOCKETS 1
11823_ACEOF
11824
11825 cat >>confdefs.h <<\_ACEOF
11826#define DISABLE_LASTLOG 1
11827_ACEOF
11828
11829 cat >>confdefs.h <<\_ACEOF
11830#define SSHD_ACQUIRES_CTTY 1
11831_ACEOF
11832
11833
11834cat >>confdefs.h <<\_ACEOF
11835#define BROKEN_SHADOW_EXPIRE 1
11836_ACEOF
11837
11838 enable_etc_default_login=no # has incompatible /etc/default/login
11839 case "$host" in
11840 *-*-nto-qnx6*)
11841 cat >>confdefs.h <<\_ACEOF
11842#define DISABLE_FD_PASSING 1
11843_ACEOF
11844
11845 ;;
11846 esac
11847 ;;
11848
11849*-*-ultrix*)
11850
11851cat >>confdefs.h <<\_ACEOF
11852#define BROKEN_GETGROUPS 1
11853_ACEOF
11854
11855
11856cat >>confdefs.h <<\_ACEOF
11857#define BROKEN_MMAP 1
11858_ACEOF
11859
11860 cat >>confdefs.h <<\_ACEOF
11861#define NEED_SETPGRP 1
11862_ACEOF
11863
11864
11865cat >>confdefs.h <<\_ACEOF
11866#define HAVE_SYS_SYSLOG_H 1
11867_ACEOF
11868
11869 ;;
11870
11871*-*-lynxos)
11872 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
11873
11874cat >>confdefs.h <<\_ACEOF
11875#define BROKEN_SETVBUF 1
11876_ACEOF
11877
11878 ;;
11879esac
11880
11881{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
11882echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
11883if test "$cross_compiling" = yes; then
11884 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
11885echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
11886
11887else
11888 cat >conftest.$ac_ext <<_ACEOF
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
11894 #include <stdio.h>
11895int
11896main ()
11897{
11898 exit(0);
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest$ac_exeext
11904if { (ac_try="$ac_link"
11905case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 { echo "$as_me:$LINENO: result: yes" >&5
11924echo "${ECHO_T}yes" >&6; }
11925else
11926 echo "$as_me: program exited with status $ac_status" >&5
11927echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930( exit $ac_status )
11931
11932 { echo "$as_me:$LINENO: result: no" >&5
11933echo "${ECHO_T}no" >&6; }
11934 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
11935echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
11936 { (exit 1); exit 1; }; }
11937
11938fi
11939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11940fi
11941
11942
11943
11944# Checks for libraries.
11945{ echo "$as_me:$LINENO: checking for yp_match" >&5
11946echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
11947if test "${ac_cv_func_yp_match+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
11956/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
11957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11958#define yp_match innocuous_yp_match
11959
11960/* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char yp_match (); below.
11962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963 <limits.h> exists even on freestanding compilers. */
11964
11965#ifdef __STDC__
11966# include <limits.h>
11967#else
11968# include <assert.h>
11969#endif
11970
11971#undef yp_match
11972
11973/* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char yp_match ();
11980/* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983#if defined __stub_yp_match || defined __stub___yp_match
11984choke me
11985#endif
11986
11987int
11988main ()
11989{
11990return yp_match ();
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995rm -f conftest.$ac_objext conftest$ac_exeext
11996if { (ac_try="$ac_link"
11997case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_link") 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && {
12009 test -z "$ac_c_werror_flag" ||
12010 test ! -s conftest.err
12011 } && test -s conftest$ac_exeext &&
12012 $as_test_x conftest$ac_exeext; then
12013 ac_cv_func_yp_match=yes
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 ac_cv_func_yp_match=no
12019fi
12020
12021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12022 conftest$ac_exeext conftest.$ac_ext
12023fi
12024{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
12025echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
12026if test $ac_cv_func_yp_match = yes; then
12027 :
12028else
12029
12030{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
12031echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
12032if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 ac_check_lib_save_LIBS=$LIBS
12036LIBS="-lnsl $LIBS"
12037cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043
12044/* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char yp_match ();
12051int
12052main ()
12053{
12054return yp_match ();
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (ac_try="$ac_link"
12061case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 ac_cv_lib_nsl_yp_match=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_cv_lib_nsl_yp_match=no
12083fi
12084
12085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12087LIBS=$ac_check_lib_save_LIBS
12088fi
12089{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
12090echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
12091if test $ac_cv_lib_nsl_yp_match = yes; then
12092 cat >>confdefs.h <<_ACEOF
12093#define HAVE_LIBNSL 1
12094_ACEOF
12095
12096 LIBS="-lnsl $LIBS"
12097
12098fi
12099
12100fi
12101
12102{ echo "$as_me:$LINENO: checking for setsockopt" >&5
12103echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
12104if test "${ac_cv_func_setsockopt+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106else
12107 cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
12113/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
12114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12115#define setsockopt innocuous_setsockopt
12116
12117/* System header to define __stub macros and hopefully few prototypes,
12118 which can conflict with char setsockopt (); below.
12119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 <limits.h> exists even on freestanding compilers. */
12121
12122#ifdef __STDC__
12123# include <limits.h>
12124#else
12125# include <assert.h>
12126#endif
12127
12128#undef setsockopt
12129
12130/* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char setsockopt ();
12137/* The GNU C library defines this for functions which it implements
12138 to always fail with ENOSYS. Some functions are actually named
12139 something starting with __ and the normal name is an alias. */
12140#if defined __stub_setsockopt || defined __stub___setsockopt
12141choke me
12142#endif
12143
12144int
12145main ()
12146{
12147return setsockopt ();
12148 ;
12149 return 0;
12150}
12151_ACEOF
12152rm -f conftest.$ac_objext conftest$ac_exeext
12153if { (ac_try="$ac_link"
12154case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157esac
12158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_c_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest$ac_exeext &&
12169 $as_test_x conftest$ac_exeext; then
12170 ac_cv_func_setsockopt=yes
12171else
12172 echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_cv_func_setsockopt=no
12176fi
12177
12178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180fi
12181{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
12182echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
12183if test $ac_cv_func_setsockopt = yes; then
12184 :
12185else
12186
12187{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
12188echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
12189if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 ac_check_lib_save_LIBS=$LIBS
12193LIBS="-lsocket $LIBS"
12194cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200
12201/* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204#ifdef __cplusplus
12205extern "C"
12206#endif
12207char setsockopt ();
12208int
12209main ()
12210{
12211return setsockopt ();
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 ac_cv_lib_socket_setsockopt=yes
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_cv_lib_socket_setsockopt=no
12240fi
12241
12242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12244LIBS=$ac_check_lib_save_LIBS
12245fi
12246{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
12247echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
12248if test $ac_cv_lib_socket_setsockopt = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250#define HAVE_LIBSOCKET 1
12251_ACEOF
12252
12253 LIBS="-lsocket $LIBS"
12254
12255fi
12256
12257fi
12258
12259
12260
12261for ac_func in dirname
12262do
12263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12277#define $ac_func innocuous_$ac_func
12278
12279/* System header to define __stub macros and hopefully few prototypes,
12280 which can conflict with char $ac_func (); below.
12281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12282 <limits.h> exists even on freestanding compilers. */
12283
12284#ifdef __STDC__
12285# include <limits.h>
12286#else
12287# include <assert.h>
12288#endif
12289
12290#undef $ac_func
12291
12292/* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295#ifdef __cplusplus
12296extern "C"
12297#endif
12298char $ac_func ();
12299/* The GNU C library defines this for functions which it implements
12300 to always fail with ENOSYS. Some functions are actually named
12301 something starting with __ and the normal name is an alias. */
12302#if defined __stub_$ac_func || defined __stub___$ac_func
12303choke me
12304#endif
12305
12306int
12307main ()
12308{
12309return $ac_func ();
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (ac_try="$ac_link"
12316case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12332 eval "$as_ac_var=yes"
12333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 eval "$as_ac_var=no"
12338fi
12339
12340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342fi
12343ac_res=`eval echo '${'$as_ac_var'}'`
12344 { echo "$as_me:$LINENO: result: $ac_res" >&5
12345echo "${ECHO_T}$ac_res" >&6; }
12346if test `eval echo '${'$as_ac_var'}'` = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12349_ACEOF
12350
12351for ac_header in libgen.h
12352do
12353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12359fi
12360ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362echo "${ECHO_T}$ac_res" >&6; }
12363else
12364 # Is the header compilable?
12365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12367cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373$ac_includes_default
12374#include <$ac_header>
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (ac_try="$ac_compile"
12378case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } && {
12390 test -z "$ac_c_werror_flag" ||
12391 test ! -s conftest.err
12392 } && test -s conftest.$ac_objext; then
12393 ac_header_compiler=yes
12394else
12395 echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 ac_header_compiler=no
12399fi
12400
12401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12403echo "${ECHO_T}$ac_header_compiler" >&6; }
12404
12405# Is the header present?
12406{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12408cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
12414#include <$ac_header>
12415_ACEOF
12416if { (ac_try="$ac_cpp conftest.$ac_ext"
12417case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420esac
12421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } >/dev/null && {
12429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 }; then
12432 ac_header_preproc=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_header_preproc=no
12438fi
12439
12440rm -f conftest.err conftest.$ac_ext
12441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444# So? What about this header?
12445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12452 ;;
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467## ------------------------------------------- ##
12468## Report this to openssh-unix-dev@mindrot.org ##
12469## ------------------------------------------- ##
12470_ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 ;;
12473esac
12474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12480fi
12481ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483echo "${ECHO_T}$ac_res" >&6; }
12484
12485fi
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489_ACEOF
12490
12491fi
12492
12493done
12494
12495else
12496
12497 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
12498echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
12499if test "${ac_cv_lib_gen_dirname+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502 ac_check_lib_save_LIBS=$LIBS
12503LIBS="-lgen $LIBS"
12504cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510
12511/* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12514#ifdef __cplusplus
12515extern "C"
12516#endif
12517char dirname ();
12518int
12519main ()
12520{
12521return dirname ();
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext conftest$ac_exeext
12527if { (ac_try="$ac_link"
12528case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest$ac_exeext &&
12543 $as_test_x conftest$ac_exeext; then
12544 ac_cv_lib_gen_dirname=yes
12545else
12546 echo "$as_me: failed program was:" >&5
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_cv_lib_gen_dirname=no
12550fi
12551
12552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12553 conftest$ac_exeext conftest.$ac_ext
12554LIBS=$ac_check_lib_save_LIBS
12555fi
12556{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
12557echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
12558if test $ac_cv_lib_gen_dirname = yes; then
12559
12560 { echo "$as_me:$LINENO: checking for broken dirname" >&5
12561echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
12562if test "${ac_cv_have_broken_dirname+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565
12566 save_LIBS="$LIBS"
12567 LIBS="$LIBS -lgen"
12568 if test "$cross_compiling" = yes; then
12569 ac_cv_have_broken_dirname="no"
12570else
12571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577
12578#include <libgen.h>
12579#include <string.h>
12580
12581int main(int argc, char **argv) {
12582 char *s, buf[32];
12583
12584 strncpy(buf,"/etc", 32);
12585 s = dirname(buf);
12586 if (!s || strncmp(s, "/", 32) != 0) {
12587 exit(1);
12588 } else {
12589 exit(0);
12590 }
12591}
12592
12593_ACEOF
12594rm -f conftest$ac_exeext
12595if { (ac_try="$ac_link"
12596case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599esac
12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_link") 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_have_broken_dirname="no"
12615else
12616 echo "$as_me: program exited with status $ac_status" >&5
12617echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620( exit $ac_status )
12621 ac_cv_have_broken_dirname="yes"
12622fi
12623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12624fi
12625
12626
12627 LIBS="$save_LIBS"
12628
12629fi
12630{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
12631echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
12632 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
12633 LIBS="$LIBS -lgen"
12634 cat >>confdefs.h <<\_ACEOF
12635#define HAVE_DIRNAME 1
12636_ACEOF
12637
12638
12639for ac_header in libgen.h
12640do
12641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647fi
12648ac_res=`eval echo '${'$as_ac_Header'}'`
12649 { echo "$as_me:$LINENO: result: $ac_res" >&5
12650echo "${ECHO_T}$ac_res" >&6; }
12651else
12652 # Is the header compilable?
12653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12655cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661$ac_includes_default
12662#include <$ac_header>
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (ac_try="$ac_compile"
12666case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_compile") 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } && {
12678 test -z "$ac_c_werror_flag" ||
12679 test ! -s conftest.err
12680 } && test -s conftest.$ac_objext; then
12681 ac_header_compiler=yes
12682else
12683 echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 ac_header_compiler=no
12687fi
12688
12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12691echo "${ECHO_T}$ac_header_compiler" >&6; }
12692
12693# Is the header present?
12694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12696cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#include <$ac_header>
12703_ACEOF
12704if { (ac_try="$ac_cpp conftest.$ac_ext"
12705case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null && {
12717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 }; then
12720 ac_header_preproc=yes
12721else
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725 ac_header_preproc=no
12726fi
12727
12728rm -f conftest.err conftest.$ac_ext
12729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12730echo "${ECHO_T}$ac_header_preproc" >&6; }
12731
12732# So? What about this header?
12733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12734 yes:no: )
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12739 ac_header_preproc=yes
12740 ;;
12741 no:yes:* )
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12754 ( cat <<\_ASBOX
12755## ------------------------------------------- ##
12756## Report this to openssh-unix-dev@mindrot.org ##
12757## ------------------------------------------- ##
12758_ASBOX
12759 ) | sed "s/^/$as_me: WARNING: /" >&2
12760 ;;
12761esac
12762{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766else
12767 eval "$as_ac_Header=\$ac_header_preproc"
12768fi
12769ac_res=`eval echo '${'$as_ac_Header'}'`
12770 { echo "$as_me:$LINENO: result: $ac_res" >&5
12771echo "${ECHO_T}$ac_res" >&6; }
12772
12773fi
12774if test `eval echo '${'$as_ac_Header'}'` = yes; then
12775 cat >>confdefs.h <<_ACEOF
12776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12777_ACEOF
12778
12779fi
12780
12781done
12782
12783 fi
12784
12785fi
12786
12787
12788fi
12789done
12790
12791
12792{ echo "$as_me:$LINENO: checking for getspnam" >&5
12793echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
12794if test "${ac_cv_func_getspnam+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
12804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12805#define getspnam innocuous_getspnam
12806
12807/* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char getspnam (); below.
12809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810 <limits.h> exists even on freestanding compilers. */
12811
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
12817
12818#undef getspnam
12819
12820/* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826char getspnam ();
12827/* The GNU C library defines this for functions which it implements
12828 to always fail with ENOSYS. Some functions are actually named
12829 something starting with __ and the normal name is an alias. */
12830#if defined __stub_getspnam || defined __stub___getspnam
12831choke me
12832#endif
12833
12834int
12835main ()
12836{
12837return getspnam ();
12838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (ac_try="$ac_link"
12844case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest$ac_exeext &&
12859 $as_test_x conftest$ac_exeext; then
12860 ac_cv_func_getspnam=yes
12861else
12862 echo "$as_me: failed program was:" >&5
12863sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ac_cv_func_getspnam=no
12866fi
12867
12868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12869 conftest$ac_exeext conftest.$ac_ext
12870fi
12871{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
12872echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
12873if test $ac_cv_func_getspnam = yes; then
12874 :
12875else
12876 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12877echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
12878if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
12881 ac_check_lib_save_LIBS=$LIBS
12882LIBS="-lgen $LIBS"
12883cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889
12890/* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12893#ifdef __cplusplus
12894extern "C"
12895#endif
12896char getspnam ();
12897int
12898main ()
12899{
12900return getspnam ();
12901 ;
12902 return 0;
12903}
12904_ACEOF
12905rm -f conftest.$ac_objext conftest$ac_exeext
12906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest$ac_exeext &&
12922 $as_test_x conftest$ac_exeext; then
12923 ac_cv_lib_gen_getspnam=yes
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_cv_lib_gen_getspnam=no
12929fi
12930
12931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12932 conftest$ac_exeext conftest.$ac_ext
12933LIBS=$ac_check_lib_save_LIBS
12934fi
12935{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
12936echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
12937if test $ac_cv_lib_gen_getspnam = yes; then
12938 LIBS="$LIBS -lgen"
12939fi
12940
12941fi
12942
12943{ echo "$as_me:$LINENO: checking for library containing basename" >&5
12944echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
12945if test "${ac_cv_search_basename+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 ac_func_search_save_LIBS=$LIBS
12949cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
12955
12956/* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12959#ifdef __cplusplus
12960extern "C"
12961#endif
12962char basename ();
12963int
12964main ()
12965{
12966return basename ();
12967 ;
12968 return 0;
12969}
12970_ACEOF
12971for ac_lib in '' gen; do
12972 if test -z "$ac_lib"; then
12973 ac_res="none required"
12974 else
12975 ac_res=-l$ac_lib
12976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12977 fi
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest$ac_exeext &&
12995 $as_test_x conftest$ac_exeext; then
12996 ac_cv_search_basename=$ac_res
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
13002fi
13003
13004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext
13006 if test "${ac_cv_search_basename+set}" = set; then
13007 break
13008fi
13009done
13010if test "${ac_cv_search_basename+set}" = set; then
13011 :
13012else
13013 ac_cv_search_basename=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
13019echo "${ECHO_T}$ac_cv_search_basename" >&6; }
13020ac_res=$ac_cv_search_basename
13021if test "$ac_res" != no; then
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
13024cat >>confdefs.h <<\_ACEOF
13025#define HAVE_BASENAME 1
13026_ACEOF
13027
13028fi
13029
13030
13031
13032# Check whether --with-zlib was given.
13033if test "${with_zlib+set}" = set; then
13034 withval=$with_zlib; if test "x$withval" = "xno" ; then
13035 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
13036echo "$as_me: error: *** zlib is required ***" >&2;}
13037 { (exit 1); exit 1; }; }
13038 elif test "x$withval" != "xyes"; then
13039 if test -d "$withval/lib"; then
13040 if test -n "${need_dash_r}"; then
13041 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13042 else
13043 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13044 fi
13045 else
13046 if test -n "${need_dash_r}"; then
13047 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13048 else
13049 LDFLAGS="-L${withval} ${LDFLAGS}"
13050 fi
13051 fi
13052 if test -d "$withval/include"; then
13053 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13054 else
13055 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13056 fi
13057 fi
13058
13059fi
13060
13061
13062if test "${ac_cv_header_zlib_h+set}" = set; then
13063 { echo "$as_me:$LINENO: checking for zlib.h" >&5
13064echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13065if test "${ac_cv_header_zlib_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067fi
13068{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13069echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13070else
13071 # Is the header compilable?
13072{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
13073echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
13074cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
13080$ac_includes_default
13081#include <zlib.h>
13082_ACEOF
13083rm -f conftest.$ac_objext
13084if { (ac_try="$ac_compile"
13085case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_compile") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest.$ac_objext; then
13100 ac_header_compiler=yes
13101else
13102 echo "$as_me: failed program was:" >&5
13103sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 ac_header_compiler=no
13106fi
13107
13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110echo "${ECHO_T}$ac_header_compiler" >&6; }
13111
13112# Is the header present?
13113{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
13114echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
13115cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
13121#include <zlib.h>
13122_ACEOF
13123if { (ac_try="$ac_cpp conftest.$ac_ext"
13124case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null && {
13136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 }; then
13139 ac_header_preproc=yes
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 ac_header_preproc=no
13145fi
13146
13147rm -f conftest.err conftest.$ac_ext
13148{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149echo "${ECHO_T}$ac_header_preproc" >&6; }
13150
13151# So? What about this header?
13152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13153 yes:no: )
13154 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13157echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13158 ac_header_preproc=yes
13159 ;;
13160 no:yes:* )
13161 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13162echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13164echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13166echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13168echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13170echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13172echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13173 ( cat <<\_ASBOX
13174## ------------------------------------------- ##
13175## Report this to openssh-unix-dev@mindrot.org ##
13176## ------------------------------------------- ##
13177_ASBOX
13178 ) | sed "s/^/$as_me: WARNING: /" >&2
13179 ;;
13180esac
13181{ echo "$as_me:$LINENO: checking for zlib.h" >&5
13182echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13183if test "${ac_cv_header_zlib_h+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185else
13186 ac_cv_header_zlib_h=$ac_header_preproc
13187fi
13188{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13189echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13190
13191fi
13192if test $ac_cv_header_zlib_h = yes; then
13193 :
13194else
13195 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
13196echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
13197 { (exit 1); exit 1; }; }
13198fi
13199
13200
13201
13202{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13203echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
13204if test "${ac_cv_lib_z_deflate+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lz $LIBS"
13209cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char deflate ();
13223int
13224main ()
13225{
13226return deflate ();
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231rm -f conftest.$ac_objext conftest$ac_exeext
13232if { (ac_try="$ac_link"
13233case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest$ac_exeext &&
13248 $as_test_x conftest$ac_exeext; then
13249 ac_cv_lib_z_deflate=yes
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_cv_lib_z_deflate=no
13255fi
13256
13257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13258 conftest$ac_exeext conftest.$ac_ext
13259LIBS=$ac_check_lib_save_LIBS
13260fi
13261{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13262echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
13263if test $ac_cv_lib_z_deflate = yes; then
13264 cat >>confdefs.h <<_ACEOF
13265#define HAVE_LIBZ 1
13266_ACEOF
13267
13268 LIBS="-lz $LIBS"
13269
13270else
13271
13272 saved_CPPFLAGS="$CPPFLAGS"
13273 saved_LDFLAGS="$LDFLAGS"
13274 save_LIBS="$LIBS"
13275 if test -n "${need_dash_r}"; then
13276 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
13277 else
13278 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
13279 fi
13280 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
13281 LIBS="$LIBS -lz"
13282 cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char deflate ();
13296int
13297main ()
13298{
13299return deflate ();
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (ac_try="$ac_link"
13306case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_link") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest$ac_exeext &&
13321 $as_test_x conftest$ac_exeext; then
13322 cat >>confdefs.h <<\_ACEOF
13323#define HAVE_LIBZ 1
13324_ACEOF
13325
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330
13331 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
13332echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
13333 { (exit 1); exit 1; }; }
13334
13335
13336fi
13337
13338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13339 conftest$ac_exeext conftest.$ac_ext
13340
13341
13342fi
13343
13344
13345
13346# Check whether --with-zlib-version-check was given.
13347if test "${with_zlib_version_check+set}" = set; then
13348 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
13349 zlib_check_nonfatal=1
13350 fi
13351
13352
13353fi
13354
13355
13356{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
13357echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
13358if test "$cross_compiling" = yes; then
13359 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
13360echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
13361
13362else
13363 cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
13369
13370#include <stdio.h>
13371#include <stdlib.h>
13372#include <zlib.h>
13373
13374int
13375main ()
13376{
13377
13378 int a=0, b=0, c=0, d=0, n, v;
13379 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
13380 if (n != 3 && n != 4)
13381 exit(1);
13382 v = a*1000000 + b*10000 + c*100 + d;
13383 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
13384
13385 /* 1.1.4 is OK */
13386 if (a == 1 && b == 1 && c >= 4)
13387 exit(0);
13388
13389 /* 1.2.3 and up are OK */
13390 if (v >= 1020300)
13391 exit(0);
13392
13393 exit(2);
13394
13395 ;
13396 return 0;
13397}
13398_ACEOF
13399rm -f conftest$ac_exeext
13400if { (ac_try="$ac_link"
13401case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 { echo "$as_me:$LINENO: result: no" >&5
13420echo "${ECHO_T}no" >&6; }
13421else
13422 echo "$as_me: program exited with status $ac_status" >&5
13423echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426( exit $ac_status )
13427 { echo "$as_me:$LINENO: result: yes" >&5
13428echo "${ECHO_T}yes" >&6; }
13429 if test -z "$zlib_check_nonfatal" ; then
13430 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
13431Your reported zlib version has known security problems. It's possible your
13432vendor has fixed these problems without changing the version number. If you
13433are sure this is the case, you can disable the check by running
13434\"./configure --without-zlib-version-check\".
13435If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13436See http://www.gzip.org/zlib/ for details." >&5
13437echo "$as_me: error: *** zlib too old - check config.log ***
13438Your reported zlib version has known security problems. It's possible your
13439vendor has fixed these problems without changing the version number. If you
13440are sure this is the case, you can disable the check by running
13441\"./configure --without-zlib-version-check\".
13442If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13443See http://www.gzip.org/zlib/ for details." >&2;}
13444 { (exit 1); exit 1; }; }
13445 else
13446 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
13447echo "$as_me: WARNING: zlib version may have security problems" >&2;}
13448 fi
13449
13450fi
13451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13452fi
13453
13454
13455
13456{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
13457echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
13458if test "${ac_cv_func_strcasecmp+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
13467/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
13468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13469#define strcasecmp innocuous_strcasecmp
13470
13471/* System header to define __stub macros and hopefully few prototypes,
13472 which can conflict with char strcasecmp (); below.
13473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474 <limits.h> exists even on freestanding compilers. */
13475
13476#ifdef __STDC__
13477# include <limits.h>
13478#else
13479# include <assert.h>
13480#endif
13481
13482#undef strcasecmp
13483
13484/* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13487#ifdef __cplusplus
13488extern "C"
13489#endif
13490char strcasecmp ();
13491/* The GNU C library defines this for functions which it implements
13492 to always fail with ENOSYS. Some functions are actually named
13493 something starting with __ and the normal name is an alias. */
13494#if defined __stub_strcasecmp || defined __stub___strcasecmp
13495choke me
13496#endif
13497
13498int
13499main ()
13500{
13501return strcasecmp ();
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext conftest$ac_exeext
13507if { (ac_try="$ac_link"
13508case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_link") 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && {
13520 test -z "$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 } && test -s conftest$ac_exeext &&
13523 $as_test_x conftest$ac_exeext; then
13524 ac_cv_func_strcasecmp=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_func_strcasecmp=no
13530fi
13531
13532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533 conftest$ac_exeext conftest.$ac_ext
13534fi
13535{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
13536echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
13537if test $ac_cv_func_strcasecmp = yes; then
13538 :
13539else
13540 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13541echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
13542if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545 ac_check_lib_save_LIBS=$LIBS
13546LIBS="-lresolv $LIBS"
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
13553
13554/* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557#ifdef __cplusplus
13558extern "C"
13559#endif
13560char strcasecmp ();
13561int
13562main ()
13563{
13564return strcasecmp ();
13565 ;
13566 return 0;
13567}
13568_ACEOF
13569rm -f conftest.$ac_objext conftest$ac_exeext
13570if { (ac_try="$ac_link"
13571case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext &&
13586 $as_test_x conftest$ac_exeext; then
13587 ac_cv_lib_resolv_strcasecmp=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_cv_lib_resolv_strcasecmp=no
13593fi
13594
13595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596 conftest$ac_exeext conftest.$ac_ext
13597LIBS=$ac_check_lib_save_LIBS
13598fi
13599{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13600echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
13601if test $ac_cv_lib_resolv_strcasecmp = yes; then
13602 LIBS="$LIBS -lresolv"
13603fi
13604
13605
13606fi
13607
13608
13609for ac_func in utimes
13610do
13611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617 cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13625#define $ac_func innocuous_$ac_func
13626
13627/* System header to define __stub macros and hopefully few prototypes,
13628 which can conflict with char $ac_func (); below.
13629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13630 <limits.h> exists even on freestanding compilers. */
13631
13632#ifdef __STDC__
13633# include <limits.h>
13634#else
13635# include <assert.h>
13636#endif
13637
13638#undef $ac_func
13639
13640/* Override any GCC internal prototype to avoid an error.
13641 Use char because int might match the return type of a GCC
13642 builtin and then its argument prototype would still apply. */
13643#ifdef __cplusplus
13644extern "C"
13645#endif
13646char $ac_func ();
13647/* The GNU C library defines this for functions which it implements
13648 to always fail with ENOSYS. Some functions are actually named
13649 something starting with __ and the normal name is an alias. */
13650#if defined __stub_$ac_func || defined __stub___$ac_func
13651choke me
13652#endif
13653
13654int
13655main ()
13656{
13657return $ac_func ();
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext conftest$ac_exeext
13663if { (ac_try="$ac_link"
13664case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13667esac
13668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_link") 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest$ac_exeext &&
13679 $as_test_x conftest$ac_exeext; then
13680 eval "$as_ac_var=yes"
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 eval "$as_ac_var=no"
13686fi
13687
13688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689 conftest$ac_exeext conftest.$ac_ext
13690fi
13691ac_res=`eval echo '${'$as_ac_var'}'`
13692 { echo "$as_me:$LINENO: result: $ac_res" >&5
13693echo "${ECHO_T}$ac_res" >&6; }
13694if test `eval echo '${'$as_ac_var'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13697_ACEOF
13698
13699else
13700 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
13701echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
13702if test "${ac_cv_lib_c89_utimes+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704else
13705 ac_check_lib_save_LIBS=$LIBS
13706LIBS="-lc89 $LIBS"
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713
13714/* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717#ifdef __cplusplus
13718extern "C"
13719#endif
13720char utimes ();
13721int
13722main ()
13723{
13724return utimes ();
13725 ;
13726 return 0;
13727}
13728_ACEOF
13729rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest$ac_exeext &&
13746 $as_test_x conftest$ac_exeext; then
13747 ac_cv_lib_c89_utimes=yes
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_cv_lib_c89_utimes=no
13753fi
13754
13755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13756 conftest$ac_exeext conftest.$ac_ext
13757LIBS=$ac_check_lib_save_LIBS
13758fi
13759{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
13760echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
13761if test $ac_cv_lib_c89_utimes = yes; then
13762 cat >>confdefs.h <<\_ACEOF
13763#define HAVE_UTIMES 1
13764_ACEOF
13765
13766 LIBS="$LIBS -lc89"
13767fi
13768
13769
13770fi
13771done
13772
13773
13774
13775
13776for ac_header in bsd/libutil.h libutil.h
13777do
13778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784fi
13785ac_res=`eval echo '${'$as_ac_Header'}'`
13786 { echo "$as_me:$LINENO: result: $ac_res" >&5
13787echo "${ECHO_T}$ac_res" >&6; }
13788else
13789 # Is the header compilable?
13790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792cat >conftest.$ac_ext <<_ACEOF
13793/* confdefs.h. */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h. */
13798$ac_includes_default
13799#include <$ac_header>
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (ac_try="$ac_compile"
13803case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ac_header_compiler=no
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828echo "${ECHO_T}$ac_header_compiler" >&6; }
13829
13830# Is the header present?
13831{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839#include <$ac_header>
13840_ACEOF
13841if { (ac_try="$ac_cpp conftest.$ac_ext"
13842case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null && {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 }; then
13857 ac_header_preproc=yes
13858else
13859 echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 ac_header_preproc=no
13863fi
13864
13865rm -f conftest.err conftest.$ac_ext
13866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867echo "${ECHO_T}$ac_header_preproc" >&6; }
13868
13869# So? What about this header?
13870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871 yes:no: )
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13876 ac_header_preproc=yes
13877 ;;
13878 no:yes:* )
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13891 ( cat <<\_ASBOX
13892## ------------------------------------------- ##
13893## Report this to openssh-unix-dev@mindrot.org ##
13894## ------------------------------------------- ##
13895_ASBOX
13896 ) | sed "s/^/$as_me: WARNING: /" >&2
13897 ;;
13898esac
13899{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904 eval "$as_ac_Header=\$ac_header_preproc"
13905fi
13906ac_res=`eval echo '${'$as_ac_Header'}'`
13907 { echo "$as_me:$LINENO: result: $ac_res" >&5
13908echo "${ECHO_T}$ac_res" >&6; }
13909
13910fi
13911if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914_ACEOF
13915
13916fi
13917
13918done
13919
13920{ echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5
13921echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; }
13922if test "${ac_cv_search_fmt_scaled+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924else
13925 ac_func_search_save_LIBS=$LIBS
13926cat >conftest.$ac_ext <<_ACEOF
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932
13933/* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13936#ifdef __cplusplus
13937extern "C"
13938#endif
13939char fmt_scaled ();
13940int
13941main ()
13942{
13943return fmt_scaled ();
13944 ;
13945 return 0;
13946}
13947_ACEOF
13948for ac_lib in '' util bsd; do
13949 if test -z "$ac_lib"; then
13950 ac_res="none required"
13951 else
13952 ac_res=-l$ac_lib
13953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13954 fi
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956if { (ac_try="$ac_link"
13957case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_link") 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext &&
13972 $as_test_x conftest$ac_exeext; then
13973 ac_cv_search_fmt_scaled=$ac_res
13974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978
13979fi
13980
13981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982 conftest$ac_exeext
13983 if test "${ac_cv_search_fmt_scaled+set}" = set; then
13984 break
13985fi
13986done
13987if test "${ac_cv_search_fmt_scaled+set}" = set; then
13988 :
13989else
13990 ac_cv_search_fmt_scaled=no
13991fi
13992rm conftest.$ac_ext
13993LIBS=$ac_func_search_save_LIBS
13994fi
13995{ echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5
13996echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; }
13997ac_res=$ac_cv_search_fmt_scaled
13998if test "$ac_res" != no; then
13999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14000
14001fi
14002
14003{ echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5
14004echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; }
14005if test "${ac_cv_search_scan_scaled+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 ac_func_search_save_LIBS=$LIBS
14009cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015
14016/* Override any GCC internal prototype to avoid an error.
14017 Use char because int might match the return type of a GCC
14018 builtin and then its argument prototype would still apply. */
14019#ifdef __cplusplus
14020extern "C"
14021#endif
14022char scan_scaled ();
14023int
14024main ()
14025{
14026return scan_scaled ();
14027 ;
14028 return 0;
14029}
14030_ACEOF
14031for ac_lib in '' util bsd; do
14032 if test -z "$ac_lib"; then
14033 ac_res="none required"
14034 else
14035 ac_res=-l$ac_lib
14036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14037 fi
14038 rm -f conftest.$ac_objext conftest$ac_exeext
14039if { (ac_try="$ac_link"
14040case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14043esac
14044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045 (eval "$ac_link") 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } && {
14052 test -z "$ac_c_werror_flag" ||
14053 test ! -s conftest.err
14054 } && test -s conftest$ac_exeext &&
14055 $as_test_x conftest$ac_exeext; then
14056 ac_cv_search_scan_scaled=$ac_res
14057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
14062fi
14063
14064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14065 conftest$ac_exeext
14066 if test "${ac_cv_search_scan_scaled+set}" = set; then
14067 break
14068fi
14069done
14070if test "${ac_cv_search_scan_scaled+set}" = set; then
14071 :
14072else
14073 ac_cv_search_scan_scaled=no
14074fi
14075rm conftest.$ac_ext
14076LIBS=$ac_func_search_save_LIBS
14077fi
14078{ echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5
14079echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; }
14080ac_res=$ac_cv_search_scan_scaled
14081if test "$ac_res" != no; then
14082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14083
14084fi
14085
14086{ echo "$as_me:$LINENO: checking for library containing login" >&5
14087echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
14088if test "${ac_cv_search_login+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091 ac_func_search_save_LIBS=$LIBS
14092cat >conftest.$ac_ext <<_ACEOF
14093/* confdefs.h. */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h. */
14098
14099/* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14102#ifdef __cplusplus
14103extern "C"
14104#endif
14105char login ();
14106int
14107main ()
14108{
14109return login ();
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114for ac_lib in '' util bsd; do
14115 if test -z "$ac_lib"; then
14116 ac_res="none required"
14117 else
14118 ac_res=-l$ac_lib
14119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14120 fi
14121 rm -f conftest.$ac_objext conftest$ac_exeext
14122if { (ac_try="$ac_link"
14123case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_link") 2>conftest.er1
14129 ac_status=$?
14130 grep -v '^ *+' conftest.er1 >conftest.err
14131 rm -f conftest.er1
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } && {
14135 test -z "$ac_c_werror_flag" ||
14136 test ! -s conftest.err
14137 } && test -s conftest$ac_exeext &&
14138 $as_test_x conftest$ac_exeext; then
14139 ac_cv_search_login=$ac_res
14140else
14141 echo "$as_me: failed program was:" >&5
14142sed 's/^/| /' conftest.$ac_ext >&5
14143
14144
14145fi
14146
14147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14148 conftest$ac_exeext
14149 if test "${ac_cv_search_login+set}" = set; then
14150 break
14151fi
14152done
14153if test "${ac_cv_search_login+set}" = set; then
14154 :
14155else
14156 ac_cv_search_login=no
14157fi
14158rm conftest.$ac_ext
14159LIBS=$ac_func_search_save_LIBS
14160fi
14161{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
14162echo "${ECHO_T}$ac_cv_search_login" >&6; }
14163ac_res=$ac_cv_search_login
14164if test "$ac_res" != no; then
14165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14166
14167fi
14168
14169{ echo "$as_me:$LINENO: checking for library containing logout" >&5
14170echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; }
14171if test "${ac_cv_search_logout+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 ac_func_search_save_LIBS=$LIBS
14175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181
14182/* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14185#ifdef __cplusplus
14186extern "C"
14187#endif
14188char logout ();
14189int
14190main ()
14191{
14192return logout ();
14193 ;
14194 return 0;
14195}
14196_ACEOF
14197for ac_lib in '' util bsd; do
14198 if test -z "$ac_lib"; then
14199 ac_res="none required"
14200 else
14201 ac_res=-l$ac_lib
14202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14203 fi
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (ac_try="$ac_link"
14206case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest$ac_exeext &&
14221 $as_test_x conftest$ac_exeext; then
14222 ac_cv_search_logout=$ac_res
14223else
14224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227
14228fi
14229
14230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14231 conftest$ac_exeext
14232 if test "${ac_cv_search_logout+set}" = set; then
14233 break
14234fi
14235done
14236if test "${ac_cv_search_logout+set}" = set; then
14237 :
14238else
14239 ac_cv_search_logout=no
14240fi
14241rm conftest.$ac_ext
14242LIBS=$ac_func_search_save_LIBS
14243fi
14244{ echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
14245echo "${ECHO_T}$ac_cv_search_logout" >&6; }
14246ac_res=$ac_cv_search_logout
14247if test "$ac_res" != no; then
14248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14249
14250fi
14251
14252{ echo "$as_me:$LINENO: checking for library containing logwtmp" >&5
14253echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; }
14254if test "${ac_cv_search_logwtmp+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257 ac_func_search_save_LIBS=$LIBS
14258cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
14264
14265/* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268#ifdef __cplusplus
14269extern "C"
14270#endif
14271char logwtmp ();
14272int
14273main ()
14274{
14275return logwtmp ();
14276 ;
14277 return 0;
14278}
14279_ACEOF
14280for ac_lib in '' util bsd; do
14281 if test -z "$ac_lib"; then
14282 ac_res="none required"
14283 else
14284 ac_res=-l$ac_lib
14285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14286 fi
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288if { (ac_try="$ac_link"
14289case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } && {
14301 test -z "$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14303 } && test -s conftest$ac_exeext &&
14304 $as_test_x conftest$ac_exeext; then
14305 ac_cv_search_logwtmp=$ac_res
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310
14311fi
14312
14313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314 conftest$ac_exeext
14315 if test "${ac_cv_search_logwtmp+set}" = set; then
14316 break
14317fi
14318done
14319if test "${ac_cv_search_logwtmp+set}" = set; then
14320 :
14321else
14322 ac_cv_search_logwtmp=no
14323fi
14324rm conftest.$ac_ext
14325LIBS=$ac_func_search_save_LIBS
14326fi
14327{ echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5
14328echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; }
14329ac_res=$ac_cv_search_logwtmp
14330if test "$ac_res" != no; then
14331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14332
14333fi
14334
14335{ echo "$as_me:$LINENO: checking for library containing openpty" >&5
14336echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
14337if test "${ac_cv_search_openpty+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339else
14340 ac_func_search_save_LIBS=$LIBS
14341cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347
14348/* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14351#ifdef __cplusplus
14352extern "C"
14353#endif
14354char openpty ();
14355int
14356main ()
14357{
14358return openpty ();
14359 ;
14360 return 0;
14361}
14362_ACEOF
14363for ac_lib in '' util bsd; do
14364 if test -z "$ac_lib"; then
14365 ac_res="none required"
14366 else
14367 ac_res=-l$ac_lib
14368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14369 fi
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371if { (ac_try="$ac_link"
14372case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext &&
14387 $as_test_x conftest$ac_exeext; then
14388 ac_cv_search_openpty=$ac_res
14389else
14390 echo "$as_me: failed program was:" >&5
14391sed 's/^/| /' conftest.$ac_ext >&5
14392
14393
14394fi
14395
14396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext
14398 if test "${ac_cv_search_openpty+set}" = set; then
14399 break
14400fi
14401done
14402if test "${ac_cv_search_openpty+set}" = set; then
14403 :
14404else
14405 ac_cv_search_openpty=no
14406fi
14407rm conftest.$ac_ext
14408LIBS=$ac_func_search_save_LIBS
14409fi
14410{ echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
14411echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
14412ac_res=$ac_cv_search_openpty
14413if test "$ac_res" != no; then
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416fi
14417
14418{ echo "$as_me:$LINENO: checking for library containing updwtmp" >&5
14419echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; }
14420if test "${ac_cv_search_updwtmp+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
14423 ac_func_search_save_LIBS=$LIBS
14424cat >conftest.$ac_ext <<_ACEOF
14425/* confdefs.h. */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
14429/* end confdefs.h. */
14430
14431/* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14434#ifdef __cplusplus
14435extern "C"
14436#endif
14437char updwtmp ();
14438int
14439main ()
14440{
14441return updwtmp ();
14442 ;
14443 return 0;
14444}
14445_ACEOF
14446for ac_lib in '' util bsd; do
14447 if test -z "$ac_lib"; then
14448 ac_res="none required"
14449 else
14450 ac_res=-l$ac_lib
14451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14452 fi
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454if { (ac_try="$ac_link"
14455case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest$ac_exeext &&
14470 $as_test_x conftest$ac_exeext; then
14471 ac_cv_search_updwtmp=$ac_res
14472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476
14477fi
14478
14479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480 conftest$ac_exeext
14481 if test "${ac_cv_search_updwtmp+set}" = set; then
14482 break
14483fi
14484done
14485if test "${ac_cv_search_updwtmp+set}" = set; then
14486 :
14487else
14488 ac_cv_search_updwtmp=no
14489fi
14490rm conftest.$ac_ext
14491LIBS=$ac_func_search_save_LIBS
14492fi
14493{ echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5
14494echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; }
14495ac_res=$ac_cv_search_updwtmp
14496if test "$ac_res" != no; then
14497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498
14499fi
14500
14501
14502
14503
14504
14505
14506
14507
14508for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
14509do
14510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
14516 cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h. */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14524#define $ac_func innocuous_$ac_func
14525
14526/* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char $ac_func (); below.
14528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529 <limits.h> exists even on freestanding compilers. */
14530
14531#ifdef __STDC__
14532# include <limits.h>
14533#else
14534# include <assert.h>
14535#endif
14536
14537#undef $ac_func
14538
14539/* Override any GCC internal prototype to avoid an error.
14540 Use char because int might match the return type of a GCC
14541 builtin and then its argument prototype would still apply. */
14542#ifdef __cplusplus
14543extern "C"
14544#endif
14545char $ac_func ();
14546/* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549#if defined __stub_$ac_func || defined __stub___$ac_func
14550choke me
14551#endif
14552
14553int
14554main ()
14555{
14556return $ac_func ();
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext conftest$ac_exeext
14562if { (ac_try="$ac_link"
14563case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest$ac_exeext &&
14578 $as_test_x conftest$ac_exeext; then
14579 eval "$as_ac_var=yes"
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 eval "$as_ac_var=no"
14585fi
14586
14587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588 conftest$ac_exeext conftest.$ac_ext
14589fi
14590ac_res=`eval echo '${'$as_ac_var'}'`
14591 { echo "$as_me:$LINENO: result: $ac_res" >&5
14592echo "${ECHO_T}$ac_res" >&6; }
14593if test `eval echo '${'$as_ac_var'}'` = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14596_ACEOF
14597
14598fi
14599done
14600
14601
14602# On some platforms, inet_ntop may be found in libresolv or libnsl.
14603{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
14604echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
14605if test "${ac_cv_search_inet_ntop+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608 ac_func_search_save_LIBS=$LIBS
14609cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
14615
14616/* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14619#ifdef __cplusplus
14620extern "C"
14621#endif
14622char inet_ntop ();
14623int
14624main ()
14625{
14626return inet_ntop ();
14627 ;
14628 return 0;
14629}
14630_ACEOF
14631for ac_lib in '' resolv nsl; do
14632 if test -z "$ac_lib"; then
14633 ac_res="none required"
14634 else
14635 ac_res=-l$ac_lib
14636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14637 fi
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639if { (ac_try="$ac_link"
14640case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 ac_cv_search_inet_ntop=$ac_res
14657else
14658 echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661
14662fi
14663
14664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665 conftest$ac_exeext
14666 if test "${ac_cv_search_inet_ntop+set}" = set; then
14667 break
14668fi
14669done
14670if test "${ac_cv_search_inet_ntop+set}" = set; then
14671 :
14672else
14673 ac_cv_search_inet_ntop=no
14674fi
14675rm conftest.$ac_ext
14676LIBS=$ac_func_search_save_LIBS
14677fi
14678{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
14679echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
14680ac_res=$ac_cv_search_inet_ntop
14681if test "$ac_res" != no; then
14682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14683
14684fi
14685
14686
14687
14688for ac_func in strftime
14689do
14690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14695else
14696 cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14704#define $ac_func innocuous_$ac_func
14705
14706/* System header to define __stub macros and hopefully few prototypes,
14707 which can conflict with char $ac_func (); below.
14708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709 <limits.h> exists even on freestanding compilers. */
14710
14711#ifdef __STDC__
14712# include <limits.h>
14713#else
14714# include <assert.h>
14715#endif
14716
14717#undef $ac_func
14718
14719/* Override any GCC internal prototype to avoid an error.
14720 Use char because int might match the return type of a GCC
14721 builtin and then its argument prototype would still apply. */
14722#ifdef __cplusplus
14723extern "C"
14724#endif
14725char $ac_func ();
14726/* The GNU C library defines this for functions which it implements
14727 to always fail with ENOSYS. Some functions are actually named
14728 something starting with __ and the normal name is an alias. */
14729#if defined __stub_$ac_func || defined __stub___$ac_func
14730choke me
14731#endif
14732
14733int
14734main ()
14735{
14736return $ac_func ();
14737 ;
14738 return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext conftest$ac_exeext
14742if { (ac_try="$ac_link"
14743case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746esac
14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_link") 2>conftest.er1
14749 ac_status=$?
14750 grep -v '^ *+' conftest.er1 >conftest.err
14751 rm -f conftest.er1
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } && {
14755 test -z "$ac_c_werror_flag" ||
14756 test ! -s conftest.err
14757 } && test -s conftest$ac_exeext &&
14758 $as_test_x conftest$ac_exeext; then
14759 eval "$as_ac_var=yes"
14760else
14761 echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 eval "$as_ac_var=no"
14765fi
14766
14767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14768 conftest$ac_exeext conftest.$ac_ext
14769fi
14770ac_res=`eval echo '${'$as_ac_var'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772echo "${ECHO_T}$ac_res" >&6; }
14773if test `eval echo '${'$as_ac_var'}'` = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776_ACEOF
14777
14778else
14779 # strftime is in -lintl on SCO UNIX.
14780{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14781echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14782if test "${ac_cv_lib_intl_strftime+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
14785 ac_check_lib_save_LIBS=$LIBS
14786LIBS="-lintl $LIBS"
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793
14794/* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14797#ifdef __cplusplus
14798extern "C"
14799#endif
14800char strftime ();
14801int
14802main ()
14803{
14804return strftime ();
14805 ;
14806 return 0;
14807}
14808_ACEOF
14809rm -f conftest.$ac_objext conftest$ac_exeext
14810if { (ac_try="$ac_link"
14811case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_link") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest$ac_exeext &&
14826 $as_test_x conftest$ac_exeext; then
14827 ac_cv_lib_intl_strftime=yes
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
14832 ac_cv_lib_intl_strftime=no
14833fi
14834
14835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14837LIBS=$ac_check_lib_save_LIBS
14838fi
14839{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14840echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14841if test $ac_cv_lib_intl_strftime = yes; then
14842 cat >>confdefs.h <<\_ACEOF
14843#define HAVE_STRFTIME 1
14844_ACEOF
14845
14846LIBS="-lintl $LIBS"
14847fi
14848
14849fi
14850done
14851
14852
14853# Check for ALTDIRFUNC glob() extension
14854{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
14855echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862
14863 #include <glob.h>
14864 #ifdef GLOB_ALTDIRFUNC
14865 FOUNDIT
14866 #endif
14867
14868_ACEOF
14869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14870 $EGREP "FOUNDIT" >/dev/null 2>&1; then
14871
14872
14873cat >>confdefs.h <<\_ACEOF
14874#define GLOB_HAS_ALTDIRFUNC 1
14875_ACEOF
14876
14877 { echo "$as_me:$LINENO: result: yes" >&5
14878echo "${ECHO_T}yes" >&6; }
14879
14880else
14881
14882 { echo "$as_me:$LINENO: result: no" >&5
14883echo "${ECHO_T}no" >&6; }
14884
14885
14886fi
14887rm -f conftest*
14888
14889
14890# Check for g.gl_matchc glob() extension
14891{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
14892echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
14893cat >conftest.$ac_ext <<_ACEOF
14894/* confdefs.h. */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h. */
14899 #include <glob.h>
14900int
14901main ()
14902{
14903 glob_t g; g.gl_matchc = 1;
14904 ;
14905 return 0;
14906}
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (ac_try="$ac_compile"
14910case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14913esac
14914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_compile") 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest.$ac_objext; then
14925
14926
14927cat >>confdefs.h <<\_ACEOF
14928#define GLOB_HAS_GL_MATCHC 1
14929_ACEOF
14930
14931 { echo "$as_me:$LINENO: result: yes" >&5
14932echo "${ECHO_T}yes" >&6; }
14933
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938
14939 { echo "$as_me:$LINENO: result: no" >&5
14940echo "${ECHO_T}no" >&6; }
14941
14942fi
14943
14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945
14946# Check for g.gl_statv glob() extension
14947{ echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
14948echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
14949cat >conftest.$ac_ext <<_ACEOF
14950/* confdefs.h. */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h. */
14955 #include <glob.h>
14956int
14957main ()
14958{
14959
14960#ifndef GLOB_KEEPSTAT
14961#error "glob does not support GLOB_KEEPSTAT extension"
14962#endif
14963glob_t g;
14964g.gl_statv = NULL;
14965
14966 ;
14967 return 0;
14968}
14969_ACEOF
14970rm -f conftest.$ac_objext
14971if { (ac_try="$ac_compile"
14972case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975esac
14976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_compile") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest.$ac_objext; then
14987
14988
14989cat >>confdefs.h <<\_ACEOF
14990#define GLOB_HAS_GL_STATV 1
14991_ACEOF
14992
14993 { echo "$as_me:$LINENO: result: yes" >&5
14994echo "${ECHO_T}yes" >&6; }
14995
14996else
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000
15001 { echo "$as_me:$LINENO: result: no" >&5
15002echo "${ECHO_T}no" >&6; }
15003
15004
15005fi
15006
15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008
15009{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
15010echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
15011if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013else
15014 cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020#include <glob.h>
15021
15022int
15023main ()
15024{
15025#ifndef GLOB_NOMATCH
15026 (void) GLOB_NOMATCH;
15027#endif
15028
15029 ;
15030 return 0;
15031}
15032_ACEOF
15033rm -f conftest.$ac_objext
15034if { (ac_try="$ac_compile"
15035case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest.$ac_objext; then
15050 ac_cv_have_decl_GLOB_NOMATCH=yes
15051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055 ac_cv_have_decl_GLOB_NOMATCH=no
15056fi
15057
15058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059fi
15060{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
15061echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
15062if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
15063
15064cat >>confdefs.h <<_ACEOF
15065#define HAVE_DECL_GLOB_NOMATCH 1
15066_ACEOF
15067
15068
15069else
15070 cat >>confdefs.h <<_ACEOF
15071#define HAVE_DECL_GLOB_NOMATCH 0
15072_ACEOF
15073
15074
15075fi
15076
15077
15078
15079{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
15080echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
15081if test "$cross_compiling" = yes; then
15082
15083 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
15084echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
15085 cat >>confdefs.h <<\_ACEOF
15086#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15087_ACEOF
15088
15089
15090
15091else
15092 cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098
15099#include <sys/types.h>
15100#include <dirent.h>
15101int
15102main ()
15103{
15104
15105 struct dirent d;
15106 exit(sizeof(d.d_name)<=sizeof(char));
15107
15108 ;
15109 return 0;
15110}
15111_ACEOF
15112rm -f conftest$ac_exeext
15113if { (ac_try="$ac_link"
15114case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 { echo "$as_me:$LINENO: result: yes" >&5
15133echo "${ECHO_T}yes" >&6; }
15134else
15135 echo "$as_me: program exited with status $ac_status" >&5
15136echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139( exit $ac_status )
15140
15141 { echo "$as_me:$LINENO: result: no" >&5
15142echo "${ECHO_T}no" >&6; }
15143
15144cat >>confdefs.h <<\_ACEOF
15145#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15146_ACEOF
15147
15148
15149fi
15150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15151fi
15152
15153
15154
15155{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
15156echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
15157if test -d "/proc/$$/fd" ; then
15158
15159cat >>confdefs.h <<\_ACEOF
15160#define HAVE_PROC_PID 1
15161_ACEOF
15162
15163 { echo "$as_me:$LINENO: result: yes" >&5
15164echo "${ECHO_T}yes" >&6; }
15165else
15166 { echo "$as_me:$LINENO: result: no" >&5
15167echo "${ECHO_T}no" >&6; }
15168fi
15169
15170# Check whether user wants S/Key support
15171SKEY_MSG="no"
15172
15173# Check whether --with-skey was given.
15174if test "${with_skey+set}" = set; then
15175 withval=$with_skey;
15176 if test "x$withval" != "xno" ; then
15177
15178 if test "x$withval" != "xyes" ; then
15179 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15180 LDFLAGS="$LDFLAGS -L${withval}/lib"
15181 fi
15182
15183
15184cat >>confdefs.h <<\_ACEOF
15185#define SKEY 1
15186_ACEOF
15187
15188 LIBS="-lskey $LIBS"
15189 SKEY_MSG="yes"
15190
15191 { echo "$as_me:$LINENO: checking for s/key support" >&5
15192echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
15193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199
15200#include <stdio.h>
15201#include <skey.h>
15202
15203int
15204main ()
15205{
15206
15207 char *ff = skey_keyinfo(""); ff="";
15208 exit(0);
15209
15210 ;
15211 return 0;
15212}
15213_ACEOF
15214rm -f conftest.$ac_objext conftest$ac_exeext
15215if { (ac_try="$ac_link"
15216case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_link") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext &&
15231 $as_test_x conftest$ac_exeext; then
15232 { echo "$as_me:$LINENO: result: yes" >&5
15233echo "${ECHO_T}yes" >&6; }
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238
15239 { echo "$as_me:$LINENO: result: no" >&5
15240echo "${ECHO_T}no" >&6; }
15241 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
15242echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
15243 { (exit 1); exit 1; }; }
15244
15245fi
15246
15247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248 conftest$ac_exeext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
15250echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257
15258#include <stdio.h>
15259#include <skey.h>
15260
15261int
15262main ()
15263{
15264
15265 (void)skeychallenge(NULL,"name","",0);
15266
15267 ;
15268 return 0;
15269}
15270_ACEOF
15271rm -f conftest.$ac_objext
15272if { (ac_try="$ac_compile"
15273case "(($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_compile") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest.$ac_objext; then
15288
15289 { echo "$as_me:$LINENO: result: yes" >&5
15290echo "${ECHO_T}yes" >&6; }
15291
15292cat >>confdefs.h <<\_ACEOF
15293#define SKEYCHALLENGE_4ARG 1
15294_ACEOF
15295
15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300
15301 { echo "$as_me:$LINENO: result: no" >&5
15302echo "${ECHO_T}no" >&6; }
15303
15304fi
15305
15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 fi
15308
15309
15310fi
15311
15312
15313# Check whether user wants to use ldns
15314LDNS_MSG="no"
15315
15316# Check whether --with-ldns was given.
15317if test "${with_ldns+set}" = set; then
15318 withval=$with_ldns;
15319 if test "x$withval" != "xno" ; then
15320
15321 if test "x$withval" != "xyes" ; then
15322 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15323 LDFLAGS="$LDFLAGS -L${withval}/lib"
15324 fi
15325
15326
15327cat >>confdefs.h <<\_ACEOF
15328#define HAVE_LDNS 1
15329_ACEOF
15330
15331 LIBS="-lldns $LIBS"
15332 LDNS_MSG="yes"
15333
15334 { echo "$as_me:$LINENO: checking for ldns support" >&5
15335echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; }
15336 cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
15342
15343#include <stdio.h>
15344#include <stdlib.h>
15345#include <stdint.h>
15346#include <ldns/ldns.h>
15347int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
15348
15349
15350_ACEOF
15351rm -f conftest.$ac_objext conftest$ac_exeext
15352if { (ac_try="$ac_link"
15353case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356esac
15357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } && {
15365 test -z "$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15367 } && test -s conftest$ac_exeext &&
15368 $as_test_x conftest$ac_exeext; then
15369 { echo "$as_me:$LINENO: result: yes" >&5
15370echo "${ECHO_T}yes" >&6; }
15371else
15372 echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
15375
15376 { echo "$as_me:$LINENO: result: no" >&5
15377echo "${ECHO_T}no" >&6; }
15378 { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5
15379echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;}
15380 { (exit 1); exit 1; }; }
15381
15382fi
15383
15384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385 conftest$ac_exeext conftest.$ac_ext
15386 fi
15387
15388
15389fi
15390
15391
15392# Check whether user wants libedit support
15393LIBEDIT_MSG="no"
15394
15395# Check whether --with-libedit was given.
15396if test "${with_libedit+set}" = set; then
15397 withval=$with_libedit; if test "x$withval" != "xno" ; then
15398 if test "x$withval" = "xyes" ; then
15399 if test -n "$ac_tool_prefix"; then
15400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15401set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15404if test "${ac_cv_path_PKGCONFIG+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 case $PKGCONFIG in
15408 [\\/]* | ?:[\\/]*)
15409 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15410 ;;
15411 *)
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413for as_dir in $PATH
15414do
15415 IFS=$as_save_IFS
15416 test -z "$as_dir" && as_dir=.
15417 for ac_exec_ext in '' $ac_executable_extensions; do
15418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15419 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15421 break 2
15422 fi
15423done
15424done
15425IFS=$as_save_IFS
15426
15427 ;;
15428esac
15429fi
15430PKGCONFIG=$ac_cv_path_PKGCONFIG
15431if test -n "$PKGCONFIG"; then
15432 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
15433echo "${ECHO_T}$PKGCONFIG" >&6; }
15434else
15435 { echo "$as_me:$LINENO: result: no" >&5
15436echo "${ECHO_T}no" >&6; }
15437fi
15438
15439
15440fi
15441if test -z "$ac_cv_path_PKGCONFIG"; then
15442 ac_pt_PKGCONFIG=$PKGCONFIG
15443 # Extract the first word of "pkg-config", so it can be a program name with args.
15444set dummy pkg-config; ac_word=$2
15445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15447if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450 case $ac_pt_PKGCONFIG in
15451 [\\/]* | ?:[\\/]*)
15452 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
15453 ;;
15454 *)
15455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458 IFS=$as_save_IFS
15459 test -z "$as_dir" && as_dir=.
15460 for ac_exec_ext in '' $ac_executable_extensions; do
15461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15462 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15464 break 2
15465 fi
15466done
15467done
15468IFS=$as_save_IFS
15469
15470 ;;
15471esac
15472fi
15473ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
15474if test -n "$ac_pt_PKGCONFIG"; then
15475 { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
15476echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
15477else
15478 { echo "$as_me:$LINENO: result: no" >&5
15479echo "${ECHO_T}no" >&6; }
15480fi
15481
15482 if test "x$ac_pt_PKGCONFIG" = x; then
15483 PKGCONFIG="no"
15484 else
15485 case $cross_compiling:$ac_tool_warned in
15486yes:)
15487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15488whose name does not start with the host triplet. If you think this
15489configuration is useful to you, please write to autoconf@gnu.org." >&5
15490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15491whose name does not start with the host triplet. If you think this
15492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15493ac_tool_warned=yes ;;
15494esac
15495 PKGCONFIG=$ac_pt_PKGCONFIG
15496 fi
15497else
15498 PKGCONFIG="$ac_cv_path_PKGCONFIG"
15499fi
15500
15501 if test "x$PKGCONFIG" != "xno"; then
15502 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
15503echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
15504 if "$PKGCONFIG" libedit; then
15505 { echo "$as_me:$LINENO: result: yes" >&5
15506echo "${ECHO_T}yes" >&6; }
15507 use_pkgconfig_for_libedit=yes
15508 else
15509 { echo "$as_me:$LINENO: result: no" >&5
15510echo "${ECHO_T}no" >&6; }
15511 fi
15512 fi
15513 else
15514 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15515 if test -n "${need_dash_r}"; then
15516 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15517 else
15518 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15519 fi
15520 fi
15521 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
15522 LIBEDIT=`$PKGCONFIG --libs libedit`
15523 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
15524 else
15525 LIBEDIT="-ledit -lcurses"
15526 fi
15527 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
15528 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
15529echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
15530if test "${ac_cv_lib_edit_el_init+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532else
15533 ac_check_lib_save_LIBS=$LIBS
15534LIBS="-ledit $OTHERLIBS
15535 $LIBS"
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542
15543/* Override any GCC internal prototype to avoid an error.
15544 Use char because int might match the return type of a GCC
15545 builtin and then its argument prototype would still apply. */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549char el_init ();
15550int
15551main ()
15552{
15553return el_init ();
15554 ;
15555 return 0;
15556}
15557_ACEOF
15558rm -f conftest.$ac_objext conftest$ac_exeext
15559if { (ac_try="$ac_link"
15560case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_link") 2>conftest.er1
15566 ac_status=$?
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && {
15572 test -z "$ac_c_werror_flag" ||
15573 test ! -s conftest.err
15574 } && test -s conftest$ac_exeext &&
15575 $as_test_x conftest$ac_exeext; then
15576 ac_cv_lib_edit_el_init=yes
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_cv_lib_edit_el_init=no
15582fi
15583
15584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15586LIBS=$ac_check_lib_save_LIBS
15587fi
15588{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
15589echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
15590if test $ac_cv_lib_edit_el_init = yes; then
15591
15592cat >>confdefs.h <<\_ACEOF
15593#define USE_LIBEDIT 1
15594_ACEOF
15595
15596 LIBEDIT_MSG="yes"
15597
15598
15599else
15600 { { echo "$as_me:$LINENO: error: libedit not found" >&5
15601echo "$as_me: error: libedit not found" >&2;}
15602 { (exit 1); exit 1; }; }
15603fi
15604
15605 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
15606echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
15607 cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613 #include <histedit.h>
15614int
15615main ()
15616{
15617
15618 int i = H_SETSIZE;
15619 el_init("", NULL, NULL, NULL);
15620 exit(0);
15621
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext
15627if { (ac_try="$ac_compile"
15628case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_compile") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && {
15640 test -z "$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 } && test -s conftest.$ac_objext; then
15643 { echo "$as_me:$LINENO: result: yes" >&5
15644echo "${ECHO_T}yes" >&6; }
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 { echo "$as_me:$LINENO: result: no" >&5
15650echo "${ECHO_T}no" >&6; }
15651 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
15652echo "$as_me: error: libedit version is not compatible" >&2;}
15653 { (exit 1); exit 1; }; }
15654
15655fi
15656
15657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 fi
15659
15660fi
15661
15662
15663AUDIT_MODULE=none
15664
15665# Check whether --with-audit was given.
15666if test "${with_audit+set}" = set; then
15667 withval=$with_audit;
15668 { echo "$as_me:$LINENO: checking for supported audit module" >&5
15669echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
15670 case "$withval" in
15671 bsm)
15672 { echo "$as_me:$LINENO: result: bsm" >&5
15673echo "${ECHO_T}bsm" >&6; }
15674 AUDIT_MODULE=bsm
15675
15676for ac_header in bsm/audit.h
15677do
15678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
15684 cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690
15691#ifdef HAVE_TIME_H
15692# include <time.h>
15693#endif
15694
15695
15696
15697#include <$ac_header>
15698_ACEOF
15699rm -f conftest.$ac_objext
15700if { (ac_try="$ac_compile"
15701case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_compile") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest.$ac_objext; then
15716 eval "$as_ac_Header=yes"
15717else
15718 echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 eval "$as_ac_Header=no"
15722fi
15723
15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725fi
15726ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result: $ac_res" >&5
15728echo "${ECHO_T}$ac_res" >&6; }
15729if test `eval echo '${'$as_ac_Header'}'` = yes; then
15730 cat >>confdefs.h <<_ACEOF
15731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732_ACEOF
15733
15734else
15735 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
15736echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
15737 { (exit 1); exit 1; }; }
15738fi
15739
15740done
15741
15742
15743{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
15744echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
15745if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747else
15748 ac_check_lib_save_LIBS=$LIBS
15749LIBS="-lbsm $LIBS"
15750cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756
15757/* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
15760#ifdef __cplusplus
15761extern "C"
15762#endif
15763char getaudit ();
15764int
15765main ()
15766{
15767return getaudit ();
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext 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>conftest.er1
15780 ac_status=$?
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } && {
15786 test -z "$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest$ac_exeext &&
15789 $as_test_x conftest$ac_exeext; then
15790 ac_cv_lib_bsm_getaudit=yes
15791else
15792 echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_cv_lib_bsm_getaudit=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15799 conftest$ac_exeext conftest.$ac_ext
15800LIBS=$ac_check_lib_save_LIBS
15801fi
15802{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
15803echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
15804if test $ac_cv_lib_bsm_getaudit = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806#define HAVE_LIBBSM 1
15807_ACEOF
15808
15809 LIBS="-lbsm $LIBS"
15810
15811else
15812 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
15813echo "$as_me: error: BSM enabled and required library not found" >&2;}
15814 { (exit 1); exit 1; }; }
15815fi
15816
15817
15818for ac_func in getaudit
15819do
15820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15834#define $ac_func innocuous_$ac_func
15835
15836/* System header to define __stub macros and hopefully few prototypes,
15837 which can conflict with char $ac_func (); below.
15838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15839 <limits.h> exists even on freestanding compilers. */
15840
15841#ifdef __STDC__
15842# include <limits.h>
15843#else
15844# include <assert.h>
15845#endif
15846
15847#undef $ac_func
15848
15849/* Override any GCC internal prototype to avoid an error.
15850 Use char because int might match the return type of a GCC
15851 builtin and then its argument prototype would still apply. */
15852#ifdef __cplusplus
15853extern "C"
15854#endif
15855char $ac_func ();
15856/* The GNU C library defines this for functions which it implements
15857 to always fail with ENOSYS. Some functions are actually named
15858 something starting with __ and the normal name is an alias. */
15859#if defined __stub_$ac_func || defined __stub___$ac_func
15860choke me
15861#endif
15862
15863int
15864main ()
15865{
15866return $ac_func ();
15867 ;
15868 return 0;
15869}
15870_ACEOF
15871rm -f conftest.$ac_objext conftest$ac_exeext
15872if { (ac_try="$ac_link"
15873case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15876esac
15877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_link") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest$ac_exeext &&
15888 $as_test_x conftest$ac_exeext; then
15889 eval "$as_ac_var=yes"
15890else
15891 echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 eval "$as_ac_var=no"
15895fi
15896
15897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15898 conftest$ac_exeext conftest.$ac_ext
15899fi
15900ac_res=`eval echo '${'$as_ac_var'}'`
15901 { echo "$as_me:$LINENO: result: $ac_res" >&5
15902echo "${ECHO_T}$ac_res" >&6; }
15903if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906_ACEOF
15907
15908else
15909 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
15910echo "$as_me: error: BSM enabled and required function not found" >&2;}
15911 { (exit 1); exit 1; }; }
15912fi
15913done
15914
15915 # These are optional
15916
15917
15918for ac_func in getaudit_addr aug_get_machine
15919do
15920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15925else
15926 cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15934#define $ac_func innocuous_$ac_func
15935
15936/* System header to define __stub macros and hopefully few prototypes,
15937 which can conflict with char $ac_func (); below.
15938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15939 <limits.h> exists even on freestanding compilers. */
15940
15941#ifdef __STDC__
15942# include <limits.h>
15943#else
15944# include <assert.h>
15945#endif
15946
15947#undef $ac_func
15948
15949/* Override any GCC internal prototype to avoid an error.
15950 Use char because int might match the return type of a GCC
15951 builtin and then its argument prototype would still apply. */
15952#ifdef __cplusplus
15953extern "C"
15954#endif
15955char $ac_func ();
15956/* The GNU C library defines this for functions which it implements
15957 to always fail with ENOSYS. Some functions are actually named
15958 something starting with __ and the normal name is an alias. */
15959#if defined __stub_$ac_func || defined __stub___$ac_func
15960choke me
15961#endif
15962
15963int
15964main ()
15965{
15966return $ac_func ();
15967 ;
15968 return 0;
15969}
15970_ACEOF
15971rm -f conftest.$ac_objext conftest$ac_exeext
15972if { (ac_try="$ac_link"
15973case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_link") 2>conftest.er1
15979 ac_status=$?
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } && {
15985 test -z "$ac_c_werror_flag" ||
15986 test ! -s conftest.err
15987 } && test -s conftest$ac_exeext &&
15988 $as_test_x conftest$ac_exeext; then
15989 eval "$as_ac_var=yes"
15990else
15991 echo "$as_me: failed program was:" >&5
15992sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 eval "$as_ac_var=no"
15995fi
15996
15997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15998 conftest$ac_exeext conftest.$ac_ext
15999fi
16000ac_res=`eval echo '${'$as_ac_var'}'`
16001 { echo "$as_me:$LINENO: result: $ac_res" >&5
16002echo "${ECHO_T}$ac_res" >&6; }
16003if test `eval echo '${'$as_ac_var'}'` = yes; then
16004 cat >>confdefs.h <<_ACEOF
16005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16006_ACEOF
16007
16008fi
16009done
16010
16011
16012cat >>confdefs.h <<\_ACEOF
16013#define USE_BSM_AUDIT 1
16014_ACEOF
16015
16016 if test "$sol2ver" -ge 11; then
16017 SSHDLIBS="$SSHDLIBS -lscf"
16018
16019cat >>confdefs.h <<\_ACEOF
16020#define BROKEN_BSM_API 1
16021_ACEOF
16022
16023 fi
16024 ;;
16025 linux)
16026 { echo "$as_me:$LINENO: result: linux" >&5
16027echo "${ECHO_T}linux" >&6; }
16028 AUDIT_MODULE=linux
16029
16030for ac_header in libaudit.h
16031do
16032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038fi
16039ac_res=`eval echo '${'$as_ac_Header'}'`
16040 { echo "$as_me:$LINENO: result: $ac_res" >&5
16041echo "${ECHO_T}$ac_res" >&6; }
16042else
16043 # Is the header compilable?
16044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
16052$ac_includes_default
16053#include <$ac_header>
16054_ACEOF
16055rm -f conftest.$ac_objext
16056if { (ac_try="$ac_compile"
16057case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_compile") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest.$ac_objext; then
16072 ac_header_compiler=yes
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 ac_header_compiler=no
16078fi
16079
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16082echo "${ECHO_T}$ac_header_compiler" >&6; }
16083
16084# Is the header present?
16085{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093#include <$ac_header>
16094_ACEOF
16095if { (ac_try="$ac_cpp conftest.$ac_ext"
16096case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } >/dev/null && {
16108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 }; then
16111 ac_header_preproc=yes
16112else
16113 echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ac_header_preproc=no
16117fi
16118
16119rm -f conftest.err conftest.$ac_ext
16120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16121echo "${ECHO_T}$ac_header_preproc" >&6; }
16122
16123# So? What about this header?
16124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125 yes:no: )
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16130 ac_header_preproc=yes
16131 ;;
16132 no:yes:* )
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16145 ( cat <<\_ASBOX
16146## ------------------------------------------- ##
16147## Report this to openssh-unix-dev@mindrot.org ##
16148## ------------------------------------------- ##
16149_ASBOX
16150 ) | sed "s/^/$as_me: WARNING: /" >&2
16151 ;;
16152esac
16153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16157else
16158 eval "$as_ac_Header=\$ac_header_preproc"
16159fi
16160ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162echo "${ECHO_T}$ac_res" >&6; }
16163
16164fi
16165if test `eval echo '${'$as_ac_Header'}'` = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168_ACEOF
16169
16170fi
16171
16172done
16173
16174 SSHDLIBS="$SSHDLIBS -laudit"
16175
16176cat >>confdefs.h <<\_ACEOF
16177#define USE_LINUX_AUDIT 1
16178_ACEOF
16179
16180 ;;
16181 debug)
16182 AUDIT_MODULE=debug
16183 { echo "$as_me:$LINENO: result: debug" >&5
16184echo "${ECHO_T}debug" >&6; }
16185
16186cat >>confdefs.h <<\_ACEOF
16187#define SSH_AUDIT_EVENTS 1
16188_ACEOF
16189
16190 ;;
16191 no)
16192 { echo "$as_me:$LINENO: result: no" >&5
16193echo "${ECHO_T}no" >&6; }
16194 ;;
16195 *)
16196 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
16197echo "$as_me: error: Unknown audit module $withval" >&2;}
16198 { (exit 1); exit 1; }; }
16199 ;;
16200 esac
16201
16202fi
16203
16204
16205
16206# Check whether --with-pie was given.
16207if test "${with_pie+set}" = set; then
16208 withval=$with_pie;
16209 if test "x$withval" = "xno"; then
16210 use_pie=no
16211 fi
16212 if test "x$withval" = "xyes"; then
16213 use_pie=yes
16214 fi
16215
16216
16217fi
16218
16219if test "x$use_pie" = "x"; then
16220 use_pie=no
16221fi
16222if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
16223 # Turn off automatic PIE when toolchain hardening is off.
16224 use_pie=no
16225fi
16226if test "x$use_pie" = "xauto"; then
16227 # Automatic PIE requires gcc >= 4.x
16228 { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5
16229echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236
16237#if !defined(__GNUC__) || __GNUC__ < 4
16238#error gcc is too old
16239#endif
16240
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (ac_try="$ac_compile"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_compile") 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } && {
16256 test -z "$ac_c_werror_flag" ||
16257 test ! -s conftest.err
16258 } && test -s conftest.$ac_objext; then
16259 { echo "$as_me:$LINENO: result: yes" >&5
16260echo "${ECHO_T}yes" >&6; }
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 { echo "$as_me:$LINENO: result: no" >&5
16266echo "${ECHO_T}no" >&6; }
16267 use_pie=no
16268
16269fi
16270
16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272fi
16273if test "x$use_pie" != "xno"; then
16274 SAVED_CFLAGS="$CFLAGS"
16275 SAVED_LDFLAGS="$LDFLAGS"
16276 {
16277 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5
16278echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; }
16279 saved_CFLAGS="$CFLAGS"
16280 CFLAGS="$CFLAGS $WERROR -fPIE"
16281 _define_flag=""
16282 test "x$_define_flag" = "x" && _define_flag="-fPIE"
16283 cat >conftest.$ac_ext <<_ACEOF
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289
16290#include <stdlib.h>
16291#include <stdio.h>
16292int main(int argc, char **argv) {
16293 /* Some math to catch -ftrapv problems in the toolchain */
16294 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16295 float l = i * 2.1;
16296 double m = l / 0.5;
16297 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16298 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16299 exit(0);
16300}
16301
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (ac_try="$ac_compile"
16305case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16320
16321if `grep -i "unrecognized option" conftest.err >/dev/null`
16322then
16323 { echo "$as_me:$LINENO: result: no" >&5
16324echo "${ECHO_T}no" >&6; }
16325 CFLAGS="$saved_CFLAGS"
16326else
16327 { echo "$as_me:$LINENO: result: yes" >&5
16328echo "${ECHO_T}yes" >&6; }
16329 CFLAGS="$saved_CFLAGS $_define_flag"
16330fi
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 { echo "$as_me:$LINENO: result: no" >&5
16336echo "${ECHO_T}no" >&6; }
16337 CFLAGS="$saved_CFLAGS"
16338
16339fi
16340
16341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342}
16343 {
16344 { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5
16345echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; }
16346 saved_LDFLAGS="$LDFLAGS"
16347 LDFLAGS="$LDFLAGS $WERROR -pie"
16348 _define_flag=""
16349 test "x$_define_flag" = "x" && _define_flag="-pie"
16350 cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356
16357#include <stdlib.h>
16358#include <stdio.h>
16359int main(int argc, char **argv) {
16360 /* Some math to catch -ftrapv problems in the toolchain */
16361 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16362 float l = i * 2.1;
16363 double m = l / 0.5;
16364 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16365 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16366 exit(0);
16367}
16368
16369_ACEOF
16370rm -f conftest.$ac_objext conftest$ac_exeext
16371if { (ac_try="$ac_link"
16372case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_link") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext &&
16387 $as_test_x conftest$ac_exeext; then
16388 { echo "$as_me:$LINENO: result: yes" >&5
16389echo "${ECHO_T}yes" >&6; }
16390 LDFLAGS="$saved_LDFLAGS $_define_flag"
16391else
16392 echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 { echo "$as_me:$LINENO: result: no" >&5
16396echo "${ECHO_T}no" >&6; }
16397 LDFLAGS="$saved_LDFLAGS"
16398
16399fi
16400
16401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16403}
16404 # We use both -fPIE and -pie or neither.
16405 { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5
16406echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; }
16407 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
16408 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
16409 { echo "$as_me:$LINENO: result: yes" >&5
16410echo "${ECHO_T}yes" >&6; }
16411 else
16412 { echo "$as_me:$LINENO: result: no" >&5
16413echo "${ECHO_T}no" >&6; }
16414 CFLAGS="$SAVED_CFLAGS"
16415 LDFLAGS="$SAVED_LDFLAGS"
16416 fi
16417fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528for ac_func in \
16529 Blowfish_initstate \
16530 Blowfish_expandstate \
16531 Blowfish_expand0state \
16532 Blowfish_stream2word \
16533 asprintf \
16534 b64_ntop \
16535 __b64_ntop \
16536 b64_pton \
16537 __b64_pton \
16538 bcopy \
16539 bcrypt_pbkdf \
16540 bindresvport_sa \
16541 blf_enc \
16542 cap_rights_limit \
16543 clock \
16544 closefrom \
16545 dirfd \
16546 endgrent \
16547 explicit_bzero \
16548 fchmod \
16549 fchown \
16550 freeaddrinfo \
16551 fstatfs \
16552 fstatvfs \
16553 futimes \
16554 getaddrinfo \
16555 getcwd \
16556 getgrouplist \
16557 getnameinfo \
16558 getopt \
16559 getpeereid \
16560 getpeerucred \
16561 getpgid \
16562 getpgrp \
16563 _getpty \
16564 getrlimit \
16565 getttyent \
16566 glob \
16567 group_from_gid \
16568 inet_aton \
16569 inet_ntoa \
16570 inet_ntop \
16571 innetgr \
16572 login_getcapbool \
16573 mblen \
16574 md5_crypt \
16575 memmove \
16576 memset_s \
16577 mkdtemp \
16578 mmap \
16579 ngetaddrinfo \
16580 nsleep \
16581 ogetaddrinfo \
16582 openlog_r \
16583 poll \
16584 prctl \
16585 pstat \
16586 readpassphrase \
16587 reallocarray \
16588 realpath \
16589 recvmsg \
16590 rresvport_af \
16591 sendmsg \
16592 setdtablesize \
16593 setegid \
16594 setenv \
16595 seteuid \
16596 setgroupent \
16597 setgroups \
16598 setlinebuf \
16599 setlogin \
16600 setpassent\
16601 setpcred \
16602 setproctitle \
16603 setregid \
16604 setreuid \
16605 setrlimit \
16606 setsid \
16607 setvbuf \
16608 sigaction \
16609 sigvec \
16610 snprintf \
16611 socketpair \
16612 statfs \
16613 statvfs \
16614 strdup \
16615 strerror \
16616 strlcat \
16617 strlcpy \
16618 strmode \
16619 strnlen \
16620 strnvis \
16621 strptime \
16622 strtonum \
16623 strtoll \
16624 strtoul \
16625 strtoull \
16626 swap32 \
16627 sysconf \
16628 tcgetpgrp \
16629 timingsafe_bcmp \
16630 truncate \
16631 unsetenv \
16632 updwtmpx \
16633 user_from_uid \
16634 usleep \
16635 vasprintf \
16636 vsnprintf \
16637 waitpid \
16638
16639do
16640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645else
16646 cat >conftest.$ac_ext <<_ACEOF
16647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
16652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16654#define $ac_func innocuous_$ac_func
16655
16656/* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char $ac_func (); below.
16658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16659 <limits.h> exists even on freestanding compilers. */
16660
16661#ifdef __STDC__
16662# include <limits.h>
16663#else
16664# include <assert.h>
16665#endif
16666
16667#undef $ac_func
16668
16669/* Override any GCC internal prototype to avoid an error.
16670 Use char because int might match the return type of a GCC
16671 builtin and then its argument prototype would still apply. */
16672#ifdef __cplusplus
16673extern "C"
16674#endif
16675char $ac_func ();
16676/* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679#if defined __stub_$ac_func || defined __stub___$ac_func
16680choke me
16681#endif
16682
16683int
16684main ()
16685{
16686return $ac_func ();
16687 ;
16688 return 0;
16689}
16690_ACEOF
16691rm -f conftest.$ac_objext conftest$ac_exeext
16692if { (ac_try="$ac_link"
16693case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && {
16705 test -z "$ac_c_werror_flag" ||
16706 test ! -s conftest.err
16707 } && test -s conftest$ac_exeext &&
16708 $as_test_x conftest$ac_exeext; then
16709 eval "$as_ac_var=yes"
16710else
16711 echo "$as_me: failed program was:" >&5
16712sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 eval "$as_ac_var=no"
16715fi
16716
16717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16718 conftest$ac_exeext conftest.$ac_ext
16719fi
16720ac_res=`eval echo '${'$as_ac_var'}'`
16721 { echo "$as_me:$LINENO: result: $ac_res" >&5
16722echo "${ECHO_T}$ac_res" >&6; }
16723if test `eval echo '${'$as_ac_var'}'` = yes; then
16724 cat >>confdefs.h <<_ACEOF
16725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16726_ACEOF
16727
16728fi
16729done
16730
16731
16732cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h. */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h. */
16738 #include <ctype.h>
16739int
16740main ()
16741{
16742 return (isblank('a'));
16743 ;
16744 return 0;
16745}
16746_ACEOF
16747rm -f conftest.$ac_objext conftest$ac_exeext
16748if { (ac_try="$ac_link"
16749case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752esac
16753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_link") 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && {
16761 test -z "$ac_c_werror_flag" ||
16762 test ! -s conftest.err
16763 } && test -s conftest$ac_exeext &&
16764 $as_test_x conftest$ac_exeext; then
16765
16766cat >>confdefs.h <<\_ACEOF
16767#define HAVE_ISBLANK 1
16768_ACEOF
16769
16770
16771else
16772 echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775
16776fi
16777
16778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16779 conftest$ac_exeext conftest.$ac_ext
16780
16781# PKCS11 depends on OpenSSL.
16782if test "x$openssl" = "xyes" ; then
16783 # PKCS#11 support requires dlopen() and co
16784 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16785echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16786if test "${ac_cv_search_dlopen+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788else
16789 ac_func_search_save_LIBS=$LIBS
16790cat >conftest.$ac_ext <<_ACEOF
16791/* confdefs.h. */
16792_ACEOF
16793cat confdefs.h >>conftest.$ac_ext
16794cat >>conftest.$ac_ext <<_ACEOF
16795/* end confdefs.h. */
16796
16797/* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16800#ifdef __cplusplus
16801extern "C"
16802#endif
16803char dlopen ();
16804int
16805main ()
16806{
16807return dlopen ();
16808 ;
16809 return 0;
16810}
16811_ACEOF
16812for ac_lib in '' dl; do
16813 if test -z "$ac_lib"; then
16814 ac_res="none required"
16815 else
16816 ac_res=-l$ac_lib
16817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16818 fi
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820if { (ac_try="$ac_link"
16821case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest$ac_exeext &&
16836 $as_test_x conftest$ac_exeext; then
16837 ac_cv_search_dlopen=$ac_res
16838else
16839 echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842
16843fi
16844
16845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16846 conftest$ac_exeext
16847 if test "${ac_cv_search_dlopen+set}" = set; then
16848 break
16849fi
16850done
16851if test "${ac_cv_search_dlopen+set}" = set; then
16852 :
16853else
16854 ac_cv_search_dlopen=no
16855fi
16856rm conftest.$ac_ext
16857LIBS=$ac_func_search_save_LIBS
16858fi
16859{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16860echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16861ac_res=$ac_cv_search_dlopen
16862if test "$ac_res" != no; then
16863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16864
16865cat >>confdefs.h <<\_ACEOF
16866#define ENABLE_PKCS11
16867_ACEOF
16868
16869
16870fi
16871
16872fi
16873
16874# IRIX has a const char return value for gai_strerror()
16875
16876for ac_func in gai_strerror
16877do
16878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883else
16884 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892#define $ac_func innocuous_$ac_func
16893
16894/* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16898
16899#ifdef __STDC__
16900# include <limits.h>
16901#else
16902# include <assert.h>
16903#endif
16904
16905#undef $ac_func
16906
16907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16910#ifdef __cplusplus
16911extern "C"
16912#endif
16913char $ac_func ();
16914/* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917#if defined __stub_$ac_func || defined __stub___$ac_func
16918choke me
16919#endif
16920
16921int
16922main ()
16923{
16924return $ac_func ();
16925 ;
16926 return 0;
16927}
16928_ACEOF
16929rm -f conftest.$ac_objext conftest$ac_exeext
16930if { (ac_try="$ac_link"
16931case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && {
16943 test -z "$ac_c_werror_flag" ||
16944 test ! -s conftest.err
16945 } && test -s conftest$ac_exeext &&
16946 $as_test_x conftest$ac_exeext; then
16947 eval "$as_ac_var=yes"
16948else
16949 echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 eval "$as_ac_var=no"
16953fi
16954
16955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956 conftest$ac_exeext conftest.$ac_ext
16957fi
16958ac_res=`eval echo '${'$as_ac_var'}'`
16959 { echo "$as_me:$LINENO: result: $ac_res" >&5
16960echo "${ECHO_T}$ac_res" >&6; }
16961if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964_ACEOF
16965
16966 cat >>confdefs.h <<\_ACEOF
16967#define HAVE_GAI_STRERROR 1
16968_ACEOF
16969
16970 cat >conftest.$ac_ext <<_ACEOF
16971/* confdefs.h. */
16972_ACEOF
16973cat confdefs.h >>conftest.$ac_ext
16974cat >>conftest.$ac_ext <<_ACEOF
16975/* end confdefs.h. */
16976
16977#include <sys/types.h>
16978#include <sys/socket.h>
16979#include <netdb.h>
16980
16981const char *gai_strerror(int);
16982
16983int
16984main ()
16985{
16986
16987 char *str;
16988 str = gai_strerror(0);
16989
16990 ;
16991 return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext
16995if { (ac_try="$ac_compile"
16996case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_compile") 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } && {
17008 test -z "$ac_c_werror_flag" ||
17009 test ! -s conftest.err
17010 } && test -s conftest.$ac_objext; then
17011
17012
17013cat >>confdefs.h <<\_ACEOF
17014#define HAVE_CONST_GAI_STRERROR_PROTO 1
17015_ACEOF
17016
17017else
17018 echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021
17022fi
17023
17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025fi
17026done
17027
17028
17029{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17030echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17031if test "${ac_cv_search_nanosleep+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 ac_func_search_save_LIBS=$LIBS
17035cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041
17042/* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17045#ifdef __cplusplus
17046extern "C"
17047#endif
17048char nanosleep ();
17049int
17050main ()
17051{
17052return nanosleep ();
17053 ;
17054 return 0;
17055}
17056_ACEOF
17057for ac_lib in '' rt posix4; do
17058 if test -z "$ac_lib"; then
17059 ac_res="none required"
17060 else
17061 ac_res=-l$ac_lib
17062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17063 fi
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065if { (ac_try="$ac_link"
17066case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } && {
17078 test -z "$ac_c_werror_flag" ||
17079 test ! -s conftest.err
17080 } && test -s conftest$ac_exeext &&
17081 $as_test_x conftest$ac_exeext; then
17082 ac_cv_search_nanosleep=$ac_res
17083else
17084 echo "$as_me: failed program was:" >&5
17085sed 's/^/| /' conftest.$ac_ext >&5
17086
17087
17088fi
17089
17090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17091 conftest$ac_exeext
17092 if test "${ac_cv_search_nanosleep+set}" = set; then
17093 break
17094fi
17095done
17096if test "${ac_cv_search_nanosleep+set}" = set; then
17097 :
17098else
17099 ac_cv_search_nanosleep=no
17100fi
17101rm conftest.$ac_ext
17102LIBS=$ac_func_search_save_LIBS
17103fi
17104{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17105echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17106ac_res=$ac_cv_search_nanosleep
17107if test "$ac_res" != no; then
17108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17109
17110cat >>confdefs.h <<\_ACEOF
17111#define HAVE_NANOSLEEP 1
17112_ACEOF
17113
17114fi
17115
17116
17117{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17118echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17119if test "${ac_cv_search_clock_gettime+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17121else
17122 ac_func_search_save_LIBS=$LIBS
17123cat >conftest.$ac_ext <<_ACEOF
17124/* confdefs.h. */
17125_ACEOF
17126cat confdefs.h >>conftest.$ac_ext
17127cat >>conftest.$ac_ext <<_ACEOF
17128/* end confdefs.h. */
17129
17130/* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17133#ifdef __cplusplus
17134extern "C"
17135#endif
17136char clock_gettime ();
17137int
17138main ()
17139{
17140return clock_gettime ();
17141 ;
17142 return 0;
17143}
17144_ACEOF
17145for ac_lib in '' rt; do
17146 if test -z "$ac_lib"; then
17147 ac_res="none required"
17148 else
17149 ac_res=-l$ac_lib
17150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17151 fi
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest$ac_exeext &&
17169 $as_test_x conftest$ac_exeext; then
17170 ac_cv_search_clock_gettime=$ac_res
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175
17176fi
17177
17178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext
17180 if test "${ac_cv_search_clock_gettime+set}" = set; then
17181 break
17182fi
17183done
17184if test "${ac_cv_search_clock_gettime+set}" = set; then
17185 :
17186else
17187 ac_cv_search_clock_gettime=no
17188fi
17189rm conftest.$ac_ext
17190LIBS=$ac_func_search_save_LIBS
17191fi
17192{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17193echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17194ac_res=$ac_cv_search_clock_gettime
17195if test "$ac_res" != no; then
17196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17197
17198cat >>confdefs.h <<\_ACEOF
17199#define HAVE_CLOCK_GETTIME 1
17200_ACEOF
17201
17202fi
17203
17204
17205{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
17206echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
17207if test "${ac_cv_have_decl_getrusage+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216$ac_includes_default
17217int
17218main ()
17219{
17220#ifndef getrusage
17221 (void) getrusage;
17222#endif
17223
17224 ;
17225 return 0;
17226}
17227_ACEOF
17228rm -f conftest.$ac_objext
17229if { (ac_try="$ac_compile"
17230case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17233esac
17234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_compile") 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
17244 } && test -s conftest.$ac_objext; then
17245 ac_cv_have_decl_getrusage=yes
17246else
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 ac_cv_have_decl_getrusage=no
17251fi
17252
17253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254fi
17255{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
17256echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
17257if test $ac_cv_have_decl_getrusage = yes; then
17258
17259for ac_func in getrusage
17260do
17261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17262{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17264if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266else
17267 cat >conftest.$ac_ext <<_ACEOF
17268/* confdefs.h. */
17269_ACEOF
17270cat confdefs.h >>conftest.$ac_ext
17271cat >>conftest.$ac_ext <<_ACEOF
17272/* end confdefs.h. */
17273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17275#define $ac_func innocuous_$ac_func
17276
17277/* System header to define __stub macros and hopefully few prototypes,
17278 which can conflict with char $ac_func (); below.
17279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17280 <limits.h> exists even on freestanding compilers. */
17281
17282#ifdef __STDC__
17283# include <limits.h>
17284#else
17285# include <assert.h>
17286#endif
17287
17288#undef $ac_func
17289
17290/* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17293#ifdef __cplusplus
17294extern "C"
17295#endif
17296char $ac_func ();
17297/* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
17300#if defined __stub_$ac_func || defined __stub___$ac_func
17301choke me
17302#endif
17303
17304int
17305main ()
17306{
17307return $ac_func ();
17308 ;
17309 return 0;
17310}
17311_ACEOF
17312rm -f conftest.$ac_objext conftest$ac_exeext
17313if { (ac_try="$ac_link"
17314case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317esac
17318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_link") 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_c_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest$ac_exeext &&
17329 $as_test_x conftest$ac_exeext; then
17330 eval "$as_ac_var=yes"
17331else
17332 echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 eval "$as_ac_var=no"
17336fi
17337
17338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17339 conftest$ac_exeext conftest.$ac_ext
17340fi
17341ac_res=`eval echo '${'$as_ac_var'}'`
17342 { echo "$as_me:$LINENO: result: $ac_res" >&5
17343echo "${ECHO_T}$ac_res" >&6; }
17344if test `eval echo '${'$as_ac_var'}'` = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17347_ACEOF
17348
17349fi
17350done
17351
17352fi
17353
17354{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
17355echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
17356if test "${ac_cv_have_decl_strsep+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358else
17359 cat >conftest.$ac_ext <<_ACEOF
17360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
17365
17366#ifdef HAVE_STRING_H
17367# include <string.h>
17368#endif
17369
17370
17371int
17372main ()
17373{
17374#ifndef strsep
17375 (void) strsep;
17376#endif
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext
17383if { (ac_try="$ac_compile"
17384case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_compile") 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } && {
17396 test -z "$ac_c_werror_flag" ||
17397 test ! -s conftest.err
17398 } && test -s conftest.$ac_objext; then
17399 ac_cv_have_decl_strsep=yes
17400else
17401 echo "$as_me: failed program was:" >&5
17402sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_have_decl_strsep=no
17405fi
17406
17407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17408fi
17409{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
17410echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
17411if test $ac_cv_have_decl_strsep = yes; then
17412
17413for ac_func in strsep
17414do
17415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17418if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17429#define $ac_func innocuous_$ac_func
17430
17431/* System header to define __stub macros and hopefully few prototypes,
17432 which can conflict with char $ac_func (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
17435
17436#ifdef __STDC__
17437# include <limits.h>
17438#else
17439# include <assert.h>
17440#endif
17441
17442#undef $ac_func
17443
17444/* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
17447#ifdef __cplusplus
17448extern "C"
17449#endif
17450char $ac_func ();
17451/* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454#if defined __stub_$ac_func || defined __stub___$ac_func
17455choke me
17456#endif
17457
17458int
17459main ()
17460{
17461return $ac_func ();
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext conftest$ac_exeext
17467if { (ac_try="$ac_link"
17468case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest$ac_exeext &&
17483 $as_test_x conftest$ac_exeext; then
17484 eval "$as_ac_var=yes"
17485else
17486 echo "$as_me: failed program was:" >&5
17487sed 's/^/| /' conftest.$ac_ext >&5
17488
17489 eval "$as_ac_var=no"
17490fi
17491
17492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17494fi
17495ac_res=`eval echo '${'$as_ac_var'}'`
17496 { echo "$as_me:$LINENO: result: $ac_res" >&5
17497echo "${ECHO_T}$ac_res" >&6; }
17498if test `eval echo '${'$as_ac_var'}'` = yes; then
17499 cat >>confdefs.h <<_ACEOF
17500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17501_ACEOF
17502
17503fi
17504done
17505
17506fi
17507
17508
17509{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
17510echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
17511if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513else
17514 cat >conftest.$ac_ext <<_ACEOF
17515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h. */
17520#include <termios.h>
17521
17522
17523int
17524main ()
17525{
17526#ifndef tcsendbreak
17527 (void) tcsendbreak;
17528#endif
17529
17530 ;
17531 return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext
17535if { (ac_try="$ac_compile"
17536case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_compile") 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } && {
17548 test -z "$ac_c_werror_flag" ||
17549 test ! -s conftest.err
17550 } && test -s conftest.$ac_objext; then
17551 ac_cv_have_decl_tcsendbreak=yes
17552else
17553 echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 ac_cv_have_decl_tcsendbreak=no
17557fi
17558
17559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17560fi
17561{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
17562echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
17563if test $ac_cv_have_decl_tcsendbreak = yes; then
17564 cat >>confdefs.h <<\_ACEOF
17565#define HAVE_TCSENDBREAK 1
17566_ACEOF
17567
17568else
17569
17570for ac_func in tcsendbreak
17571do
17572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577else
17578 cat >conftest.$ac_ext <<_ACEOF
17579/* confdefs.h. */
17580_ACEOF
17581cat confdefs.h >>conftest.$ac_ext
17582cat >>conftest.$ac_ext <<_ACEOF
17583/* end confdefs.h. */
17584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17586#define $ac_func innocuous_$ac_func
17587
17588/* System header to define __stub macros and hopefully few prototypes,
17589 which can conflict with char $ac_func (); below.
17590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591 <limits.h> exists even on freestanding compilers. */
17592
17593#ifdef __STDC__
17594# include <limits.h>
17595#else
17596# include <assert.h>
17597#endif
17598
17599#undef $ac_func
17600
17601/* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17604#ifdef __cplusplus
17605extern "C"
17606#endif
17607char $ac_func ();
17608/* The GNU C library defines this for functions which it implements
17609 to always fail with ENOSYS. Some functions are actually named
17610 something starting with __ and the normal name is an alias. */
17611#if defined __stub_$ac_func || defined __stub___$ac_func
17612choke me
17613#endif
17614
17615int
17616main ()
17617{
17618return $ac_func ();
17619 ;
17620 return 0;
17621}
17622_ACEOF
17623rm -f conftest.$ac_objext conftest$ac_exeext
17624if { (ac_try="$ac_link"
17625case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_link") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest$ac_exeext &&
17640 $as_test_x conftest$ac_exeext; then
17641 eval "$as_ac_var=yes"
17642else
17643 echo "$as_me: failed program was:" >&5
17644sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 eval "$as_ac_var=no"
17647fi
17648
17649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17650 conftest$ac_exeext conftest.$ac_ext
17651fi
17652ac_res=`eval echo '${'$as_ac_var'}'`
17653 { echo "$as_me:$LINENO: result: $ac_res" >&5
17654echo "${ECHO_T}$ac_res" >&6; }
17655if test `eval echo '${'$as_ac_var'}'` = yes; then
17656 cat >>confdefs.h <<_ACEOF
17657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17658_ACEOF
17659
17660fi
17661done
17662
17663fi
17664
17665
17666{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
17667echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
17668if test "${ac_cv_have_decl_h_errno+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670else
17671 cat >conftest.$ac_ext <<_ACEOF
17672/* confdefs.h. */
17673_ACEOF
17674cat confdefs.h >>conftest.$ac_ext
17675cat >>conftest.$ac_ext <<_ACEOF
17676/* end confdefs.h. */
17677#include <netdb.h>
17678
17679int
17680main ()
17681{
17682#ifndef h_errno
17683 (void) h_errno;
17684#endif
17685
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690rm -f conftest.$ac_objext
17691if { (ac_try="$ac_compile"
17692case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695esac
17696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_compile") 2>conftest.er1
17698 ac_status=$?
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } && {
17704 test -z "$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17706 } && test -s conftest.$ac_objext; then
17707 ac_cv_have_decl_h_errno=yes
17708else
17709 echo "$as_me: failed program was:" >&5
17710sed 's/^/| /' conftest.$ac_ext >&5
17711
17712 ac_cv_have_decl_h_errno=no
17713fi
17714
17715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716fi
17717{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
17718echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
17719if test $ac_cv_have_decl_h_errno = yes; then
17720
17721cat >>confdefs.h <<_ACEOF
17722#define HAVE_DECL_H_ERRNO 1
17723_ACEOF
17724
17725
17726else
17727 cat >>confdefs.h <<_ACEOF
17728#define HAVE_DECL_H_ERRNO 0
17729_ACEOF
17730
17731
17732fi
17733
17734
17735
17736{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
17737echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
17738if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740else
17741 cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
17747
17748#include <sys/types.h>
17749#include <sys/socket.h>
17750
17751
17752int
17753main ()
17754{
17755#ifndef SHUT_RD
17756 (void) SHUT_RD;
17757#endif
17758
17759 ;
17760 return 0;
17761}
17762_ACEOF
17763rm -f conftest.$ac_objext
17764if { (ac_try="$ac_compile"
17765case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768esac
17769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest.$ac_objext; then
17780 ac_cv_have_decl_SHUT_RD=yes
17781else
17782 echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 ac_cv_have_decl_SHUT_RD=no
17786fi
17787
17788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789fi
17790{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
17791echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
17792if test $ac_cv_have_decl_SHUT_RD = yes; then
17793
17794cat >>confdefs.h <<_ACEOF
17795#define HAVE_DECL_SHUT_RD 1
17796_ACEOF
17797
17798
17799else
17800 cat >>confdefs.h <<_ACEOF
17801#define HAVE_DECL_SHUT_RD 0
17802_ACEOF
17803
17804
17805fi
17806
17807
17808
17809{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
17810echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
17811if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
17820
17821#include <sys/types.h>
17822#ifdef HAVE_SYS_STAT_H
17823# include <sys/stat.h>
17824#endif
17825#ifdef HAVE_FCNTL_H
17826# include <fcntl.h>
17827#endif
17828
17829
17830int
17831main ()
17832{
17833#ifndef O_NONBLOCK
17834 (void) O_NONBLOCK;
17835#endif
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (ac_try="$ac_compile"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_compile") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest.$ac_objext; then
17858 ac_cv_have_decl_O_NONBLOCK=yes
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863 ac_cv_have_decl_O_NONBLOCK=no
17864fi
17865
17866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867fi
17868{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
17869echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
17870if test $ac_cv_have_decl_O_NONBLOCK = yes; then
17871
17872cat >>confdefs.h <<_ACEOF
17873#define HAVE_DECL_O_NONBLOCK 1
17874_ACEOF
17875
17876
17877else
17878 cat >>confdefs.h <<_ACEOF
17879#define HAVE_DECL_O_NONBLOCK 0
17880_ACEOF
17881
17882
17883fi
17884
17885
17886
17887{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
17888echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
17889if test "${ac_cv_have_decl_writev+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892 cat >conftest.$ac_ext <<_ACEOF
17893/* confdefs.h. */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h. */
17898
17899#include <sys/types.h>
17900#include <sys/uio.h>
17901#include <unistd.h>
17902
17903
17904int
17905main ()
17906{
17907#ifndef writev
17908 (void) writev;
17909#endif
17910
17911 ;
17912 return 0;
17913}
17914_ACEOF
17915rm -f conftest.$ac_objext
17916if { (ac_try="$ac_compile"
17917case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920esac
17921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_compile") 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } && {
17929 test -z "$ac_c_werror_flag" ||
17930 test ! -s conftest.err
17931 } && test -s conftest.$ac_objext; then
17932 ac_cv_have_decl_writev=yes
17933else
17934 echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_cv_have_decl_writev=no
17938fi
17939
17940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941fi
17942{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
17943echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
17944if test $ac_cv_have_decl_writev = yes; then
17945
17946cat >>confdefs.h <<_ACEOF
17947#define HAVE_DECL_WRITEV 1
17948_ACEOF
17949
17950
17951else
17952 cat >>confdefs.h <<_ACEOF
17953#define HAVE_DECL_WRITEV 0
17954_ACEOF
17955
17956
17957fi
17958
17959
17960
17961{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
17962echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
17963if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965else
17966 cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972
17973#include <sys/param.h>
17974
17975
17976int
17977main ()
17978{
17979#ifndef MAXSYMLINKS
17980 (void) MAXSYMLINKS;
17981#endif
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest.$ac_objext
17988if { (ac_try="$ac_compile"
17989case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest.$ac_objext; then
18004 ac_cv_have_decl_MAXSYMLINKS=yes
18005else
18006 echo "$as_me: failed program was:" >&5
18007sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_cv_have_decl_MAXSYMLINKS=no
18010fi
18011
18012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013fi
18014{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
18015echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
18016if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
18017
18018cat >>confdefs.h <<_ACEOF
18019#define HAVE_DECL_MAXSYMLINKS 1
18020_ACEOF
18021
18022
18023else
18024 cat >>confdefs.h <<_ACEOF
18025#define HAVE_DECL_MAXSYMLINKS 0
18026_ACEOF
18027
18028
18029fi
18030
18031
18032
18033{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
18034echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
18035if test "${ac_cv_have_decl_offsetof+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038 cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044
18045#include <stddef.h>
18046
18047
18048int
18049main ()
18050{
18051#ifndef offsetof
18052 (void) offsetof;
18053#endif
18054
18055 ;
18056 return 0;
18057}
18058_ACEOF
18059rm -f conftest.$ac_objext
18060if { (ac_try="$ac_compile"
18061case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_compile") 2>conftest.er1
18067 ac_status=$?
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && {
18073 test -z "$ac_c_werror_flag" ||
18074 test ! -s conftest.err
18075 } && test -s conftest.$ac_objext; then
18076 ac_cv_have_decl_offsetof=yes
18077else
18078 echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
18081 ac_cv_have_decl_offsetof=no
18082fi
18083
18084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085fi
18086{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
18087echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
18088if test $ac_cv_have_decl_offsetof = yes; then
18089
18090cat >>confdefs.h <<_ACEOF
18091#define HAVE_DECL_OFFSETOF 1
18092_ACEOF
18093
18094
18095else
18096 cat >>confdefs.h <<_ACEOF
18097#define HAVE_DECL_OFFSETOF 0
18098_ACEOF
18099
18100
18101fi
18102
18103
18104
18105# extra bits for select(2)
18106{ echo "$as_me:$LINENO: checking whether howmany is declared" >&5
18107echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; }
18108if test "${ac_cv_have_decl_howmany+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111 cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h. */
18117
18118#include <sys/param.h>
18119#include <sys/types.h>
18120#ifdef HAVE_SYS_SYSMACROS_H
18121#include <sys/sysmacros.h>
18122#endif
18123#ifdef HAVE_SYS_SELECT_H
18124#include <sys/select.h>
18125#endif
18126#ifdef HAVE_SYS_TIME_H
18127#include <sys/time.h>
18128#endif
18129#ifdef HAVE_UNISTD_H
18130#include <unistd.h>
18131#endif
18132
18133
18134int
18135main ()
18136{
18137#ifndef howmany
18138 (void) howmany;
18139#endif
18140
18141 ;
18142 return 0;
18143}
18144_ACEOF
18145rm -f conftest.$ac_objext
18146if { (ac_try="$ac_compile"
18147case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_compile") 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } && {
18159 test -z "$ac_c_werror_flag" ||
18160 test ! -s conftest.err
18161 } && test -s conftest.$ac_objext; then
18162 ac_cv_have_decl_howmany=yes
18163else
18164 echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167 ac_cv_have_decl_howmany=no
18168fi
18169
18170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171fi
18172{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5
18173echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; }
18174if test $ac_cv_have_decl_howmany = yes; then
18175
18176cat >>confdefs.h <<_ACEOF
18177#define HAVE_DECL_HOWMANY 1
18178_ACEOF
18179
18180
18181else
18182 cat >>confdefs.h <<_ACEOF
18183#define HAVE_DECL_HOWMANY 0
18184_ACEOF
18185
18186
18187fi
18188{ echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5
18189echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; }
18190if test "${ac_cv_have_decl_NFDBITS+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199
18200#include <sys/param.h>
18201#include <sys/types.h>
18202#ifdef HAVE_SYS_SYSMACROS_H
18203#include <sys/sysmacros.h>
18204#endif
18205#ifdef HAVE_SYS_SELECT_H
18206#include <sys/select.h>
18207#endif
18208#ifdef HAVE_SYS_TIME_H
18209#include <sys/time.h>
18210#endif
18211#ifdef HAVE_UNISTD_H
18212#include <unistd.h>
18213#endif
18214
18215
18216int
18217main ()
18218{
18219#ifndef NFDBITS
18220 (void) NFDBITS;
18221#endif
18222
18223 ;
18224 return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext
18228if { (ac_try="$ac_compile"
18229case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_compile") 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } && {
18241 test -z "$ac_c_werror_flag" ||
18242 test ! -s conftest.err
18243 } && test -s conftest.$ac_objext; then
18244 ac_cv_have_decl_NFDBITS=yes
18245else
18246 echo "$as_me: failed program was:" >&5
18247sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 ac_cv_have_decl_NFDBITS=no
18250fi
18251
18252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18253fi
18254{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5
18255echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; }
18256if test $ac_cv_have_decl_NFDBITS = yes; then
18257
18258cat >>confdefs.h <<_ACEOF
18259#define HAVE_DECL_NFDBITS 1
18260_ACEOF
18261
18262
18263else
18264 cat >>confdefs.h <<_ACEOF
18265#define HAVE_DECL_NFDBITS 0
18266_ACEOF
18267
18268
18269fi
18270
18271
18272{ echo "$as_me:$LINENO: checking for fd_mask" >&5
18273echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
18274if test "${ac_cv_type_fd_mask+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276else
18277 cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h. */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h. */
18283
18284#include <sys/param.h>
18285#include <sys/types.h>
18286#ifdef HAVE_SYS_SELECT_H
18287#include <sys/select.h>
18288#endif
18289#ifdef HAVE_SYS_TIME_H
18290#include <sys/time.h>
18291#endif
18292#ifdef HAVE_UNISTD_H
18293#include <unistd.h>
18294#endif
18295
18296
18297typedef fd_mask ac__type_new_;
18298int
18299main ()
18300{
18301if ((ac__type_new_ *) 0)
18302 return 0;
18303if (sizeof (ac__type_new_))
18304 return 0;
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext
18310if { (ac_try="$ac_compile"
18311case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314esac
18315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_compile") 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && {
18323 test -z "$ac_c_werror_flag" ||
18324 test ! -s conftest.err
18325 } && test -s conftest.$ac_objext; then
18326 ac_cv_type_fd_mask=yes
18327else
18328 echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331 ac_cv_type_fd_mask=no
18332fi
18333
18334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335fi
18336{ echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
18337echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
18338if test $ac_cv_type_fd_mask = yes; then
18339
18340cat >>confdefs.h <<_ACEOF
18341#define HAVE_FD_MASK 1
18342_ACEOF
18343
18344
18345fi
18346
18347
18348
18349for ac_func in setresuid
18350do
18351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18356else
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18365#define $ac_func innocuous_$ac_func
18366
18367/* System header to define __stub macros and hopefully few prototypes,
18368 which can conflict with char $ac_func (); below.
18369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370 <limits.h> exists even on freestanding compilers. */
18371
18372#ifdef __STDC__
18373# include <limits.h>
18374#else
18375# include <assert.h>
18376#endif
18377
18378#undef $ac_func
18379
18380/* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18383#ifdef __cplusplus
18384extern "C"
18385#endif
18386char $ac_func ();
18387/* The GNU C library defines this for functions which it implements
18388 to always fail with ENOSYS. Some functions are actually named
18389 something starting with __ and the normal name is an alias. */
18390#if defined __stub_$ac_func || defined __stub___$ac_func
18391choke me
18392#endif
18393
18394int
18395main ()
18396{
18397return $ac_func ();
18398 ;
18399 return 0;
18400}
18401_ACEOF
18402rm -f conftest.$ac_objext conftest$ac_exeext
18403if { (ac_try="$ac_link"
18404case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18407esac
18408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_link") 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest$ac_exeext &&
18419 $as_test_x conftest$ac_exeext; then
18420 eval "$as_ac_var=yes"
18421else
18422 echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425 eval "$as_ac_var=no"
18426fi
18427
18428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18429 conftest$ac_exeext conftest.$ac_ext
18430fi
18431ac_res=`eval echo '${'$as_ac_var'}'`
18432 { echo "$as_me:$LINENO: result: $ac_res" >&5
18433echo "${ECHO_T}$ac_res" >&6; }
18434if test `eval echo '${'$as_ac_var'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18437_ACEOF
18438
18439 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
18440echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
18441 if test "$cross_compiling" = yes; then
18442 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18443echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18444
18445else
18446 cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452
18453#include <stdlib.h>
18454#include <errno.h>
18455
18456int
18457main ()
18458{
18459
18460 errno=0;
18461 setresuid(0,0,0);
18462 if (errno==ENOSYS)
18463 exit(1);
18464 else
18465 exit(0);
18466
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest$ac_exeext
18472if { (ac_try="$ac_link"
18473case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18476esac
18477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_link") 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485esac
18486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_try") 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 { echo "$as_me:$LINENO: result: yes" >&5
18492echo "${ECHO_T}yes" >&6; }
18493else
18494 echo "$as_me: program exited with status $ac_status" >&5
18495echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
18498( exit $ac_status )
18499
18500cat >>confdefs.h <<\_ACEOF
18501#define BROKEN_SETRESUID 1
18502_ACEOF
18503
18504 { echo "$as_me:$LINENO: result: not implemented" >&5
18505echo "${ECHO_T}not implemented" >&6; }
18506fi
18507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18508fi
18509
18510
18511
18512fi
18513done
18514
18515
18516
18517for ac_func in setresgid
18518do
18519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18524else
18525 cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h. */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h. */
18531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18533#define $ac_func innocuous_$ac_func
18534
18535/* System header to define __stub macros and hopefully few prototypes,
18536 which can conflict with char $ac_func (); below.
18537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18538 <limits.h> exists even on freestanding compilers. */
18539
18540#ifdef __STDC__
18541# include <limits.h>
18542#else
18543# include <assert.h>
18544#endif
18545
18546#undef $ac_func
18547
18548/* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18551#ifdef __cplusplus
18552extern "C"
18553#endif
18554char $ac_func ();
18555/* The GNU C library defines this for functions which it implements
18556 to always fail with ENOSYS. Some functions are actually named
18557 something starting with __ and the normal name is an alias. */
18558#if defined __stub_$ac_func || defined __stub___$ac_func
18559choke me
18560#endif
18561
18562int
18563main ()
18564{
18565return $ac_func ();
18566 ;
18567 return 0;
18568}
18569_ACEOF
18570rm -f conftest.$ac_objext conftest$ac_exeext
18571if { (ac_try="$ac_link"
18572case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575esac
18576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_link") 2>conftest.er1
18578 ac_status=$?
18579 grep -v '^ *+' conftest.er1 >conftest.err
18580 rm -f conftest.er1
18581 cat conftest.err >&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } && {
18584 test -z "$ac_c_werror_flag" ||
18585 test ! -s conftest.err
18586 } && test -s conftest$ac_exeext &&
18587 $as_test_x conftest$ac_exeext; then
18588 eval "$as_ac_var=yes"
18589else
18590 echo "$as_me: failed program was:" >&5
18591sed 's/^/| /' conftest.$ac_ext >&5
18592
18593 eval "$as_ac_var=no"
18594fi
18595
18596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18597 conftest$ac_exeext conftest.$ac_ext
18598fi
18599ac_res=`eval echo '${'$as_ac_var'}'`
18600 { echo "$as_me:$LINENO: result: $ac_res" >&5
18601echo "${ECHO_T}$ac_res" >&6; }
18602if test `eval echo '${'$as_ac_var'}'` = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605_ACEOF
18606
18607 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
18608echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
18609 if test "$cross_compiling" = yes; then
18610 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18611echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18612
18613else
18614 cat >conftest.$ac_ext <<_ACEOF
18615/* confdefs.h. */
18616_ACEOF
18617cat confdefs.h >>conftest.$ac_ext
18618cat >>conftest.$ac_ext <<_ACEOF
18619/* end confdefs.h. */
18620
18621#include <stdlib.h>
18622#include <errno.h>
18623
18624int
18625main ()
18626{
18627
18628 errno=0;
18629 setresgid(0,0,0);
18630 if (errno==ENOSYS)
18631 exit(1);
18632 else
18633 exit(0);
18634
18635 ;
18636 return 0;
18637}
18638_ACEOF
18639rm -f conftest$ac_exeext
18640if { (ac_try="$ac_link"
18641case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18644esac
18645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_link") 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18650 { (case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653esac
18654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_try") 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 { echo "$as_me:$LINENO: result: yes" >&5
18660echo "${ECHO_T}yes" >&6; }
18661else
18662 echo "$as_me: program exited with status $ac_status" >&5
18663echo "$as_me: failed program was:" >&5
18664sed 's/^/| /' conftest.$ac_ext >&5
18665
18666( exit $ac_status )
18667
18668cat >>confdefs.h <<\_ACEOF
18669#define BROKEN_SETRESGID 1
18670_ACEOF
18671
18672 { echo "$as_me:$LINENO: result: not implemented" >&5
18673echo "${ECHO_T}not implemented" >&6; }
18674fi
18675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18676fi
18677
18678
18679
18680fi
18681done
18682
18683
18684
18685
18686for ac_func in gettimeofday time
18687do
18688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18689{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18691if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693else
18694 cat >conftest.$ac_ext <<_ACEOF
18695/* confdefs.h. */
18696_ACEOF
18697cat confdefs.h >>conftest.$ac_ext
18698cat >>conftest.$ac_ext <<_ACEOF
18699/* end confdefs.h. */
18700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18702#define $ac_func innocuous_$ac_func
18703
18704/* System header to define __stub macros and hopefully few prototypes,
18705 which can conflict with char $ac_func (); below.
18706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18707 <limits.h> exists even on freestanding compilers. */
18708
18709#ifdef __STDC__
18710# include <limits.h>
18711#else
18712# include <assert.h>
18713#endif
18714
18715#undef $ac_func
18716
18717/* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720#ifdef __cplusplus
18721extern "C"
18722#endif
18723char $ac_func ();
18724/* The GNU C library defines this for functions which it implements
18725 to always fail with ENOSYS. Some functions are actually named
18726 something starting with __ and the normal name is an alias. */
18727#if defined __stub_$ac_func || defined __stub___$ac_func
18728choke me
18729#endif
18730
18731int
18732main ()
18733{
18734return $ac_func ();
18735 ;
18736 return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext conftest$ac_exeext
18740if { (ac_try="$ac_link"
18741case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_link") 2>conftest.er1
18747 ac_status=$?
18748 grep -v '^ *+' conftest.er1 >conftest.err
18749 rm -f conftest.er1
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } && {
18753 test -z "$ac_c_werror_flag" ||
18754 test ! -s conftest.err
18755 } && test -s conftest$ac_exeext &&
18756 $as_test_x conftest$ac_exeext; then
18757 eval "$as_ac_var=yes"
18758else
18759 echo "$as_me: failed program was:" >&5
18760sed 's/^/| /' conftest.$ac_ext >&5
18761
18762 eval "$as_ac_var=no"
18763fi
18764
18765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18766 conftest$ac_exeext conftest.$ac_ext
18767fi
18768ac_res=`eval echo '${'$as_ac_var'}'`
18769 { echo "$as_me:$LINENO: result: $ac_res" >&5
18770echo "${ECHO_T}$ac_res" >&6; }
18771if test `eval echo '${'$as_ac_var'}'` = yes; then
18772 cat >>confdefs.h <<_ACEOF
18773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18774_ACEOF
18775
18776fi
18777done
18778
18779
18780
18781
18782
18783
18784
18785for ac_func in endutent getutent getutid getutline pututline setutent
18786do
18787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18788{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18790if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792else
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
18799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18801#define $ac_func innocuous_$ac_func
18802
18803/* System header to define __stub macros and hopefully few prototypes,
18804 which can conflict with char $ac_func (); below.
18805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18806 <limits.h> exists even on freestanding compilers. */
18807
18808#ifdef __STDC__
18809# include <limits.h>
18810#else
18811# include <assert.h>
18812#endif
18813
18814#undef $ac_func
18815
18816/* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18819#ifdef __cplusplus
18820extern "C"
18821#endif
18822char $ac_func ();
18823/* The GNU C library defines this for functions which it implements
18824 to always fail with ENOSYS. Some functions are actually named
18825 something starting with __ and the normal name is an alias. */
18826#if defined __stub_$ac_func || defined __stub___$ac_func
18827choke me
18828#endif
18829
18830int
18831main ()
18832{
18833return $ac_func ();
18834 ;
18835 return 0;
18836}
18837_ACEOF
18838rm -f conftest.$ac_objext conftest$ac_exeext
18839if { (ac_try="$ac_link"
18840case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843esac
18844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext &&
18855 $as_test_x conftest$ac_exeext; then
18856 eval "$as_ac_var=yes"
18857else
18858 echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861 eval "$as_ac_var=no"
18862fi
18863
18864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18866fi
18867ac_res=`eval echo '${'$as_ac_var'}'`
18868 { echo "$as_me:$LINENO: result: $ac_res" >&5
18869echo "${ECHO_T}$ac_res" >&6; }
18870if test `eval echo '${'$as_ac_var'}'` = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18873_ACEOF
18874
18875fi
18876done
18877
18878
18879for ac_func in utmpname
18880do
18881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887 cat >conftest.$ac_ext <<_ACEOF
18888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
18893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18895#define $ac_func innocuous_$ac_func
18896
18897/* System header to define __stub macros and hopefully few prototypes,
18898 which can conflict with char $ac_func (); below.
18899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18900 <limits.h> exists even on freestanding compilers. */
18901
18902#ifdef __STDC__
18903# include <limits.h>
18904#else
18905# include <assert.h>
18906#endif
18907
18908#undef $ac_func
18909
18910/* Override any GCC internal prototype to avoid an error.
18911 Use char because int might match the return type of a GCC
18912 builtin and then its argument prototype would still apply. */
18913#ifdef __cplusplus
18914extern "C"
18915#endif
18916char $ac_func ();
18917/* The GNU C library defines this for functions which it implements
18918 to always fail with ENOSYS. Some functions are actually named
18919 something starting with __ and the normal name is an alias. */
18920#if defined __stub_$ac_func || defined __stub___$ac_func
18921choke me
18922#endif
18923
18924int
18925main ()
18926{
18927return $ac_func ();
18928 ;
18929 return 0;
18930}
18931_ACEOF
18932rm -f conftest.$ac_objext conftest$ac_exeext
18933if { (ac_try="$ac_link"
18934case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937esac
18938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_link") 2>conftest.er1
18940 ac_status=$?
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } && {
18946 test -z "$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18948 } && test -s conftest$ac_exeext &&
18949 $as_test_x conftest$ac_exeext; then
18950 eval "$as_ac_var=yes"
18951else
18952 echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 eval "$as_ac_var=no"
18956fi
18957
18958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18959 conftest$ac_exeext conftest.$ac_ext
18960fi
18961ac_res=`eval echo '${'$as_ac_var'}'`
18962 { echo "$as_me:$LINENO: result: $ac_res" >&5
18963echo "${ECHO_T}$ac_res" >&6; }
18964if test `eval echo '${'$as_ac_var'}'` = yes; then
18965 cat >>confdefs.h <<_ACEOF
18966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18967_ACEOF
18968
18969fi
18970done
18971
18972
18973
18974
18975
18976
18977
18978for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
18979do
18980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18981{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18985else
18986 cat >conftest.$ac_ext <<_ACEOF
18987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h. */
18992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18994#define $ac_func innocuous_$ac_func
18995
18996/* System header to define __stub macros and hopefully few prototypes,
18997 which can conflict with char $ac_func (); below.
18998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18999 <limits.h> exists even on freestanding compilers. */
19000
19001#ifdef __STDC__
19002# include <limits.h>
19003#else
19004# include <assert.h>
19005#endif
19006
19007#undef $ac_func
19008
19009/* Override any GCC internal prototype to avoid an error.
19010 Use char because int might match the return type of a GCC
19011 builtin and then its argument prototype would still apply. */
19012#ifdef __cplusplus
19013extern "C"
19014#endif
19015char $ac_func ();
19016/* The GNU C library defines this for functions which it implements
19017 to always fail with ENOSYS. Some functions are actually named
19018 something starting with __ and the normal name is an alias. */
19019#if defined __stub_$ac_func || defined __stub___$ac_func
19020choke me
19021#endif
19022
19023int
19024main ()
19025{
19026return $ac_func ();
19027 ;
19028 return 0;
19029}
19030_ACEOF
19031rm -f conftest.$ac_objext conftest$ac_exeext
19032if { (ac_try="$ac_link"
19033case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036esac
19037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_link") 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext &&
19048 $as_test_x conftest$ac_exeext; then
19049 eval "$as_ac_var=yes"
19050else
19051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054 eval "$as_ac_var=no"
19055fi
19056
19057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058 conftest$ac_exeext conftest.$ac_ext
19059fi
19060ac_res=`eval echo '${'$as_ac_var'}'`
19061 { echo "$as_me:$LINENO: result: $ac_res" >&5
19062echo "${ECHO_T}$ac_res" >&6; }
19063if test `eval echo '${'$as_ac_var'}'` = yes; then
19064 cat >>confdefs.h <<_ACEOF
19065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19066_ACEOF
19067
19068fi
19069done
19070
19071
19072
19073
19074for ac_func in setutxdb setutxent utmpxname
19075do
19076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19077{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19079if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19081else
19082 cat >conftest.$ac_ext <<_ACEOF
19083/* confdefs.h. */
19084_ACEOF
19085cat confdefs.h >>conftest.$ac_ext
19086cat >>conftest.$ac_ext <<_ACEOF
19087/* end confdefs.h. */
19088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19090#define $ac_func innocuous_$ac_func
19091
19092/* System header to define __stub macros and hopefully few prototypes,
19093 which can conflict with char $ac_func (); below.
19094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19095 <limits.h> exists even on freestanding compilers. */
19096
19097#ifdef __STDC__
19098# include <limits.h>
19099#else
19100# include <assert.h>
19101#endif
19102
19103#undef $ac_func
19104
19105/* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19108#ifdef __cplusplus
19109extern "C"
19110#endif
19111char $ac_func ();
19112/* The GNU C library defines this for functions which it implements
19113 to always fail with ENOSYS. Some functions are actually named
19114 something starting with __ and the normal name is an alias. */
19115#if defined __stub_$ac_func || defined __stub___$ac_func
19116choke me
19117#endif
19118
19119int
19120main ()
19121{
19122return $ac_func ();
19123 ;
19124 return 0;
19125}
19126_ACEOF
19127rm -f conftest.$ac_objext conftest$ac_exeext
19128if { (ac_try="$ac_link"
19129case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19132esac
19133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_link") 2>conftest.er1
19135 ac_status=$?
19136 grep -v '^ *+' conftest.er1 >conftest.err
19137 rm -f conftest.er1
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } && {
19141 test -z "$ac_c_werror_flag" ||
19142 test ! -s conftest.err
19143 } && test -s conftest$ac_exeext &&
19144 $as_test_x conftest$ac_exeext; then
19145 eval "$as_ac_var=yes"
19146else
19147 echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 eval "$as_ac_var=no"
19151fi
19152
19153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19154 conftest$ac_exeext conftest.$ac_ext
19155fi
19156ac_res=`eval echo '${'$as_ac_var'}'`
19157 { echo "$as_me:$LINENO: result: $ac_res" >&5
19158echo "${ECHO_T}$ac_res" >&6; }
19159if test `eval echo '${'$as_ac_var'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19162_ACEOF
19163
19164fi
19165done
19166
19167
19168for ac_func in getlastlogxbyname
19169do
19170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19171{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19173if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19175else
19176 cat >conftest.$ac_ext <<_ACEOF
19177/* confdefs.h. */
19178_ACEOF
19179cat confdefs.h >>conftest.$ac_ext
19180cat >>conftest.$ac_ext <<_ACEOF
19181/* end confdefs.h. */
19182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19184#define $ac_func innocuous_$ac_func
19185
19186/* System header to define __stub macros and hopefully few prototypes,
19187 which can conflict with char $ac_func (); below.
19188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19189 <limits.h> exists even on freestanding compilers. */
19190
19191#ifdef __STDC__
19192# include <limits.h>
19193#else
19194# include <assert.h>
19195#endif
19196
19197#undef $ac_func
19198
19199/* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19202#ifdef __cplusplus
19203extern "C"
19204#endif
19205char $ac_func ();
19206/* The GNU C library defines this for functions which it implements
19207 to always fail with ENOSYS. Some functions are actually named
19208 something starting with __ and the normal name is an alias. */
19209#if defined __stub_$ac_func || defined __stub___$ac_func
19210choke me
19211#endif
19212
19213int
19214main ()
19215{
19216return $ac_func ();
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext conftest$ac_exeext
19222if { (ac_try="$ac_link"
19223case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226esac
19227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest$ac_exeext &&
19238 $as_test_x conftest$ac_exeext; then
19239 eval "$as_ac_var=yes"
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 eval "$as_ac_var=no"
19245fi
19246
19247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248 conftest$ac_exeext conftest.$ac_ext
19249fi
19250ac_res=`eval echo '${'$as_ac_var'}'`
19251 { echo "$as_me:$LINENO: result: $ac_res" >&5
19252echo "${ECHO_T}$ac_res" >&6; }
19253if test `eval echo '${'$as_ac_var'}'` = yes; then
19254 cat >>confdefs.h <<_ACEOF
19255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19256_ACEOF
19257
19258fi
19259done
19260
19261
19262{ echo "$as_me:$LINENO: checking for daemon" >&5
19263echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
19264if test "${ac_cv_func_daemon+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266else
19267 cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
19273/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
19274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19275#define daemon innocuous_daemon
19276
19277/* System header to define __stub macros and hopefully few prototypes,
19278 which can conflict with char daemon (); below.
19279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19280 <limits.h> exists even on freestanding compilers. */
19281
19282#ifdef __STDC__
19283# include <limits.h>
19284#else
19285# include <assert.h>
19286#endif
19287
19288#undef daemon
19289
19290/* Override any GCC internal prototype to avoid an error.
19291 Use char because int might match the return type of a GCC
19292 builtin and then its argument prototype would still apply. */
19293#ifdef __cplusplus
19294extern "C"
19295#endif
19296char daemon ();
19297/* The GNU C library defines this for functions which it implements
19298 to always fail with ENOSYS. Some functions are actually named
19299 something starting with __ and the normal name is an alias. */
19300#if defined __stub_daemon || defined __stub___daemon
19301choke me
19302#endif
19303
19304int
19305main ()
19306{
19307return daemon ();
19308 ;
19309 return 0;
19310}
19311_ACEOF
19312rm -f conftest.$ac_objext conftest$ac_exeext
19313if { (ac_try="$ac_link"
19314case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19317esac
19318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_link") 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest$ac_exeext &&
19329 $as_test_x conftest$ac_exeext; then
19330 ac_cv_func_daemon=yes
19331else
19332 echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ac_cv_func_daemon=no
19336fi
19337
19338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19339 conftest$ac_exeext conftest.$ac_ext
19340fi
19341{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
19342echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
19343if test $ac_cv_func_daemon = yes; then
19344
19345cat >>confdefs.h <<\_ACEOF
19346#define HAVE_DAEMON 1
19347_ACEOF
19348
19349else
19350 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
19351echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
19352if test "${ac_cv_lib_bsd_daemon+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 ac_check_lib_save_LIBS=$LIBS
19356LIBS="-lbsd $LIBS"
19357cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363
19364/* Override any GCC internal prototype to avoid an error.
19365 Use char because int might match the return type of a GCC
19366 builtin and then its argument prototype would still apply. */
19367#ifdef __cplusplus
19368extern "C"
19369#endif
19370char daemon ();
19371int
19372main ()
19373{
19374return daemon ();
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext conftest$ac_exeext
19380if { (ac_try="$ac_link"
19381case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384esac
19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_link") 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && {
19393 test -z "$ac_c_werror_flag" ||
19394 test ! -s conftest.err
19395 } && test -s conftest$ac_exeext &&
19396 $as_test_x conftest$ac_exeext; then
19397 ac_cv_lib_bsd_daemon=yes
19398else
19399 echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_cv_lib_bsd_daemon=no
19403fi
19404
19405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19407LIBS=$ac_check_lib_save_LIBS
19408fi
19409{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
19410echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
19411if test $ac_cv_lib_bsd_daemon = yes; then
19412 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
19413#define HAVE_DAEMON 1
19414_ACEOF
19415
19416fi
19417
19418
19419fi
19420
19421
19422{ echo "$as_me:$LINENO: checking for getpagesize" >&5
19423echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
19424if test "${ac_cv_func_getpagesize+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426else
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
19433/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
19434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19435#define getpagesize innocuous_getpagesize
19436
19437/* System header to define __stub macros and hopefully few prototypes,
19438 which can conflict with char getpagesize (); below.
19439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19440 <limits.h> exists even on freestanding compilers. */
19441
19442#ifdef __STDC__
19443# include <limits.h>
19444#else
19445# include <assert.h>
19446#endif
19447
19448#undef getpagesize
19449
19450/* Override any GCC internal prototype to avoid an error.
19451 Use char because int might match the return type of a GCC
19452 builtin and then its argument prototype would still apply. */
19453#ifdef __cplusplus
19454extern "C"
19455#endif
19456char getpagesize ();
19457/* The GNU C library defines this for functions which it implements
19458 to always fail with ENOSYS. Some functions are actually named
19459 something starting with __ and the normal name is an alias. */
19460#if defined __stub_getpagesize || defined __stub___getpagesize
19461choke me
19462#endif
19463
19464int
19465main ()
19466{
19467return getpagesize ();
19468 ;
19469 return 0;
19470}
19471_ACEOF
19472rm -f conftest.$ac_objext conftest$ac_exeext
19473if { (ac_try="$ac_link"
19474case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19477esac
19478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_link") 2>conftest.er1
19480 ac_status=$?
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } && {
19486 test -z "$ac_c_werror_flag" ||
19487 test ! -s conftest.err
19488 } && test -s conftest$ac_exeext &&
19489 $as_test_x conftest$ac_exeext; then
19490 ac_cv_func_getpagesize=yes
19491else
19492 echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
19495 ac_cv_func_getpagesize=no
19496fi
19497
19498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19499 conftest$ac_exeext conftest.$ac_ext
19500fi
19501{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
19502echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
19503if test $ac_cv_func_getpagesize = yes; then
19504
19505cat >>confdefs.h <<\_ACEOF
19506#define HAVE_GETPAGESIZE 1
19507_ACEOF
19508
19509else
19510 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
19511echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
19512if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19514else
19515 ac_check_lib_save_LIBS=$LIBS
19516LIBS="-lucb $LIBS"
19517cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523
19524/* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527#ifdef __cplusplus
19528extern "C"
19529#endif
19530char getpagesize ();
19531int
19532main ()
19533{
19534return getpagesize ();
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539rm -f conftest.$ac_objext conftest$ac_exeext
19540if { (ac_try="$ac_link"
19541case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest$ac_exeext &&
19556 $as_test_x conftest$ac_exeext; then
19557 ac_cv_lib_ucb_getpagesize=yes
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_cv_lib_ucb_getpagesize=no
19563fi
19564
19565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19566 conftest$ac_exeext conftest.$ac_ext
19567LIBS=$ac_check_lib_save_LIBS
19568fi
19569{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
19570echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
19571if test $ac_cv_lib_ucb_getpagesize = yes; then
19572 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
19573#define HAVE_GETPAGESIZE 1
19574_ACEOF
19575
19576fi
19577
19578
19579fi
19580
19581
19582# Check for broken snprintf
19583if test "x$ac_cv_func_snprintf" = "xyes" ; then
19584 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
19585echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
19586 if test "$cross_compiling" = yes; then
19587 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
19588echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
19589
19590else
19591 cat >conftest.$ac_ext <<_ACEOF
19592/* confdefs.h. */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
19596/* end confdefs.h. */
19597 #include <stdio.h>
19598int
19599main ()
19600{
19601
19602 char b[5];
19603 snprintf(b,5,"123456789");
19604 exit(b[4]!='\0');
19605
19606 ;
19607 return 0;
19608}
19609_ACEOF
19610rm -f conftest$ac_exeext
19611if { (ac_try="$ac_link"
19612case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_link") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19621 { (case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624esac
19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_try") 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 { echo "$as_me:$LINENO: result: yes" >&5
19631echo "${ECHO_T}yes" >&6; }
19632else
19633 echo "$as_me: program exited with status $ac_status" >&5
19634echo "$as_me: failed program was:" >&5
19635sed 's/^/| /' conftest.$ac_ext >&5
19636
19637( exit $ac_status )
19638
19639 { echo "$as_me:$LINENO: result: no" >&5
19640echo "${ECHO_T}no" >&6; }
19641
19642cat >>confdefs.h <<\_ACEOF
19643#define BROKEN_SNPRINTF 1
19644_ACEOF
19645
19646 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
19647echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
19648
19649fi
19650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19651fi
19652
19653
19654fi
19655
19656# We depend on vsnprintf returning the right thing on overflow: the
19657# number of characters it tried to create (as per SUSv3)
19658if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
19659 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
19660echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
19661 if test "$cross_compiling" = yes; then
19662 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
19663echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
19664
19665else
19666 cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672
19673#include <sys/types.h>
19674#include <stdio.h>
19675#include <stdarg.h>
19676
19677int x_snprintf(char *str, size_t count, const char *fmt, ...)
19678{
19679 size_t ret;
19680 va_list ap;
19681
19682 va_start(ap, fmt);
19683 ret = vsnprintf(str, count, fmt, ap);
19684 va_end(ap);
19685 return ret;
19686}
19687
19688int
19689main ()
19690{
19691
19692char x[1];
19693if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
19694 return 1;
19695if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
19696 return 1;
19697return 0;
19698
19699 ;
19700 return 0;
19701}
19702_ACEOF
19703rm -f conftest$ac_exeext
19704if { (ac_try="$ac_link"
19705case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708esac
19709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 { echo "$as_me:$LINENO: result: yes" >&5
19724echo "${ECHO_T}yes" >&6; }
19725else
19726 echo "$as_me: program exited with status $ac_status" >&5
19727echo "$as_me: failed program was:" >&5
19728sed 's/^/| /' conftest.$ac_ext >&5
19729
19730( exit $ac_status )
19731
19732 { echo "$as_me:$LINENO: result: no" >&5
19733echo "${ECHO_T}no" >&6; }
19734
19735cat >>confdefs.h <<\_ACEOF
19736#define BROKEN_SNPRINTF 1
19737_ACEOF
19738
19739 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
19740echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
19741
19742fi
19743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19744fi
19745
19746
19747fi
19748
19749# On systems where [v]snprintf is broken, but is declared in stdio,
19750# check that the fmt argument is const char * or just char *.
19751# This is only useful for when BROKEN_SNPRINTF
19752{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
19753echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
19754cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h. */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
19759/* end confdefs.h. */
19760
19761#include <stdio.h>
19762int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
19763
19764int
19765main ()
19766{
19767
19768 snprintf(0, 0, 0);
19769
19770 ;
19771 return 0;
19772}
19773_ACEOF
19774rm -f conftest.$ac_objext
19775if { (ac_try="$ac_compile"
19776case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } && {
19788 test -z "$ac_c_werror_flag" ||
19789 test ! -s conftest.err
19790 } && test -s conftest.$ac_objext; then
19791 { echo "$as_me:$LINENO: result: yes" >&5
19792echo "${ECHO_T}yes" >&6; }
19793
19794cat >>confdefs.h <<\_ACEOF
19795#define SNPRINTF_CONST const
19796_ACEOF
19797
19798else
19799 echo "$as_me: failed program was:" >&5
19800sed 's/^/| /' conftest.$ac_ext >&5
19801
19802 { echo "$as_me:$LINENO: result: no" >&5
19803echo "${ECHO_T}no" >&6; }
19804 cat >>confdefs.h <<\_ACEOF
19805#define SNPRINTF_CONST /* not const */
19806_ACEOF
19807
19808fi
19809
19810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811
19812# Check for missing getpeereid (or equiv) support
19813NO_PEERCHECK=""
19814if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
19815 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
19816echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
19817 cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
19823
19824#include <sys/types.h>
19825#include <sys/socket.h>
19826int
19827main ()
19828{
19829int i = SO_PEERCRED;
19830 ;
19831 return 0;
19832}
19833_ACEOF
19834rm -f conftest.$ac_objext
19835if { (ac_try="$ac_compile"
19836case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839esac
19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest.$ac_objext; then
19851 { echo "$as_me:$LINENO: result: yes" >&5
19852echo "${ECHO_T}yes" >&6; }
19853
19854cat >>confdefs.h <<\_ACEOF
19855#define HAVE_SO_PEERCRED 1
19856_ACEOF
19857
19858
19859else
19860 echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 { echo "$as_me:$LINENO: result: no" >&5
19864echo "${ECHO_T}no" >&6; }
19865 NO_PEERCHECK=1
19866
19867fi
19868
19869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870fi
19871
19872if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
19873{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
19874echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
19875if test "$cross_compiling" = yes; then
19876
19877 { echo "$as_me:$LINENO: result: yes" >&5
19878echo "${ECHO_T}yes" >&6; }
19879 cat >>confdefs.h <<\_ACEOF
19880#define HAVE_STRICT_MKSTEMP 1
19881_ACEOF
19882
19883
19884
19885else
19886 cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892
19893#include <stdlib.h>
19894
19895int
19896main ()
19897{
19898
19899 char template[]="conftest.mkstemp-test";
19900 if (mkstemp(template) == -1)
19901 exit(1);
19902 unlink(template);
19903 exit(0);
19904
19905 ;
19906 return 0;
19907}
19908_ACEOF
19909rm -f conftest$ac_exeext
19910if { (ac_try="$ac_link"
19911case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_link") 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19920 { (case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923esac
19924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_try") 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929
19930 { echo "$as_me:$LINENO: result: no" >&5
19931echo "${ECHO_T}no" >&6; }
19932
19933else
19934 echo "$as_me: program exited with status $ac_status" >&5
19935echo "$as_me: failed program was:" >&5
19936sed 's/^/| /' conftest.$ac_ext >&5
19937
19938( exit $ac_status )
19939
19940 { echo "$as_me:$LINENO: result: yes" >&5
19941echo "${ECHO_T}yes" >&6; }
19942
19943cat >>confdefs.h <<\_ACEOF
19944#define HAVE_STRICT_MKSTEMP 1
19945_ACEOF
19946
19947
19948fi
19949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19950fi
19951
19952
19953fi
19954
19955if test ! -z "$check_for_openpty_ctty_bug"; then
19956 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
19957echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
19958 if test "$cross_compiling" = yes; then
19959
19960 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
19961echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
19962
19963
19964else
19965 cat >conftest.$ac_ext <<_ACEOF
19966/* confdefs.h. */
19967_ACEOF
19968cat confdefs.h >>conftest.$ac_ext
19969cat >>conftest.$ac_ext <<_ACEOF
19970/* end confdefs.h. */
19971
19972#include <stdio.h>
19973#include <sys/fcntl.h>
19974#include <sys/types.h>
19975#include <sys/wait.h>
19976
19977int
19978main ()
19979{
19980
19981 pid_t pid;
19982 int fd, ptyfd, ttyfd, status;
19983
19984 pid = fork();
19985 if (pid < 0) { /* failed */
19986 exit(1);
19987 } else if (pid > 0) { /* parent */
19988 waitpid(pid, &status, 0);
19989 if (WIFEXITED(status))
19990 exit(WEXITSTATUS(status));
19991 else
19992 exit(2);
19993 } else { /* child */
19994 close(0); close(1); close(2);
19995 setsid();
19996 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
19997 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
19998 if (fd >= 0)
19999 exit(3); /* Acquired ctty: broken */
20000 else
20001 exit(0); /* Did not acquire ctty: OK */
20002 }
20003
20004 ;
20005 return 0;
20006}
20007_ACEOF
20008rm -f conftest$ac_exeext
20009if { (ac_try="$ac_link"
20010case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013esac
20014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_link") 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20019 { (case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022esac
20023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_try") 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028
20029 { echo "$as_me:$LINENO: result: yes" >&5
20030echo "${ECHO_T}yes" >&6; }
20031
20032else
20033 echo "$as_me: program exited with status $ac_status" >&5
20034echo "$as_me: failed program was:" >&5
20035sed 's/^/| /' conftest.$ac_ext >&5
20036
20037( exit $ac_status )
20038
20039 { echo "$as_me:$LINENO: result: no" >&5
20040echo "${ECHO_T}no" >&6; }
20041 cat >>confdefs.h <<\_ACEOF
20042#define SSHD_ACQUIRES_CTTY 1
20043_ACEOF
20044
20045
20046fi
20047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20048fi
20049
20050
20051fi
20052
20053if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20054 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
20055 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20056echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20057 if test "$cross_compiling" = yes; then
20058
20059 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20060echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20061
20062
20063else
20064 cat >conftest.$ac_ext <<_ACEOF
20065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
20070
20071#include <stdio.h>
20072#include <sys/socket.h>
20073#include <netdb.h>
20074#include <errno.h>
20075#include <netinet/in.h>
20076
20077#define TEST_PORT "2222"
20078
20079int
20080main ()
20081{
20082
20083 int err, sock;
20084 struct addrinfo *gai_ai, *ai, hints;
20085 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20086
20087 memset(&hints, 0, sizeof(hints));
20088 hints.ai_family = PF_UNSPEC;
20089 hints.ai_socktype = SOCK_STREAM;
20090 hints.ai_flags = AI_PASSIVE;
20091
20092 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20093 if (err != 0) {
20094 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20095 exit(1);
20096 }
20097
20098 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20099 if (ai->ai_family != AF_INET6)
20100 continue;
20101
20102 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20103 sizeof(ntop), strport, sizeof(strport),
20104 NI_NUMERICHOST|NI_NUMERICSERV);
20105
20106 if (err != 0) {
20107 if (err == EAI_SYSTEM)
20108 perror("getnameinfo EAI_SYSTEM");
20109 else
20110 fprintf(stderr, "getnameinfo failed: %s\n",
20111 gai_strerror(err));
20112 exit(2);
20113 }
20114
20115 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
20116 if (sock < 0)
20117 perror("socket");
20118 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
20119 if (errno == EBADF)
20120 exit(3);
20121 }
20122 }
20123 exit(0);
20124
20125 ;
20126 return 0;
20127}
20128_ACEOF
20129rm -f conftest$ac_exeext
20130if { (ac_try="$ac_link"
20131case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20134esac
20135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_link") 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; }; then
20149
20150 { echo "$as_me:$LINENO: result: yes" >&5
20151echo "${ECHO_T}yes" >&6; }
20152
20153else
20154 echo "$as_me: program exited with status $ac_status" >&5
20155echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158( exit $ac_status )
20159
20160 { echo "$as_me:$LINENO: result: no" >&5
20161echo "${ECHO_T}no" >&6; }
20162 cat >>confdefs.h <<\_ACEOF
20163#define BROKEN_GETADDRINFO 1
20164_ACEOF
20165
20166
20167fi
20168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169fi
20170
20171
20172fi
20173
20174if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20175 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
20176 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20177echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20178 if test "$cross_compiling" = yes; then
20179
20180 { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5
20181echo "${ECHO_T}cross-compiling, assuming no" >&6; }
20182
20183
20184else
20185 cat >conftest.$ac_ext <<_ACEOF
20186/* confdefs.h. */
20187_ACEOF
20188cat confdefs.h >>conftest.$ac_ext
20189cat >>conftest.$ac_ext <<_ACEOF
20190/* end confdefs.h. */
20191
20192#include <stdio.h>
20193#include <sys/socket.h>
20194#include <netdb.h>
20195#include <errno.h>
20196#include <netinet/in.h>
20197
20198#define TEST_PORT "2222"
20199
20200int
20201main ()
20202{
20203
20204 int err, sock;
20205 struct addrinfo *gai_ai, *ai, hints;
20206 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20207
20208 memset(&hints, 0, sizeof(hints));
20209 hints.ai_family = PF_UNSPEC;
20210 hints.ai_socktype = SOCK_STREAM;
20211 hints.ai_flags = AI_PASSIVE;
20212
20213 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20214 if (err != 0) {
20215 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20216 exit(1);
20217 }
20218
20219 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20220 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
20221 continue;
20222
20223 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20224 sizeof(ntop), strport, sizeof(strport),
20225 NI_NUMERICHOST|NI_NUMERICSERV);
20226
20227 if (ai->ai_family == AF_INET && err != 0) {
20228 perror("getnameinfo");
20229 exit(2);
20230 }
20231 }
20232 exit(0);
20233
20234 ;
20235 return 0;
20236}
20237_ACEOF
20238rm -f conftest$ac_exeext
20239if { (ac_try="$ac_link"
20240case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243esac
20244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_link") 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20249 { (case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252esac
20253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_try") 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258
20259 { echo "$as_me:$LINENO: result: yes" >&5
20260echo "${ECHO_T}yes" >&6; }
20261
20262cat >>confdefs.h <<\_ACEOF
20263#define AIX_GETNAMEINFO_HACK 1
20264_ACEOF
20265
20266
20267else
20268 echo "$as_me: program exited with status $ac_status" >&5
20269echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272( exit $ac_status )
20273
20274 { echo "$as_me:$LINENO: result: no" >&5
20275echo "${ECHO_T}no" >&6; }
20276 cat >>confdefs.h <<\_ACEOF
20277#define BROKEN_GETADDRINFO 1
20278_ACEOF
20279
20280
20281fi
20282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20283fi
20284
20285
20286fi
20287
20288if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
20289 { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5
20290echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; }
20291if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293else
20294 cat >conftest.$ac_ext <<_ACEOF
20295/* confdefs.h. */
20296_ACEOF
20297cat confdefs.h >>conftest.$ac_ext
20298cat >>conftest.$ac_ext <<_ACEOF
20299/* end confdefs.h. */
20300#include <sys/types.h>
20301 #include <sys/socket.h>
20302 #include <netdb.h>
20303
20304int
20305main ()
20306{
20307#ifndef AI_NUMERICSERV
20308 (void) AI_NUMERICSERV;
20309#endif
20310
20311 ;
20312 return 0;
20313}
20314_ACEOF
20315rm -f conftest.$ac_objext
20316if { (ac_try="$ac_compile"
20317case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320esac
20321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_compile") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest.$ac_objext; then
20332 ac_cv_have_decl_AI_NUMERICSERV=yes
20333else
20334 echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_cv_have_decl_AI_NUMERICSERV=no
20338fi
20339
20340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20341fi
20342{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5
20343echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; }
20344if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then
20345
20346cat >>confdefs.h <<_ACEOF
20347#define HAVE_DECL_AI_NUMERICSERV 1
20348_ACEOF
20349
20350
20351else
20352 cat >>confdefs.h <<_ACEOF
20353#define HAVE_DECL_AI_NUMERICSERV 0
20354_ACEOF
20355
20356
20357fi
20358
20359
20360fi
20361
20362if test "x$check_for_conflicting_getspnam" = "x1"; then
20363 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
20364echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
20365 cat >conftest.$ac_ext <<_ACEOF
20366/* confdefs.h. */
20367_ACEOF
20368cat confdefs.h >>conftest.$ac_ext
20369cat >>conftest.$ac_ext <<_ACEOF
20370/* end confdefs.h. */
20371 #include <shadow.h>
20372int
20373main ()
20374{
20375 exit(0);
20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext
20381if { (ac_try="$ac_compile"
20382case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385esac
20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest.$ac_objext; then
20397
20398 { echo "$as_me:$LINENO: result: no" >&5
20399echo "${ECHO_T}no" >&6; }
20400
20401else
20402 echo "$as_me: failed program was:" >&5
20403sed 's/^/| /' conftest.$ac_ext >&5
20404
20405
20406 { echo "$as_me:$LINENO: result: yes" >&5
20407echo "${ECHO_T}yes" >&6; }
20408
20409cat >>confdefs.h <<\_ACEOF
20410#define GETSPNAM_CONFLICTING_DEFS 1
20411_ACEOF
20412
20413
20414
20415fi
20416
20417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418fi
20419
20420{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20421echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
20422if test "${ac_cv_func_getpgrp_void+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 # Use it with a single arg.
20426cat >conftest.$ac_ext <<_ACEOF
20427/* confdefs.h. */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h. */
20432$ac_includes_default
20433int
20434main ()
20435{
20436getpgrp (0);
20437 ;
20438 return 0;
20439}
20440_ACEOF
20441rm -f conftest.$ac_objext
20442if { (ac_try="$ac_compile"
20443case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20446esac
20447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_compile") 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && {
20455 test -z "$ac_c_werror_flag" ||
20456 test ! -s conftest.err
20457 } && test -s conftest.$ac_objext; then
20458 ac_cv_func_getpgrp_void=no
20459else
20460 echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
20463 ac_cv_func_getpgrp_void=yes
20464fi
20465
20466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467
20468fi
20469{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20470echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20471if test $ac_cv_func_getpgrp_void = yes; then
20472
20473cat >>confdefs.h <<\_ACEOF
20474#define GETPGRP_VOID 1
20475_ACEOF
20476
20477fi
20478
20479
20480# Search for OpenSSL
20481saved_CPPFLAGS="$CPPFLAGS"
20482saved_LDFLAGS="$LDFLAGS"
20483
20484# Check whether --with-ssl-dir was given.
20485if test "${with_ssl_dir+set}" = set; then
20486 withval=$with_ssl_dir;
20487 if test "x$openssl" = "xno" ; then
20488 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5
20489echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;}
20490 { (exit 1); exit 1; }; }
20491 fi
20492 if test "x$withval" != "xno" ; then
20493 case "$withval" in
20494 # Relative paths
20495 ./*|../*) withval="`pwd`/$withval"
20496 esac
20497 if test -d "$withval/lib"; then
20498 if test -n "${need_dash_r}"; then
20499 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
20500 else
20501 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
20502 fi
20503 elif test -d "$withval/lib64"; then
20504 if test -n "${need_dash_r}"; then
20505 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
20506 else
20507 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
20508 fi
20509 else
20510 if test -n "${need_dash_r}"; then
20511 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
20512 else
20513 LDFLAGS="-L${withval} ${LDFLAGS}"
20514 fi
20515 fi
20516 if test -d "$withval/include"; then
20517 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
20518 else
20519 CPPFLAGS="-I${withval} ${CPPFLAGS}"
20520 fi
20521 fi
20522
20523
20524fi
20525
20526
20527
20528# Check whether --with-openssl-header-check was given.
20529if test "${with_openssl_header_check+set}" = set; then
20530 withval=$with_openssl_header_check;
20531 if test "x$withval" = "xno" ; then
20532 openssl_check_nonfatal=1
20533 fi
20534
20535
20536fi
20537
20538
20539openssl_engine=no
20540
20541# Check whether --with-ssl-engine was given.
20542if test "${with_ssl_engine+set}" = set; then
20543 withval=$with_ssl_engine;
20544 if test "x$openssl" = "xno" ; then
20545 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5
20546echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;}
20547 { (exit 1); exit 1; }; }
20548 fi
20549 if test "x$withval" != "xno" ; then
20550 openssl_engine=yes
20551 fi
20552
20553
20554fi
20555
20556
20557if test "x$openssl" = "xyes" ; then
20558 LIBS="-lcrypto $LIBS"
20559 cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h. */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h. */
20565
20566/* Override any GCC internal prototype to avoid an error.
20567 Use char because int might match the return type of a GCC
20568 builtin and then its argument prototype would still apply. */
20569#ifdef __cplusplus
20570extern "C"
20571#endif
20572char RAND_add ();
20573int
20574main ()
20575{
20576return RAND_add ();
20577 ;
20578 return 0;
20579}
20580_ACEOF
20581rm -f conftest.$ac_objext conftest$ac_exeext
20582if { (ac_try="$ac_link"
20583case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_link") 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest$ac_exeext &&
20598 $as_test_x conftest$ac_exeext; then
20599
20600cat >>confdefs.h <<\_ACEOF
20601#define HAVE_OPENSSL 1
20602_ACEOF
20603
20604else
20605 echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
20607
20608
20609 if test -n "${need_dash_r}"; then
20610 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
20611 else
20612 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
20613 fi
20614 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
20615 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20616 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20617echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20618if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620fi
20621{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20622echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20623else
20624 # Is the header compilable?
20625{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
20626echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
20627cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
20633$ac_includes_default
20634#include <openssl/opensslv.h>
20635_ACEOF
20636rm -f conftest.$ac_objext
20637if { (ac_try="$ac_compile"
20638case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641esac
20642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_compile") 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } && {
20650 test -z "$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20652 } && test -s conftest.$ac_objext; then
20653 ac_header_compiler=yes
20654else
20655 echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 ac_header_compiler=no
20659fi
20660
20661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20663echo "${ECHO_T}$ac_header_compiler" >&6; }
20664
20665# Is the header present?
20666{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
20667echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
20668cat >conftest.$ac_ext <<_ACEOF
20669/* confdefs.h. */
20670_ACEOF
20671cat confdefs.h >>conftest.$ac_ext
20672cat >>conftest.$ac_ext <<_ACEOF
20673/* end confdefs.h. */
20674#include <openssl/opensslv.h>
20675_ACEOF
20676if { (ac_try="$ac_cpp conftest.$ac_ext"
20677case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680esac
20681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } >/dev/null && {
20689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20690 test ! -s conftest.err
20691 }; then
20692 ac_header_preproc=yes
20693else
20694 echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697 ac_header_preproc=no
20698fi
20699
20700rm -f conftest.err conftest.$ac_ext
20701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20702echo "${ECHO_T}$ac_header_preproc" >&6; }
20703
20704# So? What about this header?
20705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20706 yes:no: )
20707 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20708echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
20710echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
20711 ac_header_preproc=yes
20712 ;;
20713 no:yes:* )
20714 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
20715echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
20717echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
20719echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
20721echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
20723echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
20725echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
20726 ( cat <<\_ASBOX
20727## ------------------------------------------- ##
20728## Report this to openssh-unix-dev@mindrot.org ##
20729## ------------------------------------------- ##
20730_ASBOX
20731 ) | sed "s/^/$as_me: WARNING: /" >&2
20732 ;;
20733esac
20734{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20735echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20736if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738else
20739 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
20740fi
20741{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20742echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20743
20744fi
20745if test $ac_cv_header_openssl_opensslv_h = yes; then
20746 :
20747else
20748 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
20749echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
20750 { (exit 1); exit 1; }; }
20751fi
20752
20753
20754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
20760
20761/* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20764#ifdef __cplusplus
20765extern "C"
20766#endif
20767char RAND_add ();
20768int
20769main ()
20770{
20771return RAND_add ();
20772 ;
20773 return 0;
20774}
20775_ACEOF
20776rm -f conftest.$ac_objext conftest$ac_exeext
20777if { (ac_try="$ac_link"
20778case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781esac
20782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_link") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest$ac_exeext &&
20793 $as_test_x conftest$ac_exeext; then
20794 cat >>confdefs.h <<\_ACEOF
20795#define HAVE_OPENSSL 1
20796_ACEOF
20797
20798else
20799 echo "$as_me: failed program was:" >&5
20800sed 's/^/| /' conftest.$ac_ext >&5
20801
20802
20803 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
20804echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
20805 { (exit 1); exit 1; }; }
20806
20807
20808fi
20809
20810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20811 conftest$ac_exeext conftest.$ac_ext
20812
20813
20814fi
20815
20816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817 conftest$ac_exeext conftest.$ac_ext
20818
20819 # Determine OpenSSL header version
20820 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
20821echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
20822 if test "$cross_compiling" = yes; then
20823
20824 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20825echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20826
20827
20828else
20829 cat >conftest.$ac_ext <<_ACEOF
20830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
20835
20836 #include <stdio.h>
20837 #include <string.h>
20838 #include <openssl/opensslv.h>
20839 #define DATA "conftest.sslincver"
20840
20841int
20842main ()
20843{
20844
20845 FILE *fd;
20846 int rc;
20847
20848 fd = fopen(DATA,"w");
20849 if(fd == NULL)
20850 exit(1);
20851
20852 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
20853 exit(1);
20854
20855 exit(0);
20856
20857 ;
20858 return 0;
20859}
20860_ACEOF
20861rm -f conftest$ac_exeext
20862if { (ac_try="$ac_link"
20863case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866esac
20867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_link") 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875esac
20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881
20882 ssl_header_ver=`cat conftest.sslincver`
20883 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
20884echo "${ECHO_T}$ssl_header_ver" >&6; }
20885
20886else
20887 echo "$as_me: program exited with status $ac_status" >&5
20888echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891( exit $ac_status )
20892
20893 { echo "$as_me:$LINENO: result: not found" >&5
20894echo "${ECHO_T}not found" >&6; }
20895 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
20896echo "$as_me: error: OpenSSL version header not found." >&2;}
20897 { (exit 1); exit 1; }; }
20898
20899fi
20900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20901fi
20902
20903
20904
20905 # Determine OpenSSL library version
20906 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
20907echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
20908 if test "$cross_compiling" = yes; then
20909
20910 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20911echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20912
20913
20914else
20915 cat >conftest.$ac_ext <<_ACEOF
20916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
20920/* end confdefs.h. */
20921
20922 #include <stdio.h>
20923 #include <string.h>
20924 #include <openssl/opensslv.h>
20925 #include <openssl/crypto.h>
20926 #define DATA "conftest.ssllibver"
20927
20928int
20929main ()
20930{
20931
20932 FILE *fd;
20933 int rc;
20934
20935 fd = fopen(DATA,"w");
20936 if(fd == NULL)
20937 exit(1);
20938
20939 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
20940 SSLeay_version(SSLEAY_VERSION))) <0)
20941 exit(1);
20942
20943 exit(0);
20944
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest$ac_exeext
20950if { (ac_try="$ac_link"
20951case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954esac
20955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_link") 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20960 { (case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20963esac
20964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969
20970 ssl_library_ver=`cat conftest.ssllibver`
20971 # Check version is supported.
20972 case "$ssl_library_ver" in
20973 0090[0-7]*|009080[0-5]*)
20974 { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5
20975echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;}
20976 { (exit 1); exit 1; }; }
20977 ;;
20978 *) ;;
20979 esac
20980 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
20981echo "${ECHO_T}$ssl_library_ver" >&6; }
20982
20983else
20984 echo "$as_me: program exited with status $ac_status" >&5
20985echo "$as_me: failed program was:" >&5
20986sed 's/^/| /' conftest.$ac_ext >&5
20987
20988( exit $ac_status )
20989
20990 { echo "$as_me:$LINENO: result: not found" >&5
20991echo "${ECHO_T}not found" >&6; }
20992 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
20993echo "$as_me: error: OpenSSL library not found." >&2;}
20994 { (exit 1); exit 1; }; }
20995
20996fi
20997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20998fi
20999
21000
21001
21002 # Sanity check OpenSSL headers
21003 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
21004echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
21005 if test "$cross_compiling" = yes; then
21006
21007 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21008echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21009
21010
21011else
21012 cat >conftest.$ac_ext <<_ACEOF
21013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
21018
21019 #include <string.h>
21020 #include <openssl/opensslv.h>
21021
21022int
21023main ()
21024{
21025
21026 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
21027
21028 ;
21029 return 0;
21030}
21031_ACEOF
21032rm -f conftest$ac_exeext
21033if { (ac_try="$ac_link"
21034case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21037esac
21038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046esac
21047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_try") 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052
21053 { echo "$as_me:$LINENO: result: yes" >&5
21054echo "${ECHO_T}yes" >&6; }
21055
21056else
21057 echo "$as_me: program exited with status $ac_status" >&5
21058echo "$as_me: failed program was:" >&5
21059sed 's/^/| /' conftest.$ac_ext >&5
21060
21061( exit $ac_status )
21062
21063 { echo "$as_me:$LINENO: result: no" >&5
21064echo "${ECHO_T}no" >&6; }
21065 if test "x$openssl_check_nonfatal" = "x"; then
21066 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
21067 library. Check config.log for details.
21068 If you are sure your installation is consistent, you can disable the check
21069 by running \"./configure --without-openssl-header-check\".
21070 Also see contrib/findssl.sh for help identifying header/library mismatches.
21071 " >&5
21072echo "$as_me: error: Your OpenSSL headers do not match your
21073 library. Check config.log for details.
21074 If you are sure your installation is consistent, you can disable the check
21075 by running \"./configure --without-openssl-header-check\".
21076 Also see contrib/findssl.sh for help identifying header/library mismatches.
21077 " >&2;}
21078 { (exit 1); exit 1; }; }
21079 else
21080 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
21081 library. Check config.log for details.
21082 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
21083echo "$as_me: WARNING: Your OpenSSL headers do not match your
21084 library. Check config.log for details.
21085 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
21086 fi
21087
21088fi
21089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21090fi
21091
21092
21093
21094 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
21095echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
21096 cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
21102 #include <openssl/evp.h>
21103int
21104main ()
21105{
21106 SSLeay_add_all_algorithms();
21107 ;
21108 return 0;
21109}
21110_ACEOF
21111rm -f conftest.$ac_objext conftest$ac_exeext
21112if { (ac_try="$ac_link"
21113case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116esac
21117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_link") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest$ac_exeext &&
21128 $as_test_x conftest$ac_exeext; then
21129
21130 { echo "$as_me:$LINENO: result: yes" >&5
21131echo "${ECHO_T}yes" >&6; }
21132
21133else
21134 echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
21137
21138 { echo "$as_me:$LINENO: result: no" >&5
21139echo "${ECHO_T}no" >&6; }
21140 saved_LIBS="$LIBS"
21141 LIBS="$LIBS -ldl"
21142 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
21143echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
21144 cat >conftest.$ac_ext <<_ACEOF
21145/* confdefs.h. */
21146_ACEOF
21147cat confdefs.h >>conftest.$ac_ext
21148cat >>conftest.$ac_ext <<_ACEOF
21149/* end confdefs.h. */
21150 #include <openssl/evp.h>
21151int
21152main ()
21153{
21154 SSLeay_add_all_algorithms();
21155 ;
21156 return 0;
21157}
21158_ACEOF
21159rm -f conftest.$ac_objext conftest$ac_exeext
21160if { (ac_try="$ac_link"
21161case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164esac
21165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_link") 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest$ac_exeext &&
21176 $as_test_x conftest$ac_exeext; then
21177
21178 { echo "$as_me:$LINENO: result: yes" >&5
21179echo "${ECHO_T}yes" >&6; }
21180
21181else
21182 echo "$as_me: failed program was:" >&5
21183sed 's/^/| /' conftest.$ac_ext >&5
21184
21185
21186 { echo "$as_me:$LINENO: result: no" >&5
21187echo "${ECHO_T}no" >&6; }
21188 LIBS="$saved_LIBS"
21189
21190
21191fi
21192
21193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21195
21196
21197fi
21198
21199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21200 conftest$ac_exeext conftest.$ac_ext
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212for ac_func in \
21213 BN_is_prime_ex \
21214 DSA_generate_parameters_ex \
21215 EVP_DigestInit_ex \
21216 EVP_DigestFinal_ex \
21217 EVP_MD_CTX_init \
21218 EVP_MD_CTX_cleanup \
21219 EVP_MD_CTX_copy_ex \
21220 HMAC_CTX_init \
21221 RSA_generate_key_ex \
21222 RSA_get_default_method \
21223
21224do
21225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230else
21231 cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21239#define $ac_func innocuous_$ac_func
21240
21241/* System header to define __stub macros and hopefully few prototypes,
21242 which can conflict with char $ac_func (); below.
21243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21244 <limits.h> exists even on freestanding compilers. */
21245
21246#ifdef __STDC__
21247# include <limits.h>
21248#else
21249# include <assert.h>
21250#endif
21251
21252#undef $ac_func
21253
21254/* Override any GCC internal prototype to avoid an error.
21255 Use char because int might match the return type of a GCC
21256 builtin and then its argument prototype would still apply. */
21257#ifdef __cplusplus
21258extern "C"
21259#endif
21260char $ac_func ();
21261/* The GNU C library defines this for functions which it implements
21262 to always fail with ENOSYS. Some functions are actually named
21263 something starting with __ and the normal name is an alias. */
21264#if defined __stub_$ac_func || defined __stub___$ac_func
21265choke me
21266#endif
21267
21268int
21269main ()
21270{
21271return $ac_func ();
21272 ;
21273 return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext conftest$ac_exeext
21277if { (ac_try="$ac_link"
21278case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21281esac
21282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_link") 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest$ac_exeext &&
21293 $as_test_x conftest$ac_exeext; then
21294 eval "$as_ac_var=yes"
21295else
21296 echo "$as_me: failed program was:" >&5
21297sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 eval "$as_ac_var=no"
21300fi
21301
21302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21303 conftest$ac_exeext conftest.$ac_ext
21304fi
21305ac_res=`eval echo '${'$as_ac_var'}'`
21306 { echo "$as_me:$LINENO: result: $ac_res" >&5
21307echo "${ECHO_T}$ac_res" >&6; }
21308if test `eval echo '${'$as_ac_var'}'` = yes; then
21309 cat >>confdefs.h <<_ACEOF
21310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21311_ACEOF
21312
21313fi
21314done
21315
21316
21317 if test "x$openssl_engine" = "xyes" ; then
21318 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
21319echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
21320 cat >conftest.$ac_ext <<_ACEOF
21321/* confdefs.h. */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h. */
21326
21327 #include <openssl/engine.h>
21328
21329int
21330main ()
21331{
21332
21333 ENGINE_load_builtin_engines();
21334 ENGINE_register_all_complete();
21335
21336 ;
21337 return 0;
21338}
21339_ACEOF
21340rm -f conftest.$ac_objext
21341if { (ac_try="$ac_compile"
21342case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21345esac
21346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347 (eval "$ac_compile") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest.$ac_objext; then
21357 { echo "$as_me:$LINENO: result: yes" >&5
21358echo "${ECHO_T}yes" >&6; }
21359
21360cat >>confdefs.h <<\_ACEOF
21361#define USE_OPENSSL_ENGINE 1
21362_ACEOF
21363
21364
21365else
21366 echo "$as_me: failed program was:" >&5
21367sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
21370echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
21371 { (exit 1); exit 1; }; }
21372
21373fi
21374
21375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 fi
21377
21378 # Check for OpenSSL without EVP_aes_{192,256}_cbc
21379 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
21380echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
21381 cat >conftest.$ac_ext <<_ACEOF
21382/* confdefs.h. */
21383_ACEOF
21384cat confdefs.h >>conftest.$ac_ext
21385cat >>conftest.$ac_ext <<_ACEOF
21386/* end confdefs.h. */
21387
21388 #include <string.h>
21389 #include <openssl/evp.h>
21390
21391int
21392main ()
21393{
21394
21395 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
21396
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext conftest$ac_exeext
21402if { (ac_try="$ac_link"
21403case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406esac
21407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_link") 2>conftest.er1
21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } && {
21415 test -z "$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 } && test -s conftest$ac_exeext &&
21418 $as_test_x conftest$ac_exeext; then
21419
21420 { echo "$as_me:$LINENO: result: no" >&5
21421echo "${ECHO_T}no" >&6; }
21422
21423else
21424 echo "$as_me: failed program was:" >&5
21425sed 's/^/| /' conftest.$ac_ext >&5
21426
21427
21428 { echo "$as_me:$LINENO: result: yes" >&5
21429echo "${ECHO_T}yes" >&6; }
21430
21431cat >>confdefs.h <<\_ACEOF
21432#define OPENSSL_LOBOTOMISED_AES 1
21433_ACEOF
21434
21435
21436
21437fi
21438
21439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21440 conftest$ac_exeext conftest.$ac_ext
21441
21442 # Check for OpenSSL with EVP_aes_*ctr
21443 { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5
21444echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; }
21445 cat >conftest.$ac_ext <<_ACEOF
21446/* confdefs.h. */
21447_ACEOF
21448cat confdefs.h >>conftest.$ac_ext
21449cat >>conftest.$ac_ext <<_ACEOF
21450/* end confdefs.h. */
21451
21452 #include <string.h>
21453 #include <openssl/evp.h>
21454
21455int
21456main ()
21457{
21458
21459 exit(EVP_aes_128_ctr() == NULL ||
21460 EVP_aes_192_cbc() == NULL ||
21461 EVP_aes_256_cbc() == NULL);
21462
21463 ;
21464 return 0;
21465}
21466_ACEOF
21467rm -f conftest.$ac_objext conftest$ac_exeext
21468if { (ac_try="$ac_link"
21469case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21472esac
21473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_link") 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext &&
21484 $as_test_x conftest$ac_exeext; then
21485
21486 { echo "$as_me:$LINENO: result: yes" >&5
21487echo "${ECHO_T}yes" >&6; }
21488
21489cat >>confdefs.h <<\_ACEOF
21490#define OPENSSL_HAVE_EVPCTR 1
21491_ACEOF
21492
21493
21494else
21495 echo "$as_me: failed program was:" >&5
21496sed 's/^/| /' conftest.$ac_ext >&5
21497
21498
21499 { echo "$as_me:$LINENO: result: no" >&5
21500echo "${ECHO_T}no" >&6; }
21501
21502
21503fi
21504
21505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21506 conftest$ac_exeext conftest.$ac_ext
21507
21508 # Check for OpenSSL with EVP_aes_*gcm
21509 { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5
21510echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; }
21511 cat >conftest.$ac_ext <<_ACEOF
21512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h. */
21517
21518 #include <string.h>
21519 #include <openssl/evp.h>
21520
21521int
21522main ()
21523{
21524
21525 exit(EVP_aes_128_gcm() == NULL ||
21526 EVP_aes_256_gcm() == NULL ||
21527 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
21528 EVP_CTRL_GCM_IV_GEN == 0 ||
21529 EVP_CTRL_GCM_SET_TAG == 0 ||
21530 EVP_CTRL_GCM_GET_TAG == 0 ||
21531 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
21532
21533 ;
21534 return 0;
21535}
21536_ACEOF
21537rm -f conftest.$ac_objext conftest$ac_exeext
21538if { (ac_try="$ac_link"
21539case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542esac
21543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_link") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest$ac_exeext &&
21554 $as_test_x conftest$ac_exeext; then
21555
21556 { echo "$as_me:$LINENO: result: yes" >&5
21557echo "${ECHO_T}yes" >&6; }
21558
21559cat >>confdefs.h <<\_ACEOF
21560#define OPENSSL_HAVE_EVPGCM 1
21561_ACEOF
21562
21563
21564else
21565 echo "$as_me: failed program was:" >&5
21566sed 's/^/| /' conftest.$ac_ext >&5
21567
21568
21569 { echo "$as_me:$LINENO: result: no" >&5
21570echo "${ECHO_T}no" >&6; }
21571 unsupported_algorithms="$unsupported_cipers \
21572 aes128-gcm@openssh.com aes256-gcm@openssh.com"
21573
21574
21575fi
21576
21577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21578 conftest$ac_exeext conftest.$ac_ext
21579
21580 { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
21581echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; }
21582if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21584else
21585 ac_func_search_save_LIBS=$LIBS
21586cat >conftest.$ac_ext <<_ACEOF
21587/* confdefs.h. */
21588_ACEOF
21589cat confdefs.h >>conftest.$ac_ext
21590cat >>conftest.$ac_ext <<_ACEOF
21591/* end confdefs.h. */
21592
21593/* Override any GCC internal prototype to avoid an error.
21594 Use char because int might match the return type of a GCC
21595 builtin and then its argument prototype would still apply. */
21596#ifdef __cplusplus
21597extern "C"
21598#endif
21599char EVP_CIPHER_CTX_ctrl ();
21600int
21601main ()
21602{
21603return EVP_CIPHER_CTX_ctrl ();
21604 ;
21605 return 0;
21606}
21607_ACEOF
21608for ac_lib in '' crypto; do
21609 if test -z "$ac_lib"; then
21610 ac_res="none required"
21611 else
21612 ac_res=-l$ac_lib
21613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21614 fi
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616if { (ac_try="$ac_link"
21617case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21620esac
21621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_link") 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest$ac_exeext &&
21632 $as_test_x conftest$ac_exeext; then
21633 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
21634else
21635 echo "$as_me: failed program was:" >&5
21636sed 's/^/| /' conftest.$ac_ext >&5
21637
21638
21639fi
21640
21641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21642 conftest$ac_exeext
21643 if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21644 break
21645fi
21646done
21647if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21648 :
21649else
21650 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
21651fi
21652rm conftest.$ac_ext
21653LIBS=$ac_func_search_save_LIBS
21654fi
21655{ echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
21656echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
21657ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
21658if test "$ac_res" != no; then
21659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21660
21661cat >>confdefs.h <<\_ACEOF
21662#define HAVE_EVP_CIPHER_CTX_CTRL 1
21663_ACEOF
21664
21665fi
21666
21667
21668 { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
21669echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21671/* confdefs.h. */
21672_ACEOF
21673cat confdefs.h >>conftest.$ac_ext
21674cat >>conftest.$ac_ext <<_ACEOF
21675/* end confdefs.h. */
21676
21677 #include <string.h>
21678 #include <openssl/evp.h>
21679
21680int
21681main ()
21682{
21683
21684 if(EVP_DigestUpdate(NULL, NULL,0))
21685 exit(0);
21686
21687 ;
21688 return 0;
21689}
21690_ACEOF
21691rm -f conftest.$ac_objext conftest$ac_exeext
21692if { (ac_try="$ac_link"
21693case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696esac
21697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_link") 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } && {
21705 test -z "$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 } && test -s conftest$ac_exeext &&
21708 $as_test_x conftest$ac_exeext; then
21709
21710 { echo "$as_me:$LINENO: result: yes" >&5
21711echo "${ECHO_T}yes" >&6; }
21712
21713else
21714 echo "$as_me: failed program was:" >&5
21715sed 's/^/| /' conftest.$ac_ext >&5
21716
21717
21718 { echo "$as_me:$LINENO: result: no" >&5
21719echo "${ECHO_T}no" >&6; }
21720
21721cat >>confdefs.h <<\_ACEOF
21722#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
21723_ACEOF
21724
21725
21726
21727fi
21728
21729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21730 conftest$ac_exeext conftest.$ac_ext
21731
21732 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
21733 # because the system crypt() is more featureful.
21734 if test "x$check_for_libcrypt_before" = "x1"; then
21735
21736{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21737echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21738if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740else
21741 ac_check_lib_save_LIBS=$LIBS
21742LIBS="-lcrypt $LIBS"
21743cat >conftest.$ac_ext <<_ACEOF
21744/* confdefs.h. */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h. */
21749
21750/* Override any GCC internal prototype to avoid an error.
21751 Use char because int might match the return type of a GCC
21752 builtin and then its argument prototype would still apply. */
21753#ifdef __cplusplus
21754extern "C"
21755#endif
21756char crypt ();
21757int
21758main ()
21759{
21760return crypt ();
21761 ;
21762 return 0;
21763}
21764_ACEOF
21765rm -f conftest.$ac_objext conftest$ac_exeext
21766if { (ac_try="$ac_link"
21767case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21770esac
21771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_link") 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && {
21779 test -z "$ac_c_werror_flag" ||
21780 test ! -s conftest.err
21781 } && test -s conftest$ac_exeext &&
21782 $as_test_x conftest$ac_exeext; then
21783 ac_cv_lib_crypt_crypt=yes
21784else
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_cv_lib_crypt_crypt=no
21789fi
21790
21791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21792 conftest$ac_exeext conftest.$ac_ext
21793LIBS=$ac_check_lib_save_LIBS
21794fi
21795{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21796echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21797if test $ac_cv_lib_crypt_crypt = yes; then
21798 cat >>confdefs.h <<_ACEOF
21799#define HAVE_LIBCRYPT 1
21800_ACEOF
21801
21802 LIBS="-lcrypt $LIBS"
21803
21804fi
21805
21806 fi
21807
21808 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
21809 # version in OpenSSL.
21810 if test "x$check_for_libcrypt_later" = "x1"; then
21811 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21812echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21813if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815else
21816 ac_check_lib_save_LIBS=$LIBS
21817LIBS="-lcrypt $LIBS"
21818cat >conftest.$ac_ext <<_ACEOF
21819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h. */
21824
21825/* Override any GCC internal prototype to avoid an error.
21826 Use char because int might match the return type of a GCC
21827 builtin and then its argument prototype would still apply. */
21828#ifdef __cplusplus
21829extern "C"
21830#endif
21831char crypt ();
21832int
21833main ()
21834{
21835return crypt ();
21836 ;
21837 return 0;
21838}
21839_ACEOF
21840rm -f conftest.$ac_objext conftest$ac_exeext
21841if { (ac_try="$ac_link"
21842case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845esac
21846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_link") 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && {
21854 test -z "$ac_c_werror_flag" ||
21855 test ! -s conftest.err
21856 } && test -s conftest$ac_exeext &&
21857 $as_test_x conftest$ac_exeext; then
21858 ac_cv_lib_crypt_crypt=yes
21859else
21860 echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
21863 ac_cv_lib_crypt_crypt=no
21864fi
21865
21866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21867 conftest$ac_exeext conftest.$ac_ext
21868LIBS=$ac_check_lib_save_LIBS
21869fi
21870{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21871echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21872if test $ac_cv_lib_crypt_crypt = yes; then
21873 LIBS="$LIBS -lcrypt"
21874fi
21875
21876 fi
21877
21878
21879for ac_func in crypt DES_crypt
21880do
21881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21886else
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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21895#define $ac_func innocuous_$ac_func
21896
21897/* System header to define __stub macros and hopefully few prototypes,
21898 which can conflict with char $ac_func (); below.
21899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21900 <limits.h> exists even on freestanding compilers. */
21901
21902#ifdef __STDC__
21903# include <limits.h>
21904#else
21905# include <assert.h>
21906#endif
21907
21908#undef $ac_func
21909
21910/* Override any GCC internal prototype to avoid an error.
21911 Use char because int might match the return type of a GCC
21912 builtin and then its argument prototype would still apply. */
21913#ifdef __cplusplus
21914extern "C"
21915#endif
21916char $ac_func ();
21917/* The GNU C library defines this for functions which it implements
21918 to always fail with ENOSYS. Some functions are actually named
21919 something starting with __ and the normal name is an alias. */
21920#if defined __stub_$ac_func || defined __stub___$ac_func
21921choke me
21922#endif
21923
21924int
21925main ()
21926{
21927return $ac_func ();
21928 ;
21929 return 0;
21930}
21931_ACEOF
21932rm -f conftest.$ac_objext conftest$ac_exeext
21933if { (ac_try="$ac_link"
21934case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21937esac
21938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_link") 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } && {
21946 test -z "$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 } && test -s conftest$ac_exeext &&
21949 $as_test_x conftest$ac_exeext; then
21950 eval "$as_ac_var=yes"
21951else
21952 echo "$as_me: failed program was:" >&5
21953sed 's/^/| /' conftest.$ac_ext >&5
21954
21955 eval "$as_ac_var=no"
21956fi
21957
21958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21959 conftest$ac_exeext conftest.$ac_ext
21960fi
21961ac_res=`eval echo '${'$as_ac_var'}'`
21962 { echo "$as_me:$LINENO: result: $ac_res" >&5
21963echo "${ECHO_T}$ac_res" >&6; }
21964if test `eval echo '${'$as_ac_var'}'` = yes; then
21965 cat >>confdefs.h <<_ACEOF
21966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21967_ACEOF
21968
21969fi
21970done
21971
21972
21973 # Search for SHA256 support in libc and/or OpenSSL
21974
21975
21976for ac_func in SHA256_Update EVP_sha256
21977do
21978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21983else
21984 cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h. */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h. */
21990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21992#define $ac_func innocuous_$ac_func
21993
21994/* System header to define __stub macros and hopefully few prototypes,
21995 which can conflict with char $ac_func (); below.
21996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21997 <limits.h> exists even on freestanding compilers. */
21998
21999#ifdef __STDC__
22000# include <limits.h>
22001#else
22002# include <assert.h>
22003#endif
22004
22005#undef $ac_func
22006
22007/* Override any GCC internal prototype to avoid an error.
22008 Use char because int might match the return type of a GCC
22009 builtin and then its argument prototype would still apply. */
22010#ifdef __cplusplus
22011extern "C"
22012#endif
22013char $ac_func ();
22014/* The GNU C library defines this for functions which it implements
22015 to always fail with ENOSYS. Some functions are actually named
22016 something starting with __ and the normal name is an alias. */
22017#if defined __stub_$ac_func || defined __stub___$ac_func
22018choke me
22019#endif
22020
22021int
22022main ()
22023{
22024return $ac_func ();
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029rm -f conftest.$ac_objext conftest$ac_exeext
22030if { (ac_try="$ac_link"
22031case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034esac
22035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_link") 2>conftest.er1
22037 ac_status=$?
22038 grep -v '^ *+' conftest.er1 >conftest.err
22039 rm -f conftest.er1
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } && {
22043 test -z "$ac_c_werror_flag" ||
22044 test ! -s conftest.err
22045 } && test -s conftest$ac_exeext &&
22046 $as_test_x conftest$ac_exeext; then
22047 eval "$as_ac_var=yes"
22048else
22049 echo "$as_me: failed program was:" >&5
22050sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 eval "$as_ac_var=no"
22053fi
22054
22055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22056 conftest$ac_exeext conftest.$ac_ext
22057fi
22058ac_res=`eval echo '${'$as_ac_var'}'`
22059 { echo "$as_me:$LINENO: result: $ac_res" >&5
22060echo "${ECHO_T}$ac_res" >&6; }
22061if test `eval echo '${'$as_ac_var'}'` = yes; then
22062 cat >>confdefs.h <<_ACEOF
22063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22064_ACEOF
22065
22066else
22067 unsupported_algorithms="$unsupported_algorithms \
22068 hmac-sha2-256 hmac-sha2-512 \
22069 diffie-hellman-group-exchange-sha256 \
22070 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
22071
22072
22073fi
22074done
22075
22076 # Search for RIPE-MD support in OpenSSL
22077
22078for ac_func in EVP_ripemd160
22079do
22080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22085else
22086 cat >conftest.$ac_ext <<_ACEOF
22087/* confdefs.h. */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
22091/* end confdefs.h. */
22092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22094#define $ac_func innocuous_$ac_func
22095
22096/* System header to define __stub macros and hopefully few prototypes,
22097 which can conflict with char $ac_func (); below.
22098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22099 <limits.h> exists even on freestanding compilers. */
22100
22101#ifdef __STDC__
22102# include <limits.h>
22103#else
22104# include <assert.h>
22105#endif
22106
22107#undef $ac_func
22108
22109/* Override any GCC internal prototype to avoid an error.
22110 Use char because int might match the return type of a GCC
22111 builtin and then its argument prototype would still apply. */
22112#ifdef __cplusplus
22113extern "C"
22114#endif
22115char $ac_func ();
22116/* The GNU C library defines this for functions which it implements
22117 to always fail with ENOSYS. Some functions are actually named
22118 something starting with __ and the normal name is an alias. */
22119#if defined __stub_$ac_func || defined __stub___$ac_func
22120choke me
22121#endif
22122
22123int
22124main ()
22125{
22126return $ac_func ();
22127 ;
22128 return 0;
22129}
22130_ACEOF
22131rm -f conftest.$ac_objext conftest$ac_exeext
22132if { (ac_try="$ac_link"
22133case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136esac
22137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_link") 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest$ac_exeext &&
22148 $as_test_x conftest$ac_exeext; then
22149 eval "$as_ac_var=yes"
22150else
22151 echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 eval "$as_ac_var=no"
22155fi
22156
22157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22158 conftest$ac_exeext conftest.$ac_ext
22159fi
22160ac_res=`eval echo '${'$as_ac_var'}'`
22161 { echo "$as_me:$LINENO: result: $ac_res" >&5
22162echo "${ECHO_T}$ac_res" >&6; }
22163if test `eval echo '${'$as_ac_var'}'` = yes; then
22164 cat >>confdefs.h <<_ACEOF
22165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22166_ACEOF
22167
22168else
22169 unsupported_algorithms="$unsupported_algorithms \
22170 hmac-ripemd160
22171 hmac-ripemd160@openssh.com
22172 hmac-ripemd160-etm@openssh.com"
22173
22174
22175fi
22176done
22177
22178
22179 # Check complete ECC support in OpenSSL
22180 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
22181echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; }
22182 cat >conftest.$ac_ext <<_ACEOF
22183/* confdefs.h. */
22184_ACEOF
22185cat confdefs.h >>conftest.$ac_ext
22186cat >>conftest.$ac_ext <<_ACEOF
22187/* end confdefs.h. */
22188
22189 #include <openssl/ec.h>
22190 #include <openssl/ecdh.h>
22191 #include <openssl/ecdsa.h>
22192 #include <openssl/evp.h>
22193 #include <openssl/objects.h>
22194 #include <openssl/opensslv.h>
22195 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22196 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22197 #endif
22198
22199int
22200main ()
22201{
22202
22203 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
22204 const EVP_MD *m = EVP_sha256(); /* We need this too */
22205
22206 ;
22207 return 0;
22208}
22209_ACEOF
22210rm -f conftest.$ac_objext conftest$ac_exeext
22211if { (ac_try="$ac_link"
22212case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215esac
22216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_link") 2>conftest.er1
22218 ac_status=$?
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest$ac_exeext &&
22227 $as_test_x conftest$ac_exeext; then
22228 { echo "$as_me:$LINENO: result: yes" >&5
22229echo "${ECHO_T}yes" >&6; }
22230 enable_nistp256=1
22231else
22232 echo "$as_me: failed program was:" >&5
22233sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 { echo "$as_me:$LINENO: result: no" >&5
22236echo "${ECHO_T}no" >&6; }
22237
22238fi
22239
22240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22241 conftest$ac_exeext conftest.$ac_ext
22242
22243 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5
22244echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; }
22245 cat >conftest.$ac_ext <<_ACEOF
22246/* confdefs.h. */
22247_ACEOF
22248cat confdefs.h >>conftest.$ac_ext
22249cat >>conftest.$ac_ext <<_ACEOF
22250/* end confdefs.h. */
22251
22252 #include <openssl/ec.h>
22253 #include <openssl/ecdh.h>
22254 #include <openssl/ecdsa.h>
22255 #include <openssl/evp.h>
22256 #include <openssl/objects.h>
22257 #include <openssl/opensslv.h>
22258 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22259 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22260 #endif
22261
22262int
22263main ()
22264{
22265
22266 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
22267 const EVP_MD *m = EVP_sha384(); /* We need this too */
22268
22269 ;
22270 return 0;
22271}
22272_ACEOF
22273rm -f conftest.$ac_objext conftest$ac_exeext
22274if { (ac_try="$ac_link"
22275case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278esac
22279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_link") 2>conftest.er1
22281 ac_status=$?
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest$ac_exeext &&
22290 $as_test_x conftest$ac_exeext; then
22291 { echo "$as_me:$LINENO: result: yes" >&5
22292echo "${ECHO_T}yes" >&6; }
22293 enable_nistp384=1
22294else
22295 echo "$as_me: failed program was:" >&5
22296sed 's/^/| /' conftest.$ac_ext >&5
22297
22298 { echo "$as_me:$LINENO: result: no" >&5
22299echo "${ECHO_T}no" >&6; }
22300
22301fi
22302
22303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22304 conftest$ac_exeext conftest.$ac_ext
22305
22306 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5
22307echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22309/* confdefs.h. */
22310_ACEOF
22311cat confdefs.h >>conftest.$ac_ext
22312cat >>conftest.$ac_ext <<_ACEOF
22313/* end confdefs.h. */
22314
22315 #include <openssl/ec.h>
22316 #include <openssl/ecdh.h>
22317 #include <openssl/ecdsa.h>
22318 #include <openssl/evp.h>
22319 #include <openssl/objects.h>
22320 #include <openssl/opensslv.h>
22321 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22322 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22323 #endif
22324
22325int
22326main ()
22327{
22328
22329 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22330 const EVP_MD *m = EVP_sha512(); /* We need this too */
22331
22332 ;
22333 return 0;
22334}
22335_ACEOF
22336rm -f conftest.$ac_objext conftest$ac_exeext
22337if { (ac_try="$ac_link"
22338case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22341esac
22342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_link") 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest$ac_exeext &&
22353 $as_test_x conftest$ac_exeext; then
22354 { echo "$as_me:$LINENO: result: yes" >&5
22355echo "${ECHO_T}yes" >&6; }
22356 { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5
22357echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; }
22358 if test "$cross_compiling" = yes; then
22359 { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5
22360echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
22361 enable_nistp521=1
22362
22363else
22364 cat >conftest.$ac_ext <<_ACEOF
22365/* confdefs.h. */
22366_ACEOF
22367cat confdefs.h >>conftest.$ac_ext
22368cat >>conftest.$ac_ext <<_ACEOF
22369/* end confdefs.h. */
22370
22371 #include <openssl/ec.h>
22372 #include <openssl/ecdh.h>
22373 #include <openssl/ecdsa.h>
22374 #include <openssl/evp.h>
22375 #include <openssl/objects.h>
22376 #include <openssl/opensslv.h>
22377
22378int
22379main ()
22380{
22381
22382 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22383 const EVP_MD *m = EVP_sha512(); /* We need this too */
22384 exit(e == NULL || m == NULL);
22385
22386 ;
22387 return 0;
22388}
22389_ACEOF
22390rm -f conftest$ac_exeext
22391if { (ac_try="$ac_link"
22392case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22395esac
22396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_link") 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; }; then
22410 { echo "$as_me:$LINENO: result: yes" >&5
22411echo "${ECHO_T}yes" >&6; }
22412 enable_nistp521=1
22413else
22414 echo "$as_me: program exited with status $ac_status" >&5
22415echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418( exit $ac_status )
22419 { echo "$as_me:$LINENO: result: no" >&5
22420echo "${ECHO_T}no" >&6; }
22421fi
22422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22423fi
22424
22425
22426else
22427 echo "$as_me: failed program was:" >&5
22428sed 's/^/| /' conftest.$ac_ext >&5
22429
22430 { echo "$as_me:$LINENO: result: no" >&5
22431echo "${ECHO_T}no" >&6; }
22432
22433fi
22434
22435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22436 conftest$ac_exeext conftest.$ac_ext
22437
22438 COMMENT_OUT_ECC="#no ecc#"
22439 TEST_SSH_ECC=no
22440
22441 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
22442 test x$enable_nistp521 = x1; then
22443
22444cat >>confdefs.h <<\_ACEOF
22445#define OPENSSL_HAS_ECC 1
22446_ACEOF
22447
22448 fi
22449 if test x$enable_nistp256 = x1; then
22450
22451cat >>confdefs.h <<\_ACEOF
22452#define OPENSSL_HAS_NISTP256 1
22453_ACEOF
22454
22455 TEST_SSH_ECC=yes
22456 COMMENT_OUT_ECC=""
22457 else
22458 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
22459 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
22460 fi
22461 if test x$enable_nistp384 = x1; then
22462
22463cat >>confdefs.h <<\_ACEOF
22464#define OPENSSL_HAS_NISTP384 1
22465_ACEOF
22466
22467 TEST_SSH_ECC=yes
22468 COMMENT_OUT_ECC=""
22469 else
22470 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
22471 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
22472 fi
22473 if test x$enable_nistp521 = x1; then
22474
22475cat >>confdefs.h <<\_ACEOF
22476#define OPENSSL_HAS_NISTP521 1
22477_ACEOF
22478
22479 TEST_SSH_ECC=yes
22480 COMMENT_OUT_ECC=""
22481 else
22482 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
22483 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
22484 fi
22485
22486
22487
22488else
22489 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22490echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22491if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22493else
22494 ac_check_lib_save_LIBS=$LIBS
22495LIBS="-lcrypt $LIBS"
22496cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502
22503/* Override any GCC internal prototype to avoid an error.
22504 Use char because int might match the return type of a GCC
22505 builtin and then its argument prototype would still apply. */
22506#ifdef __cplusplus
22507extern "C"
22508#endif
22509char crypt ();
22510int
22511main ()
22512{
22513return crypt ();
22514 ;
22515 return 0;
22516}
22517_ACEOF
22518rm -f conftest.$ac_objext conftest$ac_exeext
22519if { (ac_try="$ac_link"
22520case "(($ac_try" in
22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522 *) ac_try_echo=$ac_try;;
22523esac
22524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525 (eval "$ac_link") 2>conftest.er1
22526 ac_status=$?
22527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } && {
22532 test -z "$ac_c_werror_flag" ||
22533 test ! -s conftest.err
22534 } && test -s conftest$ac_exeext &&
22535 $as_test_x conftest$ac_exeext; then
22536 ac_cv_lib_crypt_crypt=yes
22537else
22538 echo "$as_me: failed program was:" >&5
22539sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 ac_cv_lib_crypt_crypt=no
22542fi
22543
22544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22545 conftest$ac_exeext conftest.$ac_ext
22546LIBS=$ac_check_lib_save_LIBS
22547fi
22548{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22549echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22550if test $ac_cv_lib_crypt_crypt = yes; then
22551 LIBS="$LIBS -lcrypt"
22552fi
22553
22554
22555for ac_func in crypt
22556do
22557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22562else
22563 cat >conftest.$ac_ext <<_ACEOF
22564/* confdefs.h. */
22565_ACEOF
22566cat confdefs.h >>conftest.$ac_ext
22567cat >>conftest.$ac_ext <<_ACEOF
22568/* end confdefs.h. */
22569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22571#define $ac_func innocuous_$ac_func
22572
22573/* System header to define __stub macros and hopefully few prototypes,
22574 which can conflict with char $ac_func (); below.
22575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22576 <limits.h> exists even on freestanding compilers. */
22577
22578#ifdef __STDC__
22579# include <limits.h>
22580#else
22581# include <assert.h>
22582#endif
22583
22584#undef $ac_func
22585
22586/* Override any GCC internal prototype to avoid an error.
22587 Use char because int might match the return type of a GCC
22588 builtin and then its argument prototype would still apply. */
22589#ifdef __cplusplus
22590extern "C"
22591#endif
22592char $ac_func ();
22593/* The GNU C library defines this for functions which it implements
22594 to always fail with ENOSYS. Some functions are actually named
22595 something starting with __ and the normal name is an alias. */
22596#if defined __stub_$ac_func || defined __stub___$ac_func
22597choke me
22598#endif
22599
22600int
22601main ()
22602{
22603return $ac_func ();
22604 ;
22605 return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext conftest$ac_exeext
22609if { (ac_try="$ac_link"
22610case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22613esac
22614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_link") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest$ac_exeext &&
22625 $as_test_x conftest$ac_exeext; then
22626 eval "$as_ac_var=yes"
22627else
22628 echo "$as_me: failed program was:" >&5
22629sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 eval "$as_ac_var=no"
22632fi
22633
22634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22635 conftest$ac_exeext conftest.$ac_ext
22636fi
22637ac_res=`eval echo '${'$as_ac_var'}'`
22638 { echo "$as_me:$LINENO: result: $ac_res" >&5
22639echo "${ECHO_T}$ac_res" >&6; }
22640if test `eval echo '${'$as_ac_var'}'` = yes; then
22641 cat >>confdefs.h <<_ACEOF
22642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22643_ACEOF
22644
22645fi
22646done
22647
22648fi
22649
22650
22651
22652
22653
22654for ac_func in \
22655 arc4random \
22656 arc4random_buf \
22657 arc4random_stir \
22658 arc4random_uniform \
22659
22660do
22661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22662{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22664if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22666else
22667 cat >conftest.$ac_ext <<_ACEOF
22668/* confdefs.h. */
22669_ACEOF
22670cat confdefs.h >>conftest.$ac_ext
22671cat >>conftest.$ac_ext <<_ACEOF
22672/* end confdefs.h. */
22673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22675#define $ac_func innocuous_$ac_func
22676
22677/* System header to define __stub macros and hopefully few prototypes,
22678 which can conflict with char $ac_func (); below.
22679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22680 <limits.h> exists even on freestanding compilers. */
22681
22682#ifdef __STDC__
22683# include <limits.h>
22684#else
22685# include <assert.h>
22686#endif
22687
22688#undef $ac_func
22689
22690/* Override any GCC internal prototype to avoid an error.
22691 Use char because int might match the return type of a GCC
22692 builtin and then its argument prototype would still apply. */
22693#ifdef __cplusplus
22694extern "C"
22695#endif
22696char $ac_func ();
22697/* The GNU C library defines this for functions which it implements
22698 to always fail with ENOSYS. Some functions are actually named
22699 something starting with __ and the normal name is an alias. */
22700#if defined __stub_$ac_func || defined __stub___$ac_func
22701choke me
22702#endif
22703
22704int
22705main ()
22706{
22707return $ac_func ();
22708 ;
22709 return 0;
22710}
22711_ACEOF
22712rm -f conftest.$ac_objext conftest$ac_exeext
22713if { (ac_try="$ac_link"
22714case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22717esac
22718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_link") 2>conftest.er1
22720 ac_status=$?
22721 grep -v '^ *+' conftest.er1 >conftest.err
22722 rm -f conftest.er1
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext &&
22729 $as_test_x conftest$ac_exeext; then
22730 eval "$as_ac_var=yes"
22731else
22732 echo "$as_me: failed program was:" >&5
22733sed 's/^/| /' conftest.$ac_ext >&5
22734
22735 eval "$as_ac_var=no"
22736fi
22737
22738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739 conftest$ac_exeext conftest.$ac_ext
22740fi
22741ac_res=`eval echo '${'$as_ac_var'}'`
22742 { echo "$as_me:$LINENO: result: $ac_res" >&5
22743echo "${ECHO_T}$ac_res" >&6; }
22744if test `eval echo '${'$as_ac_var'}'` = yes; then
22745 cat >>confdefs.h <<_ACEOF
22746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22747_ACEOF
22748
22749fi
22750done
22751
22752
22753saved_LIBS="$LIBS"
22754{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
22755echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
22756if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22758else
22759 ac_check_lib_save_LIBS=$LIBS
22760LIBS="-liaf $LIBS"
22761cat >conftest.$ac_ext <<_ACEOF
22762/* confdefs.h. */
22763_ACEOF
22764cat confdefs.h >>conftest.$ac_ext
22765cat >>conftest.$ac_ext <<_ACEOF
22766/* end confdefs.h. */
22767
22768/* Override any GCC internal prototype to avoid an error.
22769 Use char because int might match the return type of a GCC
22770 builtin and then its argument prototype would still apply. */
22771#ifdef __cplusplus
22772extern "C"
22773#endif
22774char ia_openinfo ();
22775int
22776main ()
22777{
22778return ia_openinfo ();
22779 ;
22780 return 0;
22781}
22782_ACEOF
22783rm -f conftest.$ac_objext conftest$ac_exeext
22784if { (ac_try="$ac_link"
22785case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22788esac
22789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_link") 2>conftest.er1
22791 ac_status=$?
22792 grep -v '^ *+' conftest.er1 >conftest.err
22793 rm -f conftest.er1
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest$ac_exeext &&
22800 $as_test_x conftest$ac_exeext; then
22801 ac_cv_lib_iaf_ia_openinfo=yes
22802else
22803 echo "$as_me: failed program was:" >&5
22804sed 's/^/| /' conftest.$ac_ext >&5
22805
22806 ac_cv_lib_iaf_ia_openinfo=no
22807fi
22808
22809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22810 conftest$ac_exeext conftest.$ac_ext
22811LIBS=$ac_check_lib_save_LIBS
22812fi
22813{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
22814echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
22815if test $ac_cv_lib_iaf_ia_openinfo = yes; then
22816
22817 LIBS="$LIBS -liaf"
22818
22819for ac_func in set_id
22820do
22821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22822{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22824if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22826else
22827 cat >conftest.$ac_ext <<_ACEOF
22828/* confdefs.h. */
22829_ACEOF
22830cat confdefs.h >>conftest.$ac_ext
22831cat >>conftest.$ac_ext <<_ACEOF
22832/* end confdefs.h. */
22833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22835#define $ac_func innocuous_$ac_func
22836
22837/* System header to define __stub macros and hopefully few prototypes,
22838 which can conflict with char $ac_func (); below.
22839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22840 <limits.h> exists even on freestanding compilers. */
22841
22842#ifdef __STDC__
22843# include <limits.h>
22844#else
22845# include <assert.h>
22846#endif
22847
22848#undef $ac_func
22849
22850/* Override any GCC internal prototype to avoid an error.
22851 Use char because int might match the return type of a GCC
22852 builtin and then its argument prototype would still apply. */
22853#ifdef __cplusplus
22854extern "C"
22855#endif
22856char $ac_func ();
22857/* The GNU C library defines this for functions which it implements
22858 to always fail with ENOSYS. Some functions are actually named
22859 something starting with __ and the normal name is an alias. */
22860#if defined __stub_$ac_func || defined __stub___$ac_func
22861choke me
22862#endif
22863
22864int
22865main ()
22866{
22867return $ac_func ();
22868 ;
22869 return 0;
22870}
22871_ACEOF
22872rm -f conftest.$ac_objext conftest$ac_exeext
22873if { (ac_try="$ac_link"
22874case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22877esac
22878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_link") 2>conftest.er1
22880 ac_status=$?
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest$ac_exeext &&
22889 $as_test_x conftest$ac_exeext; then
22890 eval "$as_ac_var=yes"
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895 eval "$as_ac_var=no"
22896fi
22897
22898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899 conftest$ac_exeext conftest.$ac_ext
22900fi
22901ac_res=`eval echo '${'$as_ac_var'}'`
22902 { echo "$as_me:$LINENO: result: $ac_res" >&5
22903echo "${ECHO_T}$ac_res" >&6; }
22904if test `eval echo '${'$as_ac_var'}'` = yes; then
22905 cat >>confdefs.h <<_ACEOF
22906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22907_ACEOF
22908 SSHDLIBS="$SSHDLIBS -liaf"
22909
22910cat >>confdefs.h <<\_ACEOF
22911#define HAVE_LIBIAF 1
22912_ACEOF
22913
22914
22915fi
22916done
22917
22918
22919fi
22920
22921LIBS="$saved_LIBS"
22922
22923### Configure cryptographic random number support
22924
22925# Check wheter OpenSSL seeds itself
22926if test "x$openssl" = "xyes" ; then
22927 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
22928echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
22929 if test "$cross_compiling" = yes; then
22930
22931 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
22932echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
22933 # This is safe, since we will fatal() at runtime if
22934 # OpenSSL is not seeded correctly.
22935 OPENSSL_SEEDS_ITSELF=yes
22936
22937
22938else
22939 cat >conftest.$ac_ext <<_ACEOF
22940/* confdefs.h. */
22941_ACEOF
22942cat confdefs.h >>conftest.$ac_ext
22943cat >>conftest.$ac_ext <<_ACEOF
22944/* end confdefs.h. */
22945
22946 #include <string.h>
22947 #include <openssl/rand.h>
22948
22949int
22950main ()
22951{
22952
22953 exit(RAND_status() == 1 ? 0 : 1);
22954
22955 ;
22956 return 0;
22957}
22958_ACEOF
22959rm -f conftest$ac_exeext
22960if { (ac_try="$ac_link"
22961case "(($ac_try" in
22962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963 *) ac_try_echo=$ac_try;;
22964esac
22965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966 (eval "$ac_link") 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22970 { (case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22973esac
22974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_try") 2>&5
22976 ac_status=$?
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; }; then
22979
22980 OPENSSL_SEEDS_ITSELF=yes
22981 { echo "$as_me:$LINENO: result: yes" >&5
22982echo "${ECHO_T}yes" >&6; }
22983
22984else
22985 echo "$as_me: program exited with status $ac_status" >&5
22986echo "$as_me: failed program was:" >&5
22987sed 's/^/| /' conftest.$ac_ext >&5
22988
22989( exit $ac_status )
22990
22991 { echo "$as_me:$LINENO: result: no" >&5
22992echo "${ECHO_T}no" >&6; }
22993
22994fi
22995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22996fi
22997
22998
22999fi
23000
23001# PRNGD TCP socket
23002
23003# Check whether --with-prngd-port was given.
23004if test "${with_prngd_port+set}" = set; then
23005 withval=$with_prngd_port;
23006 case "$withval" in
23007 no)
23008 withval=""
23009 ;;
23010 [0-9]*)
23011 ;;
23012 *)
23013 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
23014echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
23015 { (exit 1); exit 1; }; }
23016 ;;
23017 esac
23018 if test ! -z "$withval" ; then
23019 PRNGD_PORT="$withval"
23020
23021cat >>confdefs.h <<_ACEOF
23022#define PRNGD_PORT $PRNGD_PORT
23023_ACEOF
23024
23025 fi
23026
23027
23028fi
23029
23030
23031# PRNGD Unix domain socket
23032
23033# Check whether --with-prngd-socket was given.
23034if test "${with_prngd_socket+set}" = set; then
23035 withval=$with_prngd_socket;
23036 case "$withval" in
23037 yes)
23038 withval="/var/run/egd-pool"
23039 ;;
23040 no)
23041 withval=""
23042 ;;
23043 /*)
23044 ;;
23045 *)
23046 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
23047echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
23048 { (exit 1); exit 1; }; }
23049 ;;
23050 esac
23051
23052 if test ! -z "$withval" ; then
23053 if test ! -z "$PRNGD_PORT" ; then
23054 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
23055echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
23056 { (exit 1); exit 1; }; }
23057 fi
23058 if test ! -r "$withval" ; then
23059 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
23060echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
23061 fi
23062 PRNGD_SOCKET="$withval"
23063
23064cat >>confdefs.h <<_ACEOF
23065#define PRNGD_SOCKET "$PRNGD_SOCKET"
23066_ACEOF
23067
23068 fi
23069
23070else
23071
23072 # Check for existing socket only if we don't have a random device already
23073 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
23074 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
23075echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
23076 # Insert other locations here
23077 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
23078 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
23079 PRNGD_SOCKET="$sock"
23080 cat >>confdefs.h <<_ACEOF
23081#define PRNGD_SOCKET "$PRNGD_SOCKET"
23082_ACEOF
23083
23084 break;
23085 fi
23086 done
23087 if test ! -z "$PRNGD_SOCKET" ; then
23088 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
23089echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
23090 else
23091 { echo "$as_me:$LINENO: result: not found" >&5
23092echo "${ECHO_T}not found" >&6; }
23093 fi
23094 fi
23095
23096
23097fi
23098
23099
23100# Which randomness source do we use?
23101if test ! -z "$PRNGD_PORT" ; then
23102 RAND_MSG="PRNGd port $PRNGD_PORT"
23103elif test ! -z "$PRNGD_SOCKET" ; then
23104 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
23105elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
23106
23107cat >>confdefs.h <<\_ACEOF
23108#define OPENSSL_PRNG_ONLY 1
23109_ACEOF
23110
23111 RAND_MSG="OpenSSL internal ONLY"
23112elif test "x$openssl" = "xno" ; then
23113 { echo "$as_me:$LINENO: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5
23114echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;}
23115else
23116 { { echo "$as_me:$LINENO: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&5
23117echo "$as_me: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&2;}
23118 { (exit 1); exit 1; }; }
23119fi
23120
23121# Check for PAM libs
23122PAM_MSG="no"
23123
23124# Check whether --with-pam was given.
23125if test "${with_pam+set}" = set; then
23126 withval=$with_pam;
23127 if test "x$withval" != "xno" ; then
23128 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
23129 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
23130 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
23131echo "$as_me: error: PAM headers not found" >&2;}
23132 { (exit 1); exit 1; }; }
23133 fi
23134
23135 saved_LIBS="$LIBS"
23136
23137{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23138echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23139if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141else
23142 ac_check_lib_save_LIBS=$LIBS
23143LIBS="-ldl $LIBS"
23144cat >conftest.$ac_ext <<_ACEOF
23145/* confdefs.h. */
23146_ACEOF
23147cat confdefs.h >>conftest.$ac_ext
23148cat >>conftest.$ac_ext <<_ACEOF
23149/* end confdefs.h. */
23150
23151/* Override any GCC internal prototype to avoid an error.
23152 Use char because int might match the return type of a GCC
23153 builtin and then its argument prototype would still apply. */
23154#ifdef __cplusplus
23155extern "C"
23156#endif
23157char dlopen ();
23158int
23159main ()
23160{
23161return dlopen ();
23162 ;
23163 return 0;
23164}
23165_ACEOF
23166rm -f conftest.$ac_objext conftest$ac_exeext
23167if { (ac_try="$ac_link"
23168case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23171esac
23172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_link") 2>conftest.er1
23174 ac_status=$?
23175 grep -v '^ *+' conftest.er1 >conftest.err
23176 rm -f conftest.er1
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } && {
23180 test -z "$ac_c_werror_flag" ||
23181 test ! -s conftest.err
23182 } && test -s conftest$ac_exeext &&
23183 $as_test_x conftest$ac_exeext; then
23184 ac_cv_lib_dl_dlopen=yes
23185else
23186 echo "$as_me: failed program was:" >&5
23187sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_cv_lib_dl_dlopen=no
23190fi
23191
23192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23193 conftest$ac_exeext conftest.$ac_ext
23194LIBS=$ac_check_lib_save_LIBS
23195fi
23196{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23197echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23198if test $ac_cv_lib_dl_dlopen = yes; then
23199 cat >>confdefs.h <<_ACEOF
23200#define HAVE_LIBDL 1
23201_ACEOF
23202
23203 LIBS="-ldl $LIBS"
23204
23205fi
23206
23207
23208{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
23209echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
23210if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23212else
23213 ac_check_lib_save_LIBS=$LIBS
23214LIBS="-lpam $LIBS"
23215cat >conftest.$ac_ext <<_ACEOF
23216/* confdefs.h. */
23217_ACEOF
23218cat confdefs.h >>conftest.$ac_ext
23219cat >>conftest.$ac_ext <<_ACEOF
23220/* end confdefs.h. */
23221
23222/* Override any GCC internal prototype to avoid an error.
23223 Use char because int might match the return type of a GCC
23224 builtin and then its argument prototype would still apply. */
23225#ifdef __cplusplus
23226extern "C"
23227#endif
23228char pam_set_item ();
23229int
23230main ()
23231{
23232return pam_set_item ();
23233 ;
23234 return 0;
23235}
23236_ACEOF
23237rm -f conftest.$ac_objext conftest$ac_exeext
23238if { (ac_try="$ac_link"
23239case "(($ac_try" in
23240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241 *) ac_try_echo=$ac_try;;
23242esac
23243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244 (eval "$ac_link") 2>conftest.er1
23245 ac_status=$?
23246 grep -v '^ *+' conftest.er1 >conftest.err
23247 rm -f conftest.er1
23248 cat conftest.err >&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); } && {
23251 test -z "$ac_c_werror_flag" ||
23252 test ! -s conftest.err
23253 } && test -s conftest$ac_exeext &&
23254 $as_test_x conftest$ac_exeext; then
23255 ac_cv_lib_pam_pam_set_item=yes
23256else
23257 echo "$as_me: failed program was:" >&5
23258sed 's/^/| /' conftest.$ac_ext >&5
23259
23260 ac_cv_lib_pam_pam_set_item=no
23261fi
23262
23263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23264 conftest$ac_exeext conftest.$ac_ext
23265LIBS=$ac_check_lib_save_LIBS
23266fi
23267{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
23268echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
23269if test $ac_cv_lib_pam_pam_set_item = yes; then
23270 cat >>confdefs.h <<_ACEOF
23271#define HAVE_LIBPAM 1
23272_ACEOF
23273
23274 LIBS="-lpam $LIBS"
23275
23276else
23277 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
23278echo "$as_me: error: *** libpam missing" >&2;}
23279 { (exit 1); exit 1; }; }
23280fi
23281
23282
23283for ac_func in pam_getenvlist
23284do
23285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23286{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23288if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23290else
23291 cat >conftest.$ac_ext <<_ACEOF
23292/* confdefs.h. */
23293_ACEOF
23294cat confdefs.h >>conftest.$ac_ext
23295cat >>conftest.$ac_ext <<_ACEOF
23296/* end confdefs.h. */
23297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23299#define $ac_func innocuous_$ac_func
23300
23301/* System header to define __stub macros and hopefully few prototypes,
23302 which can conflict with char $ac_func (); below.
23303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23304 <limits.h> exists even on freestanding compilers. */
23305
23306#ifdef __STDC__
23307# include <limits.h>
23308#else
23309# include <assert.h>
23310#endif
23311
23312#undef $ac_func
23313
23314/* Override any GCC internal prototype to avoid an error.
23315 Use char because int might match the return type of a GCC
23316 builtin and then its argument prototype would still apply. */
23317#ifdef __cplusplus
23318extern "C"
23319#endif
23320char $ac_func ();
23321/* The GNU C library defines this for functions which it implements
23322 to always fail with ENOSYS. Some functions are actually named
23323 something starting with __ and the normal name is an alias. */
23324#if defined __stub_$ac_func || defined __stub___$ac_func
23325choke me
23326#endif
23327
23328int
23329main ()
23330{
23331return $ac_func ();
23332 ;
23333 return 0;
23334}
23335_ACEOF
23336rm -f conftest.$ac_objext conftest$ac_exeext
23337if { (ac_try="$ac_link"
23338case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341esac
23342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23343 (eval "$ac_link") 2>conftest.er1
23344 ac_status=$?
23345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } && {
23350 test -z "$ac_c_werror_flag" ||
23351 test ! -s conftest.err
23352 } && test -s conftest$ac_exeext &&
23353 $as_test_x conftest$ac_exeext; then
23354 eval "$as_ac_var=yes"
23355else
23356 echo "$as_me: failed program was:" >&5
23357sed 's/^/| /' conftest.$ac_ext >&5
23358
23359 eval "$as_ac_var=no"
23360fi
23361
23362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23363 conftest$ac_exeext conftest.$ac_ext
23364fi
23365ac_res=`eval echo '${'$as_ac_var'}'`
23366 { echo "$as_me:$LINENO: result: $ac_res" >&5
23367echo "${ECHO_T}$ac_res" >&6; }
23368if test `eval echo '${'$as_ac_var'}'` = yes; then
23369 cat >>confdefs.h <<_ACEOF
23370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23371_ACEOF
23372
23373fi
23374done
23375
23376
23377for ac_func in pam_putenv
23378do
23379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23380{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23382if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23384else
23385 cat >conftest.$ac_ext <<_ACEOF
23386/* confdefs.h. */
23387_ACEOF
23388cat confdefs.h >>conftest.$ac_ext
23389cat >>conftest.$ac_ext <<_ACEOF
23390/* end confdefs.h. */
23391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23393#define $ac_func innocuous_$ac_func
23394
23395/* System header to define __stub macros and hopefully few prototypes,
23396 which can conflict with char $ac_func (); below.
23397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23398 <limits.h> exists even on freestanding compilers. */
23399
23400#ifdef __STDC__
23401# include <limits.h>
23402#else
23403# include <assert.h>
23404#endif
23405
23406#undef $ac_func
23407
23408/* Override any GCC internal prototype to avoid an error.
23409 Use char because int might match the return type of a GCC
23410 builtin and then its argument prototype would still apply. */
23411#ifdef __cplusplus
23412extern "C"
23413#endif
23414char $ac_func ();
23415/* The GNU C library defines this for functions which it implements
23416 to always fail with ENOSYS. Some functions are actually named
23417 something starting with __ and the normal name is an alias. */
23418#if defined __stub_$ac_func || defined __stub___$ac_func
23419choke me
23420#endif
23421
23422int
23423main ()
23424{
23425return $ac_func ();
23426 ;
23427 return 0;
23428}
23429_ACEOF
23430rm -f conftest.$ac_objext conftest$ac_exeext
23431if { (ac_try="$ac_link"
23432case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435esac
23436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest$ac_exeext &&
23447 $as_test_x conftest$ac_exeext; then
23448 eval "$as_ac_var=yes"
23449else
23450 echo "$as_me: failed program was:" >&5
23451sed 's/^/| /' conftest.$ac_ext >&5
23452
23453 eval "$as_ac_var=no"
23454fi
23455
23456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23457 conftest$ac_exeext conftest.$ac_ext
23458fi
23459ac_res=`eval echo '${'$as_ac_var'}'`
23460 { echo "$as_me:$LINENO: result: $ac_res" >&5
23461echo "${ECHO_T}$ac_res" >&6; }
23462if test `eval echo '${'$as_ac_var'}'` = yes; then
23463 cat >>confdefs.h <<_ACEOF
23464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23465_ACEOF
23466
23467fi
23468done
23469
23470 LIBS="$saved_LIBS"
23471
23472 PAM_MSG="yes"
23473
23474 SSHDLIBS="$SSHDLIBS -lpam"
23475
23476cat >>confdefs.h <<\_ACEOF
23477#define USE_PAM 1
23478_ACEOF
23479
23480
23481 if test $ac_cv_lib_dl_dlopen = yes; then
23482 case "$LIBS" in
23483 *-ldl*)
23484 # libdl already in LIBS
23485 ;;
23486 *)
23487 SSHDLIBS="$SSHDLIBS -ldl"
23488 ;;
23489 esac
23490 fi
23491 fi
23492
23493
23494fi
23495
23496
23497# Check for older PAM
23498if test "x$PAM_MSG" = "xyes" ; then
23499 # Check PAM strerror arguments (old PAM)
23500 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
23501echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
23502 cat >conftest.$ac_ext <<_ACEOF
23503/* confdefs.h. */
23504_ACEOF
23505cat confdefs.h >>conftest.$ac_ext
23506cat >>conftest.$ac_ext <<_ACEOF
23507/* end confdefs.h. */
23508
23509#include <stdlib.h>
23510#if defined(HAVE_SECURITY_PAM_APPL_H)
23511#include <security/pam_appl.h>
23512#elif defined (HAVE_PAM_PAM_APPL_H)
23513#include <pam/pam_appl.h>
23514#endif
23515
23516int
23517main ()
23518{
23519
23520(void)pam_strerror((pam_handle_t *)NULL, -1);
23521
23522 ;
23523 return 0;
23524}
23525_ACEOF
23526rm -f conftest.$ac_objext
23527if { (ac_try="$ac_compile"
23528case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23531esac
23532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_compile") 2>conftest.er1
23534 ac_status=$?
23535 grep -v '^ *+' conftest.er1 >conftest.err
23536 rm -f conftest.er1
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest.$ac_objext; then
23543 { echo "$as_me:$LINENO: result: no" >&5
23544echo "${ECHO_T}no" >&6; }
23545else
23546 echo "$as_me: failed program was:" >&5
23547sed 's/^/| /' conftest.$ac_ext >&5
23548
23549
23550
23551cat >>confdefs.h <<\_ACEOF
23552#define HAVE_OLD_PAM 1
23553_ACEOF
23554
23555 { echo "$as_me:$LINENO: result: yes" >&5
23556echo "${ECHO_T}yes" >&6; }
23557 PAM_MSG="yes (old library)"
23558
23559
23560fi
23561
23562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563fi
23564
23565case "$host" in
23566*-*-cygwin*)
23567 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
23568 ;;
23569*)
23570 SSH_PRIVSEP_USER=sshd
23571 ;;
23572esac
23573
23574# Check whether --with-privsep-user was given.
23575if test "${with_privsep_user+set}" = set; then
23576 withval=$with_privsep_user;
23577 if test -n "$withval" && test "x$withval" != "xno" && \
23578 test "x${withval}" != "xyes"; then
23579 SSH_PRIVSEP_USER=$withval
23580 fi
23581
23582
23583fi
23584
23585if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
23586
23587cat >>confdefs.h <<_ACEOF
23588#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
23589_ACEOF
23590
23591else
23592
23593cat >>confdefs.h <<_ACEOF
23594#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
23595_ACEOF
23596
23597fi
23598
23599
23600if test "x$have_linux_no_new_privs" = "x1" ; then
23601{ echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5
23602echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; }
23603if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605else
23606 cat >conftest.$ac_ext <<_ACEOF
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612
23613 #include <sys/types.h>
23614 #include <linux/seccomp.h>
23615
23616
23617int
23618main ()
23619{
23620#ifndef SECCOMP_MODE_FILTER
23621 (void) SECCOMP_MODE_FILTER;
23622#endif
23623
23624 ;
23625 return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext
23629if { (ac_try="$ac_compile"
23630case "(($ac_try" in
23631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632 *) ac_try_echo=$ac_try;;
23633esac
23634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635 (eval "$ac_compile") 2>conftest.er1
23636 ac_status=$?
23637 grep -v '^ *+' conftest.er1 >conftest.err
23638 rm -f conftest.er1
23639 cat conftest.err >&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } && {
23642 test -z "$ac_c_werror_flag" ||
23643 test ! -s conftest.err
23644 } && test -s conftest.$ac_objext; then
23645 ac_cv_have_decl_SECCOMP_MODE_FILTER=yes
23646else
23647 echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650 ac_cv_have_decl_SECCOMP_MODE_FILTER=no
23651fi
23652
23653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23654fi
23655{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5
23656echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; }
23657if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then
23658 have_seccomp_filter=1
23659fi
23660
23661fi
23662if test "x$have_seccomp_filter" = "x1" ; then
23663{ echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5
23664echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; }
23665cat >conftest.$ac_ext <<_ACEOF
23666/* confdefs.h. */
23667_ACEOF
23668cat confdefs.h >>conftest.$ac_ext
23669cat >>conftest.$ac_ext <<_ACEOF
23670/* end confdefs.h. */
23671
23672 #include <errno.h>
23673 #include <elf.h>
23674 #include <linux/audit.h>
23675 #include <linux/seccomp.h>
23676 #include <stdlib.h>
23677 #include <sys/prctl.h>
23678
23679int
23680main ()
23681{
23682 int i = $seccomp_audit_arch;
23683 errno = 0;
23684 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
23685 exit(errno == EFAULT ? 0 : 1);
23686 ;
23687 return 0;
23688}
23689_ACEOF
23690rm -f conftest.$ac_objext conftest$ac_exeext
23691if { (ac_try="$ac_link"
23692case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695esac
23696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_link") 2>conftest.er1
23698 ac_status=$?
23699 grep -v '^ *+' conftest.er1 >conftest.err
23700 rm -f conftest.er1
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && {
23704 test -z "$ac_c_werror_flag" ||
23705 test ! -s conftest.err
23706 } && test -s conftest$ac_exeext &&
23707 $as_test_x conftest$ac_exeext; then
23708 { echo "$as_me:$LINENO: result: yes" >&5
23709echo "${ECHO_T}yes" >&6; }
23710else
23711 echo "$as_me: failed program was:" >&5
23712sed 's/^/| /' conftest.$ac_ext >&5
23713
23714
23715 { echo "$as_me:$LINENO: result: no" >&5
23716echo "${ECHO_T}no" >&6; }
23717 # Disable seccomp filter as a target
23718 have_seccomp_filter=0
23719
23720
23721fi
23722
23723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23724 conftest$ac_exeext conftest.$ac_ext
23725fi
23726
23727# Decide which sandbox style to use
23728sandbox_arg=""
23729
23730# Check whether --with-sandbox was given.
23731if test "${with_sandbox+set}" = set; then
23732 withval=$with_sandbox;
23733 if test "x$withval" = "xyes" ; then
23734 sandbox_arg=""
23735 else
23736 sandbox_arg="$withval"
23737 fi
23738
23739
23740fi
23741
23742
23743# Some platforms (seems to be the ones that have a kernel poll(2)-type
23744# function with which they implement select(2)) use an extra file descriptor
23745# when calling select(2), which means we can't use the rlimit sandbox.
23746{ echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5
23747echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; }
23748if test "$cross_compiling" = yes; then
23749 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23750echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23751
23752else
23753 cat >conftest.$ac_ext <<_ACEOF
23754/* confdefs.h. */
23755_ACEOF
23756cat confdefs.h >>conftest.$ac_ext
23757cat >>conftest.$ac_ext <<_ACEOF
23758/* end confdefs.h. */
23759
23760#include <sys/types.h>
23761#ifdef HAVE_SYS_TIME_H
23762# include <sys/time.h>
23763#endif
23764#include <sys/resource.h>
23765#ifdef HAVE_SYS_SELECT_H
23766# include <sys/select.h>
23767#endif
23768#include <errno.h>
23769#include <fcntl.h>
23770#include <stdlib.h>
23771
23772int
23773main ()
23774{
23775
23776 struct rlimit rl_zero;
23777 int fd, r;
23778 fd_set fds;
23779 struct timeval tv;
23780
23781 fd = open("/dev/null", O_RDONLY);
23782 FD_ZERO(&fds);
23783 FD_SET(fd, &fds);
23784 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23785 setrlimit(RLIMIT_FSIZE, &rl_zero);
23786 setrlimit(RLIMIT_NOFILE, &rl_zero);
23787 tv.tv_sec = 1;
23788 tv.tv_usec = 0;
23789 r = select(fd+1, &fds, NULL, NULL, &tv);
23790 exit (r == -1 ? 1 : 0);
23791
23792 ;
23793 return 0;
23794}
23795_ACEOF
23796rm -f conftest$ac_exeext
23797if { (ac_try="$ac_link"
23798case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23801esac
23802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_link") 2>&5
23804 ac_status=$?
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23807 { (case "(($ac_try" in
23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809 *) ac_try_echo=$ac_try;;
23810esac
23811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_try") 2>&5
23813 ac_status=$?
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); }; }; then
23816 { echo "$as_me:$LINENO: result: yes" >&5
23817echo "${ECHO_T}yes" >&6; }
23818 select_works_with_rlimit=yes
23819else
23820 echo "$as_me: program exited with status $ac_status" >&5
23821echo "$as_me: failed program was:" >&5
23822sed 's/^/| /' conftest.$ac_ext >&5
23823
23824( exit $ac_status )
23825{ echo "$as_me:$LINENO: result: no" >&5
23826echo "${ECHO_T}no" >&6; }
23827 select_works_with_rlimit=no
23828fi
23829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23830fi
23831
23832
23833
23834{ echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
23835echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; }
23836if test "$cross_compiling" = yes; then
23837 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23838echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23839
23840else
23841 cat >conftest.$ac_ext <<_ACEOF
23842/* confdefs.h. */
23843_ACEOF
23844cat confdefs.h >>conftest.$ac_ext
23845cat >>conftest.$ac_ext <<_ACEOF
23846/* end confdefs.h. */
23847
23848#include <sys/types.h>
23849#ifdef HAVE_SYS_TIME_H
23850# include <sys/time.h>
23851#endif
23852#include <sys/resource.h>
23853#include <errno.h>
23854#include <stdlib.h>
23855
23856int
23857main ()
23858{
23859
23860 struct rlimit rl_zero;
23861 int fd, r;
23862 fd_set fds;
23863
23864 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23865 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
23866 exit (r == -1 ? 1 : 0);
23867
23868 ;
23869 return 0;
23870}
23871_ACEOF
23872rm -f conftest$ac_exeext
23873if { (ac_try="$ac_link"
23874case "(($ac_try" in
23875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876 *) ac_try_echo=$ac_try;;
23877esac
23878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23879 (eval "$ac_link") 2>&5
23880 ac_status=$?
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23883 { (case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23886esac
23887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888 (eval "$ac_try") 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 { echo "$as_me:$LINENO: result: yes" >&5
23893echo "${ECHO_T}yes" >&6; }
23894 rlimit_nofile_zero_works=yes
23895else
23896 echo "$as_me: program exited with status $ac_status" >&5
23897echo "$as_me: failed program was:" >&5
23898sed 's/^/| /' conftest.$ac_ext >&5
23899
23900( exit $ac_status )
23901{ echo "$as_me:$LINENO: result: no" >&5
23902echo "${ECHO_T}no" >&6; }
23903 rlimit_nofile_zero_works=no
23904fi
23905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23906fi
23907
23908
23909
23910{ echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5
23911echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; }
23912if test "$cross_compiling" = yes; then
23913 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23914echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23915
23916else
23917 cat >conftest.$ac_ext <<_ACEOF
23918/* confdefs.h. */
23919_ACEOF
23920cat confdefs.h >>conftest.$ac_ext
23921cat >>conftest.$ac_ext <<_ACEOF
23922/* end confdefs.h. */
23923
23924#include <sys/types.h>
23925#include <sys/resource.h>
23926#include <stdlib.h>
23927
23928int
23929main ()
23930{
23931
23932 struct rlimit rl_zero;
23933
23934 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23935 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
23936
23937 ;
23938 return 0;
23939}
23940_ACEOF
23941rm -f conftest$ac_exeext
23942if { (ac_try="$ac_link"
23943case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23946esac
23947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_link") 2>&5
23949 ac_status=$?
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23952 { (case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23955esac
23956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_try") 2>&5
23958 ac_status=$?
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23961 { echo "$as_me:$LINENO: result: yes" >&5
23962echo "${ECHO_T}yes" >&6; }
23963else
23964 echo "$as_me: program exited with status $ac_status" >&5
23965echo "$as_me: failed program was:" >&5
23966sed 's/^/| /' conftest.$ac_ext >&5
23967
23968( exit $ac_status )
23969{ echo "$as_me:$LINENO: result: no" >&5
23970echo "${ECHO_T}no" >&6; }
23971
23972cat >>confdefs.h <<\_ACEOF
23973#define SANDBOX_SKIP_RLIMIT_FSIZE 1
23974_ACEOF
23975
23976fi
23977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23978fi
23979
23980
23981
23982if test "x$sandbox_arg" = "xsystrace" || \
23983 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
23984 test "x$have_systr_policy_kill" != "x1" && \
23985 { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5
23986echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;}
23987 { (exit 1); exit 1; }; }
23988 SANDBOX_STYLE="systrace"
23989
23990cat >>confdefs.h <<\_ACEOF
23991#define SANDBOX_SYSTRACE 1
23992_ACEOF
23993
23994elif test "x$sandbox_arg" = "xdarwin" || \
23995 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
23996 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
23997 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
23998 "x$ac_cv_header_sandbox_h" != "xyes" && \
23999 { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5
24000echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;}
24001 { (exit 1); exit 1; }; }
24002 SANDBOX_STYLE="darwin"
24003
24004cat >>confdefs.h <<\_ACEOF
24005#define SANDBOX_DARWIN 1
24006_ACEOF
24007
24008elif test "x$sandbox_arg" = "xseccomp_filter" || \
24009 ( test -z "$sandbox_arg" && \
24010 test "x$have_seccomp_filter" = "x1" && \
24011 test "x$ac_cv_header_elf_h" = "xyes" && \
24012 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
24013 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
24014 test "x$seccomp_audit_arch" != "x" && \
24015 test "x$have_linux_no_new_privs" = "x1" && \
24016 test "x$ac_cv_func_prctl" = "xyes" ) ; then
24017 test "x$seccomp_audit_arch" = "x" && \
24018 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5
24019echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;}
24020 { (exit 1); exit 1; }; }
24021 test "x$have_linux_no_new_privs" != "x1" && \
24022 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5
24023echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;}
24024 { (exit 1); exit 1; }; }
24025 test "x$have_seccomp_filter" != "x1" && \
24026 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5
24027echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;}
24028 { (exit 1); exit 1; }; }
24029 test "x$ac_cv_func_prctl" != "xyes" && \
24030 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5
24031echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;}
24032 { (exit 1); exit 1; }; }
24033 SANDBOX_STYLE="seccomp_filter"
24034
24035cat >>confdefs.h <<\_ACEOF
24036#define SANDBOX_SECCOMP_FILTER 1
24037_ACEOF
24038
24039elif test "x$sandbox_arg" = "xcapsicum" || \
24040 ( test -z "$sandbox_arg" && \
24041 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
24042 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
24043 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
24044 { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5
24045echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;}
24046 { (exit 1); exit 1; }; }
24047 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
24048 { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5
24049echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;}
24050 { (exit 1); exit 1; }; }
24051 SANDBOX_STYLE="capsicum"
24052
24053cat >>confdefs.h <<\_ACEOF
24054#define SANDBOX_CAPSICUM 1
24055_ACEOF
24056
24057elif test "x$sandbox_arg" = "xrlimit" || \
24058 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
24059 test "x$select_works_with_rlimit" = "xyes" && \
24060 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
24061 test "x$ac_cv_func_setrlimit" != "xyes" && \
24062 { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5
24063echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;}
24064 { (exit 1); exit 1; }; }
24065 test "x$select_works_with_rlimit" != "xyes" && \
24066 { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5
24067echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;}
24068 { (exit 1); exit 1; }; }
24069 SANDBOX_STYLE="rlimit"
24070
24071cat >>confdefs.h <<\_ACEOF
24072#define SANDBOX_RLIMIT 1
24073_ACEOF
24074
24075elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
24076 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
24077 SANDBOX_STYLE="none"
24078
24079cat >>confdefs.h <<\_ACEOF
24080#define SANDBOX_NULL 1
24081_ACEOF
24082
24083else
24084 { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5
24085echo "$as_me: error: unsupported --with-sandbox" >&2;}
24086 { (exit 1); exit 1; }; }
24087fi
24088
24089# Cheap hack to ensure NEWS-OS libraries are arranged right.
24090if test ! -z "$SONY" ; then
24091 LIBS="$LIBS -liberty";
24092fi
24093
24094# Check for long long datatypes
24095{ echo "$as_me:$LINENO: checking for long long" >&5
24096echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24097if test "${ac_cv_type_long_long+set}" = set; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24099else
24100 cat >conftest.$ac_ext <<_ACEOF
24101/* confdefs.h. */
24102_ACEOF
24103cat confdefs.h >>conftest.$ac_ext
24104cat >>conftest.$ac_ext <<_ACEOF
24105/* end confdefs.h. */
24106$ac_includes_default
24107typedef long long ac__type_new_;
24108int
24109main ()
24110{
24111if ((ac__type_new_ *) 0)
24112 return 0;
24113if (sizeof (ac__type_new_))
24114 return 0;
24115 ;
24116 return 0;
24117}
24118_ACEOF
24119rm -f conftest.$ac_objext
24120if { (ac_try="$ac_compile"
24121case "(($ac_try" in
24122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24124esac
24125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_compile") 2>conftest.er1
24127 ac_status=$?
24128 grep -v '^ *+' conftest.er1 >conftest.err
24129 rm -f conftest.er1
24130 cat conftest.err >&5
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); } && {
24133 test -z "$ac_c_werror_flag" ||
24134 test ! -s conftest.err
24135 } && test -s conftest.$ac_objext; then
24136 ac_cv_type_long_long=yes
24137else
24138 echo "$as_me: failed program was:" >&5
24139sed 's/^/| /' conftest.$ac_ext >&5
24140
24141 ac_cv_type_long_long=no
24142fi
24143
24144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145fi
24146{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24147echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24148if test $ac_cv_type_long_long = yes; then
24149
24150cat >>confdefs.h <<_ACEOF
24151#define HAVE_LONG_LONG 1
24152_ACEOF
24153
24154
24155fi
24156{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
24157echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
24158if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24160else
24161 cat >conftest.$ac_ext <<_ACEOF
24162/* confdefs.h. */
24163_ACEOF
24164cat confdefs.h >>conftest.$ac_ext
24165cat >>conftest.$ac_ext <<_ACEOF
24166/* end confdefs.h. */
24167$ac_includes_default
24168typedef unsigned long long ac__type_new_;
24169int
24170main ()
24171{
24172if ((ac__type_new_ *) 0)
24173 return 0;
24174if (sizeof (ac__type_new_))
24175 return 0;
24176 ;
24177 return 0;
24178}
24179_ACEOF
24180rm -f conftest.$ac_objext
24181if { (ac_try="$ac_compile"
24182case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24185esac
24186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24197 ac_cv_type_unsigned_long_long=yes
24198else
24199 echo "$as_me: failed program was:" >&5
24200sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ac_cv_type_unsigned_long_long=no
24203fi
24204
24205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206fi
24207{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24208echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
24209if test $ac_cv_type_unsigned_long_long = yes; then
24210
24211cat >>confdefs.h <<_ACEOF
24212#define HAVE_UNSIGNED_LONG_LONG 1
24213_ACEOF
24214
24215
24216fi
24217{ echo "$as_me:$LINENO: checking for long double" >&5
24218echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
24219if test "${ac_cv_type_long_double+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24221else
24222 cat >conftest.$ac_ext <<_ACEOF
24223/* confdefs.h. */
24224_ACEOF
24225cat confdefs.h >>conftest.$ac_ext
24226cat >>conftest.$ac_ext <<_ACEOF
24227/* end confdefs.h. */
24228$ac_includes_default
24229typedef long double ac__type_new_;
24230int
24231main ()
24232{
24233if ((ac__type_new_ *) 0)
24234 return 0;
24235if (sizeof (ac__type_new_))
24236 return 0;
24237 ;
24238 return 0;
24239}
24240_ACEOF
24241rm -f conftest.$ac_objext
24242if { (ac_try="$ac_compile"
24243case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24246esac
24247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_compile") 2>conftest.er1
24249 ac_status=$?
24250 grep -v '^ *+' conftest.er1 >conftest.err
24251 rm -f conftest.er1
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest.$ac_objext; then
24258 ac_cv_type_long_double=yes
24259else
24260 echo "$as_me: failed program was:" >&5
24261sed 's/^/| /' conftest.$ac_ext >&5
24262
24263 ac_cv_type_long_double=no
24264fi
24265
24266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267fi
24268{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
24269echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
24270if test $ac_cv_type_long_double = yes; then
24271
24272cat >>confdefs.h <<_ACEOF
24273#define HAVE_LONG_DOUBLE 1
24274_ACEOF
24275
24276
24277fi
24278
24279
24280# Check datatype sizes
24281{ echo "$as_me:$LINENO: checking for short int" >&5
24282echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24283if test "${ac_cv_type_short_int+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24285else
24286 cat >conftest.$ac_ext <<_ACEOF
24287/* confdefs.h. */
24288_ACEOF
24289cat confdefs.h >>conftest.$ac_ext
24290cat >>conftest.$ac_ext <<_ACEOF
24291/* end confdefs.h. */
24292$ac_includes_default
24293typedef short int ac__type_new_;
24294int
24295main ()
24296{
24297if ((ac__type_new_ *) 0)
24298 return 0;
24299if (sizeof (ac__type_new_))
24300 return 0;
24301 ;
24302 return 0;
24303}
24304_ACEOF
24305rm -f conftest.$ac_objext
24306if { (ac_try="$ac_compile"
24307case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24310esac
24311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_compile") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest.$ac_objext; then
24322 ac_cv_type_short_int=yes
24323else
24324 echo "$as_me: failed program was:" >&5
24325sed 's/^/| /' conftest.$ac_ext >&5
24326
24327 ac_cv_type_short_int=no
24328fi
24329
24330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331fi
24332{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24333echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24334
24335# The cast to long int works around a bug in the HP C Compiler
24336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24338# This bug is HP SR number 8606223364.
24339{ echo "$as_me:$LINENO: checking size of short int" >&5
24340echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24341if test "${ac_cv_sizeof_short_int+set}" = set; then
24342 echo $ECHO_N "(cached) $ECHO_C" >&6
24343else
24344 if test "$cross_compiling" = yes; then
24345 # Depending upon the size, compute the lo and hi bounds.
24346cat >conftest.$ac_ext <<_ACEOF
24347/* confdefs.h. */
24348_ACEOF
24349cat confdefs.h >>conftest.$ac_ext
24350cat >>conftest.$ac_ext <<_ACEOF
24351/* end confdefs.h. */
24352$ac_includes_default
24353 typedef short int ac__type_sizeof_;
24354int
24355main ()
24356{
24357static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24358test_array [0] = 0
24359
24360 ;
24361 return 0;
24362}
24363_ACEOF
24364rm -f conftest.$ac_objext
24365if { (ac_try="$ac_compile"
24366case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24369esac
24370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_compile") 2>conftest.er1
24372 ac_status=$?
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && {
24378 test -z "$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24380 } && test -s conftest.$ac_objext; then
24381 ac_lo=0 ac_mid=0
24382 while :; do
24383 cat >conftest.$ac_ext <<_ACEOF
24384/* confdefs.h. */
24385_ACEOF
24386cat confdefs.h >>conftest.$ac_ext
24387cat >>conftest.$ac_ext <<_ACEOF
24388/* end confdefs.h. */
24389$ac_includes_default
24390 typedef short int ac__type_sizeof_;
24391int
24392main ()
24393{
24394static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24395test_array [0] = 0
24396
24397 ;
24398 return 0;
24399}
24400_ACEOF
24401rm -f conftest.$ac_objext
24402if { (ac_try="$ac_compile"
24403case "(($ac_try" in
24404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405 *) ac_try_echo=$ac_try;;
24406esac
24407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408 (eval "$ac_compile") 2>conftest.er1
24409 ac_status=$?
24410 grep -v '^ *+' conftest.er1 >conftest.err
24411 rm -f conftest.er1
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } && {
24415 test -z "$ac_c_werror_flag" ||
24416 test ! -s conftest.err
24417 } && test -s conftest.$ac_objext; then
24418 ac_hi=$ac_mid; break
24419else
24420 echo "$as_me: failed program was:" >&5
24421sed 's/^/| /' conftest.$ac_ext >&5
24422
24423 ac_lo=`expr $ac_mid + 1`
24424 if test $ac_lo -le $ac_mid; then
24425 ac_lo= ac_hi=
24426 break
24427 fi
24428 ac_mid=`expr 2 '*' $ac_mid + 1`
24429fi
24430
24431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432 done
24433else
24434 echo "$as_me: failed program was:" >&5
24435sed 's/^/| /' conftest.$ac_ext >&5
24436
24437 cat >conftest.$ac_ext <<_ACEOF
24438/* confdefs.h. */
24439_ACEOF
24440cat confdefs.h >>conftest.$ac_ext
24441cat >>conftest.$ac_ext <<_ACEOF
24442/* end confdefs.h. */
24443$ac_includes_default
24444 typedef short int ac__type_sizeof_;
24445int
24446main ()
24447{
24448static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24449test_array [0] = 0
24450
24451 ;
24452 return 0;
24453}
24454_ACEOF
24455rm -f conftest.$ac_objext
24456if { (ac_try="$ac_compile"
24457case "(($ac_try" in
24458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24460esac
24461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462 (eval "$ac_compile") 2>conftest.er1
24463 ac_status=$?
24464 grep -v '^ *+' conftest.er1 >conftest.err
24465 rm -f conftest.er1
24466 cat conftest.err >&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } && {
24469 test -z "$ac_c_werror_flag" ||
24470 test ! -s conftest.err
24471 } && test -s conftest.$ac_objext; then
24472 ac_hi=-1 ac_mid=-1
24473 while :; do
24474 cat >conftest.$ac_ext <<_ACEOF
24475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
24480$ac_includes_default
24481 typedef short int ac__type_sizeof_;
24482int
24483main ()
24484{
24485static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24486test_array [0] = 0
24487
24488 ;
24489 return 0;
24490}
24491_ACEOF
24492rm -f conftest.$ac_objext
24493if { (ac_try="$ac_compile"
24494case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24497esac
24498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_compile") 2>conftest.er1
24500 ac_status=$?
24501 grep -v '^ *+' conftest.er1 >conftest.err
24502 rm -f conftest.er1
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && {
24506 test -z "$ac_c_werror_flag" ||
24507 test ! -s conftest.err
24508 } && test -s conftest.$ac_objext; then
24509 ac_lo=$ac_mid; break
24510else
24511 echo "$as_me: failed program was:" >&5
24512sed 's/^/| /' conftest.$ac_ext >&5
24513
24514 ac_hi=`expr '(' $ac_mid ')' - 1`
24515 if test $ac_mid -le $ac_hi; then
24516 ac_lo= ac_hi=
24517 break
24518 fi
24519 ac_mid=`expr 2 '*' $ac_mid`
24520fi
24521
24522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24523 done
24524else
24525 echo "$as_me: failed program was:" >&5
24526sed 's/^/| /' conftest.$ac_ext >&5
24527
24528 ac_lo= ac_hi=
24529fi
24530
24531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532fi
24533
24534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24535# Binary search between lo and hi bounds.
24536while test "x$ac_lo" != "x$ac_hi"; do
24537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24538 cat >conftest.$ac_ext <<_ACEOF
24539/* confdefs.h. */
24540_ACEOF
24541cat confdefs.h >>conftest.$ac_ext
24542cat >>conftest.$ac_ext <<_ACEOF
24543/* end confdefs.h. */
24544$ac_includes_default
24545 typedef short int ac__type_sizeof_;
24546int
24547main ()
24548{
24549static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24550test_array [0] = 0
24551
24552 ;
24553 return 0;
24554}
24555_ACEOF
24556rm -f conftest.$ac_objext
24557if { (ac_try="$ac_compile"
24558case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561esac
24562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24573 ac_hi=$ac_mid
24574else
24575 echo "$as_me: failed program was:" >&5
24576sed 's/^/| /' conftest.$ac_ext >&5
24577
24578 ac_lo=`expr '(' $ac_mid ')' + 1`
24579fi
24580
24581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582done
24583case $ac_lo in
24584?*) ac_cv_sizeof_short_int=$ac_lo;;
24585'') if test "$ac_cv_type_short_int" = yes; then
24586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24587See \`config.log' for more details." >&5
24588echo "$as_me: error: cannot compute sizeof (short int)
24589See \`config.log' for more details." >&2;}
24590 { (exit 77); exit 77; }; }
24591 else
24592 ac_cv_sizeof_short_int=0
24593 fi ;;
24594esac
24595else
24596 cat >conftest.$ac_ext <<_ACEOF
24597/* confdefs.h. */
24598_ACEOF
24599cat confdefs.h >>conftest.$ac_ext
24600cat >>conftest.$ac_ext <<_ACEOF
24601/* end confdefs.h. */
24602$ac_includes_default
24603 typedef short int ac__type_sizeof_;
24604static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24605static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24606#include <stdio.h>
24607#include <stdlib.h>
24608int
24609main ()
24610{
24611
24612 FILE *f = fopen ("conftest.val", "w");
24613 if (! f)
24614 return 1;
24615 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24616 {
24617 long int i = longval ();
24618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24619 return 1;
24620 fprintf (f, "%ld\n", i);
24621 }
24622 else
24623 {
24624 unsigned long int i = ulongval ();
24625 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24626 return 1;
24627 fprintf (f, "%lu\n", i);
24628 }
24629 return ferror (f) || fclose (f) != 0;
24630
24631 ;
24632 return 0;
24633}
24634_ACEOF
24635rm -f conftest$ac_exeext
24636if { (ac_try="$ac_link"
24637case "(($ac_try" in
24638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639 *) ac_try_echo=$ac_try;;
24640esac
24641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24642 (eval "$ac_link") 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24646 { (case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24649esac
24650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_try") 2>&5
24652 ac_status=$?
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 ac_cv_sizeof_short_int=`cat conftest.val`
24656else
24657 echo "$as_me: program exited with status $ac_status" >&5
24658echo "$as_me: failed program was:" >&5
24659sed 's/^/| /' conftest.$ac_ext >&5
24660
24661( exit $ac_status )
24662if test "$ac_cv_type_short_int" = yes; then
24663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24664See \`config.log' for more details." >&5
24665echo "$as_me: error: cannot compute sizeof (short int)
24666See \`config.log' for more details." >&2;}
24667 { (exit 77); exit 77; }; }
24668 else
24669 ac_cv_sizeof_short_int=0
24670 fi
24671fi
24672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24673fi
24674rm -f conftest.val
24675fi
24676{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24677echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24678
24679
24680
24681cat >>confdefs.h <<_ACEOF
24682#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24683_ACEOF
24684
24685
24686{ echo "$as_me:$LINENO: checking for int" >&5
24687echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24688if test "${ac_cv_type_int+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24690else
24691 cat >conftest.$ac_ext <<_ACEOF
24692/* confdefs.h. */
24693_ACEOF
24694cat confdefs.h >>conftest.$ac_ext
24695cat >>conftest.$ac_ext <<_ACEOF
24696/* end confdefs.h. */
24697$ac_includes_default
24698typedef int ac__type_new_;
24699int
24700main ()
24701{
24702if ((ac__type_new_ *) 0)
24703 return 0;
24704if (sizeof (ac__type_new_))
24705 return 0;
24706 ;
24707 return 0;
24708}
24709_ACEOF
24710rm -f conftest.$ac_objext
24711if { (ac_try="$ac_compile"
24712case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24715esac
24716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_compile") 2>conftest.er1
24718 ac_status=$?
24719 grep -v '^ *+' conftest.er1 >conftest.err
24720 rm -f conftest.er1
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } && {
24724 test -z "$ac_c_werror_flag" ||
24725 test ! -s conftest.err
24726 } && test -s conftest.$ac_objext; then
24727 ac_cv_type_int=yes
24728else
24729 echo "$as_me: failed program was:" >&5
24730sed 's/^/| /' conftest.$ac_ext >&5
24731
24732 ac_cv_type_int=no
24733fi
24734
24735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736fi
24737{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24738echo "${ECHO_T}$ac_cv_type_int" >&6; }
24739
24740# The cast to long int works around a bug in the HP C Compiler
24741# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24742# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24743# This bug is HP SR number 8606223364.
24744{ echo "$as_me:$LINENO: checking size of int" >&5
24745echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24746if test "${ac_cv_sizeof_int+set}" = set; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
24748else
24749 if test "$cross_compiling" = yes; then
24750 # Depending upon the size, compute the lo and hi bounds.
24751cat >conftest.$ac_ext <<_ACEOF
24752/* confdefs.h. */
24753_ACEOF
24754cat confdefs.h >>conftest.$ac_ext
24755cat >>conftest.$ac_ext <<_ACEOF
24756/* end confdefs.h. */
24757$ac_includes_default
24758 typedef int ac__type_sizeof_;
24759int
24760main ()
24761{
24762static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24763test_array [0] = 0
24764
24765 ;
24766 return 0;
24767}
24768_ACEOF
24769rm -f conftest.$ac_objext
24770if { (ac_try="$ac_compile"
24771case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24774esac
24775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_compile") 2>conftest.er1
24777 ac_status=$?
24778 grep -v '^ *+' conftest.er1 >conftest.err
24779 rm -f conftest.er1
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.$ac_objext; then
24786 ac_lo=0 ac_mid=0
24787 while :; do
24788 cat >conftest.$ac_ext <<_ACEOF
24789/* confdefs.h. */
24790_ACEOF
24791cat confdefs.h >>conftest.$ac_ext
24792cat >>conftest.$ac_ext <<_ACEOF
24793/* end confdefs.h. */
24794$ac_includes_default
24795 typedef int ac__type_sizeof_;
24796int
24797main ()
24798{
24799static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24800test_array [0] = 0
24801
24802 ;
24803 return 0;
24804}
24805_ACEOF
24806rm -f conftest.$ac_objext
24807if { (ac_try="$ac_compile"
24808case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24811esac
24812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24814 ac_status=$?
24815 grep -v '^ *+' conftest.er1 >conftest.err
24816 rm -f conftest.er1
24817 cat conftest.err >&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.$ac_objext; then
24823 ac_hi=$ac_mid; break
24824else
24825 echo "$as_me: failed program was:" >&5
24826sed 's/^/| /' conftest.$ac_ext >&5
24827
24828 ac_lo=`expr $ac_mid + 1`
24829 if test $ac_lo -le $ac_mid; then
24830 ac_lo= ac_hi=
24831 break
24832 fi
24833 ac_mid=`expr 2 '*' $ac_mid + 1`
24834fi
24835
24836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 done
24838else
24839 echo "$as_me: failed program was:" >&5
24840sed 's/^/| /' conftest.$ac_ext >&5
24841
24842 cat >conftest.$ac_ext <<_ACEOF
24843/* confdefs.h. */
24844_ACEOF
24845cat confdefs.h >>conftest.$ac_ext
24846cat >>conftest.$ac_ext <<_ACEOF
24847/* end confdefs.h. */
24848$ac_includes_default
24849 typedef int ac__type_sizeof_;
24850int
24851main ()
24852{
24853static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24854test_array [0] = 0
24855
24856 ;
24857 return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext
24861if { (ac_try="$ac_compile"
24862case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24865esac
24866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24868 ac_status=$?
24869 grep -v '^ *+' conftest.er1 >conftest.err
24870 rm -f conftest.er1
24871 cat conftest.err >&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_c_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 ac_hi=-1 ac_mid=-1
24878 while :; do
24879 cat >conftest.$ac_ext <<_ACEOF
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
24885$ac_includes_default
24886 typedef int ac__type_sizeof_;
24887int
24888main ()
24889{
24890static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24891test_array [0] = 0
24892
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897rm -f conftest.$ac_objext
24898if { (ac_try="$ac_compile"
24899case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24902esac
24903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24904 (eval "$ac_compile") 2>conftest.er1
24905 ac_status=$?
24906 grep -v '^ *+' conftest.er1 >conftest.err
24907 rm -f conftest.er1
24908 cat conftest.err >&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } && {
24911 test -z "$ac_c_werror_flag" ||
24912 test ! -s conftest.err
24913 } && test -s conftest.$ac_objext; then
24914 ac_lo=$ac_mid; break
24915else
24916 echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919 ac_hi=`expr '(' $ac_mid ')' - 1`
24920 if test $ac_mid -le $ac_hi; then
24921 ac_lo= ac_hi=
24922 break
24923 fi
24924 ac_mid=`expr 2 '*' $ac_mid`
24925fi
24926
24927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928 done
24929else
24930 echo "$as_me: failed program was:" >&5
24931sed 's/^/| /' conftest.$ac_ext >&5
24932
24933 ac_lo= ac_hi=
24934fi
24935
24936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937fi
24938
24939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24940# Binary search between lo and hi bounds.
24941while test "x$ac_lo" != "x$ac_hi"; do
24942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24943 cat >conftest.$ac_ext <<_ACEOF
24944/* confdefs.h. */
24945_ACEOF
24946cat confdefs.h >>conftest.$ac_ext
24947cat >>conftest.$ac_ext <<_ACEOF
24948/* end confdefs.h. */
24949$ac_includes_default
24950 typedef int ac__type_sizeof_;
24951int
24952main ()
24953{
24954static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24955test_array [0] = 0
24956
24957 ;
24958 return 0;
24959}
24960_ACEOF
24961rm -f conftest.$ac_objext
24962if { (ac_try="$ac_compile"
24963case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24966esac
24967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_compile") 2>conftest.er1
24969 ac_status=$?
24970 grep -v '^ *+' conftest.er1 >conftest.err
24971 rm -f conftest.er1
24972 cat conftest.err >&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest.$ac_objext; then
24978 ac_hi=$ac_mid
24979else
24980 echo "$as_me: failed program was:" >&5
24981sed 's/^/| /' conftest.$ac_ext >&5
24982
24983 ac_lo=`expr '(' $ac_mid ')' + 1`
24984fi
24985
24986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987done
24988case $ac_lo in
24989?*) ac_cv_sizeof_int=$ac_lo;;
24990'') if test "$ac_cv_type_int" = yes; then
24991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24992See \`config.log' for more details." >&5
24993echo "$as_me: error: cannot compute sizeof (int)
24994See \`config.log' for more details." >&2;}
24995 { (exit 77); exit 77; }; }
24996 else
24997 ac_cv_sizeof_int=0
24998 fi ;;
24999esac
25000else
25001 cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h. */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h. */
25007$ac_includes_default
25008 typedef int ac__type_sizeof_;
25009static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25010static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25011#include <stdio.h>
25012#include <stdlib.h>
25013int
25014main ()
25015{
25016
25017 FILE *f = fopen ("conftest.val", "w");
25018 if (! f)
25019 return 1;
25020 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25021 {
25022 long int i = longval ();
25023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25024 return 1;
25025 fprintf (f, "%ld\n", i);
25026 }
25027 else
25028 {
25029 unsigned long int i = ulongval ();
25030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25031 return 1;
25032 fprintf (f, "%lu\n", i);
25033 }
25034 return ferror (f) || fclose (f) != 0;
25035
25036 ;
25037 return 0;
25038}
25039_ACEOF
25040rm -f conftest$ac_exeext
25041if { (ac_try="$ac_link"
25042case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25045esac
25046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047 (eval "$ac_link") 2>&5
25048 ac_status=$?
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25051 { (case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25054esac
25055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056 (eval "$ac_try") 2>&5
25057 ac_status=$?
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }; }; then
25060 ac_cv_sizeof_int=`cat conftest.val`
25061else
25062 echo "$as_me: program exited with status $ac_status" >&5
25063echo "$as_me: failed program was:" >&5
25064sed 's/^/| /' conftest.$ac_ext >&5
25065
25066( exit $ac_status )
25067if test "$ac_cv_type_int" = yes; then
25068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25069See \`config.log' for more details." >&5
25070echo "$as_me: error: cannot compute sizeof (int)
25071See \`config.log' for more details." >&2;}
25072 { (exit 77); exit 77; }; }
25073 else
25074 ac_cv_sizeof_int=0
25075 fi
25076fi
25077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25078fi
25079rm -f conftest.val
25080fi
25081{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25082echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25083
25084
25085
25086cat >>confdefs.h <<_ACEOF
25087#define SIZEOF_INT $ac_cv_sizeof_int
25088_ACEOF
25089
25090
25091{ echo "$as_me:$LINENO: checking for long int" >&5
25092echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
25093if test "${ac_cv_type_long_int+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095else
25096 cat >conftest.$ac_ext <<_ACEOF
25097/* confdefs.h. */
25098_ACEOF
25099cat confdefs.h >>conftest.$ac_ext
25100cat >>conftest.$ac_ext <<_ACEOF
25101/* end confdefs.h. */
25102$ac_includes_default
25103typedef long int ac__type_new_;
25104int
25105main ()
25106{
25107if ((ac__type_new_ *) 0)
25108 return 0;
25109if (sizeof (ac__type_new_))
25110 return 0;
25111 ;
25112 return 0;
25113}
25114_ACEOF
25115rm -f conftest.$ac_objext
25116if { (ac_try="$ac_compile"
25117case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25120esac
25121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_compile") 2>conftest.er1
25123 ac_status=$?
25124 grep -v '^ *+' conftest.er1 >conftest.err
25125 rm -f conftest.er1
25126 cat conftest.err >&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } && {
25129 test -z "$ac_c_werror_flag" ||
25130 test ! -s conftest.err
25131 } && test -s conftest.$ac_objext; then
25132 ac_cv_type_long_int=yes
25133else
25134 echo "$as_me: failed program was:" >&5
25135sed 's/^/| /' conftest.$ac_ext >&5
25136
25137 ac_cv_type_long_int=no
25138fi
25139
25140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25141fi
25142{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
25143echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
25144
25145# The cast to long int works around a bug in the HP C Compiler
25146# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25147# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25148# This bug is HP SR number 8606223364.
25149{ echo "$as_me:$LINENO: checking size of long int" >&5
25150echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
25151if test "${ac_cv_sizeof_long_int+set}" = set; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25153else
25154 if test "$cross_compiling" = yes; then
25155 # Depending upon the size, compute the lo and hi bounds.
25156cat >conftest.$ac_ext <<_ACEOF
25157/* confdefs.h. */
25158_ACEOF
25159cat confdefs.h >>conftest.$ac_ext
25160cat >>conftest.$ac_ext <<_ACEOF
25161/* end confdefs.h. */
25162$ac_includes_default
25163 typedef long int ac__type_sizeof_;
25164int
25165main ()
25166{
25167static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25168test_array [0] = 0
25169
25170 ;
25171 return 0;
25172}
25173_ACEOF
25174rm -f conftest.$ac_objext
25175if { (ac_try="$ac_compile"
25176case "(($ac_try" in
25177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178 *) ac_try_echo=$ac_try;;
25179esac
25180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181 (eval "$ac_compile") 2>conftest.er1
25182 ac_status=$?
25183 grep -v '^ *+' conftest.er1 >conftest.err
25184 rm -f conftest.er1
25185 cat conftest.err >&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } && {
25188 test -z "$ac_c_werror_flag" ||
25189 test ! -s conftest.err
25190 } && test -s conftest.$ac_objext; then
25191 ac_lo=0 ac_mid=0
25192 while :; do
25193 cat >conftest.$ac_ext <<_ACEOF
25194/* confdefs.h. */
25195_ACEOF
25196cat confdefs.h >>conftest.$ac_ext
25197cat >>conftest.$ac_ext <<_ACEOF
25198/* end confdefs.h. */
25199$ac_includes_default
25200 typedef long int ac__type_sizeof_;
25201int
25202main ()
25203{
25204static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25205test_array [0] = 0
25206
25207 ;
25208 return 0;
25209}
25210_ACEOF
25211rm -f conftest.$ac_objext
25212if { (ac_try="$ac_compile"
25213case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25216esac
25217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218 (eval "$ac_compile") 2>conftest.er1
25219 ac_status=$?
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } && {
25225 test -z "$ac_c_werror_flag" ||
25226 test ! -s conftest.err
25227 } && test -s conftest.$ac_objext; then
25228 ac_hi=$ac_mid; break
25229else
25230 echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 ac_lo=`expr $ac_mid + 1`
25234 if test $ac_lo -le $ac_mid; then
25235 ac_lo= ac_hi=
25236 break
25237 fi
25238 ac_mid=`expr 2 '*' $ac_mid + 1`
25239fi
25240
25241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242 done
25243else
25244 echo "$as_me: failed program was:" >&5
25245sed 's/^/| /' conftest.$ac_ext >&5
25246
25247 cat >conftest.$ac_ext <<_ACEOF
25248/* confdefs.h. */
25249_ACEOF
25250cat confdefs.h >>conftest.$ac_ext
25251cat >>conftest.$ac_ext <<_ACEOF
25252/* end confdefs.h. */
25253$ac_includes_default
25254 typedef long int ac__type_sizeof_;
25255int
25256main ()
25257{
25258static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25259test_array [0] = 0
25260
25261 ;
25262 return 0;
25263}
25264_ACEOF
25265rm -f conftest.$ac_objext
25266if { (ac_try="$ac_compile"
25267case "(($ac_try" in
25268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269 *) ac_try_echo=$ac_try;;
25270esac
25271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25272 (eval "$ac_compile") 2>conftest.er1
25273 ac_status=$?
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } && {
25279 test -z "$ac_c_werror_flag" ||
25280 test ! -s conftest.err
25281 } && test -s conftest.$ac_objext; then
25282 ac_hi=-1 ac_mid=-1
25283 while :; do
25284 cat >conftest.$ac_ext <<_ACEOF
25285/* confdefs.h. */
25286_ACEOF
25287cat confdefs.h >>conftest.$ac_ext
25288cat >>conftest.$ac_ext <<_ACEOF
25289/* end confdefs.h. */
25290$ac_includes_default
25291 typedef long int ac__type_sizeof_;
25292int
25293main ()
25294{
25295static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25296test_array [0] = 0
25297
25298 ;
25299 return 0;
25300}
25301_ACEOF
25302rm -f conftest.$ac_objext
25303if { (ac_try="$ac_compile"
25304case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25307esac
25308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_compile") 2>conftest.er1
25310 ac_status=$?
25311 grep -v '^ *+' conftest.er1 >conftest.err
25312 rm -f conftest.er1
25313 cat conftest.err >&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } && {
25316 test -z "$ac_c_werror_flag" ||
25317 test ! -s conftest.err
25318 } && test -s conftest.$ac_objext; then
25319 ac_lo=$ac_mid; break
25320else
25321 echo "$as_me: failed program was:" >&5
25322sed 's/^/| /' conftest.$ac_ext >&5
25323
25324 ac_hi=`expr '(' $ac_mid ')' - 1`
25325 if test $ac_mid -le $ac_hi; then
25326 ac_lo= ac_hi=
25327 break
25328 fi
25329 ac_mid=`expr 2 '*' $ac_mid`
25330fi
25331
25332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 done
25334else
25335 echo "$as_me: failed program was:" >&5
25336sed 's/^/| /' conftest.$ac_ext >&5
25337
25338 ac_lo= ac_hi=
25339fi
25340
25341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25342fi
25343
25344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25345# Binary search between lo and hi bounds.
25346while test "x$ac_lo" != "x$ac_hi"; do
25347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25348 cat >conftest.$ac_ext <<_ACEOF
25349/* confdefs.h. */
25350_ACEOF
25351cat confdefs.h >>conftest.$ac_ext
25352cat >>conftest.$ac_ext <<_ACEOF
25353/* end confdefs.h. */
25354$ac_includes_default
25355 typedef long int ac__type_sizeof_;
25356int
25357main ()
25358{
25359static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25360test_array [0] = 0
25361
25362 ;
25363 return 0;
25364}
25365_ACEOF
25366rm -f conftest.$ac_objext
25367if { (ac_try="$ac_compile"
25368case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25371esac
25372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373 (eval "$ac_compile") 2>conftest.er1
25374 ac_status=$?
25375 grep -v '^ *+' conftest.er1 >conftest.err
25376 rm -f conftest.er1
25377 cat conftest.err >&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } && {
25380 test -z "$ac_c_werror_flag" ||
25381 test ! -s conftest.err
25382 } && test -s conftest.$ac_objext; then
25383 ac_hi=$ac_mid
25384else
25385 echo "$as_me: failed program was:" >&5
25386sed 's/^/| /' conftest.$ac_ext >&5
25387
25388 ac_lo=`expr '(' $ac_mid ')' + 1`
25389fi
25390
25391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25392done
25393case $ac_lo in
25394?*) ac_cv_sizeof_long_int=$ac_lo;;
25395'') if test "$ac_cv_type_long_int" = yes; then
25396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25397See \`config.log' for more details." >&5
25398echo "$as_me: error: cannot compute sizeof (long int)
25399See \`config.log' for more details." >&2;}
25400 { (exit 77); exit 77; }; }
25401 else
25402 ac_cv_sizeof_long_int=0
25403 fi ;;
25404esac
25405else
25406 cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h. */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h. */
25412$ac_includes_default
25413 typedef long int ac__type_sizeof_;
25414static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25415static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25416#include <stdio.h>
25417#include <stdlib.h>
25418int
25419main ()
25420{
25421
25422 FILE *f = fopen ("conftest.val", "w");
25423 if (! f)
25424 return 1;
25425 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25426 {
25427 long int i = longval ();
25428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25429 return 1;
25430 fprintf (f, "%ld\n", i);
25431 }
25432 else
25433 {
25434 unsigned long int i = ulongval ();
25435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25436 return 1;
25437 fprintf (f, "%lu\n", i);
25438 }
25439 return ferror (f) || fclose (f) != 0;
25440
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest$ac_exeext
25446if { (ac_try="$ac_link"
25447case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25450esac
25451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452 (eval "$ac_link") 2>&5
25453 ac_status=$?
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25456 { (case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25459esac
25460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_try") 2>&5
25462 ac_status=$?
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_cv_sizeof_long_int=`cat conftest.val`
25466else
25467 echo "$as_me: program exited with status $ac_status" >&5
25468echo "$as_me: failed program was:" >&5
25469sed 's/^/| /' conftest.$ac_ext >&5
25470
25471( exit $ac_status )
25472if test "$ac_cv_type_long_int" = yes; then
25473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25474See \`config.log' for more details." >&5
25475echo "$as_me: error: cannot compute sizeof (long int)
25476See \`config.log' for more details." >&2;}
25477 { (exit 77); exit 77; }; }
25478 else
25479 ac_cv_sizeof_long_int=0
25480 fi
25481fi
25482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25483fi
25484rm -f conftest.val
25485fi
25486{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25487echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25488
25489
25490
25491cat >>confdefs.h <<_ACEOF
25492#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25493_ACEOF
25494
25495
25496{ echo "$as_me:$LINENO: checking for long long int" >&5
25497echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25498if test "${ac_cv_type_long_long_int+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25500else
25501 cat >conftest.$ac_ext <<_ACEOF
25502/* confdefs.h. */
25503_ACEOF
25504cat confdefs.h >>conftest.$ac_ext
25505cat >>conftest.$ac_ext <<_ACEOF
25506/* end confdefs.h. */
25507$ac_includes_default
25508typedef long long int ac__type_new_;
25509int
25510main ()
25511{
25512if ((ac__type_new_ *) 0)
25513 return 0;
25514if (sizeof (ac__type_new_))
25515 return 0;
25516 ;
25517 return 0;
25518}
25519_ACEOF
25520rm -f conftest.$ac_objext
25521if { (ac_try="$ac_compile"
25522case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25525esac
25526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25528 ac_status=$?
25529 grep -v '^ *+' conftest.er1 >conftest.err
25530 rm -f conftest.er1
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && {
25534 test -z "$ac_c_werror_flag" ||
25535 test ! -s conftest.err
25536 } && test -s conftest.$ac_objext; then
25537 ac_cv_type_long_long_int=yes
25538else
25539 echo "$as_me: failed program was:" >&5
25540sed 's/^/| /' conftest.$ac_ext >&5
25541
25542 ac_cv_type_long_long_int=no
25543fi
25544
25545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25546fi
25547{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25548echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25549
25550# The cast to long int works around a bug in the HP C Compiler
25551# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25552# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25553# This bug is HP SR number 8606223364.
25554{ echo "$as_me:$LINENO: checking size of long long int" >&5
25555echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25556if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25558else
25559 if test "$cross_compiling" = yes; then
25560 # Depending upon the size, compute the lo and hi bounds.
25561cat >conftest.$ac_ext <<_ACEOF
25562/* confdefs.h. */
25563_ACEOF
25564cat confdefs.h >>conftest.$ac_ext
25565cat >>conftest.$ac_ext <<_ACEOF
25566/* end confdefs.h. */
25567$ac_includes_default
25568 typedef long long int ac__type_sizeof_;
25569int
25570main ()
25571{
25572static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25573test_array [0] = 0
25574
25575 ;
25576 return 0;
25577}
25578_ACEOF
25579rm -f conftest.$ac_objext
25580if { (ac_try="$ac_compile"
25581case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25584esac
25585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_compile") 2>conftest.er1
25587 ac_status=$?
25588 grep -v '^ *+' conftest.er1 >conftest.err
25589 rm -f conftest.er1
25590 cat conftest.err >&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } && {
25593 test -z "$ac_c_werror_flag" ||
25594 test ! -s conftest.err
25595 } && test -s conftest.$ac_objext; then
25596 ac_lo=0 ac_mid=0
25597 while :; do
25598 cat >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$ac_includes_default
25605 typedef long long int ac__type_sizeof_;
25606int
25607main ()
25608{
25609static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25610test_array [0] = 0
25611
25612 ;
25613 return 0;
25614}
25615_ACEOF
25616rm -f conftest.$ac_objext
25617if { (ac_try="$ac_compile"
25618case "(($ac_try" in
25619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25621esac
25622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623 (eval "$ac_compile") 2>conftest.er1
25624 ac_status=$?
25625 grep -v '^ *+' conftest.er1 >conftest.err
25626 rm -f conftest.er1
25627 cat conftest.err >&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } && {
25630 test -z "$ac_c_werror_flag" ||
25631 test ! -s conftest.err
25632 } && test -s conftest.$ac_objext; then
25633 ac_hi=$ac_mid; break
25634else
25635 echo "$as_me: failed program was:" >&5
25636sed 's/^/| /' conftest.$ac_ext >&5
25637
25638 ac_lo=`expr $ac_mid + 1`
25639 if test $ac_lo -le $ac_mid; then
25640 ac_lo= ac_hi=
25641 break
25642 fi
25643 ac_mid=`expr 2 '*' $ac_mid + 1`
25644fi
25645
25646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 done
25648else
25649 echo "$as_me: failed program was:" >&5
25650sed 's/^/| /' conftest.$ac_ext >&5
25651
25652 cat >conftest.$ac_ext <<_ACEOF
25653/* confdefs.h. */
25654_ACEOF
25655cat confdefs.h >>conftest.$ac_ext
25656cat >>conftest.$ac_ext <<_ACEOF
25657/* end confdefs.h. */
25658$ac_includes_default
25659 typedef long long int ac__type_sizeof_;
25660int
25661main ()
25662{
25663static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25664test_array [0] = 0
25665
25666 ;
25667 return 0;
25668}
25669_ACEOF
25670rm -f conftest.$ac_objext
25671if { (ac_try="$ac_compile"
25672case "(($ac_try" in
25673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674 *) ac_try_echo=$ac_try;;
25675esac
25676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25677 (eval "$ac_compile") 2>conftest.er1
25678 ac_status=$?
25679 grep -v '^ *+' conftest.er1 >conftest.err
25680 rm -f conftest.er1
25681 cat conftest.err >&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } && {
25684 test -z "$ac_c_werror_flag" ||
25685 test ! -s conftest.err
25686 } && test -s conftest.$ac_objext; then
25687 ac_hi=-1 ac_mid=-1
25688 while :; do
25689 cat >conftest.$ac_ext <<_ACEOF
25690/* confdefs.h. */
25691_ACEOF
25692cat confdefs.h >>conftest.$ac_ext
25693cat >>conftest.$ac_ext <<_ACEOF
25694/* end confdefs.h. */
25695$ac_includes_default
25696 typedef long long int ac__type_sizeof_;
25697int
25698main ()
25699{
25700static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25701test_array [0] = 0
25702
25703 ;
25704 return 0;
25705}
25706_ACEOF
25707rm -f conftest.$ac_objext
25708if { (ac_try="$ac_compile"
25709case "(($ac_try" in
25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711 *) ac_try_echo=$ac_try;;
25712esac
25713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714 (eval "$ac_compile") 2>conftest.er1
25715 ac_status=$?
25716 grep -v '^ *+' conftest.er1 >conftest.err
25717 rm -f conftest.er1
25718 cat conftest.err >&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } && {
25721 test -z "$ac_c_werror_flag" ||
25722 test ! -s conftest.err
25723 } && test -s conftest.$ac_objext; then
25724 ac_lo=$ac_mid; break
25725else
25726 echo "$as_me: failed program was:" >&5
25727sed 's/^/| /' conftest.$ac_ext >&5
25728
25729 ac_hi=`expr '(' $ac_mid ')' - 1`
25730 if test $ac_mid -le $ac_hi; then
25731 ac_lo= ac_hi=
25732 break
25733 fi
25734 ac_mid=`expr 2 '*' $ac_mid`
25735fi
25736
25737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 done
25739else
25740 echo "$as_me: failed program was:" >&5
25741sed 's/^/| /' conftest.$ac_ext >&5
25742
25743 ac_lo= ac_hi=
25744fi
25745
25746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747fi
25748
25749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750# Binary search between lo and hi bounds.
25751while test "x$ac_lo" != "x$ac_hi"; do
25752 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25753 cat >conftest.$ac_ext <<_ACEOF
25754/* confdefs.h. */
25755_ACEOF
25756cat confdefs.h >>conftest.$ac_ext
25757cat >>conftest.$ac_ext <<_ACEOF
25758/* end confdefs.h. */
25759$ac_includes_default
25760 typedef long long int ac__type_sizeof_;
25761int
25762main ()
25763{
25764static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25765test_array [0] = 0
25766
25767 ;
25768 return 0;
25769}
25770_ACEOF
25771rm -f conftest.$ac_objext
25772if { (ac_try="$ac_compile"
25773case "(($ac_try" in
25774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25776esac
25777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_compile") 2>conftest.er1
25779 ac_status=$?
25780 grep -v '^ *+' conftest.er1 >conftest.err
25781 rm -f conftest.er1
25782 cat conftest.err >&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } && {
25785 test -z "$ac_c_werror_flag" ||
25786 test ! -s conftest.err
25787 } && test -s conftest.$ac_objext; then
25788 ac_hi=$ac_mid
25789else
25790 echo "$as_me: failed program was:" >&5
25791sed 's/^/| /' conftest.$ac_ext >&5
25792
25793 ac_lo=`expr '(' $ac_mid ')' + 1`
25794fi
25795
25796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25797done
25798case $ac_lo in
25799?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25800'') if test "$ac_cv_type_long_long_int" = yes; then
25801 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25802See \`config.log' for more details." >&5
25803echo "$as_me: error: cannot compute sizeof (long long int)
25804See \`config.log' for more details." >&2;}
25805 { (exit 77); exit 77; }; }
25806 else
25807 ac_cv_sizeof_long_long_int=0
25808 fi ;;
25809esac
25810else
25811 cat >conftest.$ac_ext <<_ACEOF
25812/* confdefs.h. */
25813_ACEOF
25814cat confdefs.h >>conftest.$ac_ext
25815cat >>conftest.$ac_ext <<_ACEOF
25816/* end confdefs.h. */
25817$ac_includes_default
25818 typedef long long int ac__type_sizeof_;
25819static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25820static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25821#include <stdio.h>
25822#include <stdlib.h>
25823int
25824main ()
25825{
25826
25827 FILE *f = fopen ("conftest.val", "w");
25828 if (! f)
25829 return 1;
25830 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25831 {
25832 long int i = longval ();
25833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25834 return 1;
25835 fprintf (f, "%ld\n", i);
25836 }
25837 else
25838 {
25839 unsigned long int i = ulongval ();
25840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25841 return 1;
25842 fprintf (f, "%lu\n", i);
25843 }
25844 return ferror (f) || fclose (f) != 0;
25845
25846 ;
25847 return 0;
25848}
25849_ACEOF
25850rm -f conftest$ac_exeext
25851if { (ac_try="$ac_link"
25852case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25855esac
25856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_link") 2>&5
25858 ac_status=$?
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25861 { (case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25864esac
25865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_try") 2>&5
25867 ac_status=$?
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; }; then
25870 ac_cv_sizeof_long_long_int=`cat conftest.val`
25871else
25872 echo "$as_me: program exited with status $ac_status" >&5
25873echo "$as_me: failed program was:" >&5
25874sed 's/^/| /' conftest.$ac_ext >&5
25875
25876( exit $ac_status )
25877if test "$ac_cv_type_long_long_int" = yes; then
25878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25879See \`config.log' for more details." >&5
25880echo "$as_me: error: cannot compute sizeof (long long int)
25881See \`config.log' for more details." >&2;}
25882 { (exit 77); exit 77; }; }
25883 else
25884 ac_cv_sizeof_long_long_int=0
25885 fi
25886fi
25887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25888fi
25889rm -f conftest.val
25890fi
25891{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25892echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25893
25894
25895
25896cat >>confdefs.h <<_ACEOF
25897#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25898_ACEOF
25899
25900
25901
25902# Sanity check long long for some platforms (AIX)
25903if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
25904 ac_cv_sizeof_long_long_int=0
25905fi
25906
25907# compute LLONG_MIN and LLONG_MAX if we don't know them.
25908if test -z "$have_llong_max"; then
25909 { echo "$as_me:$LINENO: checking for max value of long long" >&5
25910echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
25911 if test "$cross_compiling" = yes; then
25912
25913 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
25914echo "$as_me: WARNING: cross compiling: not checking" >&2;}
25915
25916
25917else
25918 cat >conftest.$ac_ext <<_ACEOF
25919/* confdefs.h. */
25920_ACEOF
25921cat confdefs.h >>conftest.$ac_ext
25922cat >>conftest.$ac_ext <<_ACEOF
25923/* end confdefs.h. */
25924
25925#include <stdio.h>
25926/* Why is this so damn hard? */
25927#ifdef __GNUC__
25928# undef __GNUC__
25929#endif
25930#define __USE_ISOC99
25931#include <limits.h>
25932#define DATA "conftest.llminmax"
25933#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
25934
25935/*
25936 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
25937 * we do this the hard way.
25938 */
25939static int
25940fprint_ll(FILE *f, long long n)
25941{
25942 unsigned int i;
25943 int l[sizeof(long long) * 8];
25944
25945 if (n < 0)
25946 if (fprintf(f, "-") < 0)
25947 return -1;
25948 for (i = 0; n != 0; i++) {
25949 l[i] = my_abs(n % 10);
25950 n /= 10;
25951 }
25952 do {
25953 if (fprintf(f, "%d", l[--i]) < 0)
25954 return -1;
25955 } while (i != 0);
25956 if (fprintf(f, " ") < 0)
25957 return -1;
25958 return 0;
25959}
25960
25961int
25962main ()
25963{
25964
25965 FILE *f;
25966 long long i, llmin, llmax = 0;
25967
25968 if((f = fopen(DATA,"w")) == NULL)
25969 exit(1);
25970
25971#if defined(LLONG_MIN) && defined(LLONG_MAX)
25972 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
25973 llmin = LLONG_MIN;
25974 llmax = LLONG_MAX;
25975#else
25976 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
25977 /* This will work on one's complement and two's complement */
25978 for (i = 1; i > llmax; i <<= 1, i++)
25979 llmax = i;
25980 llmin = llmax + 1LL; /* wrap */
25981#endif
25982
25983 /* Sanity check */
25984 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
25985 || llmax - 1 > llmax || llmin == llmax || llmin == 0
25986 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
25987 fprintf(f, "unknown unknown\n");
25988 exit(2);
25989 }
25990
25991 if (fprint_ll(f, llmin) < 0)
25992 exit(3);
25993 if (fprint_ll(f, llmax) < 0)
25994 exit(4);
25995 if (fclose(f) < 0)
25996 exit(5);
25997 exit(0);
25998
25999 ;
26000 return 0;
26001}
26002_ACEOF
26003rm -f conftest$ac_exeext
26004if { (ac_try="$ac_link"
26005case "(($ac_try" in
26006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007 *) ac_try_echo=$ac_try;;
26008esac
26009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26010 (eval "$ac_link") 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26014 { (case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26017esac
26018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_try") 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; }; then
26023
26024 llong_min=`$AWK '{print $1}' conftest.llminmax`
26025 llong_max=`$AWK '{print $2}' conftest.llminmax`
26026
26027 { echo "$as_me:$LINENO: result: $llong_max" >&5
26028echo "${ECHO_T}$llong_max" >&6; }
26029
26030cat >>confdefs.h <<_ACEOF
26031#define LLONG_MAX ${llong_max}LL
26032_ACEOF
26033
26034 { echo "$as_me:$LINENO: checking for min value of long long" >&5
26035echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
26036 { echo "$as_me:$LINENO: result: $llong_min" >&5
26037echo "${ECHO_T}$llong_min" >&6; }
26038
26039cat >>confdefs.h <<_ACEOF
26040#define LLONG_MIN ${llong_min}LL
26041_ACEOF
26042
26043
26044else
26045 echo "$as_me: program exited with status $ac_status" >&5
26046echo "$as_me: failed program was:" >&5
26047sed 's/^/| /' conftest.$ac_ext >&5
26048
26049( exit $ac_status )
26050
26051 { echo "$as_me:$LINENO: result: not found" >&5
26052echo "${ECHO_T}not found" >&6; }
26053
26054fi
26055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26056fi
26057
26058
26059fi
26060
26061
26062# More checks for data types
26063{ echo "$as_me:$LINENO: checking for u_int type" >&5
26064echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26065if test "${ac_cv_have_u_int+set}" = set; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
26067else
26068
26069 cat >conftest.$ac_ext <<_ACEOF
26070/* confdefs.h. */
26071_ACEOF
26072cat confdefs.h >>conftest.$ac_ext
26073cat >>conftest.$ac_ext <<_ACEOF
26074/* end confdefs.h. */
26075 #include <sys/types.h>
26076int
26077main ()
26078{
26079 u_int a; a = 1;
26080 ;
26081 return 0;
26082}
26083_ACEOF
26084rm -f conftest.$ac_objext
26085if { (ac_try="$ac_compile"
26086case "(($ac_try" in
26087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088 *) ac_try_echo=$ac_try;;
26089esac
26090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26091 (eval "$ac_compile") 2>conftest.er1
26092 ac_status=$?
26093 grep -v '^ *+' conftest.er1 >conftest.err
26094 rm -f conftest.er1
26095 cat conftest.err >&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } && {
26098 test -z "$ac_c_werror_flag" ||
26099 test ! -s conftest.err
26100 } && test -s conftest.$ac_objext; then
26101 ac_cv_have_u_int="yes"
26102else
26103 echo "$as_me: failed program was:" >&5
26104sed 's/^/| /' conftest.$ac_ext >&5
26105
26106 ac_cv_have_u_int="no"
26107
26108fi
26109
26110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111
26112fi
26113{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26114echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26115if test "x$ac_cv_have_u_int" = "xyes" ; then
26116
26117cat >>confdefs.h <<\_ACEOF
26118#define HAVE_U_INT 1
26119_ACEOF
26120
26121 have_u_int=1
26122fi
26123
26124{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
26125echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26126if test "${ac_cv_have_intxx_t+set}" = set; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26128else
26129
26130 cat >conftest.$ac_ext <<_ACEOF
26131/* confdefs.h. */
26132_ACEOF
26133cat confdefs.h >>conftest.$ac_ext
26134cat >>conftest.$ac_ext <<_ACEOF
26135/* end confdefs.h. */
26136 #include <sys/types.h>
26137int
26138main ()
26139{
26140 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26141 ;
26142 return 0;
26143}
26144_ACEOF
26145rm -f conftest.$ac_objext
26146if { (ac_try="$ac_compile"
26147case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26150esac
26151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_compile") 2>conftest.er1
26153 ac_status=$?
26154 grep -v '^ *+' conftest.er1 >conftest.err
26155 rm -f conftest.er1
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } && {
26159 test -z "$ac_c_werror_flag" ||
26160 test ! -s conftest.err
26161 } && test -s conftest.$ac_objext; then
26162 ac_cv_have_intxx_t="yes"
26163else
26164 echo "$as_me: failed program was:" >&5
26165sed 's/^/| /' conftest.$ac_ext >&5
26166
26167 ac_cv_have_intxx_t="no"
26168
26169fi
26170
26171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26172
26173fi
26174{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26175echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26176if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26177
26178cat >>confdefs.h <<\_ACEOF
26179#define HAVE_INTXX_T 1
26180_ACEOF
26181
26182 have_intxx_t=1
26183fi
26184
26185if (test -z "$have_intxx_t" && \
26186 test "x$ac_cv_header_stdint_h" = "xyes")
26187then
26188 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
26189echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
26190 cat >conftest.$ac_ext <<_ACEOF
26191/* confdefs.h. */
26192_ACEOF
26193cat confdefs.h >>conftest.$ac_ext
26194cat >>conftest.$ac_ext <<_ACEOF
26195/* end confdefs.h. */
26196 #include <stdint.h>
26197int
26198main ()
26199{
26200 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26201 ;
26202 return 0;
26203}
26204_ACEOF
26205rm -f conftest.$ac_objext
26206if { (ac_try="$ac_compile"
26207case "(($ac_try" in
26208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209 *) ac_try_echo=$ac_try;;
26210esac
26211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212 (eval "$ac_compile") 2>conftest.er1
26213 ac_status=$?
26214 grep -v '^ *+' conftest.er1 >conftest.err
26215 rm -f conftest.er1
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } && {
26219 test -z "$ac_c_werror_flag" ||
26220 test ! -s conftest.err
26221 } && test -s conftest.$ac_objext; then
26222
26223 cat >>confdefs.h <<\_ACEOF
26224#define HAVE_INTXX_T 1
26225_ACEOF
26226
26227 { echo "$as_me:$LINENO: result: yes" >&5
26228echo "${ECHO_T}yes" >&6; }
26229
26230else
26231 echo "$as_me: failed program was:" >&5
26232sed 's/^/| /' conftest.$ac_ext >&5
26233
26234 { echo "$as_me:$LINENO: result: no" >&5
26235echo "${ECHO_T}no" >&6; }
26236
26237fi
26238
26239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240fi
26241
26242{ echo "$as_me:$LINENO: checking for int64_t type" >&5
26243echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26244if test "${ac_cv_have_int64_t+set}" = set; then
26245 echo $ECHO_N "(cached) $ECHO_C" >&6
26246else
26247
26248 cat >conftest.$ac_ext <<_ACEOF
26249/* confdefs.h. */
26250_ACEOF
26251cat confdefs.h >>conftest.$ac_ext
26252cat >>conftest.$ac_ext <<_ACEOF
26253/* end confdefs.h. */
26254
26255#include <sys/types.h>
26256#ifdef HAVE_STDINT_H
26257# include <stdint.h>
26258#endif
26259#include <sys/socket.h>
26260#ifdef HAVE_SYS_BITYPES_H
26261# include <sys/bitypes.h>
26262#endif
26263
26264int
26265main ()
26266{
26267
26268int64_t a; a = 1;
26269
26270 ;
26271 return 0;
26272}
26273_ACEOF
26274rm -f conftest.$ac_objext
26275if { (ac_try="$ac_compile"
26276case "(($ac_try" in
26277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26278 *) ac_try_echo=$ac_try;;
26279esac
26280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281 (eval "$ac_compile") 2>conftest.er1
26282 ac_status=$?
26283 grep -v '^ *+' conftest.er1 >conftest.err
26284 rm -f conftest.er1
26285 cat conftest.err >&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } && {
26288 test -z "$ac_c_werror_flag" ||
26289 test ! -s conftest.err
26290 } && test -s conftest.$ac_objext; then
26291 ac_cv_have_int64_t="yes"
26292else
26293 echo "$as_me: failed program was:" >&5
26294sed 's/^/| /' conftest.$ac_ext >&5
26295
26296 ac_cv_have_int64_t="no"
26297
26298fi
26299
26300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301
26302fi
26303{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26304echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26305if test "x$ac_cv_have_int64_t" = "xyes" ; then
26306
26307cat >>confdefs.h <<\_ACEOF
26308#define HAVE_INT64_T 1
26309_ACEOF
26310
26311fi
26312
26313{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26314echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26315if test "${ac_cv_have_u_intxx_t+set}" = set; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26317else
26318
26319 cat >conftest.$ac_ext <<_ACEOF
26320/* confdefs.h. */
26321_ACEOF
26322cat confdefs.h >>conftest.$ac_ext
26323cat >>conftest.$ac_ext <<_ACEOF
26324/* end confdefs.h. */
26325 #include <sys/types.h>
26326int
26327main ()
26328{
26329 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26330 ;
26331 return 0;
26332}
26333_ACEOF
26334rm -f conftest.$ac_objext
26335if { (ac_try="$ac_compile"
26336case "(($ac_try" in
26337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338 *) ac_try_echo=$ac_try;;
26339esac
26340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341 (eval "$ac_compile") 2>conftest.er1
26342 ac_status=$?
26343 grep -v '^ *+' conftest.er1 >conftest.err
26344 rm -f conftest.er1
26345 cat conftest.err >&5
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); } && {
26348 test -z "$ac_c_werror_flag" ||
26349 test ! -s conftest.err
26350 } && test -s conftest.$ac_objext; then
26351 ac_cv_have_u_intxx_t="yes"
26352else
26353 echo "$as_me: failed program was:" >&5
26354sed 's/^/| /' conftest.$ac_ext >&5
26355
26356 ac_cv_have_u_intxx_t="no"
26357
26358fi
26359
26360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26361
26362fi
26363{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26364echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26365if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26366
26367cat >>confdefs.h <<\_ACEOF
26368#define HAVE_U_INTXX_T 1
26369_ACEOF
26370
26371 have_u_intxx_t=1
26372fi
26373
26374if test -z "$have_u_intxx_t" ; then
26375 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
26376echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
26377 cat >conftest.$ac_ext <<_ACEOF
26378/* confdefs.h. */
26379_ACEOF
26380cat confdefs.h >>conftest.$ac_ext
26381cat >>conftest.$ac_ext <<_ACEOF
26382/* end confdefs.h. */
26383 #include <sys/socket.h>
26384int
26385main ()
26386{
26387 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26388 ;
26389 return 0;
26390}
26391_ACEOF
26392rm -f conftest.$ac_objext
26393if { (ac_try="$ac_compile"
26394case "(($ac_try" in
26395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396 *) ac_try_echo=$ac_try;;
26397esac
26398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26399 (eval "$ac_compile") 2>conftest.er1
26400 ac_status=$?
26401 grep -v '^ *+' conftest.er1 >conftest.err
26402 rm -f conftest.er1
26403 cat conftest.err >&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); } && {
26406 test -z "$ac_c_werror_flag" ||
26407 test ! -s conftest.err
26408 } && test -s conftest.$ac_objext; then
26409
26410 cat >>confdefs.h <<\_ACEOF
26411#define HAVE_U_INTXX_T 1
26412_ACEOF
26413
26414 { echo "$as_me:$LINENO: result: yes" >&5
26415echo "${ECHO_T}yes" >&6; }
26416
26417else
26418 echo "$as_me: failed program was:" >&5
26419sed 's/^/| /' conftest.$ac_ext >&5
26420
26421 { echo "$as_me:$LINENO: result: no" >&5
26422echo "${ECHO_T}no" >&6; }
26423
26424fi
26425
26426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26427fi
26428
26429{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26430echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26431if test "${ac_cv_have_u_int64_t+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26433else
26434
26435 cat >conftest.$ac_ext <<_ACEOF
26436/* confdefs.h. */
26437_ACEOF
26438cat confdefs.h >>conftest.$ac_ext
26439cat >>conftest.$ac_ext <<_ACEOF
26440/* end confdefs.h. */
26441 #include <sys/types.h>
26442int
26443main ()
26444{
26445 u_int64_t a; a = 1;
26446 ;
26447 return 0;
26448}
26449_ACEOF
26450rm -f conftest.$ac_objext
26451if { (ac_try="$ac_compile"
26452case "(($ac_try" in
26453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454 *) ac_try_echo=$ac_try;;
26455esac
26456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457 (eval "$ac_compile") 2>conftest.er1
26458 ac_status=$?
26459 grep -v '^ *+' conftest.er1 >conftest.err
26460 rm -f conftest.er1
26461 cat conftest.err >&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_c_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest.$ac_objext; then
26467 ac_cv_have_u_int64_t="yes"
26468else
26469 echo "$as_me: failed program was:" >&5
26470sed 's/^/| /' conftest.$ac_ext >&5
26471
26472 ac_cv_have_u_int64_t="no"
26473
26474fi
26475
26476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26477
26478fi
26479{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26480echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26481if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26482
26483cat >>confdefs.h <<\_ACEOF
26484#define HAVE_U_INT64_T 1
26485_ACEOF
26486
26487 have_u_int64_t=1
26488fi
26489
26490if (test -z "$have_u_int64_t" && \
26491 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26492then
26493 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
26494echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
26495 cat >conftest.$ac_ext <<_ACEOF
26496/* confdefs.h. */
26497_ACEOF
26498cat confdefs.h >>conftest.$ac_ext
26499cat >>conftest.$ac_ext <<_ACEOF
26500/* end confdefs.h. */
26501 #include <sys/bitypes.h>
26502int
26503main ()
26504{
26505 u_int64_t a; a = 1
26506 ;
26507 return 0;
26508}
26509_ACEOF
26510rm -f conftest.$ac_objext
26511if { (ac_try="$ac_compile"
26512case "(($ac_try" in
26513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514 *) ac_try_echo=$ac_try;;
26515esac
26516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517 (eval "$ac_compile") 2>conftest.er1
26518 ac_status=$?
26519 grep -v '^ *+' conftest.er1 >conftest.err
26520 rm -f conftest.er1
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } && {
26524 test -z "$ac_c_werror_flag" ||
26525 test ! -s conftest.err
26526 } && test -s conftest.$ac_objext; then
26527
26528 cat >>confdefs.h <<\_ACEOF
26529#define HAVE_U_INT64_T 1
26530_ACEOF
26531
26532 { echo "$as_me:$LINENO: result: yes" >&5
26533echo "${ECHO_T}yes" >&6; }
26534
26535else
26536 echo "$as_me: failed program was:" >&5
26537sed 's/^/| /' conftest.$ac_ext >&5
26538
26539 { echo "$as_me:$LINENO: result: no" >&5
26540echo "${ECHO_T}no" >&6; }
26541
26542fi
26543
26544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26545fi
26546
26547if test -z "$have_u_intxx_t" ; then
26548 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26549echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26550if test "${ac_cv_have_uintxx_t+set}" = set; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26552else
26553
26554 cat >conftest.$ac_ext <<_ACEOF
26555/* confdefs.h. */
26556_ACEOF
26557cat confdefs.h >>conftest.$ac_ext
26558cat >>conftest.$ac_ext <<_ACEOF
26559/* end confdefs.h. */
26560
26561#include <sys/types.h>
26562
26563int
26564main ()
26565{
26566
26567 uint8_t a;
26568 uint16_t b;
26569 uint32_t c;
26570 a = b = c = 1;
26571
26572 ;
26573 return 0;
26574}
26575_ACEOF
26576rm -f conftest.$ac_objext
26577if { (ac_try="$ac_compile"
26578case "(($ac_try" in
26579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580 *) ac_try_echo=$ac_try;;
26581esac
26582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26583 (eval "$ac_compile") 2>conftest.er1
26584 ac_status=$?
26585 grep -v '^ *+' conftest.er1 >conftest.err
26586 rm -f conftest.er1
26587 cat conftest.err >&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } && {
26590 test -z "$ac_c_werror_flag" ||
26591 test ! -s conftest.err
26592 } && test -s conftest.$ac_objext; then
26593 ac_cv_have_uintxx_t="yes"
26594else
26595 echo "$as_me: failed program was:" >&5
26596sed 's/^/| /' conftest.$ac_ext >&5
26597
26598 ac_cv_have_uintxx_t="no"
26599
26600fi
26601
26602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603
26604fi
26605{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26606echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26607 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26608
26609cat >>confdefs.h <<\_ACEOF
26610#define HAVE_UINTXX_T 1
26611_ACEOF
26612
26613 fi
26614fi
26615
26616if (test -z "$have_uintxx_t" && \
26617 test "x$ac_cv_header_stdint_h" = "xyes")
26618then
26619 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
26620echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
26621 cat >conftest.$ac_ext <<_ACEOF
26622/* confdefs.h. */
26623_ACEOF
26624cat confdefs.h >>conftest.$ac_ext
26625cat >>conftest.$ac_ext <<_ACEOF
26626/* end confdefs.h. */
26627 #include <stdint.h>
26628int
26629main ()
26630{
26631 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26632 ;
26633 return 0;
26634}
26635_ACEOF
26636rm -f conftest.$ac_objext
26637if { (ac_try="$ac_compile"
26638case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26641esac
26642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_compile") 2>conftest.er1
26644 ac_status=$?
26645 grep -v '^ *+' conftest.er1 >conftest.err
26646 rm -f conftest.er1
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } && {
26650 test -z "$ac_c_werror_flag" ||
26651 test ! -s conftest.err
26652 } && test -s conftest.$ac_objext; then
26653
26654 cat >>confdefs.h <<\_ACEOF
26655#define HAVE_UINTXX_T 1
26656_ACEOF
26657
26658 { echo "$as_me:$LINENO: result: yes" >&5
26659echo "${ECHO_T}yes" >&6; }
26660
26661else
26662 echo "$as_me: failed program was:" >&5
26663sed 's/^/| /' conftest.$ac_ext >&5
26664
26665 { echo "$as_me:$LINENO: result: no" >&5
26666echo "${ECHO_T}no" >&6; }
26667
26668fi
26669
26670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671fi
26672
26673if (test -z "$have_uintxx_t" && \
26674 test "x$ac_cv_header_inttypes_h" = "xyes")
26675then
26676 { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5
26677echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; }
26678 cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h. */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h. */
26684 #include <inttypes.h>
26685int
26686main ()
26687{
26688 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26689 ;
26690 return 0;
26691}
26692_ACEOF
26693rm -f conftest.$ac_objext
26694if { (ac_try="$ac_compile"
26695case "(($ac_try" in
26696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697 *) ac_try_echo=$ac_try;;
26698esac
26699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26700 (eval "$ac_compile") 2>conftest.er1
26701 ac_status=$?
26702 grep -v '^ *+' conftest.er1 >conftest.err
26703 rm -f conftest.er1
26704 cat conftest.err >&5
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); } && {
26707 test -z "$ac_c_werror_flag" ||
26708 test ! -s conftest.err
26709 } && test -s conftest.$ac_objext; then
26710
26711 cat >>confdefs.h <<\_ACEOF
26712#define HAVE_UINTXX_T 1
26713_ACEOF
26714
26715 { echo "$as_me:$LINENO: result: yes" >&5
26716echo "${ECHO_T}yes" >&6; }
26717
26718else
26719 echo "$as_me: failed program was:" >&5
26720sed 's/^/| /' conftest.$ac_ext >&5
26721
26722 { echo "$as_me:$LINENO: result: no" >&5
26723echo "${ECHO_T}no" >&6; }
26724
26725fi
26726
26727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728fi
26729
26730if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26731 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26732then
26733 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26734echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26735 cat >conftest.$ac_ext <<_ACEOF
26736/* confdefs.h. */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h. */
26741
26742#include <sys/bitypes.h>
26743
26744int
26745main ()
26746{
26747
26748 int8_t a; int16_t b; int32_t c;
26749 u_int8_t e; u_int16_t f; u_int32_t g;
26750 a = b = c = e = f = g = 1;
26751
26752 ;
26753 return 0;
26754}
26755_ACEOF
26756rm -f conftest.$ac_objext
26757if { (ac_try="$ac_compile"
26758case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26761esac
26762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26763 (eval "$ac_compile") 2>conftest.er1
26764 ac_status=$?
26765 grep -v '^ *+' conftest.er1 >conftest.err
26766 rm -f conftest.er1
26767 cat conftest.err >&5
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } && {
26770 test -z "$ac_c_werror_flag" ||
26771 test ! -s conftest.err
26772 } && test -s conftest.$ac_objext; then
26773
26774 cat >>confdefs.h <<\_ACEOF
26775#define HAVE_U_INTXX_T 1
26776_ACEOF
26777
26778 cat >>confdefs.h <<\_ACEOF
26779#define HAVE_INTXX_T 1
26780_ACEOF
26781
26782 { echo "$as_me:$LINENO: result: yes" >&5
26783echo "${ECHO_T}yes" >&6; }
26784
26785else
26786 echo "$as_me: failed program was:" >&5
26787sed 's/^/| /' conftest.$ac_ext >&5
26788
26789 { echo "$as_me:$LINENO: result: no" >&5
26790echo "${ECHO_T}no" >&6; }
26791
26792fi
26793
26794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26795fi
26796
26797
26798{ echo "$as_me:$LINENO: checking for u_char" >&5
26799echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
26800if test "${ac_cv_have_u_char+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802else
26803
26804 cat >conftest.$ac_ext <<_ACEOF
26805/* confdefs.h. */
26806_ACEOF
26807cat confdefs.h >>conftest.$ac_ext
26808cat >>conftest.$ac_ext <<_ACEOF
26809/* end confdefs.h. */
26810 #include <sys/types.h>
26811int
26812main ()
26813{
26814 u_char foo; foo = 125;
26815 ;
26816 return 0;
26817}
26818_ACEOF
26819rm -f conftest.$ac_objext
26820if { (ac_try="$ac_compile"
26821case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26824esac
26825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826 (eval "$ac_compile") 2>conftest.er1
26827 ac_status=$?
26828 grep -v '^ *+' conftest.er1 >conftest.err
26829 rm -f conftest.er1
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } && {
26833 test -z "$ac_c_werror_flag" ||
26834 test ! -s conftest.err
26835 } && test -s conftest.$ac_objext; then
26836 ac_cv_have_u_char="yes"
26837else
26838 echo "$as_me: failed program was:" >&5
26839sed 's/^/| /' conftest.$ac_ext >&5
26840
26841 ac_cv_have_u_char="no"
26842
26843fi
26844
26845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26846
26847fi
26848{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
26849echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
26850if test "x$ac_cv_have_u_char" = "xyes" ; then
26851
26852cat >>confdefs.h <<\_ACEOF
26853#define HAVE_U_CHAR 1
26854_ACEOF
26855
26856fi
26857
26858{ echo "$as_me:$LINENO: checking for intmax_t" >&5
26859echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
26860if test "${ac_cv_type_intmax_t+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862else
26863 cat >conftest.$ac_ext <<_ACEOF
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
26869
26870#include <sys/types.h>
26871#include <stdint.h>
26872
26873
26874typedef intmax_t ac__type_new_;
26875int
26876main ()
26877{
26878if ((ac__type_new_ *) 0)
26879 return 0;
26880if (sizeof (ac__type_new_))
26881 return 0;
26882 ;
26883 return 0;
26884}
26885_ACEOF
26886rm -f conftest.$ac_objext
26887if { (ac_try="$ac_compile"
26888case "(($ac_try" in
26889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890 *) ac_try_echo=$ac_try;;
26891esac
26892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893 (eval "$ac_compile") 2>conftest.er1
26894 ac_status=$?
26895 grep -v '^ *+' conftest.er1 >conftest.err
26896 rm -f conftest.er1
26897 cat conftest.err >&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } && {
26900 test -z "$ac_c_werror_flag" ||
26901 test ! -s conftest.err
26902 } && test -s conftest.$ac_objext; then
26903 ac_cv_type_intmax_t=yes
26904else
26905 echo "$as_me: failed program was:" >&5
26906sed 's/^/| /' conftest.$ac_ext >&5
26907
26908 ac_cv_type_intmax_t=no
26909fi
26910
26911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26912fi
26913{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
26914echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
26915if test $ac_cv_type_intmax_t = yes; then
26916
26917cat >>confdefs.h <<_ACEOF
26918#define HAVE_INTMAX_T 1
26919_ACEOF
26920
26921
26922fi
26923{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
26924echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
26925if test "${ac_cv_type_uintmax_t+set}" = set; then
26926 echo $ECHO_N "(cached) $ECHO_C" >&6
26927else
26928 cat >conftest.$ac_ext <<_ACEOF
26929/* confdefs.h. */
26930_ACEOF
26931cat confdefs.h >>conftest.$ac_ext
26932cat >>conftest.$ac_ext <<_ACEOF
26933/* end confdefs.h. */
26934
26935#include <sys/types.h>
26936#include <stdint.h>
26937
26938
26939typedef uintmax_t ac__type_new_;
26940int
26941main ()
26942{
26943if ((ac__type_new_ *) 0)
26944 return 0;
26945if (sizeof (ac__type_new_))
26946 return 0;
26947 ;
26948 return 0;
26949}
26950_ACEOF
26951rm -f conftest.$ac_objext
26952if { (ac_try="$ac_compile"
26953case "(($ac_try" in
26954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26955 *) ac_try_echo=$ac_try;;
26956esac
26957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26958 (eval "$ac_compile") 2>conftest.er1
26959 ac_status=$?
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } && {
26965 test -z "$ac_c_werror_flag" ||
26966 test ! -s conftest.err
26967 } && test -s conftest.$ac_objext; then
26968 ac_cv_type_uintmax_t=yes
26969else
26970 echo "$as_me: failed program was:" >&5
26971sed 's/^/| /' conftest.$ac_ext >&5
26972
26973 ac_cv_type_uintmax_t=no
26974fi
26975
26976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26977fi
26978{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
26979echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
26980if test $ac_cv_type_uintmax_t = yes; then
26981
26982cat >>confdefs.h <<_ACEOF
26983#define HAVE_UINTMAX_T 1
26984_ACEOF
26985
26986
26987fi
26988
26989
26990
26991 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26992echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26993if test "${ac_cv_type_socklen_t+set}" = set; then
26994 echo $ECHO_N "(cached) $ECHO_C" >&6
26995else
26996 cat >conftest.$ac_ext <<_ACEOF
26997/* confdefs.h. */
26998_ACEOF
26999cat confdefs.h >>conftest.$ac_ext
27000cat >>conftest.$ac_ext <<_ACEOF
27001/* end confdefs.h. */
27002#include <sys/types.h>
27003#include <sys/socket.h>
27004
27005typedef socklen_t ac__type_new_;
27006int
27007main ()
27008{
27009if ((ac__type_new_ *) 0)
27010 return 0;
27011if (sizeof (ac__type_new_))
27012 return 0;
27013 ;
27014 return 0;
27015}
27016_ACEOF
27017rm -f conftest.$ac_objext
27018if { (ac_try="$ac_compile"
27019case "(($ac_try" in
27020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27021 *) ac_try_echo=$ac_try;;
27022esac
27023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27024 (eval "$ac_compile") 2>conftest.er1
27025 ac_status=$?
27026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } && {
27031 test -z "$ac_c_werror_flag" ||
27032 test ! -s conftest.err
27033 } && test -s conftest.$ac_objext; then
27034 ac_cv_type_socklen_t=yes
27035else
27036 echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
27039 ac_cv_type_socklen_t=no
27040fi
27041
27042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27043fi
27044{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27045echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27046if test $ac_cv_type_socklen_t = yes; then
27047 :
27048else
27049
27050 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27051echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
27052 if test "${curl_cv_socklen_t_equiv+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27054else
27055
27056 # Systems have either "struct sockaddr *" or
27057 # "void *" as the second argument to getpeername
27058 curl_cv_socklen_t_equiv=
27059 for arg2 in "struct sockaddr" void; do
27060 for t in int size_t unsigned long "unsigned long"; do
27061 cat >conftest.$ac_ext <<_ACEOF
27062/* confdefs.h. */
27063_ACEOF
27064cat confdefs.h >>conftest.$ac_ext
27065cat >>conftest.$ac_ext <<_ACEOF
27066/* end confdefs.h. */
27067
27068 #include <sys/types.h>
27069 #include <sys/socket.h>
27070
27071 int getpeername (int, $arg2 *, $t *);
27072
27073int
27074main ()
27075{
27076
27077 $t len;
27078 getpeername(0,0,&len);
27079
27080 ;
27081 return 0;
27082}
27083_ACEOF
27084rm -f conftest.$ac_objext
27085if { (ac_try="$ac_compile"
27086case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27089esac
27090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_compile") 2>conftest.er1
27092 ac_status=$?
27093 grep -v '^ *+' conftest.er1 >conftest.err
27094 rm -f conftest.er1
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } && {
27098 test -z "$ac_c_werror_flag" ||
27099 test ! -s conftest.err
27100 } && test -s conftest.$ac_objext; then
27101
27102 curl_cv_socklen_t_equiv="$t"
27103 break
27104
27105else
27106 echo "$as_me: failed program was:" >&5
27107sed 's/^/| /' conftest.$ac_ext >&5
27108
27109
27110fi
27111
27112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 done
27114 done
27115
27116 if test "x$curl_cv_socklen_t_equiv" = x; then
27117 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27118echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27119 { (exit 1); exit 1; }; }
27120 fi
27121
27122fi
27123
27124 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
27125echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
27126
27127cat >>confdefs.h <<_ACEOF
27128#define socklen_t $curl_cv_socklen_t_equiv
27129_ACEOF
27130
27131fi
27132
27133
27134
27135{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27136echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
27137if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27138 echo $ECHO_N "(cached) $ECHO_C" >&6
27139else
27140 cat >conftest.$ac_ext <<_ACEOF
27141/* confdefs.h. */
27142_ACEOF
27143cat confdefs.h >>conftest.$ac_ext
27144cat >>conftest.$ac_ext <<_ACEOF
27145/* end confdefs.h. */
27146#include <signal.h>
27147
27148typedef sig_atomic_t ac__type_new_;
27149int
27150main ()
27151{
27152if ((ac__type_new_ *) 0)
27153 return 0;
27154if (sizeof (ac__type_new_))
27155 return 0;
27156 ;
27157 return 0;
27158}
27159_ACEOF
27160rm -f conftest.$ac_objext
27161if { (ac_try="$ac_compile"
27162case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27165esac
27166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_compile") 2>conftest.er1
27168 ac_status=$?
27169 grep -v '^ *+' conftest.er1 >conftest.err
27170 rm -f conftest.er1
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } && {
27174 test -z "$ac_c_werror_flag" ||
27175 test ! -s conftest.err
27176 } && test -s conftest.$ac_objext; then
27177 ac_cv_type_sig_atomic_t=yes
27178else
27179 echo "$as_me: failed program was:" >&5
27180sed 's/^/| /' conftest.$ac_ext >&5
27181
27182 ac_cv_type_sig_atomic_t=no
27183fi
27184
27185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27186fi
27187{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27188echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
27189if test $ac_cv_type_sig_atomic_t = yes; then
27190
27191cat >>confdefs.h <<_ACEOF
27192#define HAVE_SIG_ATOMIC_T 1
27193_ACEOF
27194
27195
27196fi
27197
27198{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
27199echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
27200if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203 cat >conftest.$ac_ext <<_ACEOF
27204/* confdefs.h. */
27205_ACEOF
27206cat confdefs.h >>conftest.$ac_ext
27207cat >>conftest.$ac_ext <<_ACEOF
27208/* end confdefs.h. */
27209
27210#include <sys/types.h>
27211#ifdef HAVE_SYS_BITYPES_H
27212#include <sys/bitypes.h>
27213#endif
27214#ifdef HAVE_SYS_STATFS_H
27215#include <sys/statfs.h>
27216#endif
27217#ifdef HAVE_SYS_STATVFS_H
27218#include <sys/statvfs.h>
27219#endif
27220
27221
27222typedef fsblkcnt_t ac__type_new_;
27223int
27224main ()
27225{
27226if ((ac__type_new_ *) 0)
27227 return 0;
27228if (sizeof (ac__type_new_))
27229 return 0;
27230 ;
27231 return 0;
27232}
27233_ACEOF
27234rm -f conftest.$ac_objext
27235if { (ac_try="$ac_compile"
27236case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27239esac
27240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_compile") 2>conftest.er1
27242 ac_status=$?
27243 grep -v '^ *+' conftest.er1 >conftest.err
27244 rm -f conftest.er1
27245 cat conftest.err >&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } && {
27248 test -z "$ac_c_werror_flag" ||
27249 test ! -s conftest.err
27250 } && test -s conftest.$ac_objext; then
27251 ac_cv_type_fsblkcnt_t=yes
27252else
27253 echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
27256 ac_cv_type_fsblkcnt_t=no
27257fi
27258
27259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260fi
27261{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
27262echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
27263if test $ac_cv_type_fsblkcnt_t = yes; then
27264
27265cat >>confdefs.h <<_ACEOF
27266#define HAVE_FSBLKCNT_T 1
27267_ACEOF
27268
27269
27270fi
27271{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
27272echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
27273if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27275else
27276 cat >conftest.$ac_ext <<_ACEOF
27277/* confdefs.h. */
27278_ACEOF
27279cat confdefs.h >>conftest.$ac_ext
27280cat >>conftest.$ac_ext <<_ACEOF
27281/* end confdefs.h. */
27282
27283#include <sys/types.h>
27284#ifdef HAVE_SYS_BITYPES_H
27285#include <sys/bitypes.h>
27286#endif
27287#ifdef HAVE_SYS_STATFS_H
27288#include <sys/statfs.h>
27289#endif
27290#ifdef HAVE_SYS_STATVFS_H
27291#include <sys/statvfs.h>
27292#endif
27293
27294
27295typedef fsfilcnt_t ac__type_new_;
27296int
27297main ()
27298{
27299if ((ac__type_new_ *) 0)
27300 return 0;
27301if (sizeof (ac__type_new_))
27302 return 0;
27303 ;
27304 return 0;
27305}
27306_ACEOF
27307rm -f conftest.$ac_objext
27308if { (ac_try="$ac_compile"
27309case "(($ac_try" in
27310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27311 *) ac_try_echo=$ac_try;;
27312esac
27313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27314 (eval "$ac_compile") 2>conftest.er1
27315 ac_status=$?
27316 grep -v '^ *+' conftest.er1 >conftest.err
27317 rm -f conftest.er1
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } && {
27321 test -z "$ac_c_werror_flag" ||
27322 test ! -s conftest.err
27323 } && test -s conftest.$ac_objext; then
27324 ac_cv_type_fsfilcnt_t=yes
27325else
27326 echo "$as_me: failed program was:" >&5
27327sed 's/^/| /' conftest.$ac_ext >&5
27328
27329 ac_cv_type_fsfilcnt_t=no
27330fi
27331
27332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27333fi
27334{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
27335echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
27336if test $ac_cv_type_fsfilcnt_t = yes; then
27337
27338cat >>confdefs.h <<_ACEOF
27339#define HAVE_FSFILCNT_T 1
27340_ACEOF
27341
27342
27343fi
27344
27345
27346{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
27347echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
27348if test "${ac_cv_type_in_addr_t+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27350else
27351 cat >conftest.$ac_ext <<_ACEOF
27352/* confdefs.h. */
27353_ACEOF
27354cat confdefs.h >>conftest.$ac_ext
27355cat >>conftest.$ac_ext <<_ACEOF
27356/* end confdefs.h. */
27357#include <sys/types.h>
27358#include <netinet/in.h>
27359
27360typedef in_addr_t ac__type_new_;
27361int
27362main ()
27363{
27364if ((ac__type_new_ *) 0)
27365 return 0;
27366if (sizeof (ac__type_new_))
27367 return 0;
27368 ;
27369 return 0;
27370}
27371_ACEOF
27372rm -f conftest.$ac_objext
27373if { (ac_try="$ac_compile"
27374case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } && {
27386 test -z "$ac_c_werror_flag" ||
27387 test ! -s conftest.err
27388 } && test -s conftest.$ac_objext; then
27389 ac_cv_type_in_addr_t=yes
27390else
27391 echo "$as_me: failed program was:" >&5
27392sed 's/^/| /' conftest.$ac_ext >&5
27393
27394 ac_cv_type_in_addr_t=no
27395fi
27396
27397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398fi
27399{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
27400echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
27401if test $ac_cv_type_in_addr_t = yes; then
27402
27403cat >>confdefs.h <<_ACEOF
27404#define HAVE_IN_ADDR_T 1
27405_ACEOF
27406
27407
27408fi
27409{ echo "$as_me:$LINENO: checking for in_port_t" >&5
27410echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
27411if test "${ac_cv_type_in_port_t+set}" = set; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27413else
27414 cat >conftest.$ac_ext <<_ACEOF
27415/* confdefs.h. */
27416_ACEOF
27417cat confdefs.h >>conftest.$ac_ext
27418cat >>conftest.$ac_ext <<_ACEOF
27419/* end confdefs.h. */
27420#include <sys/types.h>
27421#include <netinet/in.h>
27422
27423typedef in_port_t ac__type_new_;
27424int
27425main ()
27426{
27427if ((ac__type_new_ *) 0)
27428 return 0;
27429if (sizeof (ac__type_new_))
27430 return 0;
27431 ;
27432 return 0;
27433}
27434_ACEOF
27435rm -f conftest.$ac_objext
27436if { (ac_try="$ac_compile"
27437case "(($ac_try" in
27438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439 *) ac_try_echo=$ac_try;;
27440esac
27441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442 (eval "$ac_compile") 2>conftest.er1
27443 ac_status=$?
27444 grep -v '^ *+' conftest.er1 >conftest.err
27445 rm -f conftest.er1
27446 cat conftest.err >&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } && {
27449 test -z "$ac_c_werror_flag" ||
27450 test ! -s conftest.err
27451 } && test -s conftest.$ac_objext; then
27452 ac_cv_type_in_port_t=yes
27453else
27454 echo "$as_me: failed program was:" >&5
27455sed 's/^/| /' conftest.$ac_ext >&5
27456
27457 ac_cv_type_in_port_t=no
27458fi
27459
27460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27461fi
27462{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
27463echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
27464if test $ac_cv_type_in_port_t = yes; then
27465
27466cat >>confdefs.h <<_ACEOF
27467#define HAVE_IN_PORT_T 1
27468_ACEOF
27469
27470
27471fi
27472
27473
27474{ echo "$as_me:$LINENO: checking for size_t" >&5
27475echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27476if test "${ac_cv_have_size_t+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27478else
27479
27480 cat >conftest.$ac_ext <<_ACEOF
27481/* confdefs.h. */
27482_ACEOF
27483cat confdefs.h >>conftest.$ac_ext
27484cat >>conftest.$ac_ext <<_ACEOF
27485/* end confdefs.h. */
27486 #include <sys/types.h>
27487int
27488main ()
27489{
27490 size_t foo; foo = 1235;
27491 ;
27492 return 0;
27493}
27494_ACEOF
27495rm -f conftest.$ac_objext
27496if { (ac_try="$ac_compile"
27497case "(($ac_try" in
27498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27500esac
27501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502 (eval "$ac_compile") 2>conftest.er1
27503 ac_status=$?
27504 grep -v '^ *+' conftest.er1 >conftest.err
27505 rm -f conftest.er1
27506 cat conftest.err >&5
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); } && {
27509 test -z "$ac_c_werror_flag" ||
27510 test ! -s conftest.err
27511 } && test -s conftest.$ac_objext; then
27512 ac_cv_have_size_t="yes"
27513else
27514 echo "$as_me: failed program was:" >&5
27515sed 's/^/| /' conftest.$ac_ext >&5
27516
27517 ac_cv_have_size_t="no"
27518
27519fi
27520
27521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27522
27523fi
27524{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
27525echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
27526if test "x$ac_cv_have_size_t" = "xyes" ; then
27527
27528cat >>confdefs.h <<\_ACEOF
27529#define HAVE_SIZE_T 1
27530_ACEOF
27531
27532fi
27533
27534{ echo "$as_me:$LINENO: checking for ssize_t" >&5
27535echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27536if test "${ac_cv_have_ssize_t+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
27538else
27539
27540 cat >conftest.$ac_ext <<_ACEOF
27541/* confdefs.h. */
27542_ACEOF
27543cat confdefs.h >>conftest.$ac_ext
27544cat >>conftest.$ac_ext <<_ACEOF
27545/* end confdefs.h. */
27546 #include <sys/types.h>
27547int
27548main ()
27549{
27550 ssize_t foo; foo = 1235;
27551 ;
27552 return 0;
27553}
27554_ACEOF
27555rm -f conftest.$ac_objext
27556if { (ac_try="$ac_compile"
27557case "(($ac_try" in
27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27560esac
27561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562 (eval "$ac_compile") 2>conftest.er1
27563 ac_status=$?
27564 grep -v '^ *+' conftest.er1 >conftest.err
27565 rm -f conftest.er1
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } && {
27569 test -z "$ac_c_werror_flag" ||
27570 test ! -s conftest.err
27571 } && test -s conftest.$ac_objext; then
27572 ac_cv_have_ssize_t="yes"
27573else
27574 echo "$as_me: failed program was:" >&5
27575sed 's/^/| /' conftest.$ac_ext >&5
27576
27577 ac_cv_have_ssize_t="no"
27578
27579fi
27580
27581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27582
27583fi
27584{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
27585echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
27586if test "x$ac_cv_have_ssize_t" = "xyes" ; then
27587
27588cat >>confdefs.h <<\_ACEOF
27589#define HAVE_SSIZE_T 1
27590_ACEOF
27591
27592fi
27593
27594{ echo "$as_me:$LINENO: checking for clock_t" >&5
27595echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
27596if test "${ac_cv_have_clock_t+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27598else
27599
27600 cat >conftest.$ac_ext <<_ACEOF
27601/* confdefs.h. */
27602_ACEOF
27603cat confdefs.h >>conftest.$ac_ext
27604cat >>conftest.$ac_ext <<_ACEOF
27605/* end confdefs.h. */
27606 #include <time.h>
27607int
27608main ()
27609{
27610 clock_t foo; foo = 1235;
27611 ;
27612 return 0;
27613}
27614_ACEOF
27615rm -f conftest.$ac_objext
27616if { (ac_try="$ac_compile"
27617case "(($ac_try" in
27618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27619 *) ac_try_echo=$ac_try;;
27620esac
27621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27622 (eval "$ac_compile") 2>conftest.er1
27623 ac_status=$?
27624 grep -v '^ *+' conftest.er1 >conftest.err
27625 rm -f conftest.er1
27626 cat conftest.err >&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } && {
27629 test -z "$ac_c_werror_flag" ||
27630 test ! -s conftest.err
27631 } && test -s conftest.$ac_objext; then
27632 ac_cv_have_clock_t="yes"
27633else
27634 echo "$as_me: failed program was:" >&5
27635sed 's/^/| /' conftest.$ac_ext >&5
27636
27637 ac_cv_have_clock_t="no"
27638
27639fi
27640
27641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27642
27643fi
27644{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
27645echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
27646if test "x$ac_cv_have_clock_t" = "xyes" ; then
27647
27648cat >>confdefs.h <<\_ACEOF
27649#define HAVE_CLOCK_T 1
27650_ACEOF
27651
27652fi
27653
27654{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
27655echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
27656if test "${ac_cv_have_sa_family_t+set}" = set; then
27657 echo $ECHO_N "(cached) $ECHO_C" >&6
27658else
27659
27660 cat >conftest.$ac_ext <<_ACEOF
27661/* confdefs.h. */
27662_ACEOF
27663cat confdefs.h >>conftest.$ac_ext
27664cat >>conftest.$ac_ext <<_ACEOF
27665/* end confdefs.h. */
27666
27667#include <sys/types.h>
27668#include <sys/socket.h>
27669
27670int
27671main ()
27672{
27673 sa_family_t foo; foo = 1235;
27674 ;
27675 return 0;
27676}
27677_ACEOF
27678rm -f conftest.$ac_objext
27679if { (ac_try="$ac_compile"
27680case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27683esac
27684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27685 (eval "$ac_compile") 2>conftest.er1
27686 ac_status=$?
27687 grep -v '^ *+' conftest.er1 >conftest.err
27688 rm -f conftest.er1
27689 cat conftest.err >&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } && {
27692 test -z "$ac_c_werror_flag" ||
27693 test ! -s conftest.err
27694 } && test -s conftest.$ac_objext; then
27695 ac_cv_have_sa_family_t="yes"
27696else
27697 echo "$as_me: failed program was:" >&5
27698sed 's/^/| /' conftest.$ac_ext >&5
27699
27700 cat >conftest.$ac_ext <<_ACEOF
27701/* confdefs.h. */
27702_ACEOF
27703cat confdefs.h >>conftest.$ac_ext
27704cat >>conftest.$ac_ext <<_ACEOF
27705/* end confdefs.h. */
27706
27707#include <sys/types.h>
27708#include <sys/socket.h>
27709#include <netinet/in.h>
27710
27711int
27712main ()
27713{
27714 sa_family_t foo; foo = 1235;
27715 ;
27716 return 0;
27717}
27718_ACEOF
27719rm -f conftest.$ac_objext
27720if { (ac_try="$ac_compile"
27721case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27724esac
27725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726 (eval "$ac_compile") 2>conftest.er1
27727 ac_status=$?
27728 grep -v '^ *+' conftest.er1 >conftest.err
27729 rm -f conftest.er1
27730 cat conftest.err >&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } && {
27733 test -z "$ac_c_werror_flag" ||
27734 test ! -s conftest.err
27735 } && test -s conftest.$ac_objext; then
27736 ac_cv_have_sa_family_t="yes"
27737else
27738 echo "$as_me: failed program was:" >&5
27739sed 's/^/| /' conftest.$ac_ext >&5
27740
27741 ac_cv_have_sa_family_t="no"
27742
27743fi
27744
27745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27746
27747fi
27748
27749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27750
27751fi
27752{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
27753echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
27754if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
27755
27756cat >>confdefs.h <<\_ACEOF
27757#define HAVE_SA_FAMILY_T 1
27758_ACEOF
27759
27760fi
27761
27762{ echo "$as_me:$LINENO: checking for pid_t" >&5
27763echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
27764if test "${ac_cv_have_pid_t+set}" = set; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27766else
27767
27768 cat >conftest.$ac_ext <<_ACEOF
27769/* confdefs.h. */
27770_ACEOF
27771cat confdefs.h >>conftest.$ac_ext
27772cat >>conftest.$ac_ext <<_ACEOF
27773/* end confdefs.h. */
27774 #include <sys/types.h>
27775int
27776main ()
27777{
27778 pid_t foo; foo = 1235;
27779 ;
27780 return 0;
27781}
27782_ACEOF
27783rm -f conftest.$ac_objext
27784if { (ac_try="$ac_compile"
27785case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27788esac
27789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_compile") 2>conftest.er1
27791 ac_status=$?
27792 grep -v '^ *+' conftest.er1 >conftest.err
27793 rm -f conftest.er1
27794 cat conftest.err >&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } && {
27797 test -z "$ac_c_werror_flag" ||
27798 test ! -s conftest.err
27799 } && test -s conftest.$ac_objext; then
27800 ac_cv_have_pid_t="yes"
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
27805 ac_cv_have_pid_t="no"
27806
27807fi
27808
27809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27810
27811fi
27812{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
27813echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
27814if test "x$ac_cv_have_pid_t" = "xyes" ; then
27815
27816cat >>confdefs.h <<\_ACEOF
27817#define HAVE_PID_T 1
27818_ACEOF
27819
27820fi
27821
27822{ echo "$as_me:$LINENO: checking for mode_t" >&5
27823echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
27824if test "${ac_cv_have_mode_t+set}" = set; then
27825 echo $ECHO_N "(cached) $ECHO_C" >&6
27826else
27827
27828 cat >conftest.$ac_ext <<_ACEOF
27829/* confdefs.h. */
27830_ACEOF
27831cat confdefs.h >>conftest.$ac_ext
27832cat >>conftest.$ac_ext <<_ACEOF
27833/* end confdefs.h. */
27834 #include <sys/types.h>
27835int
27836main ()
27837{
27838 mode_t foo; foo = 1235;
27839 ;
27840 return 0;
27841}
27842_ACEOF
27843rm -f conftest.$ac_objext
27844if { (ac_try="$ac_compile"
27845case "(($ac_try" in
27846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847 *) ac_try_echo=$ac_try;;
27848esac
27849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850 (eval "$ac_compile") 2>conftest.er1
27851 ac_status=$?
27852 grep -v '^ *+' conftest.er1 >conftest.err
27853 rm -f conftest.er1
27854 cat conftest.err >&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } && {
27857 test -z "$ac_c_werror_flag" ||
27858 test ! -s conftest.err
27859 } && test -s conftest.$ac_objext; then
27860 ac_cv_have_mode_t="yes"
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 ac_cv_have_mode_t="no"
27866
27867fi
27868
27869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27870
27871fi
27872{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
27873echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
27874if test "x$ac_cv_have_mode_t" = "xyes" ; then
27875
27876cat >>confdefs.h <<\_ACEOF
27877#define HAVE_MODE_T 1
27878_ACEOF
27879
27880fi
27881
27882
27883{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27884echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
27885if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
27886 echo $ECHO_N "(cached) $ECHO_C" >&6
27887else
27888
27889 cat >conftest.$ac_ext <<_ACEOF
27890/* confdefs.h. */
27891_ACEOF
27892cat confdefs.h >>conftest.$ac_ext
27893cat >>conftest.$ac_ext <<_ACEOF
27894/* end confdefs.h. */
27895
27896#include <sys/types.h>
27897#include <sys/socket.h>
27898
27899int
27900main ()
27901{
27902 struct sockaddr_storage s;
27903 ;
27904 return 0;
27905}
27906_ACEOF
27907rm -f conftest.$ac_objext
27908if { (ac_try="$ac_compile"
27909case "(($ac_try" in
27910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911 *) ac_try_echo=$ac_try;;
27912esac
27913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914 (eval "$ac_compile") 2>conftest.er1
27915 ac_status=$?
27916 grep -v '^ *+' conftest.er1 >conftest.err
27917 rm -f conftest.er1
27918 cat conftest.err >&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } && {
27921 test -z "$ac_c_werror_flag" ||
27922 test ! -s conftest.err
27923 } && test -s conftest.$ac_objext; then
27924 ac_cv_have_struct_sockaddr_storage="yes"
27925else
27926 echo "$as_me: failed program was:" >&5
27927sed 's/^/| /' conftest.$ac_ext >&5
27928
27929 ac_cv_have_struct_sockaddr_storage="no"
27930
27931fi
27932
27933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27934
27935fi
27936{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
27937echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
27938if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
27939
27940cat >>confdefs.h <<\_ACEOF
27941#define HAVE_STRUCT_SOCKADDR_STORAGE 1
27942_ACEOF
27943
27944fi
27945
27946{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
27947echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
27948if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
27949 echo $ECHO_N "(cached) $ECHO_C" >&6
27950else
27951
27952 cat >conftest.$ac_ext <<_ACEOF
27953/* confdefs.h. */
27954_ACEOF
27955cat confdefs.h >>conftest.$ac_ext
27956cat >>conftest.$ac_ext <<_ACEOF
27957/* end confdefs.h. */
27958
27959#include <sys/types.h>
27960#include <netinet/in.h>
27961
27962int
27963main ()
27964{
27965 struct sockaddr_in6 s; s.sin6_family = 0;
27966 ;
27967 return 0;
27968}
27969_ACEOF
27970rm -f conftest.$ac_objext
27971if { (ac_try="$ac_compile"
27972case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27975esac
27976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_compile") 2>conftest.er1
27978 ac_status=$?
27979 grep -v '^ *+' conftest.er1 >conftest.err
27980 rm -f conftest.er1
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } && {
27984 test -z "$ac_c_werror_flag" ||
27985 test ! -s conftest.err
27986 } && test -s conftest.$ac_objext; then
27987 ac_cv_have_struct_sockaddr_in6="yes"
27988else
27989 echo "$as_me: failed program was:" >&5
27990sed 's/^/| /' conftest.$ac_ext >&5
27991
27992 ac_cv_have_struct_sockaddr_in6="no"
27993
27994fi
27995
27996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27997
27998fi
27999{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
28000echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
28001if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
28002
28003cat >>confdefs.h <<\_ACEOF
28004#define HAVE_STRUCT_SOCKADDR_IN6 1
28005_ACEOF
28006
28007fi
28008
28009{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
28010echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
28011if test "${ac_cv_have_struct_in6_addr+set}" = set; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28013else
28014
28015 cat >conftest.$ac_ext <<_ACEOF
28016/* confdefs.h. */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h. */
28021
28022#include <sys/types.h>
28023#include <netinet/in.h>
28024
28025int
28026main ()
28027{
28028 struct in6_addr s; s.s6_addr[0] = 0;
28029 ;
28030 return 0;
28031}
28032_ACEOF
28033rm -f conftest.$ac_objext
28034if { (ac_try="$ac_compile"
28035case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28038esac
28039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_compile") 2>conftest.er1
28041 ac_status=$?
28042 grep -v '^ *+' conftest.er1 >conftest.err
28043 rm -f conftest.er1
28044 cat conftest.err >&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } && {
28047 test -z "$ac_c_werror_flag" ||
28048 test ! -s conftest.err
28049 } && test -s conftest.$ac_objext; then
28050 ac_cv_have_struct_in6_addr="yes"
28051else
28052 echo "$as_me: failed program was:" >&5
28053sed 's/^/| /' conftest.$ac_ext >&5
28054
28055 ac_cv_have_struct_in6_addr="no"
28056
28057fi
28058
28059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28060
28061fi
28062{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
28063echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
28064if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
28065
28066cat >>confdefs.h <<\_ACEOF
28067#define HAVE_STRUCT_IN6_ADDR 1
28068_ACEOF
28069
28070
28071 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
28072echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
28073if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28075else
28076 cat >conftest.$ac_ext <<_ACEOF
28077/* confdefs.h. */
28078_ACEOF
28079cat confdefs.h >>conftest.$ac_ext
28080cat >>conftest.$ac_ext <<_ACEOF
28081/* end confdefs.h. */
28082
28083#ifdef HAVE_SYS_TYPES_H
28084#include <sys/types.h>
28085#endif
28086#include <netinet/in.h>
28087
28088
28089int
28090main ()
28091{
28092static struct sockaddr_in6 ac_aggr;
28093if (ac_aggr.sin6_scope_id)
28094return 0;
28095 ;
28096 return 0;
28097}
28098_ACEOF
28099rm -f conftest.$ac_objext
28100if { (ac_try="$ac_compile"
28101case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28104esac
28105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106 (eval "$ac_compile") 2>conftest.er1
28107 ac_status=$?
28108 grep -v '^ *+' conftest.er1 >conftest.err
28109 rm -f conftest.er1
28110 cat conftest.err >&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } && {
28113 test -z "$ac_c_werror_flag" ||
28114 test ! -s conftest.err
28115 } && test -s conftest.$ac_objext; then
28116 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28117else
28118 echo "$as_me: failed program was:" >&5
28119sed 's/^/| /' conftest.$ac_ext >&5
28120
28121 cat >conftest.$ac_ext <<_ACEOF
28122/* confdefs.h. */
28123_ACEOF
28124cat confdefs.h >>conftest.$ac_ext
28125cat >>conftest.$ac_ext <<_ACEOF
28126/* end confdefs.h. */
28127
28128#ifdef HAVE_SYS_TYPES_H
28129#include <sys/types.h>
28130#endif
28131#include <netinet/in.h>
28132
28133
28134int
28135main ()
28136{
28137static struct sockaddr_in6 ac_aggr;
28138if (sizeof ac_aggr.sin6_scope_id)
28139return 0;
28140 ;
28141 return 0;
28142}
28143_ACEOF
28144rm -f conftest.$ac_objext
28145if { (ac_try="$ac_compile"
28146case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149esac
28150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_compile") 2>conftest.er1
28152 ac_status=$?
28153 grep -v '^ *+' conftest.er1 >conftest.err
28154 rm -f conftest.er1
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } && {
28158 test -z "$ac_c_werror_flag" ||
28159 test ! -s conftest.err
28160 } && test -s conftest.$ac_objext; then
28161 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28162else
28163 echo "$as_me: failed program was:" >&5
28164sed 's/^/| /' conftest.$ac_ext >&5
28165
28166 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
28167fi
28168
28169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28170fi
28171
28172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28173fi
28174{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
28175echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
28176if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
28177
28178cat >>confdefs.h <<_ACEOF
28179#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
28180_ACEOF
28181
28182
28183fi
28184
28185fi
28186
28187{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
28188echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
28189if test "${ac_cv_have_struct_addrinfo+set}" = set; then
28190 echo $ECHO_N "(cached) $ECHO_C" >&6
28191else
28192
28193 cat >conftest.$ac_ext <<_ACEOF
28194/* confdefs.h. */
28195_ACEOF
28196cat confdefs.h >>conftest.$ac_ext
28197cat >>conftest.$ac_ext <<_ACEOF
28198/* end confdefs.h. */
28199
28200#include <sys/types.h>
28201#include <sys/socket.h>
28202#include <netdb.h>
28203
28204int
28205main ()
28206{
28207 struct addrinfo s; s.ai_flags = AI_PASSIVE;
28208 ;
28209 return 0;
28210}
28211_ACEOF
28212rm -f conftest.$ac_objext
28213if { (ac_try="$ac_compile"
28214case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28217esac
28218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_compile") 2>conftest.er1
28220 ac_status=$?
28221 grep -v '^ *+' conftest.er1 >conftest.err
28222 rm -f conftest.er1
28223 cat conftest.err >&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } && {
28226 test -z "$ac_c_werror_flag" ||
28227 test ! -s conftest.err
28228 } && test -s conftest.$ac_objext; then
28229 ac_cv_have_struct_addrinfo="yes"
28230else
28231 echo "$as_me: failed program was:" >&5
28232sed 's/^/| /' conftest.$ac_ext >&5
28233
28234 ac_cv_have_struct_addrinfo="no"
28235
28236fi
28237
28238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28239
28240fi
28241{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
28242echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
28243if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
28244
28245cat >>confdefs.h <<\_ACEOF
28246#define HAVE_STRUCT_ADDRINFO 1
28247_ACEOF
28248
28249fi
28250
28251{ echo "$as_me:$LINENO: checking for struct timeval" >&5
28252echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28253if test "${ac_cv_have_struct_timeval+set}" = set; then
28254 echo $ECHO_N "(cached) $ECHO_C" >&6
28255else
28256
28257 cat >conftest.$ac_ext <<_ACEOF
28258/* confdefs.h. */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h. */
28263 #include <sys/time.h>
28264int
28265main ()
28266{
28267 struct timeval tv; tv.tv_sec = 1;
28268 ;
28269 return 0;
28270}
28271_ACEOF
28272rm -f conftest.$ac_objext
28273if { (ac_try="$ac_compile"
28274case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28277esac
28278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_compile") 2>conftest.er1
28280 ac_status=$?
28281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } && {
28286 test -z "$ac_c_werror_flag" ||
28287 test ! -s conftest.err
28288 } && test -s conftest.$ac_objext; then
28289 ac_cv_have_struct_timeval="yes"
28290else
28291 echo "$as_me: failed program was:" >&5
28292sed 's/^/| /' conftest.$ac_ext >&5
28293
28294 ac_cv_have_struct_timeval="no"
28295
28296fi
28297
28298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28299
28300fi
28301{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
28302echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
28303if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
28304
28305cat >>confdefs.h <<\_ACEOF
28306#define HAVE_STRUCT_TIMEVAL 1
28307_ACEOF
28308
28309 have_struct_timeval=1
28310fi
28311
28312{ echo "$as_me:$LINENO: checking for struct timespec" >&5
28313echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
28314if test "${ac_cv_type_struct_timespec+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
28316else
28317 cat >conftest.$ac_ext <<_ACEOF
28318/* confdefs.h. */
28319_ACEOF
28320cat confdefs.h >>conftest.$ac_ext
28321cat >>conftest.$ac_ext <<_ACEOF
28322/* end confdefs.h. */
28323$ac_includes_default
28324typedef struct timespec ac__type_new_;
28325int
28326main ()
28327{
28328if ((ac__type_new_ *) 0)
28329 return 0;
28330if (sizeof (ac__type_new_))
28331 return 0;
28332 ;
28333 return 0;
28334}
28335_ACEOF
28336rm -f conftest.$ac_objext
28337if { (ac_try="$ac_compile"
28338case "(($ac_try" in
28339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340 *) ac_try_echo=$ac_try;;
28341esac
28342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343 (eval "$ac_compile") 2>conftest.er1
28344 ac_status=$?
28345 grep -v '^ *+' conftest.er1 >conftest.err
28346 rm -f conftest.er1
28347 cat conftest.err >&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } && {
28350 test -z "$ac_c_werror_flag" ||
28351 test ! -s conftest.err
28352 } && test -s conftest.$ac_objext; then
28353 ac_cv_type_struct_timespec=yes
28354else
28355 echo "$as_me: failed program was:" >&5
28356sed 's/^/| /' conftest.$ac_ext >&5
28357
28358 ac_cv_type_struct_timespec=no
28359fi
28360
28361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28362fi
28363{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
28364echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
28365if test $ac_cv_type_struct_timespec = yes; then
28366
28367cat >>confdefs.h <<_ACEOF
28368#define HAVE_STRUCT_TIMESPEC 1
28369_ACEOF
28370
28371
28372fi
28373
28374
28375# We need int64_t or else certian parts of the compile will fail.
28376if test "x$ac_cv_have_int64_t" = "xno" && \
28377 test "x$ac_cv_sizeof_long_int" != "x8" && \
28378 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
28379 echo "OpenSSH requires int64_t support. Contact your vendor or install"
28380 echo "an alternative compiler (I.E., GCC) before continuing."
28381 echo ""
28382 exit 1;
28383else
28384 if test "$cross_compiling" = yes; then
28385 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
28386echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
28387
28388else
28389 cat >conftest.$ac_ext <<_ACEOF
28390/* confdefs.h. */
28391_ACEOF
28392cat confdefs.h >>conftest.$ac_ext
28393cat >>conftest.$ac_ext <<_ACEOF
28394/* end confdefs.h. */
28395
28396#include <stdio.h>
28397#include <string.h>
28398#ifdef HAVE_SNPRINTF
28399main()
28400{
28401 char buf[50];
28402 char expected_out[50];
28403 int mazsize = 50 ;
28404#if (SIZEOF_LONG_INT == 8)
28405 long int num = 0x7fffffffffffffff;
28406#else
28407 long long num = 0x7fffffffffffffffll;
28408#endif
28409 strcpy(expected_out, "9223372036854775807");
28410 snprintf(buf, mazsize, "%lld", num);
28411 if(strcmp(buf, expected_out) != 0)
28412 exit(1);
28413 exit(0);
28414}
28415#else
28416main() { exit(0); }
28417#endif
28418
28419_ACEOF
28420rm -f conftest$ac_exeext
28421if { (ac_try="$ac_link"
28422case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28425esac
28426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_link") 2>&5
28428 ac_status=$?
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28431 { (case "(($ac_try" in
28432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28433 *) ac_try_echo=$ac_try;;
28434esac
28435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28436 (eval "$ac_try") 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 true
28441else
28442 echo "$as_me: program exited with status $ac_status" >&5
28443echo "$as_me: failed program was:" >&5
28444sed 's/^/| /' conftest.$ac_ext >&5
28445
28446( exit $ac_status )
28447 cat >>confdefs.h <<\_ACEOF
28448#define BROKEN_SNPRINTF 1
28449_ACEOF
28450
28451fi
28452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28453fi
28454
28455
28456fi
28457
28458
28459# look for field 'ut_host' in header 'utmp.h'
28460 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28461 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28462 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
28463echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
28464 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28466else
28467
28468 cat >conftest.$ac_ext <<_ACEOF
28469/* confdefs.h. */
28470_ACEOF
28471cat confdefs.h >>conftest.$ac_ext
28472cat >>conftest.$ac_ext <<_ACEOF
28473/* end confdefs.h. */
28474#include <utmp.h>
28475
28476_ACEOF
28477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28478 $EGREP "ut_host" >/dev/null 2>&1; then
28479 eval "$ossh_varname=yes"
28480else
28481 eval "$ossh_varname=no"
28482fi
28483rm -f conftest*
28484
28485fi
28486
28487 ossh_result=`eval 'echo $'"$ossh_varname"`
28488 if test -n "`echo $ossh_varname`"; then
28489 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28490echo "${ECHO_T}$ossh_result" >&6; }
28491 if test "x$ossh_result" = "xyes"; then
28492
28493cat >>confdefs.h <<\_ACEOF
28494#define HAVE_HOST_IN_UTMP 1
28495_ACEOF
28496
28497 fi
28498 else
28499 { echo "$as_me:$LINENO: result: no" >&5
28500echo "${ECHO_T}no" >&6; }
28501 fi
28502
28503
28504# look for field 'ut_host' in header 'utmpx.h'
28505 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28506 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28507 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
28508echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
28509 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28511else
28512
28513 cat >conftest.$ac_ext <<_ACEOF
28514/* confdefs.h. */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h. */
28519#include <utmpx.h>
28520
28521_ACEOF
28522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28523 $EGREP "ut_host" >/dev/null 2>&1; then
28524 eval "$ossh_varname=yes"
28525else
28526 eval "$ossh_varname=no"
28527fi
28528rm -f conftest*
28529
28530fi
28531
28532 ossh_result=`eval 'echo $'"$ossh_varname"`
28533 if test -n "`echo $ossh_varname`"; then
28534 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28535echo "${ECHO_T}$ossh_result" >&6; }
28536 if test "x$ossh_result" = "xyes"; then
28537
28538cat >>confdefs.h <<\_ACEOF
28539#define HAVE_HOST_IN_UTMPX 1
28540_ACEOF
28541
28542 fi
28543 else
28544 { echo "$as_me:$LINENO: result: no" >&5
28545echo "${ECHO_T}no" >&6; }
28546 fi
28547
28548
28549# look for field 'syslen' in header 'utmpx.h'
28550 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28551 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
28552 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
28553echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
28554 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28556else
28557
28558 cat >conftest.$ac_ext <<_ACEOF
28559/* confdefs.h. */
28560_ACEOF
28561cat confdefs.h >>conftest.$ac_ext
28562cat >>conftest.$ac_ext <<_ACEOF
28563/* end confdefs.h. */
28564#include <utmpx.h>
28565
28566_ACEOF
28567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28568 $EGREP "syslen" >/dev/null 2>&1; then
28569 eval "$ossh_varname=yes"
28570else
28571 eval "$ossh_varname=no"
28572fi
28573rm -f conftest*
28574
28575fi
28576
28577 ossh_result=`eval 'echo $'"$ossh_varname"`
28578 if test -n "`echo $ossh_varname`"; then
28579 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28580echo "${ECHO_T}$ossh_result" >&6; }
28581 if test "x$ossh_result" = "xyes"; then
28582
28583cat >>confdefs.h <<\_ACEOF
28584#define HAVE_SYSLEN_IN_UTMPX 1
28585_ACEOF
28586
28587 fi
28588 else
28589 { echo "$as_me:$LINENO: result: no" >&5
28590echo "${ECHO_T}no" >&6; }
28591 fi
28592
28593
28594# look for field 'ut_pid' in header 'utmp.h'
28595 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28596 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
28597 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
28598echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
28599 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28601else
28602
28603 cat >conftest.$ac_ext <<_ACEOF
28604/* confdefs.h. */
28605_ACEOF
28606cat confdefs.h >>conftest.$ac_ext
28607cat >>conftest.$ac_ext <<_ACEOF
28608/* end confdefs.h. */
28609#include <utmp.h>
28610
28611_ACEOF
28612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28613 $EGREP "ut_pid" >/dev/null 2>&1; then
28614 eval "$ossh_varname=yes"
28615else
28616 eval "$ossh_varname=no"
28617fi
28618rm -f conftest*
28619
28620fi
28621
28622 ossh_result=`eval 'echo $'"$ossh_varname"`
28623 if test -n "`echo $ossh_varname`"; then
28624 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28625echo "${ECHO_T}$ossh_result" >&6; }
28626 if test "x$ossh_result" = "xyes"; then
28627
28628cat >>confdefs.h <<\_ACEOF
28629#define HAVE_PID_IN_UTMP 1
28630_ACEOF
28631
28632 fi
28633 else
28634 { echo "$as_me:$LINENO: result: no" >&5
28635echo "${ECHO_T}no" >&6; }
28636 fi
28637
28638
28639# look for field 'ut_type' in header 'utmp.h'
28640 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28641 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28642 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
28643echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
28644 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28645 echo $ECHO_N "(cached) $ECHO_C" >&6
28646else
28647
28648 cat >conftest.$ac_ext <<_ACEOF
28649/* confdefs.h. */
28650_ACEOF
28651cat confdefs.h >>conftest.$ac_ext
28652cat >>conftest.$ac_ext <<_ACEOF
28653/* end confdefs.h. */
28654#include <utmp.h>
28655
28656_ACEOF
28657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28658 $EGREP "ut_type" >/dev/null 2>&1; then
28659 eval "$ossh_varname=yes"
28660else
28661 eval "$ossh_varname=no"
28662fi
28663rm -f conftest*
28664
28665fi
28666
28667 ossh_result=`eval 'echo $'"$ossh_varname"`
28668 if test -n "`echo $ossh_varname`"; then
28669 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28670echo "${ECHO_T}$ossh_result" >&6; }
28671 if test "x$ossh_result" = "xyes"; then
28672
28673cat >>confdefs.h <<\_ACEOF
28674#define HAVE_TYPE_IN_UTMP 1
28675_ACEOF
28676
28677 fi
28678 else
28679 { echo "$as_me:$LINENO: result: no" >&5
28680echo "${ECHO_T}no" >&6; }
28681 fi
28682
28683
28684# look for field 'ut_type' in header 'utmpx.h'
28685 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28686 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28687 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
28688echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
28689 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28691else
28692
28693 cat >conftest.$ac_ext <<_ACEOF
28694/* confdefs.h. */
28695_ACEOF
28696cat confdefs.h >>conftest.$ac_ext
28697cat >>conftest.$ac_ext <<_ACEOF
28698/* end confdefs.h. */
28699#include <utmpx.h>
28700
28701_ACEOF
28702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28703 $EGREP "ut_type" >/dev/null 2>&1; then
28704 eval "$ossh_varname=yes"
28705else
28706 eval "$ossh_varname=no"
28707fi
28708rm -f conftest*
28709
28710fi
28711
28712 ossh_result=`eval 'echo $'"$ossh_varname"`
28713 if test -n "`echo $ossh_varname`"; then
28714 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28715echo "${ECHO_T}$ossh_result" >&6; }
28716 if test "x$ossh_result" = "xyes"; then
28717
28718cat >>confdefs.h <<\_ACEOF
28719#define HAVE_TYPE_IN_UTMPX 1
28720_ACEOF
28721
28722 fi
28723 else
28724 { echo "$as_me:$LINENO: result: no" >&5
28725echo "${ECHO_T}no" >&6; }
28726 fi
28727
28728
28729# look for field 'ut_tv' in header 'utmp.h'
28730 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28731 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
28732 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
28733echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
28734 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28736else
28737
28738 cat >conftest.$ac_ext <<_ACEOF
28739/* confdefs.h. */
28740_ACEOF
28741cat confdefs.h >>conftest.$ac_ext
28742cat >>conftest.$ac_ext <<_ACEOF
28743/* end confdefs.h. */
28744#include <utmp.h>
28745
28746_ACEOF
28747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28748 $EGREP "ut_tv" >/dev/null 2>&1; then
28749 eval "$ossh_varname=yes"
28750else
28751 eval "$ossh_varname=no"
28752fi
28753rm -f conftest*
28754
28755fi
28756
28757 ossh_result=`eval 'echo $'"$ossh_varname"`
28758 if test -n "`echo $ossh_varname`"; then
28759 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28760echo "${ECHO_T}$ossh_result" >&6; }
28761 if test "x$ossh_result" = "xyes"; then
28762
28763cat >>confdefs.h <<\_ACEOF
28764#define HAVE_TV_IN_UTMP 1
28765_ACEOF
28766
28767 fi
28768 else
28769 { echo "$as_me:$LINENO: result: no" >&5
28770echo "${ECHO_T}no" >&6; }
28771 fi
28772
28773
28774# look for field 'ut_id' in header 'utmp.h'
28775 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28776 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28777 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
28778echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
28779 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28781else
28782
28783 cat >conftest.$ac_ext <<_ACEOF
28784/* confdefs.h. */
28785_ACEOF
28786cat confdefs.h >>conftest.$ac_ext
28787cat >>conftest.$ac_ext <<_ACEOF
28788/* end confdefs.h. */
28789#include <utmp.h>
28790
28791_ACEOF
28792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28793 $EGREP "ut_id" >/dev/null 2>&1; then
28794 eval "$ossh_varname=yes"
28795else
28796 eval "$ossh_varname=no"
28797fi
28798rm -f conftest*
28799
28800fi
28801
28802 ossh_result=`eval 'echo $'"$ossh_varname"`
28803 if test -n "`echo $ossh_varname`"; then
28804 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28805echo "${ECHO_T}$ossh_result" >&6; }
28806 if test "x$ossh_result" = "xyes"; then
28807
28808cat >>confdefs.h <<\_ACEOF
28809#define HAVE_ID_IN_UTMP 1
28810_ACEOF
28811
28812 fi
28813 else
28814 { echo "$as_me:$LINENO: result: no" >&5
28815echo "${ECHO_T}no" >&6; }
28816 fi
28817
28818
28819# look for field 'ut_id' in header 'utmpx.h'
28820 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28821 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28822 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
28823echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
28824 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28826else
28827
28828 cat >conftest.$ac_ext <<_ACEOF
28829/* confdefs.h. */
28830_ACEOF
28831cat confdefs.h >>conftest.$ac_ext
28832cat >>conftest.$ac_ext <<_ACEOF
28833/* end confdefs.h. */
28834#include <utmpx.h>
28835
28836_ACEOF
28837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28838 $EGREP "ut_id" >/dev/null 2>&1; then
28839 eval "$ossh_varname=yes"
28840else
28841 eval "$ossh_varname=no"
28842fi
28843rm -f conftest*
28844
28845fi
28846
28847 ossh_result=`eval 'echo $'"$ossh_varname"`
28848 if test -n "`echo $ossh_varname`"; then
28849 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28850echo "${ECHO_T}$ossh_result" >&6; }
28851 if test "x$ossh_result" = "xyes"; then
28852
28853cat >>confdefs.h <<\_ACEOF
28854#define HAVE_ID_IN_UTMPX 1
28855_ACEOF
28856
28857 fi
28858 else
28859 { echo "$as_me:$LINENO: result: no" >&5
28860echo "${ECHO_T}no" >&6; }
28861 fi
28862
28863
28864# look for field 'ut_addr' in header 'utmp.h'
28865 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28866 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
28867 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
28868echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
28869 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28871else
28872
28873 cat >conftest.$ac_ext <<_ACEOF
28874/* confdefs.h. */
28875_ACEOF
28876cat confdefs.h >>conftest.$ac_ext
28877cat >>conftest.$ac_ext <<_ACEOF
28878/* end confdefs.h. */
28879#include <utmp.h>
28880
28881_ACEOF
28882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28883 $EGREP "ut_addr" >/dev/null 2>&1; then
28884 eval "$ossh_varname=yes"
28885else
28886 eval "$ossh_varname=no"
28887fi
28888rm -f conftest*
28889
28890fi
28891
28892 ossh_result=`eval 'echo $'"$ossh_varname"`
28893 if test -n "`echo $ossh_varname`"; then
28894 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28895echo "${ECHO_T}$ossh_result" >&6; }
28896 if test "x$ossh_result" = "xyes"; then
28897
28898cat >>confdefs.h <<\_ACEOF
28899#define HAVE_ADDR_IN_UTMP 1
28900_ACEOF
28901
28902 fi
28903 else
28904 { echo "$as_me:$LINENO: result: no" >&5
28905echo "${ECHO_T}no" >&6; }
28906 fi
28907
28908
28909# look for field 'ut_addr' in header 'utmpx.h'
28910 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28911 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
28912 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
28913echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
28914 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28915 echo $ECHO_N "(cached) $ECHO_C" >&6
28916else
28917
28918 cat >conftest.$ac_ext <<_ACEOF
28919/* confdefs.h. */
28920_ACEOF
28921cat confdefs.h >>conftest.$ac_ext
28922cat >>conftest.$ac_ext <<_ACEOF
28923/* end confdefs.h. */
28924#include <utmpx.h>
28925
28926_ACEOF
28927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28928 $EGREP "ut_addr" >/dev/null 2>&1; then
28929 eval "$ossh_varname=yes"
28930else
28931 eval "$ossh_varname=no"
28932fi
28933rm -f conftest*
28934
28935fi
28936
28937 ossh_result=`eval 'echo $'"$ossh_varname"`
28938 if test -n "`echo $ossh_varname`"; then
28939 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28940echo "${ECHO_T}$ossh_result" >&6; }
28941 if test "x$ossh_result" = "xyes"; then
28942
28943cat >>confdefs.h <<\_ACEOF
28944#define HAVE_ADDR_IN_UTMPX 1
28945_ACEOF
28946
28947 fi
28948 else
28949 { echo "$as_me:$LINENO: result: no" >&5
28950echo "${ECHO_T}no" >&6; }
28951 fi
28952
28953
28954# look for field 'ut_addr_v6' in header 'utmp.h'
28955 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28956 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
28957 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
28958echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
28959 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28961else
28962
28963 cat >conftest.$ac_ext <<_ACEOF
28964/* confdefs.h. */
28965_ACEOF
28966cat confdefs.h >>conftest.$ac_ext
28967cat >>conftest.$ac_ext <<_ACEOF
28968/* end confdefs.h. */
28969#include <utmp.h>
28970
28971_ACEOF
28972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28973 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
28974 eval "$ossh_varname=yes"
28975else
28976 eval "$ossh_varname=no"
28977fi
28978rm -f conftest*
28979
28980fi
28981
28982 ossh_result=`eval 'echo $'"$ossh_varname"`
28983 if test -n "`echo $ossh_varname`"; then
28984 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28985echo "${ECHO_T}$ossh_result" >&6; }
28986 if test "x$ossh_result" = "xyes"; then
28987
28988cat >>confdefs.h <<\_ACEOF
28989#define HAVE_ADDR_V6_IN_UTMP 1
28990_ACEOF
28991
28992 fi
28993 else
28994 { echo "$as_me:$LINENO: result: no" >&5
28995echo "${ECHO_T}no" >&6; }
28996 fi
28997
28998
28999# look for field 'ut_addr_v6' in header 'utmpx.h'
29000 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29001 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29002 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
29003echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
29004 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29005 echo $ECHO_N "(cached) $ECHO_C" >&6
29006else
29007
29008 cat >conftest.$ac_ext <<_ACEOF
29009/* confdefs.h. */
29010_ACEOF
29011cat confdefs.h >>conftest.$ac_ext
29012cat >>conftest.$ac_ext <<_ACEOF
29013/* end confdefs.h. */
29014#include <utmpx.h>
29015
29016_ACEOF
29017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29018 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29019 eval "$ossh_varname=yes"
29020else
29021 eval "$ossh_varname=no"
29022fi
29023rm -f conftest*
29024
29025fi
29026
29027 ossh_result=`eval 'echo $'"$ossh_varname"`
29028 if test -n "`echo $ossh_varname`"; then
29029 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29030echo "${ECHO_T}$ossh_result" >&6; }
29031 if test "x$ossh_result" = "xyes"; then
29032
29033cat >>confdefs.h <<\_ACEOF
29034#define HAVE_ADDR_V6_IN_UTMPX 1
29035_ACEOF
29036
29037 fi
29038 else
29039 { echo "$as_me:$LINENO: result: no" >&5
29040echo "${ECHO_T}no" >&6; }
29041 fi
29042
29043
29044# look for field 'ut_exit' in header 'utmp.h'
29045 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29046 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
29047 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
29048echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
29049 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052
29053 cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
29059#include <utmp.h>
29060
29061_ACEOF
29062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29063 $EGREP "ut_exit" >/dev/null 2>&1; then
29064 eval "$ossh_varname=yes"
29065else
29066 eval "$ossh_varname=no"
29067fi
29068rm -f conftest*
29069
29070fi
29071
29072 ossh_result=`eval 'echo $'"$ossh_varname"`
29073 if test -n "`echo $ossh_varname`"; then
29074 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29075echo "${ECHO_T}$ossh_result" >&6; }
29076 if test "x$ossh_result" = "xyes"; then
29077
29078cat >>confdefs.h <<\_ACEOF
29079#define HAVE_EXIT_IN_UTMP 1
29080_ACEOF
29081
29082 fi
29083 else
29084 { echo "$as_me:$LINENO: result: no" >&5
29085echo "${ECHO_T}no" >&6; }
29086 fi
29087
29088
29089# look for field 'ut_time' in header 'utmp.h'
29090 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29091 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29092 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
29093echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
29094 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29096else
29097
29098 cat >conftest.$ac_ext <<_ACEOF
29099/* confdefs.h. */
29100_ACEOF
29101cat confdefs.h >>conftest.$ac_ext
29102cat >>conftest.$ac_ext <<_ACEOF
29103/* end confdefs.h. */
29104#include <utmp.h>
29105
29106_ACEOF
29107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29108 $EGREP "ut_time" >/dev/null 2>&1; then
29109 eval "$ossh_varname=yes"
29110else
29111 eval "$ossh_varname=no"
29112fi
29113rm -f conftest*
29114
29115fi
29116
29117 ossh_result=`eval 'echo $'"$ossh_varname"`
29118 if test -n "`echo $ossh_varname`"; then
29119 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29120echo "${ECHO_T}$ossh_result" >&6; }
29121 if test "x$ossh_result" = "xyes"; then
29122
29123cat >>confdefs.h <<\_ACEOF
29124#define HAVE_TIME_IN_UTMP 1
29125_ACEOF
29126
29127 fi
29128 else
29129 { echo "$as_me:$LINENO: result: no" >&5
29130echo "${ECHO_T}no" >&6; }
29131 fi
29132
29133
29134# look for field 'ut_time' in header 'utmpx.h'
29135 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29136 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29137 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
29138echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
29139 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29141else
29142
29143 cat >conftest.$ac_ext <<_ACEOF
29144/* confdefs.h. */
29145_ACEOF
29146cat confdefs.h >>conftest.$ac_ext
29147cat >>conftest.$ac_ext <<_ACEOF
29148/* end confdefs.h. */
29149#include <utmpx.h>
29150
29151_ACEOF
29152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29153 $EGREP "ut_time" >/dev/null 2>&1; then
29154 eval "$ossh_varname=yes"
29155else
29156 eval "$ossh_varname=no"
29157fi
29158rm -f conftest*
29159
29160fi
29161
29162 ossh_result=`eval 'echo $'"$ossh_varname"`
29163 if test -n "`echo $ossh_varname`"; then
29164 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29165echo "${ECHO_T}$ossh_result" >&6; }
29166 if test "x$ossh_result" = "xyes"; then
29167
29168cat >>confdefs.h <<\_ACEOF
29169#define HAVE_TIME_IN_UTMPX 1
29170_ACEOF
29171
29172 fi
29173 else
29174 { echo "$as_me:$LINENO: result: no" >&5
29175echo "${ECHO_T}no" >&6; }
29176 fi
29177
29178
29179# look for field 'ut_tv' in header 'utmpx.h'
29180 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29181 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
29182 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
29183echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
29184 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29186else
29187
29188 cat >conftest.$ac_ext <<_ACEOF
29189/* confdefs.h. */
29190_ACEOF
29191cat confdefs.h >>conftest.$ac_ext
29192cat >>conftest.$ac_ext <<_ACEOF
29193/* end confdefs.h. */
29194#include <utmpx.h>
29195
29196_ACEOF
29197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29198 $EGREP "ut_tv" >/dev/null 2>&1; then
29199 eval "$ossh_varname=yes"
29200else
29201 eval "$ossh_varname=no"
29202fi
29203rm -f conftest*
29204
29205fi
29206
29207 ossh_result=`eval 'echo $'"$ossh_varname"`
29208 if test -n "`echo $ossh_varname`"; then
29209 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29210echo "${ECHO_T}$ossh_result" >&6; }
29211 if test "x$ossh_result" = "xyes"; then
29212
29213cat >>confdefs.h <<\_ACEOF
29214#define HAVE_TV_IN_UTMPX 1
29215_ACEOF
29216
29217 fi
29218 else
29219 { echo "$as_me:$LINENO: result: no" >&5
29220echo "${ECHO_T}no" >&6; }
29221 fi
29222
29223
29224{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29225echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
29226if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29228else
29229 cat >conftest.$ac_ext <<_ACEOF
29230/* confdefs.h. */
29231_ACEOF
29232cat confdefs.h >>conftest.$ac_ext
29233cat >>conftest.$ac_ext <<_ACEOF
29234/* end confdefs.h. */
29235$ac_includes_default
29236int
29237main ()
29238{
29239static struct stat ac_aggr;
29240if (ac_aggr.st_blksize)
29241return 0;
29242 ;
29243 return 0;
29244}
29245_ACEOF
29246rm -f conftest.$ac_objext
29247if { (ac_try="$ac_compile"
29248case "(($ac_try" in
29249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250 *) ac_try_echo=$ac_try;;
29251esac
29252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29253 (eval "$ac_compile") 2>conftest.er1
29254 ac_status=$?
29255 grep -v '^ *+' conftest.er1 >conftest.err
29256 rm -f conftest.er1
29257 cat conftest.err >&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); } && {
29260 test -z "$ac_c_werror_flag" ||
29261 test ! -s conftest.err
29262 } && test -s conftest.$ac_objext; then
29263 ac_cv_member_struct_stat_st_blksize=yes
29264else
29265 echo "$as_me: failed program was:" >&5
29266sed 's/^/| /' conftest.$ac_ext >&5
29267
29268 cat >conftest.$ac_ext <<_ACEOF
29269/* confdefs.h. */
29270_ACEOF
29271cat confdefs.h >>conftest.$ac_ext
29272cat >>conftest.$ac_ext <<_ACEOF
29273/* end confdefs.h. */
29274$ac_includes_default
29275int
29276main ()
29277{
29278static struct stat ac_aggr;
29279if (sizeof ac_aggr.st_blksize)
29280return 0;
29281 ;
29282 return 0;
29283}
29284_ACEOF
29285rm -f conftest.$ac_objext
29286if { (ac_try="$ac_compile"
29287case "(($ac_try" in
29288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289 *) ac_try_echo=$ac_try;;
29290esac
29291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292 (eval "$ac_compile") 2>conftest.er1
29293 ac_status=$?
29294 grep -v '^ *+' conftest.er1 >conftest.err
29295 rm -f conftest.er1
29296 cat conftest.err >&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); } && {
29299 test -z "$ac_c_werror_flag" ||
29300 test ! -s conftest.err
29301 } && test -s conftest.$ac_objext; then
29302 ac_cv_member_struct_stat_st_blksize=yes
29303else
29304 echo "$as_me: failed program was:" >&5
29305sed 's/^/| /' conftest.$ac_ext >&5
29306
29307 ac_cv_member_struct_stat_st_blksize=no
29308fi
29309
29310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29311fi
29312
29313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314fi
29315{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29316echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
29317if test $ac_cv_member_struct_stat_st_blksize = yes; then
29318
29319cat >>confdefs.h <<_ACEOF
29320#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29321_ACEOF
29322
29323
29324fi
29325
29326{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
29327echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
29328if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
29329 echo $ECHO_N "(cached) $ECHO_C" >&6
29330else
29331 cat >conftest.$ac_ext <<_ACEOF
29332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
29337
29338#include <sys/types.h>
29339#include <pwd.h>
29340
29341
29342int
29343main ()
29344{
29345static struct passwd ac_aggr;
29346if (ac_aggr.pw_gecos)
29347return 0;
29348 ;
29349 return 0;
29350}
29351_ACEOF
29352rm -f conftest.$ac_objext
29353if { (ac_try="$ac_compile"
29354case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29357esac
29358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359 (eval "$ac_compile") 2>conftest.er1
29360 ac_status=$?
29361 grep -v '^ *+' conftest.er1 >conftest.err
29362 rm -f conftest.er1
29363 cat conftest.err >&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } && {
29366 test -z "$ac_c_werror_flag" ||
29367 test ! -s conftest.err
29368 } && test -s conftest.$ac_objext; then
29369 ac_cv_member_struct_passwd_pw_gecos=yes
29370else
29371 echo "$as_me: failed program was:" >&5
29372sed 's/^/| /' conftest.$ac_ext >&5
29373
29374 cat >conftest.$ac_ext <<_ACEOF
29375/* confdefs.h. */
29376_ACEOF
29377cat confdefs.h >>conftest.$ac_ext
29378cat >>conftest.$ac_ext <<_ACEOF
29379/* end confdefs.h. */
29380
29381#include <sys/types.h>
29382#include <pwd.h>
29383
29384
29385int
29386main ()
29387{
29388static struct passwd ac_aggr;
29389if (sizeof ac_aggr.pw_gecos)
29390return 0;
29391 ;
29392 return 0;
29393}
29394_ACEOF
29395rm -f conftest.$ac_objext
29396if { (ac_try="$ac_compile"
29397case "(($ac_try" in
29398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399 *) ac_try_echo=$ac_try;;
29400esac
29401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402 (eval "$ac_compile") 2>conftest.er1
29403 ac_status=$?
29404 grep -v '^ *+' conftest.er1 >conftest.err
29405 rm -f conftest.er1
29406 cat conftest.err >&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } && {
29409 test -z "$ac_c_werror_flag" ||
29410 test ! -s conftest.err
29411 } && test -s conftest.$ac_objext; then
29412 ac_cv_member_struct_passwd_pw_gecos=yes
29413else
29414 echo "$as_me: failed program was:" >&5
29415sed 's/^/| /' conftest.$ac_ext >&5
29416
29417 ac_cv_member_struct_passwd_pw_gecos=no
29418fi
29419
29420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29421fi
29422
29423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29424fi
29425{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
29426echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
29427if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
29428
29429cat >>confdefs.h <<_ACEOF
29430#define HAVE_STRUCT_PASSWD_PW_GECOS 1
29431_ACEOF
29432
29433
29434fi
29435{ echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5
29436echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; }
29437if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439else
29440 cat >conftest.$ac_ext <<_ACEOF
29441/* confdefs.h. */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h. */
29446
29447#include <sys/types.h>
29448#include <pwd.h>
29449
29450
29451int
29452main ()
29453{
29454static struct passwd ac_aggr;
29455if (ac_aggr.pw_class)
29456return 0;
29457 ;
29458 return 0;
29459}
29460_ACEOF
29461rm -f conftest.$ac_objext
29462if { (ac_try="$ac_compile"
29463case "(($ac_try" in
29464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465 *) ac_try_echo=$ac_try;;
29466esac
29467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468 (eval "$ac_compile") 2>conftest.er1
29469 ac_status=$?
29470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } && {
29475 test -z "$ac_c_werror_flag" ||
29476 test ! -s conftest.err
29477 } && test -s conftest.$ac_objext; then
29478 ac_cv_member_struct_passwd_pw_class=yes
29479else
29480 echo "$as_me: failed program was:" >&5
29481sed 's/^/| /' conftest.$ac_ext >&5
29482
29483 cat >conftest.$ac_ext <<_ACEOF
29484/* confdefs.h. */
29485_ACEOF
29486cat confdefs.h >>conftest.$ac_ext
29487cat >>conftest.$ac_ext <<_ACEOF
29488/* end confdefs.h. */
29489
29490#include <sys/types.h>
29491#include <pwd.h>
29492
29493
29494int
29495main ()
29496{
29497static struct passwd ac_aggr;
29498if (sizeof ac_aggr.pw_class)
29499return 0;
29500 ;
29501 return 0;
29502}
29503_ACEOF
29504rm -f conftest.$ac_objext
29505if { (ac_try="$ac_compile"
29506case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29509esac
29510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_compile") 2>conftest.er1
29512 ac_status=$?
29513 grep -v '^ *+' conftest.er1 >conftest.err
29514 rm -f conftest.er1
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } && {
29518 test -z "$ac_c_werror_flag" ||
29519 test ! -s conftest.err
29520 } && test -s conftest.$ac_objext; then
29521 ac_cv_member_struct_passwd_pw_class=yes
29522else
29523 echo "$as_me: failed program was:" >&5
29524sed 's/^/| /' conftest.$ac_ext >&5
29525
29526 ac_cv_member_struct_passwd_pw_class=no
29527fi
29528
29529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29530fi
29531
29532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29533fi
29534{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5
29535echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; }
29536if test $ac_cv_member_struct_passwd_pw_class = yes; then
29537
29538cat >>confdefs.h <<_ACEOF
29539#define HAVE_STRUCT_PASSWD_PW_CLASS 1
29540_ACEOF
29541
29542
29543fi
29544{ echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5
29545echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; }
29546if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29548else
29549 cat >conftest.$ac_ext <<_ACEOF
29550/* confdefs.h. */
29551_ACEOF
29552cat confdefs.h >>conftest.$ac_ext
29553cat >>conftest.$ac_ext <<_ACEOF
29554/* end confdefs.h. */
29555
29556#include <sys/types.h>
29557#include <pwd.h>
29558
29559
29560int
29561main ()
29562{
29563static struct passwd ac_aggr;
29564if (ac_aggr.pw_change)
29565return 0;
29566 ;
29567 return 0;
29568}
29569_ACEOF
29570rm -f conftest.$ac_objext
29571if { (ac_try="$ac_compile"
29572case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29575esac
29576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_compile") 2>conftest.er1
29578 ac_status=$?
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } && {
29584 test -z "$ac_c_werror_flag" ||
29585 test ! -s conftest.err
29586 } && test -s conftest.$ac_objext; then
29587 ac_cv_member_struct_passwd_pw_change=yes
29588else
29589 echo "$as_me: failed program was:" >&5
29590sed 's/^/| /' conftest.$ac_ext >&5
29591
29592 cat >conftest.$ac_ext <<_ACEOF
29593/* confdefs.h. */
29594_ACEOF
29595cat confdefs.h >>conftest.$ac_ext
29596cat >>conftest.$ac_ext <<_ACEOF
29597/* end confdefs.h. */
29598
29599#include <sys/types.h>
29600#include <pwd.h>
29601
29602
29603int
29604main ()
29605{
29606static struct passwd ac_aggr;
29607if (sizeof ac_aggr.pw_change)
29608return 0;
29609 ;
29610 return 0;
29611}
29612_ACEOF
29613rm -f conftest.$ac_objext
29614if { (ac_try="$ac_compile"
29615case "(($ac_try" in
29616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617 *) ac_try_echo=$ac_try;;
29618esac
29619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29620 (eval "$ac_compile") 2>conftest.er1
29621 ac_status=$?
29622 grep -v '^ *+' conftest.er1 >conftest.err
29623 rm -f conftest.er1
29624 cat conftest.err >&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } && {
29627 test -z "$ac_c_werror_flag" ||
29628 test ! -s conftest.err
29629 } && test -s conftest.$ac_objext; then
29630 ac_cv_member_struct_passwd_pw_change=yes
29631else
29632 echo "$as_me: failed program was:" >&5
29633sed 's/^/| /' conftest.$ac_ext >&5
29634
29635 ac_cv_member_struct_passwd_pw_change=no
29636fi
29637
29638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29639fi
29640
29641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29642fi
29643{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5
29644echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; }
29645if test $ac_cv_member_struct_passwd_pw_change = yes; then
29646
29647cat >>confdefs.h <<_ACEOF
29648#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
29649_ACEOF
29650
29651
29652fi
29653{ echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5
29654echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; }
29655if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657else
29658 cat >conftest.$ac_ext <<_ACEOF
29659/* confdefs.h. */
29660_ACEOF
29661cat confdefs.h >>conftest.$ac_ext
29662cat >>conftest.$ac_ext <<_ACEOF
29663/* end confdefs.h. */
29664
29665#include <sys/types.h>
29666#include <pwd.h>
29667
29668
29669int
29670main ()
29671{
29672static struct passwd ac_aggr;
29673if (ac_aggr.pw_expire)
29674return 0;
29675 ;
29676 return 0;
29677}
29678_ACEOF
29679rm -f conftest.$ac_objext
29680if { (ac_try="$ac_compile"
29681case "(($ac_try" in
29682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29684esac
29685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_compile") 2>conftest.er1
29687 ac_status=$?
29688 grep -v '^ *+' conftest.er1 >conftest.err
29689 rm -f conftest.er1
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } && {
29693 test -z "$ac_c_werror_flag" ||
29694 test ! -s conftest.err
29695 } && test -s conftest.$ac_objext; then
29696 ac_cv_member_struct_passwd_pw_expire=yes
29697else
29698 echo "$as_me: failed program was:" >&5
29699sed 's/^/| /' conftest.$ac_ext >&5
29700
29701 cat >conftest.$ac_ext <<_ACEOF
29702/* confdefs.h. */
29703_ACEOF
29704cat confdefs.h >>conftest.$ac_ext
29705cat >>conftest.$ac_ext <<_ACEOF
29706/* end confdefs.h. */
29707
29708#include <sys/types.h>
29709#include <pwd.h>
29710
29711
29712int
29713main ()
29714{
29715static struct passwd ac_aggr;
29716if (sizeof ac_aggr.pw_expire)
29717return 0;
29718 ;
29719 return 0;
29720}
29721_ACEOF
29722rm -f conftest.$ac_objext
29723if { (ac_try="$ac_compile"
29724case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29727esac
29728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_compile") 2>conftest.er1
29730 ac_status=$?
29731 grep -v '^ *+' conftest.er1 >conftest.err
29732 rm -f conftest.er1
29733 cat conftest.err >&5
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); } && {
29736 test -z "$ac_c_werror_flag" ||
29737 test ! -s conftest.err
29738 } && test -s conftest.$ac_objext; then
29739 ac_cv_member_struct_passwd_pw_expire=yes
29740else
29741 echo "$as_me: failed program was:" >&5
29742sed 's/^/| /' conftest.$ac_ext >&5
29743
29744 ac_cv_member_struct_passwd_pw_expire=no
29745fi
29746
29747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29748fi
29749
29750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29751fi
29752{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5
29753echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; }
29754if test $ac_cv_member_struct_passwd_pw_expire = yes; then
29755
29756cat >>confdefs.h <<_ACEOF
29757#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
29758_ACEOF
29759
29760
29761fi
29762
29763
29764{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
29765echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
29766if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
29767 echo $ECHO_N "(cached) $ECHO_C" >&6
29768else
29769 cat >conftest.$ac_ext <<_ACEOF
29770/* confdefs.h. */
29771_ACEOF
29772cat confdefs.h >>conftest.$ac_ext
29773cat >>conftest.$ac_ext <<_ACEOF
29774/* end confdefs.h. */
29775
29776#include <stdio.h>
29777#if HAVE_SYS_TYPES_H
29778# include <sys/types.h>
29779#endif
29780#include <netinet/in.h>
29781#include <arpa/nameser.h>
29782#include <resolv.h>
29783
29784
29785int
29786main ()
29787{
29788static struct __res_state ac_aggr;
29789if (ac_aggr.retrans)
29790return 0;
29791 ;
29792 return 0;
29793}
29794_ACEOF
29795rm -f conftest.$ac_objext
29796if { (ac_try="$ac_compile"
29797case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29800esac
29801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_compile") 2>conftest.er1
29803 ac_status=$?
29804 grep -v '^ *+' conftest.er1 >conftest.err
29805 rm -f conftest.er1
29806 cat conftest.err >&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } && {
29809 test -z "$ac_c_werror_flag" ||
29810 test ! -s conftest.err
29811 } && test -s conftest.$ac_objext; then
29812 ac_cv_member_struct___res_state_retrans=yes
29813else
29814 echo "$as_me: failed program was:" >&5
29815sed 's/^/| /' conftest.$ac_ext >&5
29816
29817 cat >conftest.$ac_ext <<_ACEOF
29818/* confdefs.h. */
29819_ACEOF
29820cat confdefs.h >>conftest.$ac_ext
29821cat >>conftest.$ac_ext <<_ACEOF
29822/* end confdefs.h. */
29823
29824#include <stdio.h>
29825#if HAVE_SYS_TYPES_H
29826# include <sys/types.h>
29827#endif
29828#include <netinet/in.h>
29829#include <arpa/nameser.h>
29830#include <resolv.h>
29831
29832
29833int
29834main ()
29835{
29836static struct __res_state ac_aggr;
29837if (sizeof ac_aggr.retrans)
29838return 0;
29839 ;
29840 return 0;
29841}
29842_ACEOF
29843rm -f conftest.$ac_objext
29844if { (ac_try="$ac_compile"
29845case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29848esac
29849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850 (eval "$ac_compile") 2>conftest.er1
29851 ac_status=$?
29852 grep -v '^ *+' conftest.er1 >conftest.err
29853 rm -f conftest.er1
29854 cat conftest.err >&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } && {
29857 test -z "$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29859 } && test -s conftest.$ac_objext; then
29860 ac_cv_member_struct___res_state_retrans=yes
29861else
29862 echo "$as_me: failed program was:" >&5
29863sed 's/^/| /' conftest.$ac_ext >&5
29864
29865 ac_cv_member_struct___res_state_retrans=no
29866fi
29867
29868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29869fi
29870
29871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29872fi
29873{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
29874echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
29875if test $ac_cv_member_struct___res_state_retrans = yes; then
29876 :
29877else
29878
29879cat >>confdefs.h <<\_ACEOF
29880#define __res_state state
29881_ACEOF
29882
29883fi
29884
29885
29886{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
29887echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
29888if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
29889 echo $ECHO_N "(cached) $ECHO_C" >&6
29890else
29891
29892 cat >conftest.$ac_ext <<_ACEOF
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
29898
29899#include <sys/types.h>
29900#include <sys/socket.h>
29901
29902int
29903main ()
29904{
29905 struct sockaddr_storage s; s.ss_family = 1;
29906 ;
29907 return 0;
29908}
29909_ACEOF
29910rm -f conftest.$ac_objext
29911if { (ac_try="$ac_compile"
29912case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29915esac
29916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_compile") 2>conftest.er1
29918 ac_status=$?
29919 grep -v '^ *+' conftest.er1 >conftest.err
29920 rm -f conftest.er1
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } && {
29924 test -z "$ac_c_werror_flag" ||
29925 test ! -s conftest.err
29926 } && test -s conftest.$ac_objext; then
29927 ac_cv_have_ss_family_in_struct_ss="yes"
29928else
29929 echo "$as_me: failed program was:" >&5
29930sed 's/^/| /' conftest.$ac_ext >&5
29931
29932 ac_cv_have_ss_family_in_struct_ss="no"
29933fi
29934
29935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29936
29937fi
29938{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
29939echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
29940if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
29941
29942cat >>confdefs.h <<\_ACEOF
29943#define HAVE_SS_FAMILY_IN_SS 1
29944_ACEOF
29945
29946fi
29947
29948{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
29949echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
29950if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
29953
29954 cat >conftest.$ac_ext <<_ACEOF
29955/* confdefs.h. */
29956_ACEOF
29957cat confdefs.h >>conftest.$ac_ext
29958cat >>conftest.$ac_ext <<_ACEOF
29959/* end confdefs.h. */
29960
29961#include <sys/types.h>
29962#include <sys/socket.h>
29963
29964int
29965main ()
29966{
29967 struct sockaddr_storage s; s.__ss_family = 1;
29968 ;
29969 return 0;
29970}
29971_ACEOF
29972rm -f conftest.$ac_objext
29973if { (ac_try="$ac_compile"
29974case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29977esac
29978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_compile") 2>conftest.er1
29980 ac_status=$?
29981 grep -v '^ *+' conftest.er1 >conftest.err
29982 rm -f conftest.er1
29983 cat conftest.err >&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } && {
29986 test -z "$ac_c_werror_flag" ||
29987 test ! -s conftest.err
29988 } && test -s conftest.$ac_objext; then
29989 ac_cv_have___ss_family_in_struct_ss="yes"
29990else
29991 echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994 ac_cv_have___ss_family_in_struct_ss="no"
29995
29996fi
29997
29998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29999
30000fi
30001{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
30002echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
30003if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
30004
30005cat >>confdefs.h <<\_ACEOF
30006#define HAVE___SS_FAMILY_IN_SS 1
30007_ACEOF
30008
30009fi
30010
30011{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
30012echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
30013if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30015else
30016
30017 cat >conftest.$ac_ext <<_ACEOF
30018/* confdefs.h. */
30019_ACEOF
30020cat confdefs.h >>conftest.$ac_ext
30021cat >>conftest.$ac_ext <<_ACEOF
30022/* end confdefs.h. */
30023
30024#include <sys/types.h>
30025#include <sys/socket.h>
30026#include <sys/uio.h>
30027
30028int
30029main ()
30030{
30031
30032#ifdef msg_accrights
30033#error "msg_accrights is a macro"
30034exit(1);
30035#endif
30036struct msghdr m;
30037m.msg_accrights = 0;
30038exit(0);
30039
30040 ;
30041 return 0;
30042}
30043_ACEOF
30044rm -f conftest.$ac_objext
30045if { (ac_try="$ac_compile"
30046case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30049esac
30050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_compile") 2>conftest.er1
30052 ac_status=$?
30053 grep -v '^ *+' conftest.er1 >conftest.err
30054 rm -f conftest.er1
30055 cat conftest.err >&5
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); } && {
30058 test -z "$ac_c_werror_flag" ||
30059 test ! -s conftest.err
30060 } && test -s conftest.$ac_objext; then
30061 ac_cv_have_accrights_in_msghdr="yes"
30062else
30063 echo "$as_me: failed program was:" >&5
30064sed 's/^/| /' conftest.$ac_ext >&5
30065
30066 ac_cv_have_accrights_in_msghdr="no"
30067
30068fi
30069
30070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30071
30072fi
30073{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
30074echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
30075if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
30076
30077cat >>confdefs.h <<\_ACEOF
30078#define HAVE_ACCRIGHTS_IN_MSGHDR 1
30079_ACEOF
30080
30081fi
30082
30083{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
30084echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
30085cat >conftest.$ac_ext <<_ACEOF
30086/* confdefs.h. */
30087_ACEOF
30088cat confdefs.h >>conftest.$ac_ext
30089cat >>conftest.$ac_ext <<_ACEOF
30090/* end confdefs.h. */
30091
30092#include <sys/param.h>
30093#include <sys/stat.h>
30094#ifdef HAVE_SYS_TIME_H
30095# include <sys/time.h>
30096#endif
30097#ifdef HAVE_SYS_MOUNT_H
30098#include <sys/mount.h>
30099#endif
30100#ifdef HAVE_SYS_STATVFS_H
30101#include <sys/statvfs.h>
30102#endif
30103
30104int
30105main ()
30106{
30107 struct statvfs s; s.f_fsid = 0;
30108 ;
30109 return 0;
30110}
30111_ACEOF
30112rm -f conftest.$ac_objext
30113if { (ac_try="$ac_compile"
30114case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117esac
30118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_compile") 2>conftest.er1
30120 ac_status=$?
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } && {
30126 test -z "$ac_c_werror_flag" ||
30127 test ! -s conftest.err
30128 } && test -s conftest.$ac_objext; then
30129 { echo "$as_me:$LINENO: result: yes" >&5
30130echo "${ECHO_T}yes" >&6; }
30131else
30132 echo "$as_me: failed program was:" >&5
30133sed 's/^/| /' conftest.$ac_ext >&5
30134
30135 { echo "$as_me:$LINENO: result: no" >&5
30136echo "${ECHO_T}no" >&6; }
30137
30138 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
30139echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
30140 cat >conftest.$ac_ext <<_ACEOF
30141/* confdefs.h. */
30142_ACEOF
30143cat confdefs.h >>conftest.$ac_ext
30144cat >>conftest.$ac_ext <<_ACEOF
30145/* end confdefs.h. */
30146
30147#include <sys/types.h>
30148#include <sys/statvfs.h>
30149
30150int
30151main ()
30152{
30153 fsid_t t; t.val[0] = 0;
30154 ;
30155 return 0;
30156}
30157_ACEOF
30158rm -f conftest.$ac_objext
30159if { (ac_try="$ac_compile"
30160case "(($ac_try" in
30161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162 *) ac_try_echo=$ac_try;;
30163esac
30164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165 (eval "$ac_compile") 2>conftest.er1
30166 ac_status=$?
30167 grep -v '^ *+' conftest.er1 >conftest.err
30168 rm -f conftest.er1
30169 cat conftest.err >&5
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); } && {
30172 test -z "$ac_c_werror_flag" ||
30173 test ! -s conftest.err
30174 } && test -s conftest.$ac_objext; then
30175 { echo "$as_me:$LINENO: result: yes" >&5
30176echo "${ECHO_T}yes" >&6; }
30177
30178cat >>confdefs.h <<\_ACEOF
30179#define FSID_HAS_VAL 1
30180_ACEOF
30181
30182else
30183 echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
30186 { echo "$as_me:$LINENO: result: no" >&5
30187echo "${ECHO_T}no" >&6; }
30188fi
30189
30190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30191
30192 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
30193echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
30194 cat >conftest.$ac_ext <<_ACEOF
30195/* confdefs.h. */
30196_ACEOF
30197cat confdefs.h >>conftest.$ac_ext
30198cat >>conftest.$ac_ext <<_ACEOF
30199/* end confdefs.h. */
30200
30201#include <sys/types.h>
30202#include <sys/statvfs.h>
30203
30204int
30205main ()
30206{
30207 fsid_t t; t.__val[0] = 0;
30208 ;
30209 return 0;
30210}
30211_ACEOF
30212rm -f conftest.$ac_objext
30213if { (ac_try="$ac_compile"
30214case "(($ac_try" in
30215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216 *) ac_try_echo=$ac_try;;
30217esac
30218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219 (eval "$ac_compile") 2>conftest.er1
30220 ac_status=$?
30221 grep -v '^ *+' conftest.er1 >conftest.err
30222 rm -f conftest.er1
30223 cat conftest.err >&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } && {
30226 test -z "$ac_c_werror_flag" ||
30227 test ! -s conftest.err
30228 } && test -s conftest.$ac_objext; then
30229 { echo "$as_me:$LINENO: result: yes" >&5
30230echo "${ECHO_T}yes" >&6; }
30231
30232cat >>confdefs.h <<\_ACEOF
30233#define FSID_HAS___VAL 1
30234_ACEOF
30235
30236else
30237 echo "$as_me: failed program was:" >&5
30238sed 's/^/| /' conftest.$ac_ext >&5
30239
30240 { echo "$as_me:$LINENO: result: no" >&5
30241echo "${ECHO_T}no" >&6; }
30242fi
30243
30244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30245
30246fi
30247
30248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30249
30250{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
30251echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
30252if test "${ac_cv_have_control_in_msghdr+set}" = set; then
30253 echo $ECHO_N "(cached) $ECHO_C" >&6
30254else
30255
30256 cat >conftest.$ac_ext <<_ACEOF
30257/* confdefs.h. */
30258_ACEOF
30259cat confdefs.h >>conftest.$ac_ext
30260cat >>conftest.$ac_ext <<_ACEOF
30261/* end confdefs.h. */
30262
30263#include <sys/types.h>
30264#include <sys/socket.h>
30265#include <sys/uio.h>
30266
30267int
30268main ()
30269{
30270
30271#ifdef msg_control
30272#error "msg_control is a macro"
30273exit(1);
30274#endif
30275struct msghdr m;
30276m.msg_control = 0;
30277exit(0);
30278
30279 ;
30280 return 0;
30281}
30282_ACEOF
30283rm -f conftest.$ac_objext
30284if { (ac_try="$ac_compile"
30285case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30288esac
30289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_compile") 2>conftest.er1
30291 ac_status=$?
30292 grep -v '^ *+' conftest.er1 >conftest.err
30293 rm -f conftest.er1
30294 cat conftest.err >&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); } && {
30297 test -z "$ac_c_werror_flag" ||
30298 test ! -s conftest.err
30299 } && test -s conftest.$ac_objext; then
30300 ac_cv_have_control_in_msghdr="yes"
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305 ac_cv_have_control_in_msghdr="no"
30306
30307fi
30308
30309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30310
30311fi
30312{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
30313echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
30314if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
30315
30316cat >>confdefs.h <<\_ACEOF
30317#define HAVE_CONTROL_IN_MSGHDR 1
30318_ACEOF
30319
30320fi
30321
30322{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
30323echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
30324if test "${ac_cv_libc_defines___progname+set}" = set; then
30325 echo $ECHO_N "(cached) $ECHO_C" >&6
30326else
30327
30328 cat >conftest.$ac_ext <<_ACEOF
30329/* confdefs.h. */
30330_ACEOF
30331cat confdefs.h >>conftest.$ac_ext
30332cat >>conftest.$ac_ext <<_ACEOF
30333/* end confdefs.h. */
30334
30335int
30336main ()
30337{
30338 extern char *__progname; printf("%s", __progname);
30339 ;
30340 return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext conftest$ac_exeext
30344if { (ac_try="$ac_link"
30345case "(($ac_try" in
30346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347 *) ac_try_echo=$ac_try;;
30348esac
30349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350 (eval "$ac_link") 2>conftest.er1
30351 ac_status=$?
30352 grep -v '^ *+' conftest.er1 >conftest.err
30353 rm -f conftest.er1
30354 cat conftest.err >&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); } && {
30357 test -z "$ac_c_werror_flag" ||
30358 test ! -s conftest.err
30359 } && test -s conftest$ac_exeext &&
30360 $as_test_x conftest$ac_exeext; then
30361 ac_cv_libc_defines___progname="yes"
30362else
30363 echo "$as_me: failed program was:" >&5
30364sed 's/^/| /' conftest.$ac_ext >&5
30365
30366 ac_cv_libc_defines___progname="no"
30367
30368fi
30369
30370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30371 conftest$ac_exeext conftest.$ac_ext
30372
30373fi
30374{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
30375echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
30376if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
30377
30378cat >>confdefs.h <<\_ACEOF
30379#define HAVE___PROGNAME 1
30380_ACEOF
30381
30382fi
30383
30384{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
30385echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
30386if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30388else
30389
30390 cat >conftest.$ac_ext <<_ACEOF
30391/* confdefs.h. */
30392_ACEOF
30393cat confdefs.h >>conftest.$ac_ext
30394cat >>conftest.$ac_ext <<_ACEOF
30395/* end confdefs.h. */
30396 #include <stdio.h>
30397int
30398main ()
30399{
30400 printf("%s", __FUNCTION__);
30401 ;
30402 return 0;
30403}
30404_ACEOF
30405rm -f conftest.$ac_objext conftest$ac_exeext
30406if { (ac_try="$ac_link"
30407case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30410esac
30411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_link") 2>conftest.er1
30413 ac_status=$?
30414 grep -v '^ *+' conftest.er1 >conftest.err
30415 rm -f conftest.er1
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } && {
30419 test -z "$ac_c_werror_flag" ||
30420 test ! -s conftest.err
30421 } && test -s conftest$ac_exeext &&
30422 $as_test_x conftest$ac_exeext; then
30423 ac_cv_cc_implements___FUNCTION__="yes"
30424else
30425 echo "$as_me: failed program was:" >&5
30426sed 's/^/| /' conftest.$ac_ext >&5
30427
30428 ac_cv_cc_implements___FUNCTION__="no"
30429
30430fi
30431
30432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30433 conftest$ac_exeext conftest.$ac_ext
30434
30435fi
30436{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
30437echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
30438if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
30439
30440cat >>confdefs.h <<\_ACEOF
30441#define HAVE___FUNCTION__ 1
30442_ACEOF
30443
30444fi
30445
30446{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
30447echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
30448if test "${ac_cv_cc_implements___func__+set}" = set; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30450else
30451
30452 cat >conftest.$ac_ext <<_ACEOF
30453/* confdefs.h. */
30454_ACEOF
30455cat confdefs.h >>conftest.$ac_ext
30456cat >>conftest.$ac_ext <<_ACEOF
30457/* end confdefs.h. */
30458 #include <stdio.h>
30459int
30460main ()
30461{
30462 printf("%s", __func__);
30463 ;
30464 return 0;
30465}
30466_ACEOF
30467rm -f conftest.$ac_objext conftest$ac_exeext
30468if { (ac_try="$ac_link"
30469case "(($ac_try" in
30470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471 *) ac_try_echo=$ac_try;;
30472esac
30473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474 (eval "$ac_link") 2>conftest.er1
30475 ac_status=$?
30476 grep -v '^ *+' conftest.er1 >conftest.err
30477 rm -f conftest.er1
30478 cat conftest.err >&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } && {
30481 test -z "$ac_c_werror_flag" ||
30482 test ! -s conftest.err
30483 } && test -s conftest$ac_exeext &&
30484 $as_test_x conftest$ac_exeext; then
30485 ac_cv_cc_implements___func__="yes"
30486else
30487 echo "$as_me: failed program was:" >&5
30488sed 's/^/| /' conftest.$ac_ext >&5
30489
30490 ac_cv_cc_implements___func__="no"
30491
30492fi
30493
30494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30495 conftest$ac_exeext conftest.$ac_ext
30496
30497fi
30498{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
30499echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
30500if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
30501
30502cat >>confdefs.h <<\_ACEOF
30503#define HAVE___func__ 1
30504_ACEOF
30505
30506fi
30507
30508{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
30509echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
30510if test "${ac_cv_have_va_copy+set}" = set; then
30511 echo $ECHO_N "(cached) $ECHO_C" >&6
30512else
30513
30514 cat >conftest.$ac_ext <<_ACEOF
30515/* confdefs.h. */
30516_ACEOF
30517cat confdefs.h >>conftest.$ac_ext
30518cat >>conftest.$ac_ext <<_ACEOF
30519/* end confdefs.h. */
30520
30521#include <stdarg.h>
30522va_list x,y;
30523
30524int
30525main ()
30526{
30527 va_copy(x,y);
30528 ;
30529 return 0;
30530}
30531_ACEOF
30532rm -f conftest.$ac_objext conftest$ac_exeext
30533if { (ac_try="$ac_link"
30534case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30537esac
30538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_link") 2>conftest.er1
30540 ac_status=$?
30541 grep -v '^ *+' conftest.er1 >conftest.err
30542 rm -f conftest.er1
30543 cat conftest.err >&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); } && {
30546 test -z "$ac_c_werror_flag" ||
30547 test ! -s conftest.err
30548 } && test -s conftest$ac_exeext &&
30549 $as_test_x conftest$ac_exeext; then
30550 ac_cv_have_va_copy="yes"
30551else
30552 echo "$as_me: failed program was:" >&5
30553sed 's/^/| /' conftest.$ac_ext >&5
30554
30555 ac_cv_have_va_copy="no"
30556
30557fi
30558
30559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30560 conftest$ac_exeext conftest.$ac_ext
30561
30562fi
30563{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
30564echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
30565if test "x$ac_cv_have_va_copy" = "xyes" ; then
30566
30567cat >>confdefs.h <<\_ACEOF
30568#define HAVE_VA_COPY 1
30569_ACEOF
30570
30571fi
30572
30573{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
30574echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
30575if test "${ac_cv_have___va_copy+set}" = set; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30577else
30578
30579 cat >conftest.$ac_ext <<_ACEOF
30580/* confdefs.h. */
30581_ACEOF
30582cat confdefs.h >>conftest.$ac_ext
30583cat >>conftest.$ac_ext <<_ACEOF
30584/* end confdefs.h. */
30585
30586#include <stdarg.h>
30587va_list x,y;
30588
30589int
30590main ()
30591{
30592 __va_copy(x,y);
30593 ;
30594 return 0;
30595}
30596_ACEOF
30597rm -f conftest.$ac_objext conftest$ac_exeext
30598if { (ac_try="$ac_link"
30599case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30602esac
30603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_link") 2>conftest.er1
30605 ac_status=$?
30606 grep -v '^ *+' conftest.er1 >conftest.err
30607 rm -f conftest.er1
30608 cat conftest.err >&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); } && {
30611 test -z "$ac_c_werror_flag" ||
30612 test ! -s conftest.err
30613 } && test -s conftest$ac_exeext &&
30614 $as_test_x conftest$ac_exeext; then
30615 ac_cv_have___va_copy="yes"
30616else
30617 echo "$as_me: failed program was:" >&5
30618sed 's/^/| /' conftest.$ac_ext >&5
30619
30620 ac_cv_have___va_copy="no"
30621
30622fi
30623
30624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30625 conftest$ac_exeext conftest.$ac_ext
30626
30627fi
30628{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
30629echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
30630if test "x$ac_cv_have___va_copy" = "xyes" ; then
30631
30632cat >>confdefs.h <<\_ACEOF
30633#define HAVE___VA_COPY 1
30634_ACEOF
30635
30636fi
30637
30638{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
30639echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
30640if test "${ac_cv_have_getopt_optreset+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30642else
30643
30644 cat >conftest.$ac_ext <<_ACEOF
30645/* confdefs.h. */
30646_ACEOF
30647cat confdefs.h >>conftest.$ac_ext
30648cat >>conftest.$ac_ext <<_ACEOF
30649/* end confdefs.h. */
30650 #include <getopt.h>
30651int
30652main ()
30653{
30654 extern int optreset; optreset = 0;
30655 ;
30656 return 0;
30657}
30658_ACEOF
30659rm -f conftest.$ac_objext conftest$ac_exeext
30660if { (ac_try="$ac_link"
30661case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664esac
30665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_link") 2>conftest.er1
30667 ac_status=$?
30668 grep -v '^ *+' conftest.er1 >conftest.err
30669 rm -f conftest.er1
30670 cat conftest.err >&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } && {
30673 test -z "$ac_c_werror_flag" ||
30674 test ! -s conftest.err
30675 } && test -s conftest$ac_exeext &&
30676 $as_test_x conftest$ac_exeext; then
30677 ac_cv_have_getopt_optreset="yes"
30678else
30679 echo "$as_me: failed program was:" >&5
30680sed 's/^/| /' conftest.$ac_ext >&5
30681
30682 ac_cv_have_getopt_optreset="no"
30683
30684fi
30685
30686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30687 conftest$ac_exeext conftest.$ac_ext
30688
30689fi
30690{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
30691echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
30692if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
30693
30694cat >>confdefs.h <<\_ACEOF
30695#define HAVE_GETOPT_OPTRESET 1
30696_ACEOF
30697
30698fi
30699
30700{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
30701echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
30702if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705
30706 cat >conftest.$ac_ext <<_ACEOF
30707/* confdefs.h. */
30708_ACEOF
30709cat confdefs.h >>conftest.$ac_ext
30710cat >>conftest.$ac_ext <<_ACEOF
30711/* end confdefs.h. */
30712
30713int
30714main ()
30715{
30716 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
30717 ;
30718 return 0;
30719}
30720_ACEOF
30721rm -f conftest.$ac_objext conftest$ac_exeext
30722if { (ac_try="$ac_link"
30723case "(($ac_try" in
30724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725 *) ac_try_echo=$ac_try;;
30726esac
30727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30728 (eval "$ac_link") 2>conftest.er1
30729 ac_status=$?
30730 grep -v '^ *+' conftest.er1 >conftest.err
30731 rm -f conftest.er1
30732 cat conftest.err >&5
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } && {
30735 test -z "$ac_c_werror_flag" ||
30736 test ! -s conftest.err
30737 } && test -s conftest$ac_exeext &&
30738 $as_test_x conftest$ac_exeext; then
30739 ac_cv_libc_defines_sys_errlist="yes"
30740else
30741 echo "$as_me: failed program was:" >&5
30742sed 's/^/| /' conftest.$ac_ext >&5
30743
30744 ac_cv_libc_defines_sys_errlist="no"
30745
30746fi
30747
30748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30749 conftest$ac_exeext conftest.$ac_ext
30750
30751fi
30752{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
30753echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
30754if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
30755
30756cat >>confdefs.h <<\_ACEOF
30757#define HAVE_SYS_ERRLIST 1
30758_ACEOF
30759
30760fi
30761
30762
30763{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
30764echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
30765if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
30766 echo $ECHO_N "(cached) $ECHO_C" >&6
30767else
30768
30769 cat >conftest.$ac_ext <<_ACEOF
30770/* confdefs.h. */
30771_ACEOF
30772cat confdefs.h >>conftest.$ac_ext
30773cat >>conftest.$ac_ext <<_ACEOF
30774/* end confdefs.h. */
30775
30776int
30777main ()
30778{
30779 extern int sys_nerr; printf("%i", sys_nerr);
30780 ;
30781 return 0;
30782}
30783_ACEOF
30784rm -f conftest.$ac_objext conftest$ac_exeext
30785if { (ac_try="$ac_link"
30786case "(($ac_try" in
30787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788 *) ac_try_echo=$ac_try;;
30789esac
30790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791 (eval "$ac_link") 2>conftest.er1
30792 ac_status=$?
30793 grep -v '^ *+' conftest.er1 >conftest.err
30794 rm -f conftest.er1
30795 cat conftest.err >&5
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } && {
30798 test -z "$ac_c_werror_flag" ||
30799 test ! -s conftest.err
30800 } && test -s conftest$ac_exeext &&
30801 $as_test_x conftest$ac_exeext; then
30802 ac_cv_libc_defines_sys_nerr="yes"
30803else
30804 echo "$as_me: failed program was:" >&5
30805sed 's/^/| /' conftest.$ac_ext >&5
30806
30807 ac_cv_libc_defines_sys_nerr="no"
30808
30809fi
30810
30811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30812 conftest$ac_exeext conftest.$ac_ext
30813
30814fi
30815{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
30816echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
30817if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
30818
30819cat >>confdefs.h <<\_ACEOF
30820#define HAVE_SYS_NERR 1
30821_ACEOF
30822
30823fi
30824
30825# Check libraries needed by DNS fingerprint support
30826{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
30827echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
30828if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30829 echo $ECHO_N "(cached) $ECHO_C" >&6
30830else
30831 ac_func_search_save_LIBS=$LIBS
30832cat >conftest.$ac_ext <<_ACEOF
30833/* confdefs.h. */
30834_ACEOF
30835cat confdefs.h >>conftest.$ac_ext
30836cat >>conftest.$ac_ext <<_ACEOF
30837/* end confdefs.h. */
30838
30839/* Override any GCC internal prototype to avoid an error.
30840 Use char because int might match the return type of a GCC
30841 builtin and then its argument prototype would still apply. */
30842#ifdef __cplusplus
30843extern "C"
30844#endif
30845char getrrsetbyname ();
30846int
30847main ()
30848{
30849return getrrsetbyname ();
30850 ;
30851 return 0;
30852}
30853_ACEOF
30854for ac_lib in '' resolv; do
30855 if test -z "$ac_lib"; then
30856 ac_res="none required"
30857 else
30858 ac_res=-l$ac_lib
30859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30860 fi
30861 rm -f conftest.$ac_objext conftest$ac_exeext
30862if { (ac_try="$ac_link"
30863case "(($ac_try" in
30864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30865 *) ac_try_echo=$ac_try;;
30866esac
30867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30868 (eval "$ac_link") 2>conftest.er1
30869 ac_status=$?
30870 grep -v '^ *+' conftest.er1 >conftest.err
30871 rm -f conftest.er1
30872 cat conftest.err >&5
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); } && {
30875 test -z "$ac_c_werror_flag" ||
30876 test ! -s conftest.err
30877 } && test -s conftest$ac_exeext &&
30878 $as_test_x conftest$ac_exeext; then
30879 ac_cv_search_getrrsetbyname=$ac_res
30880else
30881 echo "$as_me: failed program was:" >&5
30882sed 's/^/| /' conftest.$ac_ext >&5
30883
30884
30885fi
30886
30887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30888 conftest$ac_exeext
30889 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30890 break
30891fi
30892done
30893if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30894 :
30895else
30896 ac_cv_search_getrrsetbyname=no
30897fi
30898rm conftest.$ac_ext
30899LIBS=$ac_func_search_save_LIBS
30900fi
30901{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
30902echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
30903ac_res=$ac_cv_search_getrrsetbyname
30904if test "$ac_res" != no; then
30905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30906
30907cat >>confdefs.h <<\_ACEOF
30908#define HAVE_GETRRSETBYNAME 1
30909_ACEOF
30910
30911else
30912
30913 # Needed by our getrrsetbyname()
30914 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
30915echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
30916if test "${ac_cv_search_res_query+set}" = set; then
30917 echo $ECHO_N "(cached) $ECHO_C" >&6
30918else
30919 ac_func_search_save_LIBS=$LIBS
30920cat >conftest.$ac_ext <<_ACEOF
30921/* confdefs.h. */
30922_ACEOF
30923cat confdefs.h >>conftest.$ac_ext
30924cat >>conftest.$ac_ext <<_ACEOF
30925/* end confdefs.h. */
30926
30927/* Override any GCC internal prototype to avoid an error.
30928 Use char because int might match the return type of a GCC
30929 builtin and then its argument prototype would still apply. */
30930#ifdef __cplusplus
30931extern "C"
30932#endif
30933char res_query ();
30934int
30935main ()
30936{
30937return res_query ();
30938 ;
30939 return 0;
30940}
30941_ACEOF
30942for ac_lib in '' resolv; do
30943 if test -z "$ac_lib"; then
30944 ac_res="none required"
30945 else
30946 ac_res=-l$ac_lib
30947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30948 fi
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950if { (ac_try="$ac_link"
30951case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_link") 2>conftest.er1
30957 ac_status=$?
30958 grep -v '^ *+' conftest.er1 >conftest.err
30959 rm -f conftest.er1
30960 cat conftest.err >&5
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962 (exit $ac_status); } && {
30963 test -z "$ac_c_werror_flag" ||
30964 test ! -s conftest.err
30965 } && test -s conftest$ac_exeext &&
30966 $as_test_x conftest$ac_exeext; then
30967 ac_cv_search_res_query=$ac_res
30968else
30969 echo "$as_me: failed program was:" >&5
30970sed 's/^/| /' conftest.$ac_ext >&5
30971
30972
30973fi
30974
30975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30976 conftest$ac_exeext
30977 if test "${ac_cv_search_res_query+set}" = set; then
30978 break
30979fi
30980done
30981if test "${ac_cv_search_res_query+set}" = set; then
30982 :
30983else
30984 ac_cv_search_res_query=no
30985fi
30986rm conftest.$ac_ext
30987LIBS=$ac_func_search_save_LIBS
30988fi
30989{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
30990echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
30991ac_res=$ac_cv_search_res_query
30992if test "$ac_res" != no; then
30993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30994
30995fi
30996
30997 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
30998echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
30999if test "${ac_cv_search_dn_expand+set}" = set; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31001else
31002 ac_func_search_save_LIBS=$LIBS
31003cat >conftest.$ac_ext <<_ACEOF
31004/* confdefs.h. */
31005_ACEOF
31006cat confdefs.h >>conftest.$ac_ext
31007cat >>conftest.$ac_ext <<_ACEOF
31008/* end confdefs.h. */
31009
31010/* Override any GCC internal prototype to avoid an error.
31011 Use char because int might match the return type of a GCC
31012 builtin and then its argument prototype would still apply. */
31013#ifdef __cplusplus
31014extern "C"
31015#endif
31016char dn_expand ();
31017int
31018main ()
31019{
31020return dn_expand ();
31021 ;
31022 return 0;
31023}
31024_ACEOF
31025for ac_lib in '' resolv; do
31026 if test -z "$ac_lib"; then
31027 ac_res="none required"
31028 else
31029 ac_res=-l$ac_lib
31030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31031 fi
31032 rm -f conftest.$ac_objext conftest$ac_exeext
31033if { (ac_try="$ac_link"
31034case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31037esac
31038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039 (eval "$ac_link") 2>conftest.er1
31040 ac_status=$?
31041 grep -v '^ *+' conftest.er1 >conftest.err
31042 rm -f conftest.er1
31043 cat conftest.err >&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); } && {
31046 test -z "$ac_c_werror_flag" ||
31047 test ! -s conftest.err
31048 } && test -s conftest$ac_exeext &&
31049 $as_test_x conftest$ac_exeext; then
31050 ac_cv_search_dn_expand=$ac_res
31051else
31052 echo "$as_me: failed program was:" >&5
31053sed 's/^/| /' conftest.$ac_ext >&5
31054
31055
31056fi
31057
31058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31059 conftest$ac_exeext
31060 if test "${ac_cv_search_dn_expand+set}" = set; then
31061 break
31062fi
31063done
31064if test "${ac_cv_search_dn_expand+set}" = set; then
31065 :
31066else
31067 ac_cv_search_dn_expand=no
31068fi
31069rm conftest.$ac_ext
31070LIBS=$ac_func_search_save_LIBS
31071fi
31072{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
31073echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
31074ac_res=$ac_cv_search_dn_expand
31075if test "$ac_res" != no; then
31076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31077
31078fi
31079
31080 { echo "$as_me:$LINENO: checking if res_query will link" >&5
31081echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
31082 cat >conftest.$ac_ext <<_ACEOF
31083/* confdefs.h. */
31084_ACEOF
31085cat confdefs.h >>conftest.$ac_ext
31086cat >>conftest.$ac_ext <<_ACEOF
31087/* end confdefs.h. */
31088
31089#include <sys/types.h>
31090#include <netinet/in.h>
31091#include <arpa/nameser.h>
31092#include <netdb.h>
31093#include <resolv.h>
31094
31095int
31096main ()
31097{
31098
31099 res_query (0, 0, 0, 0, 0);
31100
31101 ;
31102 return 0;
31103}
31104_ACEOF
31105rm -f conftest.$ac_objext conftest$ac_exeext
31106if { (ac_try="$ac_link"
31107case "(($ac_try" in
31108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31110esac
31111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_link") 2>conftest.er1
31113 ac_status=$?
31114 grep -v '^ *+' conftest.er1 >conftest.err
31115 rm -f conftest.er1
31116 cat conftest.err >&5
31117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118 (exit $ac_status); } && {
31119 test -z "$ac_c_werror_flag" ||
31120 test ! -s conftest.err
31121 } && test -s conftest$ac_exeext &&
31122 $as_test_x conftest$ac_exeext; then
31123 { echo "$as_me:$LINENO: result: yes" >&5
31124echo "${ECHO_T}yes" >&6; }
31125else
31126 echo "$as_me: failed program was:" >&5
31127sed 's/^/| /' conftest.$ac_ext >&5
31128
31129 { echo "$as_me:$LINENO: result: no" >&5
31130echo "${ECHO_T}no" >&6; }
31131 saved_LIBS="$LIBS"
31132 LIBS="$LIBS -lresolv"
31133 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
31134echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
31135 cat >conftest.$ac_ext <<_ACEOF
31136/* confdefs.h. */
31137_ACEOF
31138cat confdefs.h >>conftest.$ac_ext
31139cat >>conftest.$ac_ext <<_ACEOF
31140/* end confdefs.h. */
31141
31142#include <sys/types.h>
31143#include <netinet/in.h>
31144#include <arpa/nameser.h>
31145#include <netdb.h>
31146#include <resolv.h>
31147
31148int
31149main ()
31150{
31151
31152 res_query (0, 0, 0, 0, 0);
31153
31154 ;
31155 return 0;
31156}
31157_ACEOF
31158rm -f conftest.$ac_objext conftest$ac_exeext
31159if { (ac_try="$ac_link"
31160case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31163esac
31164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_link") 2>conftest.er1
31166 ac_status=$?
31167 grep -v '^ *+' conftest.er1 >conftest.err
31168 rm -f conftest.er1
31169 cat conftest.err >&5
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); } && {
31172 test -z "$ac_c_werror_flag" ||
31173 test ! -s conftest.err
31174 } && test -s conftest$ac_exeext &&
31175 $as_test_x conftest$ac_exeext; then
31176 { echo "$as_me:$LINENO: result: yes" >&5
31177echo "${ECHO_T}yes" >&6; }
31178else
31179 echo "$as_me: failed program was:" >&5
31180sed 's/^/| /' conftest.$ac_ext >&5
31181
31182 LIBS="$saved_LIBS"
31183 { echo "$as_me:$LINENO: result: no" >&5
31184echo "${ECHO_T}no" >&6; }
31185fi
31186
31187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31188 conftest$ac_exeext conftest.$ac_ext
31189
31190fi
31191
31192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31193 conftest$ac_exeext conftest.$ac_ext
31194
31195
31196for ac_func in _getshort _getlong
31197do
31198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31199{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31201if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31202 echo $ECHO_N "(cached) $ECHO_C" >&6
31203else
31204 cat >conftest.$ac_ext <<_ACEOF
31205/* confdefs.h. */
31206_ACEOF
31207cat confdefs.h >>conftest.$ac_ext
31208cat >>conftest.$ac_ext <<_ACEOF
31209/* end confdefs.h. */
31210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31212#define $ac_func innocuous_$ac_func
31213
31214/* System header to define __stub macros and hopefully few prototypes,
31215 which can conflict with char $ac_func (); below.
31216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31217 <limits.h> exists even on freestanding compilers. */
31218
31219#ifdef __STDC__
31220# include <limits.h>
31221#else
31222# include <assert.h>
31223#endif
31224
31225#undef $ac_func
31226
31227/* Override any GCC internal prototype to avoid an error.
31228 Use char because int might match the return type of a GCC
31229 builtin and then its argument prototype would still apply. */
31230#ifdef __cplusplus
31231extern "C"
31232#endif
31233char $ac_func ();
31234/* The GNU C library defines this for functions which it implements
31235 to always fail with ENOSYS. Some functions are actually named
31236 something starting with __ and the normal name is an alias. */
31237#if defined __stub_$ac_func || defined __stub___$ac_func
31238choke me
31239#endif
31240
31241int
31242main ()
31243{
31244return $ac_func ();
31245 ;
31246 return 0;
31247}
31248_ACEOF
31249rm -f conftest.$ac_objext conftest$ac_exeext
31250if { (ac_try="$ac_link"
31251case "(($ac_try" in
31252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253 *) ac_try_echo=$ac_try;;
31254esac
31255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256 (eval "$ac_link") 2>conftest.er1
31257 ac_status=$?
31258 grep -v '^ *+' conftest.er1 >conftest.err
31259 rm -f conftest.er1
31260 cat conftest.err >&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } && {
31263 test -z "$ac_c_werror_flag" ||
31264 test ! -s conftest.err
31265 } && test -s conftest$ac_exeext &&
31266 $as_test_x conftest$ac_exeext; then
31267 eval "$as_ac_var=yes"
31268else
31269 echo "$as_me: failed program was:" >&5
31270sed 's/^/| /' conftest.$ac_ext >&5
31271
31272 eval "$as_ac_var=no"
31273fi
31274
31275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31276 conftest$ac_exeext conftest.$ac_ext
31277fi
31278ac_res=`eval echo '${'$as_ac_var'}'`
31279 { echo "$as_me:$LINENO: result: $ac_res" >&5
31280echo "${ECHO_T}$ac_res" >&6; }
31281if test `eval echo '${'$as_ac_var'}'` = yes; then
31282 cat >>confdefs.h <<_ACEOF
31283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31284_ACEOF
31285
31286fi
31287done
31288
31289 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
31290echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
31291if test "${ac_cv_have_decl__getshort+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31293else
31294 cat >conftest.$ac_ext <<_ACEOF
31295/* confdefs.h. */
31296_ACEOF
31297cat confdefs.h >>conftest.$ac_ext
31298cat >>conftest.$ac_ext <<_ACEOF
31299/* end confdefs.h. */
31300#include <sys/types.h>
31301 #include <arpa/nameser.h>
31302
31303int
31304main ()
31305{
31306#ifndef _getshort
31307 (void) _getshort;
31308#endif
31309
31310 ;
31311 return 0;
31312}
31313_ACEOF
31314rm -f conftest.$ac_objext
31315if { (ac_try="$ac_compile"
31316case "(($ac_try" in
31317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318 *) ac_try_echo=$ac_try;;
31319esac
31320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321 (eval "$ac_compile") 2>conftest.er1
31322 ac_status=$?
31323 grep -v '^ *+' conftest.er1 >conftest.err
31324 rm -f conftest.er1
31325 cat conftest.err >&5
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); } && {
31328 test -z "$ac_c_werror_flag" ||
31329 test ! -s conftest.err
31330 } && test -s conftest.$ac_objext; then
31331 ac_cv_have_decl__getshort=yes
31332else
31333 echo "$as_me: failed program was:" >&5
31334sed 's/^/| /' conftest.$ac_ext >&5
31335
31336 ac_cv_have_decl__getshort=no
31337fi
31338
31339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340fi
31341{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
31342echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
31343if test $ac_cv_have_decl__getshort = yes; then
31344
31345cat >>confdefs.h <<_ACEOF
31346#define HAVE_DECL__GETSHORT 1
31347_ACEOF
31348
31349
31350else
31351 cat >>confdefs.h <<_ACEOF
31352#define HAVE_DECL__GETSHORT 0
31353_ACEOF
31354
31355
31356fi
31357{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
31358echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
31359if test "${ac_cv_have_decl__getlong+set}" = set; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
31361else
31362 cat >conftest.$ac_ext <<_ACEOF
31363/* confdefs.h. */
31364_ACEOF
31365cat confdefs.h >>conftest.$ac_ext
31366cat >>conftest.$ac_ext <<_ACEOF
31367/* end confdefs.h. */
31368#include <sys/types.h>
31369 #include <arpa/nameser.h>
31370
31371int
31372main ()
31373{
31374#ifndef _getlong
31375 (void) _getlong;
31376#endif
31377
31378 ;
31379 return 0;
31380}
31381_ACEOF
31382rm -f conftest.$ac_objext
31383if { (ac_try="$ac_compile"
31384case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31387esac
31388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_compile") 2>conftest.er1
31390 ac_status=$?
31391 grep -v '^ *+' conftest.er1 >conftest.err
31392 rm -f conftest.er1
31393 cat conftest.err >&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); } && {
31396 test -z "$ac_c_werror_flag" ||
31397 test ! -s conftest.err
31398 } && test -s conftest.$ac_objext; then
31399 ac_cv_have_decl__getlong=yes
31400else
31401 echo "$as_me: failed program was:" >&5
31402sed 's/^/| /' conftest.$ac_ext >&5
31403
31404 ac_cv_have_decl__getlong=no
31405fi
31406
31407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31408fi
31409{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
31410echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
31411if test $ac_cv_have_decl__getlong = yes; then
31412
31413cat >>confdefs.h <<_ACEOF
31414#define HAVE_DECL__GETLONG 1
31415_ACEOF
31416
31417
31418else
31419 cat >>confdefs.h <<_ACEOF
31420#define HAVE_DECL__GETLONG 0
31421_ACEOF
31422
31423
31424fi
31425
31426
31427 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
31428echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
31429if test "${ac_cv_member_HEADER_ad+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431else
31432 cat >conftest.$ac_ext <<_ACEOF
31433/* confdefs.h. */
31434_ACEOF
31435cat confdefs.h >>conftest.$ac_ext
31436cat >>conftest.$ac_ext <<_ACEOF
31437/* end confdefs.h. */
31438#include <arpa/nameser.h>
31439
31440int
31441main ()
31442{
31443static HEADER ac_aggr;
31444if (ac_aggr.ad)
31445return 0;
31446 ;
31447 return 0;
31448}
31449_ACEOF
31450rm -f conftest.$ac_objext
31451if { (ac_try="$ac_compile"
31452case "(($ac_try" in
31453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454 *) ac_try_echo=$ac_try;;
31455esac
31456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457 (eval "$ac_compile") 2>conftest.er1
31458 ac_status=$?
31459 grep -v '^ *+' conftest.er1 >conftest.err
31460 rm -f conftest.er1
31461 cat conftest.err >&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } && {
31464 test -z "$ac_c_werror_flag" ||
31465 test ! -s conftest.err
31466 } && test -s conftest.$ac_objext; then
31467 ac_cv_member_HEADER_ad=yes
31468else
31469 echo "$as_me: failed program was:" >&5
31470sed 's/^/| /' conftest.$ac_ext >&5
31471
31472 cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
31478#include <arpa/nameser.h>
31479
31480int
31481main ()
31482{
31483static HEADER ac_aggr;
31484if (sizeof ac_aggr.ad)
31485return 0;
31486 ;
31487 return 0;
31488}
31489_ACEOF
31490rm -f conftest.$ac_objext
31491if { (ac_try="$ac_compile"
31492case "(($ac_try" in
31493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31494 *) ac_try_echo=$ac_try;;
31495esac
31496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31497 (eval "$ac_compile") 2>conftest.er1
31498 ac_status=$?
31499 grep -v '^ *+' conftest.er1 >conftest.err
31500 rm -f conftest.er1
31501 cat conftest.err >&5
31502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503 (exit $ac_status); } && {
31504 test -z "$ac_c_werror_flag" ||
31505 test ! -s conftest.err
31506 } && test -s conftest.$ac_objext; then
31507 ac_cv_member_HEADER_ad=yes
31508else
31509 echo "$as_me: failed program was:" >&5
31510sed 's/^/| /' conftest.$ac_ext >&5
31511
31512 ac_cv_member_HEADER_ad=no
31513fi
31514
31515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31516fi
31517
31518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31519fi
31520{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
31521echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
31522if test $ac_cv_member_HEADER_ad = yes; then
31523
31524cat >>confdefs.h <<\_ACEOF
31525#define HAVE_HEADER_AD 1
31526_ACEOF
31527
31528fi
31529
31530
31531fi
31532
31533
31534{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
31535echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
31536cat >conftest.$ac_ext <<_ACEOF
31537/* confdefs.h. */
31538_ACEOF
31539cat confdefs.h >>conftest.$ac_ext
31540cat >>conftest.$ac_ext <<_ACEOF
31541/* end confdefs.h. */
31542
31543#include <stdio.h>
31544#if HAVE_SYS_TYPES_H
31545# include <sys/types.h>
31546#endif
31547#include <netinet/in.h>
31548#include <arpa/nameser.h>
31549#include <resolv.h>
31550extern struct __res_state _res;
31551
31552int
31553main ()
31554{
31555
31556 ;
31557 return 0;
31558}
31559_ACEOF
31560rm -f conftest.$ac_objext conftest$ac_exeext
31561if { (ac_try="$ac_link"
31562case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31565esac
31566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_link") 2>conftest.er1
31568 ac_status=$?
31569 grep -v '^ *+' conftest.er1 >conftest.err
31570 rm -f conftest.er1
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } && {
31574 test -z "$ac_c_werror_flag" ||
31575 test ! -s conftest.err
31576 } && test -s conftest$ac_exeext &&
31577 $as_test_x conftest$ac_exeext; then
31578 { echo "$as_me:$LINENO: result: yes" >&5
31579echo "${ECHO_T}yes" >&6; }
31580
31581cat >>confdefs.h <<\_ACEOF
31582#define HAVE__RES_EXTERN 1
31583_ACEOF
31584
31585
31586else
31587 echo "$as_me: failed program was:" >&5
31588sed 's/^/| /' conftest.$ac_ext >&5
31589
31590 { echo "$as_me:$LINENO: result: no" >&5
31591echo "${ECHO_T}no" >&6; }
31592
31593fi
31594
31595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31596 conftest$ac_exeext conftest.$ac_ext
31597
31598# Check whether user wants SELinux support
31599SELINUX_MSG="no"
31600LIBSELINUX=""
31601
31602# Check whether --with-selinux was given.
31603if test "${with_selinux+set}" = set; then
31604 withval=$with_selinux; if test "x$withval" != "xno" ; then
31605 save_LIBS="$LIBS"
31606
31607cat >>confdefs.h <<\_ACEOF
31608#define WITH_SELINUX 1
31609_ACEOF
31610
31611 SELINUX_MSG="yes"
31612 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31613 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31614echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31615if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31617fi
31618{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31619echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31620else
31621 # Is the header compilable?
31622{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
31623echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
31624cat >conftest.$ac_ext <<_ACEOF
31625/* confdefs.h. */
31626_ACEOF
31627cat confdefs.h >>conftest.$ac_ext
31628cat >>conftest.$ac_ext <<_ACEOF
31629/* end confdefs.h. */
31630$ac_includes_default
31631#include <selinux/selinux.h>
31632_ACEOF
31633rm -f conftest.$ac_objext
31634if { (ac_try="$ac_compile"
31635case "(($ac_try" in
31636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637 *) ac_try_echo=$ac_try;;
31638esac
31639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640 (eval "$ac_compile") 2>conftest.er1
31641 ac_status=$?
31642 grep -v '^ *+' conftest.er1 >conftest.err
31643 rm -f conftest.er1
31644 cat conftest.err >&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } && {
31647 test -z "$ac_c_werror_flag" ||
31648 test ! -s conftest.err
31649 } && test -s conftest.$ac_objext; then
31650 ac_header_compiler=yes
31651else
31652 echo "$as_me: failed program was:" >&5
31653sed 's/^/| /' conftest.$ac_ext >&5
31654
31655 ac_header_compiler=no
31656fi
31657
31658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31659{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31660echo "${ECHO_T}$ac_header_compiler" >&6; }
31661
31662# Is the header present?
31663{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
31664echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
31665cat >conftest.$ac_ext <<_ACEOF
31666/* confdefs.h. */
31667_ACEOF
31668cat confdefs.h >>conftest.$ac_ext
31669cat >>conftest.$ac_ext <<_ACEOF
31670/* end confdefs.h. */
31671#include <selinux/selinux.h>
31672_ACEOF
31673if { (ac_try="$ac_cpp conftest.$ac_ext"
31674case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31677esac
31678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31680 ac_status=$?
31681 grep -v '^ *+' conftest.er1 >conftest.err
31682 rm -f conftest.er1
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } >/dev/null && {
31686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31687 test ! -s conftest.err
31688 }; then
31689 ac_header_preproc=yes
31690else
31691 echo "$as_me: failed program was:" >&5
31692sed 's/^/| /' conftest.$ac_ext >&5
31693
31694 ac_header_preproc=no
31695fi
31696
31697rm -f conftest.err conftest.$ac_ext
31698{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31699echo "${ECHO_T}$ac_header_preproc" >&6; }
31700
31701# So? What about this header?
31702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31703 yes:no: )
31704 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
31705echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31706 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
31707echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
31708 ac_header_preproc=yes
31709 ;;
31710 no:yes:* )
31711 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
31712echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
31713 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
31714echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
31715 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
31716echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
31717 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
31718echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
31719 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
31720echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
31721 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
31722echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
31723 ( cat <<\_ASBOX
31724## ------------------------------------------- ##
31725## Report this to openssh-unix-dev@mindrot.org ##
31726## ------------------------------------------- ##
31727_ASBOX
31728 ) | sed "s/^/$as_me: WARNING: /" >&2
31729 ;;
31730esac
31731{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31732echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31733if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31734 echo $ECHO_N "(cached) $ECHO_C" >&6
31735else
31736 ac_cv_header_selinux_selinux_h=$ac_header_preproc
31737fi
31738{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31739echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31740
31741fi
31742if test $ac_cv_header_selinux_selinux_h = yes; then
31743 :
31744else
31745 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
31746echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
31747 { (exit 1); exit 1; }; }
31748fi
31749
31750
31751 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
31752echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
31753if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
31754 echo $ECHO_N "(cached) $ECHO_C" >&6
31755else
31756 ac_check_lib_save_LIBS=$LIBS
31757LIBS="-lselinux $LIBS"
31758cat >conftest.$ac_ext <<_ACEOF
31759/* confdefs.h. */
31760_ACEOF
31761cat confdefs.h >>conftest.$ac_ext
31762cat >>conftest.$ac_ext <<_ACEOF
31763/* end confdefs.h. */
31764
31765/* Override any GCC internal prototype to avoid an error.
31766 Use char because int might match the return type of a GCC
31767 builtin and then its argument prototype would still apply. */
31768#ifdef __cplusplus
31769extern "C"
31770#endif
31771char setexeccon ();
31772int
31773main ()
31774{
31775return setexeccon ();
31776 ;
31777 return 0;
31778}
31779_ACEOF
31780rm -f conftest.$ac_objext conftest$ac_exeext
31781if { (ac_try="$ac_link"
31782case "(($ac_try" in
31783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31784 *) ac_try_echo=$ac_try;;
31785esac
31786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31787 (eval "$ac_link") 2>conftest.er1
31788 ac_status=$?
31789 grep -v '^ *+' conftest.er1 >conftest.err
31790 rm -f conftest.er1
31791 cat conftest.err >&5
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); } && {
31794 test -z "$ac_c_werror_flag" ||
31795 test ! -s conftest.err
31796 } && test -s conftest$ac_exeext &&
31797 $as_test_x conftest$ac_exeext; then
31798 ac_cv_lib_selinux_setexeccon=yes
31799else
31800 echo "$as_me: failed program was:" >&5
31801sed 's/^/| /' conftest.$ac_ext >&5
31802
31803 ac_cv_lib_selinux_setexeccon=no
31804fi
31805
31806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31807 conftest$ac_exeext conftest.$ac_ext
31808LIBS=$ac_check_lib_save_LIBS
31809fi
31810{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
31811echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
31812if test $ac_cv_lib_selinux_setexeccon = yes; then
31813 LIBSELINUX="-lselinux"
31814 LIBS="$LIBS -lselinux"
31815
31816else
31817 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
31818echo "$as_me: error: SELinux support requires libselinux library" >&2;}
31819 { (exit 1); exit 1; }; }
31820fi
31821
31822 SSHLIBS="$SSHLIBS $LIBSELINUX"
31823 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
31824
31825
31826for ac_func in getseuserbyname get_default_context_with_level
31827do
31828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31832 echo $ECHO_N "(cached) $ECHO_C" >&6
31833else
31834 cat >conftest.$ac_ext <<_ACEOF
31835/* confdefs.h. */
31836_ACEOF
31837cat confdefs.h >>conftest.$ac_ext
31838cat >>conftest.$ac_ext <<_ACEOF
31839/* end confdefs.h. */
31840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31842#define $ac_func innocuous_$ac_func
31843
31844/* System header to define __stub macros and hopefully few prototypes,
31845 which can conflict with char $ac_func (); below.
31846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31847 <limits.h> exists even on freestanding compilers. */
31848
31849#ifdef __STDC__
31850# include <limits.h>
31851#else
31852# include <assert.h>
31853#endif
31854
31855#undef $ac_func
31856
31857/* Override any GCC internal prototype to avoid an error.
31858 Use char because int might match the return type of a GCC
31859 builtin and then its argument prototype would still apply. */
31860#ifdef __cplusplus
31861extern "C"
31862#endif
31863char $ac_func ();
31864/* The GNU C library defines this for functions which it implements
31865 to always fail with ENOSYS. Some functions are actually named
31866 something starting with __ and the normal name is an alias. */
31867#if defined __stub_$ac_func || defined __stub___$ac_func
31868choke me
31869#endif
31870
31871int
31872main ()
31873{
31874return $ac_func ();
31875 ;
31876 return 0;
31877}
31878_ACEOF
31879rm -f conftest.$ac_objext conftest$ac_exeext
31880if { (ac_try="$ac_link"
31881case "(($ac_try" in
31882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883 *) ac_try_echo=$ac_try;;
31884esac
31885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886 (eval "$ac_link") 2>conftest.er1
31887 ac_status=$?
31888 grep -v '^ *+' conftest.er1 >conftest.err
31889 rm -f conftest.er1
31890 cat conftest.err >&5
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); } && {
31893 test -z "$ac_c_werror_flag" ||
31894 test ! -s conftest.err
31895 } && test -s conftest$ac_exeext &&
31896 $as_test_x conftest$ac_exeext; then
31897 eval "$as_ac_var=yes"
31898else
31899 echo "$as_me: failed program was:" >&5
31900sed 's/^/| /' conftest.$ac_ext >&5
31901
31902 eval "$as_ac_var=no"
31903fi
31904
31905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31906 conftest$ac_exeext conftest.$ac_ext
31907fi
31908ac_res=`eval echo '${'$as_ac_var'}'`
31909 { echo "$as_me:$LINENO: result: $ac_res" >&5
31910echo "${ECHO_T}$ac_res" >&6; }
31911if test `eval echo '${'$as_ac_var'}'` = yes; then
31912 cat >>confdefs.h <<_ACEOF
31913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31914_ACEOF
31915
31916fi
31917done
31918
31919 LIBS="$save_LIBS"
31920 fi
31921
31922fi
31923
31924
31925
31926
31927# Check whether user wants Kerberos 5 support
31928KRB5_MSG="no"
31929
31930# Check whether --with-kerberos5 was given.
31931if test "${with_kerberos5+set}" = set; then
31932 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
31933 if test "x$withval" = "xyes" ; then
31934 KRB5ROOT="/usr/local"
31935 else
31936 KRB5ROOT=${withval}
31937 fi
31938
31939
31940cat >>confdefs.h <<\_ACEOF
31941#define KRB5 1
31942_ACEOF
31943
31944 KRB5_MSG="yes"
31945
31946 # Extract the first word of "krb5-config", so it can be a program name with args.
31947set dummy krb5-config; ac_word=$2
31948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31950if test "${ac_cv_path_KRB5CONF+set}" = set; then
31951 echo $ECHO_N "(cached) $ECHO_C" >&6
31952else
31953 case $KRB5CONF in
31954 [\\/]* | ?:[\\/]*)
31955 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
31956 ;;
31957 *)
31958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31959as_dummy="$KRB5ROOT/bin:$PATH"
31960for as_dir in $as_dummy
31961do
31962 IFS=$as_save_IFS
31963 test -z "$as_dir" && as_dir=.
31964 for ac_exec_ext in '' $ac_executable_extensions; do
31965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31966 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
31967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31968 break 2
31969 fi
31970done
31971done
31972IFS=$as_save_IFS
31973
31974 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
31975 ;;
31976esac
31977fi
31978KRB5CONF=$ac_cv_path_KRB5CONF
31979if test -n "$KRB5CONF"; then
31980 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
31981echo "${ECHO_T}$KRB5CONF" >&6; }
31982else
31983 { echo "$as_me:$LINENO: result: no" >&5
31984echo "${ECHO_T}no" >&6; }
31985fi
31986
31987
31988 if test -x $KRB5CONF ; then
31989 K5CFLAGS="`$KRB5CONF --cflags`"
31990 K5LIBS="`$KRB5CONF --libs`"
31991 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
31992
31993 { echo "$as_me:$LINENO: checking for gssapi support" >&5
31994echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
31995 if $KRB5CONF | grep gssapi >/dev/null ; then
31996 { echo "$as_me:$LINENO: result: yes" >&5
31997echo "${ECHO_T}yes" >&6; }
31998
31999cat >>confdefs.h <<\_ACEOF
32000#define GSSAPI 1
32001_ACEOF
32002
32003 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
32004 GSSLIBS="`$KRB5CONF --libs gssapi`"
32005 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
32006 else
32007 { echo "$as_me:$LINENO: result: no" >&5
32008echo "${ECHO_T}no" >&6; }
32009 fi
32010 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32011echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32012 cat >conftest.$ac_ext <<_ACEOF
32013/* confdefs.h. */
32014_ACEOF
32015cat confdefs.h >>conftest.$ac_ext
32016cat >>conftest.$ac_ext <<_ACEOF
32017/* end confdefs.h. */
32018 #include <krb5.h>
32019
32020int
32021main ()
32022{
32023 char *tmp = heimdal_version;
32024 ;
32025 return 0;
32026}
32027_ACEOF
32028rm -f conftest.$ac_objext
32029if { (ac_try="$ac_compile"
32030case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32033esac
32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_compile") 2>conftest.er1
32036 ac_status=$?
32037 grep -v '^ *+' conftest.er1 >conftest.err
32038 rm -f conftest.er1
32039 cat conftest.err >&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } && {
32042 test -z "$ac_c_werror_flag" ||
32043 test ! -s conftest.err
32044 } && test -s conftest.$ac_objext; then
32045 { echo "$as_me:$LINENO: result: yes" >&5
32046echo "${ECHO_T}yes" >&6; }
32047
32048cat >>confdefs.h <<\_ACEOF
32049#define HEIMDAL 1
32050_ACEOF
32051
32052else
32053 echo "$as_me: failed program was:" >&5
32054sed 's/^/| /' conftest.$ac_ext >&5
32055
32056 { echo "$as_me:$LINENO: result: no" >&5
32057echo "${ECHO_T}no" >&6; }
32058
32059fi
32060
32061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32062 else
32063 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
32064 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
32065 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32066echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32067 cat >conftest.$ac_ext <<_ACEOF
32068/* confdefs.h. */
32069_ACEOF
32070cat confdefs.h >>conftest.$ac_ext
32071cat >>conftest.$ac_ext <<_ACEOF
32072/* end confdefs.h. */
32073 #include <krb5.h>
32074
32075int
32076main ()
32077{
32078 char *tmp = heimdal_version;
32079 ;
32080 return 0;
32081}
32082_ACEOF
32083rm -f conftest.$ac_objext
32084if { (ac_try="$ac_compile"
32085case "(($ac_try" in
32086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32087 *) ac_try_echo=$ac_try;;
32088esac
32089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32090 (eval "$ac_compile") 2>conftest.er1
32091 ac_status=$?
32092 grep -v '^ *+' conftest.er1 >conftest.err
32093 rm -f conftest.er1
32094 cat conftest.err >&5
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); } && {
32097 test -z "$ac_c_werror_flag" ||
32098 test ! -s conftest.err
32099 } && test -s conftest.$ac_objext; then
32100 { echo "$as_me:$LINENO: result: yes" >&5
32101echo "${ECHO_T}yes" >&6; }
32102 cat >>confdefs.h <<\_ACEOF
32103#define HEIMDAL 1
32104_ACEOF
32105
32106 K5LIBS="-lkrb5"
32107 K5LIBS="$K5LIBS -lcom_err -lasn1"
32108 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
32109echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
32110if test "${ac_cv_lib_roken_net_write+set}" = set; then
32111 echo $ECHO_N "(cached) $ECHO_C" >&6
32112else
32113 ac_check_lib_save_LIBS=$LIBS
32114LIBS="-lroken $LIBS"
32115cat >conftest.$ac_ext <<_ACEOF
32116/* confdefs.h. */
32117_ACEOF
32118cat confdefs.h >>conftest.$ac_ext
32119cat >>conftest.$ac_ext <<_ACEOF
32120/* end confdefs.h. */
32121
32122/* Override any GCC internal prototype to avoid an error.
32123 Use char because int might match the return type of a GCC
32124 builtin and then its argument prototype would still apply. */
32125#ifdef __cplusplus
32126extern "C"
32127#endif
32128char net_write ();
32129int
32130main ()
32131{
32132return net_write ();
32133 ;
32134 return 0;
32135}
32136_ACEOF
32137rm -f conftest.$ac_objext conftest$ac_exeext
32138if { (ac_try="$ac_link"
32139case "(($ac_try" in
32140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32141 *) ac_try_echo=$ac_try;;
32142esac
32143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32144 (eval "$ac_link") 2>conftest.er1
32145 ac_status=$?
32146 grep -v '^ *+' conftest.er1 >conftest.err
32147 rm -f conftest.er1
32148 cat conftest.err >&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } && {
32151 test -z "$ac_c_werror_flag" ||
32152 test ! -s conftest.err
32153 } && test -s conftest$ac_exeext &&
32154 $as_test_x conftest$ac_exeext; then
32155 ac_cv_lib_roken_net_write=yes
32156else
32157 echo "$as_me: failed program was:" >&5
32158sed 's/^/| /' conftest.$ac_ext >&5
32159
32160 ac_cv_lib_roken_net_write=no
32161fi
32162
32163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32164 conftest$ac_exeext conftest.$ac_ext
32165LIBS=$ac_check_lib_save_LIBS
32166fi
32167{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
32168echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
32169if test $ac_cv_lib_roken_net_write = yes; then
32170 K5LIBS="$K5LIBS -lroken"
32171fi
32172
32173 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
32174echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
32175if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32177else
32178 ac_check_lib_save_LIBS=$LIBS
32179LIBS="-ldes $LIBS"
32180cat >conftest.$ac_ext <<_ACEOF
32181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
32186
32187/* Override any GCC internal prototype to avoid an error.
32188 Use char because int might match the return type of a GCC
32189 builtin and then its argument prototype would still apply. */
32190#ifdef __cplusplus
32191extern "C"
32192#endif
32193char des_cbc_encrypt ();
32194int
32195main ()
32196{
32197return des_cbc_encrypt ();
32198 ;
32199 return 0;
32200}
32201_ACEOF
32202rm -f conftest.$ac_objext conftest$ac_exeext
32203if { (ac_try="$ac_link"
32204case "(($ac_try" in
32205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206 *) ac_try_echo=$ac_try;;
32207esac
32208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32209 (eval "$ac_link") 2>conftest.er1
32210 ac_status=$?
32211 grep -v '^ *+' conftest.er1 >conftest.err
32212 rm -f conftest.er1
32213 cat conftest.err >&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); } && {
32216 test -z "$ac_c_werror_flag" ||
32217 test ! -s conftest.err
32218 } && test -s conftest$ac_exeext &&
32219 $as_test_x conftest$ac_exeext; then
32220 ac_cv_lib_des_des_cbc_encrypt=yes
32221else
32222 echo "$as_me: failed program was:" >&5
32223sed 's/^/| /' conftest.$ac_ext >&5
32224
32225 ac_cv_lib_des_des_cbc_encrypt=no
32226fi
32227
32228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32229 conftest$ac_exeext conftest.$ac_ext
32230LIBS=$ac_check_lib_save_LIBS
32231fi
32232{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
32233echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
32234if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
32235 K5LIBS="$K5LIBS -ldes"
32236fi
32237
32238
32239else
32240 echo "$as_me: failed program was:" >&5
32241sed 's/^/| /' conftest.$ac_ext >&5
32242
32243 { echo "$as_me:$LINENO: result: no" >&5
32244echo "${ECHO_T}no" >&6; }
32245 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
32246
32247
32248fi
32249
32250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32251 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
32252echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
32253if test "${ac_cv_search_dn_expand+set}" = set; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32255else
32256 ac_func_search_save_LIBS=$LIBS
32257cat >conftest.$ac_ext <<_ACEOF
32258/* confdefs.h. */
32259_ACEOF
32260cat confdefs.h >>conftest.$ac_ext
32261cat >>conftest.$ac_ext <<_ACEOF
32262/* end confdefs.h. */
32263
32264/* Override any GCC internal prototype to avoid an error.
32265 Use char because int might match the return type of a GCC
32266 builtin and then its argument prototype would still apply. */
32267#ifdef __cplusplus
32268extern "C"
32269#endif
32270char dn_expand ();
32271int
32272main ()
32273{
32274return dn_expand ();
32275 ;
32276 return 0;
32277}
32278_ACEOF
32279for ac_lib in '' resolv; do
32280 if test -z "$ac_lib"; then
32281 ac_res="none required"
32282 else
32283 ac_res=-l$ac_lib
32284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32285 fi
32286 rm -f conftest.$ac_objext conftest$ac_exeext
32287if { (ac_try="$ac_link"
32288case "(($ac_try" in
32289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290 *) ac_try_echo=$ac_try;;
32291esac
32292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293 (eval "$ac_link") 2>conftest.er1
32294 ac_status=$?
32295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); } && {
32300 test -z "$ac_c_werror_flag" ||
32301 test ! -s conftest.err
32302 } && test -s conftest$ac_exeext &&
32303 $as_test_x conftest$ac_exeext; then
32304 ac_cv_search_dn_expand=$ac_res
32305else
32306 echo "$as_me: failed program was:" >&5
32307sed 's/^/| /' conftest.$ac_ext >&5
32308
32309
32310fi
32311
32312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32313 conftest$ac_exeext
32314 if test "${ac_cv_search_dn_expand+set}" = set; then
32315 break
32316fi
32317done
32318if test "${ac_cv_search_dn_expand+set}" = set; then
32319 :
32320else
32321 ac_cv_search_dn_expand=no
32322fi
32323rm conftest.$ac_ext
32324LIBS=$ac_func_search_save_LIBS
32325fi
32326{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
32327echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
32328ac_res=$ac_cv_search_dn_expand
32329if test "$ac_res" != no; then
32330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32331
32332fi
32333
32334
32335 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
32336echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
32337if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
32338 echo $ECHO_N "(cached) $ECHO_C" >&6
32339else
32340 ac_check_lib_save_LIBS=$LIBS
32341LIBS="-lgssapi_krb5 $LIBS"
32342cat >conftest.$ac_ext <<_ACEOF
32343/* confdefs.h. */
32344_ACEOF
32345cat confdefs.h >>conftest.$ac_ext
32346cat >>conftest.$ac_ext <<_ACEOF
32347/* end confdefs.h. */
32348
32349/* Override any GCC internal prototype to avoid an error.
32350 Use char because int might match the return type of a GCC
32351 builtin and then its argument prototype would still apply. */
32352#ifdef __cplusplus
32353extern "C"
32354#endif
32355char gss_init_sec_context ();
32356int
32357main ()
32358{
32359return gss_init_sec_context ();
32360 ;
32361 return 0;
32362}
32363_ACEOF
32364rm -f conftest.$ac_objext conftest$ac_exeext
32365if { (ac_try="$ac_link"
32366case "(($ac_try" in
32367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368 *) ac_try_echo=$ac_try;;
32369esac
32370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371 (eval "$ac_link") 2>conftest.er1
32372 ac_status=$?
32373 grep -v '^ *+' conftest.er1 >conftest.err
32374 rm -f conftest.er1
32375 cat conftest.err >&5
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); } && {
32378 test -z "$ac_c_werror_flag" ||
32379 test ! -s conftest.err
32380 } && test -s conftest$ac_exeext &&
32381 $as_test_x conftest$ac_exeext; then
32382 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
32383else
32384 echo "$as_me: failed program was:" >&5
32385sed 's/^/| /' conftest.$ac_ext >&5
32386
32387 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
32388fi
32389
32390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32391 conftest$ac_exeext conftest.$ac_ext
32392LIBS=$ac_check_lib_save_LIBS
32393fi
32394{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
32395echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
32396if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
32397 cat >>confdefs.h <<\_ACEOF
32398#define GSSAPI 1
32399_ACEOF
32400
32401 GSSLIBS="-lgssapi_krb5"
32402else
32403 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
32404echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
32405if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
32406 echo $ECHO_N "(cached) $ECHO_C" >&6
32407else
32408 ac_check_lib_save_LIBS=$LIBS
32409LIBS="-lgssapi $LIBS"
32410cat >conftest.$ac_ext <<_ACEOF
32411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
32416
32417/* Override any GCC internal prototype to avoid an error.
32418 Use char because int might match the return type of a GCC
32419 builtin and then its argument prototype would still apply. */
32420#ifdef __cplusplus
32421extern "C"
32422#endif
32423char gss_init_sec_context ();
32424int
32425main ()
32426{
32427return gss_init_sec_context ();
32428 ;
32429 return 0;
32430}
32431_ACEOF
32432rm -f conftest.$ac_objext conftest$ac_exeext
32433if { (ac_try="$ac_link"
32434case "(($ac_try" in
32435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436 *) ac_try_echo=$ac_try;;
32437esac
32438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439 (eval "$ac_link") 2>conftest.er1
32440 ac_status=$?
32441 grep -v '^ *+' conftest.er1 >conftest.err
32442 rm -f conftest.er1
32443 cat conftest.err >&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } && {
32446 test -z "$ac_c_werror_flag" ||
32447 test ! -s conftest.err
32448 } && test -s conftest$ac_exeext &&
32449 $as_test_x conftest$ac_exeext; then
32450 ac_cv_lib_gssapi_gss_init_sec_context=yes
32451else
32452 echo "$as_me: failed program was:" >&5
32453sed 's/^/| /' conftest.$ac_ext >&5
32454
32455 ac_cv_lib_gssapi_gss_init_sec_context=no
32456fi
32457
32458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32459 conftest$ac_exeext conftest.$ac_ext
32460LIBS=$ac_check_lib_save_LIBS
32461fi
32462{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
32463echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
32464if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
32465 cat >>confdefs.h <<\_ACEOF
32466#define GSSAPI 1
32467_ACEOF
32468
32469 GSSLIBS="-lgssapi"
32470else
32471 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5
32472echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; }
32473if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then
32474 echo $ECHO_N "(cached) $ECHO_C" >&6
32475else
32476 ac_check_lib_save_LIBS=$LIBS
32477LIBS="-lgss $LIBS"
32478cat >conftest.$ac_ext <<_ACEOF
32479/* confdefs.h. */
32480_ACEOF
32481cat confdefs.h >>conftest.$ac_ext
32482cat >>conftest.$ac_ext <<_ACEOF
32483/* end confdefs.h. */
32484
32485/* Override any GCC internal prototype to avoid an error.
32486 Use char because int might match the return type of a GCC
32487 builtin and then its argument prototype would still apply. */
32488#ifdef __cplusplus
32489extern "C"
32490#endif
32491char gss_init_sec_context ();
32492int
32493main ()
32494{
32495return gss_init_sec_context ();
32496 ;
32497 return 0;
32498}
32499_ACEOF
32500rm -f conftest.$ac_objext conftest$ac_exeext
32501if { (ac_try="$ac_link"
32502case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32505esac
32506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_link") 2>conftest.er1
32508 ac_status=$?
32509 grep -v '^ *+' conftest.er1 >conftest.err
32510 rm -f conftest.er1
32511 cat conftest.err >&5
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); } && {
32514 test -z "$ac_c_werror_flag" ||
32515 test ! -s conftest.err
32516 } && test -s conftest$ac_exeext &&
32517 $as_test_x conftest$ac_exeext; then
32518 ac_cv_lib_gss_gss_init_sec_context=yes
32519else
32520 echo "$as_me: failed program was:" >&5
32521sed 's/^/| /' conftest.$ac_ext >&5
32522
32523 ac_cv_lib_gss_gss_init_sec_context=no
32524fi
32525
32526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32527 conftest$ac_exeext conftest.$ac_ext
32528LIBS=$ac_check_lib_save_LIBS
32529fi
32530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
32531echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; }
32532if test $ac_cv_lib_gss_gss_init_sec_context = yes; then
32533 cat >>confdefs.h <<\_ACEOF
32534#define GSSAPI 1
32535_ACEOF
32536
32537 GSSLIBS="-lgss"
32538else
32539 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
32540echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
32541fi
32542
32543
32544fi
32545
32546
32547fi
32548
32549
32550 if test "${ac_cv_header_gssapi_h+set}" = set; then
32551 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
32552echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32553if test "${ac_cv_header_gssapi_h+set}" = set; then
32554 echo $ECHO_N "(cached) $ECHO_C" >&6
32555fi
32556{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32557echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32558else
32559 # Is the header compilable?
32560{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
32561echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
32562cat >conftest.$ac_ext <<_ACEOF
32563/* confdefs.h. */
32564_ACEOF
32565cat confdefs.h >>conftest.$ac_ext
32566cat >>conftest.$ac_ext <<_ACEOF
32567/* end confdefs.h. */
32568$ac_includes_default
32569#include <gssapi.h>
32570_ACEOF
32571rm -f conftest.$ac_objext
32572if { (ac_try="$ac_compile"
32573case "(($ac_try" in
32574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32575 *) ac_try_echo=$ac_try;;
32576esac
32577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32578 (eval "$ac_compile") 2>conftest.er1
32579 ac_status=$?
32580 grep -v '^ *+' conftest.er1 >conftest.err
32581 rm -f conftest.er1
32582 cat conftest.err >&5
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); } && {
32585 test -z "$ac_c_werror_flag" ||
32586 test ! -s conftest.err
32587 } && test -s conftest.$ac_objext; then
32588 ac_header_compiler=yes
32589else
32590 echo "$as_me: failed program was:" >&5
32591sed 's/^/| /' conftest.$ac_ext >&5
32592
32593 ac_header_compiler=no
32594fi
32595
32596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32597{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32598echo "${ECHO_T}$ac_header_compiler" >&6; }
32599
32600# Is the header present?
32601{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
32602echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
32603cat >conftest.$ac_ext <<_ACEOF
32604/* confdefs.h. */
32605_ACEOF
32606cat confdefs.h >>conftest.$ac_ext
32607cat >>conftest.$ac_ext <<_ACEOF
32608/* end confdefs.h. */
32609#include <gssapi.h>
32610_ACEOF
32611if { (ac_try="$ac_cpp conftest.$ac_ext"
32612case "(($ac_try" in
32613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614 *) ac_try_echo=$ac_try;;
32615esac
32616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32618 ac_status=$?
32619 grep -v '^ *+' conftest.er1 >conftest.err
32620 rm -f conftest.er1
32621 cat conftest.err >&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } >/dev/null && {
32624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32625 test ! -s conftest.err
32626 }; then
32627 ac_header_preproc=yes
32628else
32629 echo "$as_me: failed program was:" >&5
32630sed 's/^/| /' conftest.$ac_ext >&5
32631
32632 ac_header_preproc=no
32633fi
32634
32635rm -f conftest.err conftest.$ac_ext
32636{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32637echo "${ECHO_T}$ac_header_preproc" >&6; }
32638
32639# So? What about this header?
32640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32641 yes:no: )
32642 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
32643echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32644 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
32645echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
32646 ac_header_preproc=yes
32647 ;;
32648 no:yes:* )
32649 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
32650echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
32651 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
32652echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
32653 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
32654echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
32655 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
32656echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
32657 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
32658echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
32659 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
32660echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
32661 ( cat <<\_ASBOX
32662## ------------------------------------------- ##
32663## Report this to openssh-unix-dev@mindrot.org ##
32664## ------------------------------------------- ##
32665_ASBOX
32666 ) | sed "s/^/$as_me: WARNING: /" >&2
32667 ;;
32668esac
32669{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
32670echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32671if test "${ac_cv_header_gssapi_h+set}" = set; then
32672 echo $ECHO_N "(cached) $ECHO_C" >&6
32673else
32674 ac_cv_header_gssapi_h=$ac_header_preproc
32675fi
32676{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32677echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32678
32679fi
32680if test $ac_cv_header_gssapi_h = yes; then
32681 :
32682else
32683 unset ac_cv_header_gssapi_h
32684 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
32685
32686for ac_header in gssapi.h
32687do
32688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32694fi
32695ac_res=`eval echo '${'$as_ac_Header'}'`
32696 { echo "$as_me:$LINENO: result: $ac_res" >&5
32697echo "${ECHO_T}$ac_res" >&6; }
32698else
32699 # Is the header compilable?
32700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32702cat >conftest.$ac_ext <<_ACEOF
32703/* confdefs.h. */
32704_ACEOF
32705cat confdefs.h >>conftest.$ac_ext
32706cat >>conftest.$ac_ext <<_ACEOF
32707/* end confdefs.h. */
32708$ac_includes_default
32709#include <$ac_header>
32710_ACEOF
32711rm -f conftest.$ac_objext
32712if { (ac_try="$ac_compile"
32713case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32716esac
32717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_compile") 2>conftest.er1
32719 ac_status=$?
32720 grep -v '^ *+' conftest.er1 >conftest.err
32721 rm -f conftest.er1
32722 cat conftest.err >&5
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); } && {
32725 test -z "$ac_c_werror_flag" ||
32726 test ! -s conftest.err
32727 } && test -s conftest.$ac_objext; then
32728 ac_header_compiler=yes
32729else
32730 echo "$as_me: failed program was:" >&5
32731sed 's/^/| /' conftest.$ac_ext >&5
32732
32733 ac_header_compiler=no
32734fi
32735
32736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32738echo "${ECHO_T}$ac_header_compiler" >&6; }
32739
32740# Is the header present?
32741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32743cat >conftest.$ac_ext <<_ACEOF
32744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
32749#include <$ac_header>
32750_ACEOF
32751if { (ac_try="$ac_cpp conftest.$ac_ext"
32752case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32755esac
32756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32758 ac_status=$?
32759 grep -v '^ *+' conftest.er1 >conftest.err
32760 rm -f conftest.er1
32761 cat conftest.err >&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } >/dev/null && {
32764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32765 test ! -s conftest.err
32766 }; then
32767 ac_header_preproc=yes
32768else
32769 echo "$as_me: failed program was:" >&5
32770sed 's/^/| /' conftest.$ac_ext >&5
32771
32772 ac_header_preproc=no
32773fi
32774
32775rm -f conftest.err conftest.$ac_ext
32776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32777echo "${ECHO_T}$ac_header_preproc" >&6; }
32778
32779# So? What about this header?
32780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32781 yes:no: )
32782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32786 ac_header_preproc=yes
32787 ;;
32788 no:yes:* )
32789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32801 ( cat <<\_ASBOX
32802## ------------------------------------------- ##
32803## Report this to openssh-unix-dev@mindrot.org ##
32804## ------------------------------------------- ##
32805_ASBOX
32806 ) | sed "s/^/$as_me: WARNING: /" >&2
32807 ;;
32808esac
32809{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32812 echo $ECHO_N "(cached) $ECHO_C" >&6
32813else
32814 eval "$as_ac_Header=\$ac_header_preproc"
32815fi
32816ac_res=`eval echo '${'$as_ac_Header'}'`
32817 { echo "$as_me:$LINENO: result: $ac_res" >&5
32818echo "${ECHO_T}$ac_res" >&6; }
32819
32820fi
32821if test `eval echo '${'$as_ac_Header'}'` = yes; then
32822 cat >>confdefs.h <<_ACEOF
32823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32824_ACEOF
32825
32826else
32827 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
32828echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
32829
32830fi
32831
32832done
32833
32834
32835
32836fi
32837
32838
32839
32840 oldCPP="$CPPFLAGS"
32841 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
32842 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32843 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
32844echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
32845if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32847fi
32848{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
32849echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
32850else
32851 # Is the header compilable?
32852{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
32853echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
32854cat >conftest.$ac_ext <<_ACEOF
32855/* confdefs.h. */
32856_ACEOF
32857cat confdefs.h >>conftest.$ac_ext
32858cat >>conftest.$ac_ext <<_ACEOF
32859/* end confdefs.h. */
32860$ac_includes_default
32861#include <gssapi_krb5.h>
32862_ACEOF
32863rm -f conftest.$ac_objext
32864if { (ac_try="$ac_compile"
32865case "(($ac_try" in
32866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867 *) ac_try_echo=$ac_try;;
32868esac
32869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870 (eval "$ac_compile") 2>conftest.er1
32871 ac_status=$?
32872 grep -v '^ *+' conftest.er1 >conftest.err
32873 rm -f conftest.er1
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } && {
32877 test -z "$ac_c_werror_flag" ||
32878 test ! -s conftest.err
32879 } && test -s conftest.$ac_objext; then
32880 ac_header_compiler=yes
32881else
32882 echo "$as_me: failed program was:" >&5
32883sed 's/^/| /' conftest.$ac_ext >&5
32884
32885 ac_header_compiler=no
32886fi
32887
32888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32890echo "${ECHO_T}$ac_header_compiler" >&6; }
32891
32892# Is the header present?
32893{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
32894echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
32895cat >conftest.$ac_ext <<_ACEOF
32896/* confdefs.h. */
32897_ACEOF
32898cat confdefs.h >>conftest.$ac_ext
32899cat >>conftest.$ac_ext <<_ACEOF
32900/* end confdefs.h. */
32901#include <gssapi_krb5.h>
32902_ACEOF
32903if { (ac_try="$ac_cpp conftest.$ac_ext"
32904case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32907esac
32908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32910 ac_status=$?
32911 grep -v '^ *+' conftest.er1 >conftest.err
32912 rm -f conftest.er1
32913 cat conftest.err >&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); } >/dev/null && {
32916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32917 test ! -s conftest.err
32918 }; then
32919 ac_header_preproc=yes
32920else
32921 echo "$as_me: failed program was:" >&5
32922sed 's/^/| /' conftest.$ac_ext >&5
32923
32924 ac_header_preproc=no
32925fi
32926
32927rm -f conftest.err conftest.$ac_ext
32928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32929echo "${ECHO_T}$ac_header_preproc" >&6; }
32930
32931# So? What about this header?
32932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32933 yes:no: )
32934 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
32935echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32936 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
32937echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
32938 ac_header_preproc=yes
32939 ;;
32940 no:yes:* )
32941 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
32942echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
32943 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
32944echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
32945 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
32946echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
32947 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
32948echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
32949 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
32950echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
32951 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
32952echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
32953 ( cat <<\_ASBOX
32954## ------------------------------------------- ##
32955## Report this to openssh-unix-dev@mindrot.org ##
32956## ------------------------------------------- ##
32957_ASBOX
32958 ) | sed "s/^/$as_me: WARNING: /" >&2
32959 ;;
32960esac
32961{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
32962echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
32963if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32964 echo $ECHO_N "(cached) $ECHO_C" >&6
32965else
32966 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
32967fi
32968{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
32969echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
32970
32971fi
32972if test $ac_cv_header_gssapi_krb5_h = yes; then
32973 :
32974else
32975 CPPFLAGS="$oldCPP"
32976fi
32977
32978
32979
32980 fi
32981 if test ! -z "$need_dash_r" ; then
32982 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
32983 fi
32984 if test ! -z "$blibpath" ; then
32985 blibpath="$blibpath:${KRB5ROOT}/lib"
32986 fi
32987
32988
32989
32990for ac_header in gssapi.h gssapi/gssapi.h
32991do
32992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32997 echo $ECHO_N "(cached) $ECHO_C" >&6
32998fi
32999ac_res=`eval echo '${'$as_ac_Header'}'`
33000 { echo "$as_me:$LINENO: result: $ac_res" >&5
33001echo "${ECHO_T}$ac_res" >&6; }
33002else
33003 # Is the header compilable?
33004{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33006cat >conftest.$ac_ext <<_ACEOF
33007/* confdefs.h. */
33008_ACEOF
33009cat confdefs.h >>conftest.$ac_ext
33010cat >>conftest.$ac_ext <<_ACEOF
33011/* end confdefs.h. */
33012$ac_includes_default
33013#include <$ac_header>
33014_ACEOF
33015rm -f conftest.$ac_objext
33016if { (ac_try="$ac_compile"
33017case "(($ac_try" in
33018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33019 *) ac_try_echo=$ac_try;;
33020esac
33021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33022 (eval "$ac_compile") 2>conftest.er1
33023 ac_status=$?
33024 grep -v '^ *+' conftest.er1 >conftest.err
33025 rm -f conftest.er1
33026 cat conftest.err >&5
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } && {
33029 test -z "$ac_c_werror_flag" ||
33030 test ! -s conftest.err
33031 } && test -s conftest.$ac_objext; then
33032 ac_header_compiler=yes
33033else
33034 echo "$as_me: failed program was:" >&5
33035sed 's/^/| /' conftest.$ac_ext >&5
33036
33037 ac_header_compiler=no
33038fi
33039
33040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33041{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33042echo "${ECHO_T}$ac_header_compiler" >&6; }
33043
33044# Is the header present?
33045{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33047cat >conftest.$ac_ext <<_ACEOF
33048/* confdefs.h. */
33049_ACEOF
33050cat confdefs.h >>conftest.$ac_ext
33051cat >>conftest.$ac_ext <<_ACEOF
33052/* end confdefs.h. */
33053#include <$ac_header>
33054_ACEOF
33055if { (ac_try="$ac_cpp conftest.$ac_ext"
33056case "(($ac_try" in
33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058 *) ac_try_echo=$ac_try;;
33059esac
33060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33062 ac_status=$?
33063 grep -v '^ *+' conftest.er1 >conftest.err
33064 rm -f conftest.er1
33065 cat conftest.err >&5
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); } >/dev/null && {
33068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33069 test ! -s conftest.err
33070 }; then
33071 ac_header_preproc=yes
33072else
33073 echo "$as_me: failed program was:" >&5
33074sed 's/^/| /' conftest.$ac_ext >&5
33075
33076 ac_header_preproc=no
33077fi
33078
33079rm -f conftest.err conftest.$ac_ext
33080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33081echo "${ECHO_T}$ac_header_preproc" >&6; }
33082
33083# So? What about this header?
33084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33085 yes:no: )
33086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33090 ac_header_preproc=yes
33091 ;;
33092 no:yes:* )
33093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33105 ( cat <<\_ASBOX
33106## ------------------------------------------- ##
33107## Report this to openssh-unix-dev@mindrot.org ##
33108## ------------------------------------------- ##
33109_ASBOX
33110 ) | sed "s/^/$as_me: WARNING: /" >&2
33111 ;;
33112esac
33113{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33116 echo $ECHO_N "(cached) $ECHO_C" >&6
33117else
33118 eval "$as_ac_Header=\$ac_header_preproc"
33119fi
33120ac_res=`eval echo '${'$as_ac_Header'}'`
33121 { echo "$as_me:$LINENO: result: $ac_res" >&5
33122echo "${ECHO_T}$ac_res" >&6; }
33123
33124fi
33125if test `eval echo '${'$as_ac_Header'}'` = yes; then
33126 cat >>confdefs.h <<_ACEOF
33127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33128_ACEOF
33129
33130fi
33131
33132done
33133
33134
33135
33136for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
33137do
33138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144fi
33145ac_res=`eval echo '${'$as_ac_Header'}'`
33146 { echo "$as_me:$LINENO: result: $ac_res" >&5
33147echo "${ECHO_T}$ac_res" >&6; }
33148else
33149 # Is the header compilable?
33150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33152cat >conftest.$ac_ext <<_ACEOF
33153/* confdefs.h. */
33154_ACEOF
33155cat confdefs.h >>conftest.$ac_ext
33156cat >>conftest.$ac_ext <<_ACEOF
33157/* end confdefs.h. */
33158$ac_includes_default
33159#include <$ac_header>
33160_ACEOF
33161rm -f conftest.$ac_objext
33162if { (ac_try="$ac_compile"
33163case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33166esac
33167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_compile") 2>conftest.er1
33169 ac_status=$?
33170 grep -v '^ *+' conftest.er1 >conftest.err
33171 rm -f conftest.er1
33172 cat conftest.err >&5
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); } && {
33175 test -z "$ac_c_werror_flag" ||
33176 test ! -s conftest.err
33177 } && test -s conftest.$ac_objext; then
33178 ac_header_compiler=yes
33179else
33180 echo "$as_me: failed program was:" >&5
33181sed 's/^/| /' conftest.$ac_ext >&5
33182
33183 ac_header_compiler=no
33184fi
33185
33186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33188echo "${ECHO_T}$ac_header_compiler" >&6; }
33189
33190# Is the header present?
33191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33193cat >conftest.$ac_ext <<_ACEOF
33194/* confdefs.h. */
33195_ACEOF
33196cat confdefs.h >>conftest.$ac_ext
33197cat >>conftest.$ac_ext <<_ACEOF
33198/* end confdefs.h. */
33199#include <$ac_header>
33200_ACEOF
33201if { (ac_try="$ac_cpp conftest.$ac_ext"
33202case "(($ac_try" in
33203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33204 *) ac_try_echo=$ac_try;;
33205esac
33206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33208 ac_status=$?
33209 grep -v '^ *+' conftest.er1 >conftest.err
33210 rm -f conftest.er1
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } >/dev/null && {
33214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33215 test ! -s conftest.err
33216 }; then
33217 ac_header_preproc=yes
33218else
33219 echo "$as_me: failed program was:" >&5
33220sed 's/^/| /' conftest.$ac_ext >&5
33221
33222 ac_header_preproc=no
33223fi
33224
33225rm -f conftest.err conftest.$ac_ext
33226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33227echo "${ECHO_T}$ac_header_preproc" >&6; }
33228
33229# So? What about this header?
33230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33231 yes:no: )
33232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33236 ac_header_preproc=yes
33237 ;;
33238 no:yes:* )
33239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33251 ( cat <<\_ASBOX
33252## ------------------------------------------- ##
33253## Report this to openssh-unix-dev@mindrot.org ##
33254## ------------------------------------------- ##
33255_ASBOX
33256 ) | sed "s/^/$as_me: WARNING: /" >&2
33257 ;;
33258esac
33259{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33263else
33264 eval "$as_ac_Header=\$ac_header_preproc"
33265fi
33266ac_res=`eval echo '${'$as_ac_Header'}'`
33267 { echo "$as_me:$LINENO: result: $ac_res" >&5
33268echo "${ECHO_T}$ac_res" >&6; }
33269
33270fi
33271if test `eval echo '${'$as_ac_Header'}'` = yes; then
33272 cat >>confdefs.h <<_ACEOF
33273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33274_ACEOF
33275
33276fi
33277
33278done
33279
33280
33281
33282for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
33283do
33284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33289 echo $ECHO_N "(cached) $ECHO_C" >&6
33290fi
33291ac_res=`eval echo '${'$as_ac_Header'}'`
33292 { echo "$as_me:$LINENO: result: $ac_res" >&5
33293echo "${ECHO_T}$ac_res" >&6; }
33294else
33295 # Is the header compilable?
33296{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33298cat >conftest.$ac_ext <<_ACEOF
33299/* confdefs.h. */
33300_ACEOF
33301cat confdefs.h >>conftest.$ac_ext
33302cat >>conftest.$ac_ext <<_ACEOF
33303/* end confdefs.h. */
33304$ac_includes_default
33305#include <$ac_header>
33306_ACEOF
33307rm -f conftest.$ac_objext
33308if { (ac_try="$ac_compile"
33309case "(($ac_try" in
33310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311 *) ac_try_echo=$ac_try;;
33312esac
33313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33314 (eval "$ac_compile") 2>conftest.er1
33315 ac_status=$?
33316 grep -v '^ *+' conftest.er1 >conftest.err
33317 rm -f conftest.er1
33318 cat conftest.err >&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); } && {
33321 test -z "$ac_c_werror_flag" ||
33322 test ! -s conftest.err
33323 } && test -s conftest.$ac_objext; then
33324 ac_header_compiler=yes
33325else
33326 echo "$as_me: failed program was:" >&5
33327sed 's/^/| /' conftest.$ac_ext >&5
33328
33329 ac_header_compiler=no
33330fi
33331
33332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33334echo "${ECHO_T}$ac_header_compiler" >&6; }
33335
33336# Is the header present?
33337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33339cat >conftest.$ac_ext <<_ACEOF
33340/* confdefs.h. */
33341_ACEOF
33342cat confdefs.h >>conftest.$ac_ext
33343cat >>conftest.$ac_ext <<_ACEOF
33344/* end confdefs.h. */
33345#include <$ac_header>
33346_ACEOF
33347if { (ac_try="$ac_cpp conftest.$ac_ext"
33348case "(($ac_try" in
33349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33350 *) ac_try_echo=$ac_try;;
33351esac
33352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33354 ac_status=$?
33355 grep -v '^ *+' conftest.er1 >conftest.err
33356 rm -f conftest.er1
33357 cat conftest.err >&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); } >/dev/null && {
33360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33361 test ! -s conftest.err
33362 }; then
33363 ac_header_preproc=yes
33364else
33365 echo "$as_me: failed program was:" >&5
33366sed 's/^/| /' conftest.$ac_ext >&5
33367
33368 ac_header_preproc=no
33369fi
33370
33371rm -f conftest.err conftest.$ac_ext
33372{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33373echo "${ECHO_T}$ac_header_preproc" >&6; }
33374
33375# So? What about this header?
33376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33377 yes:no: )
33378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33382 ac_header_preproc=yes
33383 ;;
33384 no:yes:* )
33385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33397 ( cat <<\_ASBOX
33398## ------------------------------------------- ##
33399## Report this to openssh-unix-dev@mindrot.org ##
33400## ------------------------------------------- ##
33401_ASBOX
33402 ) | sed "s/^/$as_me: WARNING: /" >&2
33403 ;;
33404esac
33405{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33408 echo $ECHO_N "(cached) $ECHO_C" >&6
33409else
33410 eval "$as_ac_Header=\$ac_header_preproc"
33411fi
33412ac_res=`eval echo '${'$as_ac_Header'}'`
33413 { echo "$as_me:$LINENO: result: $ac_res" >&5
33414echo "${ECHO_T}$ac_res" >&6; }
33415
33416fi
33417if test `eval echo '${'$as_ac_Header'}'` = yes; then
33418 cat >>confdefs.h <<_ACEOF
33419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33420_ACEOF
33421
33422fi
33423
33424done
33425
33426
33427 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
33428echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
33429if test "${ac_cv_search_k_hasafs+set}" = set; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
33432 ac_func_search_save_LIBS=$LIBS
33433cat >conftest.$ac_ext <<_ACEOF
33434/* confdefs.h. */
33435_ACEOF
33436cat confdefs.h >>conftest.$ac_ext
33437cat >>conftest.$ac_ext <<_ACEOF
33438/* end confdefs.h. */
33439
33440/* Override any GCC internal prototype to avoid an error.
33441 Use char because int might match the return type of a GCC
33442 builtin and then its argument prototype would still apply. */
33443#ifdef __cplusplus
33444extern "C"
33445#endif
33446char k_hasafs ();
33447int
33448main ()
33449{
33450return k_hasafs ();
33451 ;
33452 return 0;
33453}
33454_ACEOF
33455for ac_lib in '' kafs; do
33456 if test -z "$ac_lib"; then
33457 ac_res="none required"
33458 else
33459 ac_res=-l$ac_lib
33460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33461 fi
33462 rm -f conftest.$ac_objext conftest$ac_exeext
33463if { (ac_try="$ac_link"
33464case "(($ac_try" in
33465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33466 *) ac_try_echo=$ac_try;;
33467esac
33468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33469 (eval "$ac_link") 2>conftest.er1
33470 ac_status=$?
33471 grep -v '^ *+' conftest.er1 >conftest.err
33472 rm -f conftest.er1
33473 cat conftest.err >&5
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } && {
33476 test -z "$ac_c_werror_flag" ||
33477 test ! -s conftest.err
33478 } && test -s conftest$ac_exeext &&
33479 $as_test_x conftest$ac_exeext; then
33480 ac_cv_search_k_hasafs=$ac_res
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485
33486fi
33487
33488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33489 conftest$ac_exeext
33490 if test "${ac_cv_search_k_hasafs+set}" = set; then
33491 break
33492fi
33493done
33494if test "${ac_cv_search_k_hasafs+set}" = set; then
33495 :
33496else
33497 ac_cv_search_k_hasafs=no
33498fi
33499rm conftest.$ac_ext
33500LIBS=$ac_func_search_save_LIBS
33501fi
33502{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
33503echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
33504ac_res=$ac_cv_search_k_hasafs
33505if test "$ac_res" != no; then
33506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33507
33508cat >>confdefs.h <<\_ACEOF
33509#define USE_AFS 1
33510_ACEOF
33511
33512fi
33513
33514
33515 { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
33516echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
33517if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33519else
33520 cat >conftest.$ac_ext <<_ACEOF
33521/* confdefs.h. */
33522_ACEOF
33523cat confdefs.h >>conftest.$ac_ext
33524cat >>conftest.$ac_ext <<_ACEOF
33525/* end confdefs.h. */
33526
33527#ifdef HAVE_GSSAPI_H
33528# include <gssapi.h>
33529#elif defined(HAVE_GSSAPI_GSSAPI_H)
33530# include <gssapi/gssapi.h>
33531#endif
33532
33533#ifdef HAVE_GSSAPI_GENERIC_H
33534# include <gssapi_generic.h>
33535#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
33536# include <gssapi/gssapi_generic.h>
33537#endif
33538
33539
33540int
33541main ()
33542{
33543#ifndef GSS_C_NT_HOSTBASED_SERVICE
33544 (void) GSS_C_NT_HOSTBASED_SERVICE;
33545#endif
33546
33547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext
33552if { (ac_try="$ac_compile"
33553case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_compile") 2>conftest.er1
33559 ac_status=$?
33560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } && {
33565 test -z "$ac_c_werror_flag" ||
33566 test ! -s conftest.err
33567 } && test -s conftest.$ac_objext; then
33568 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
33569else
33570 echo "$as_me: failed program was:" >&5
33571sed 's/^/| /' conftest.$ac_ext >&5
33572
33573 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
33574fi
33575
33576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33577fi
33578{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
33579echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
33580if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
33581
33582cat >>confdefs.h <<_ACEOF
33583#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1
33584_ACEOF
33585
33586
33587else
33588 cat >>confdefs.h <<_ACEOF
33589#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0
33590_ACEOF
33591
33592
33593fi
33594
33595
33596 saved_LIBS="$LIBS"
33597 LIBS="$LIBS $K5LIBS"
33598
33599
33600
33601for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
33602do
33603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33607 echo $ECHO_N "(cached) $ECHO_C" >&6
33608else
33609 cat >conftest.$ac_ext <<_ACEOF
33610/* confdefs.h. */
33611_ACEOF
33612cat confdefs.h >>conftest.$ac_ext
33613cat >>conftest.$ac_ext <<_ACEOF
33614/* end confdefs.h. */
33615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33617#define $ac_func innocuous_$ac_func
33618
33619/* System header to define __stub macros and hopefully few prototypes,
33620 which can conflict with char $ac_func (); below.
33621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33622 <limits.h> exists even on freestanding compilers. */
33623
33624#ifdef __STDC__
33625# include <limits.h>
33626#else
33627# include <assert.h>
33628#endif
33629
33630#undef $ac_func
33631
33632/* Override any GCC internal prototype to avoid an error.
33633 Use char because int might match the return type of a GCC
33634 builtin and then its argument prototype would still apply. */
33635#ifdef __cplusplus
33636extern "C"
33637#endif
33638char $ac_func ();
33639/* The GNU C library defines this for functions which it implements
33640 to always fail with ENOSYS. Some functions are actually named
33641 something starting with __ and the normal name is an alias. */
33642#if defined __stub_$ac_func || defined __stub___$ac_func
33643choke me
33644#endif
33645
33646int
33647main ()
33648{
33649return $ac_func ();
33650 ;
33651 return 0;
33652}
33653_ACEOF
33654rm -f conftest.$ac_objext conftest$ac_exeext
33655if { (ac_try="$ac_link"
33656case "(($ac_try" in
33657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33658 *) ac_try_echo=$ac_try;;
33659esac
33660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33661 (eval "$ac_link") 2>conftest.er1
33662 ac_status=$?
33663 grep -v '^ *+' conftest.er1 >conftest.err
33664 rm -f conftest.er1
33665 cat conftest.err >&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); } && {
33668 test -z "$ac_c_werror_flag" ||
33669 test ! -s conftest.err
33670 } && test -s conftest$ac_exeext &&
33671 $as_test_x conftest$ac_exeext; then
33672 eval "$as_ac_var=yes"
33673else
33674 echo "$as_me: failed program was:" >&5
33675sed 's/^/| /' conftest.$ac_ext >&5
33676
33677 eval "$as_ac_var=no"
33678fi
33679
33680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33681 conftest$ac_exeext conftest.$ac_ext
33682fi
33683ac_res=`eval echo '${'$as_ac_var'}'`
33684 { echo "$as_me:$LINENO: result: $ac_res" >&5
33685echo "${ECHO_T}$ac_res" >&6; }
33686if test `eval echo '${'$as_ac_var'}'` = yes; then
33687 cat >>confdefs.h <<_ACEOF
33688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33689_ACEOF
33690
33691fi
33692done
33693
33694 LIBS="$saved_LIBS"
33695
33696 fi
33697
33698
33699fi
33700
33701
33702
33703
33704# Looking for programs, paths and files
33705
33706PRIVSEP_PATH=/var/empty
33707
33708# Check whether --with-privsep-path was given.
33709if test "${with_privsep_path+set}" = set; then
33710 withval=$with_privsep_path;
33711 if test -n "$withval" && test "x$withval" != "xno" && \
33712 test "x${withval}" != "xyes"; then
33713 PRIVSEP_PATH=$withval
33714 fi
33715
33716
33717fi
33718
33719
33720
33721
33722# Check whether --with-xauth was given.
33723if test "${with_xauth+set}" = set; then
33724 withval=$with_xauth;
33725 if test -n "$withval" && test "x$withval" != "xno" && \
33726 test "x${withval}" != "xyes"; then
33727 xauth_path=$withval
33728 fi
33729
33730else
33731
33732 TestPath="$PATH"
33733 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
33734 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
33735 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
33736 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
33737 # Extract the first word of "xauth", so it can be a program name with args.
33738set dummy xauth; ac_word=$2
33739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33741if test "${ac_cv_path_xauth_path+set}" = set; then
33742 echo $ECHO_N "(cached) $ECHO_C" >&6
33743else
33744 case $xauth_path in
33745 [\\/]* | ?:[\\/]*)
33746 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
33747 ;;
33748 *)
33749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33750for as_dir in $TestPath
33751do
33752 IFS=$as_save_IFS
33753 test -z "$as_dir" && as_dir=.
33754 for ac_exec_ext in '' $ac_executable_extensions; do
33755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33756 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
33757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33758 break 2
33759 fi
33760done
33761done
33762IFS=$as_save_IFS
33763
33764 ;;
33765esac
33766fi
33767xauth_path=$ac_cv_path_xauth_path
33768if test -n "$xauth_path"; then
33769 { echo "$as_me:$LINENO: result: $xauth_path" >&5
33770echo "${ECHO_T}$xauth_path" >&6; }
33771else
33772 { echo "$as_me:$LINENO: result: no" >&5
33773echo "${ECHO_T}no" >&6; }
33774fi
33775
33776
33777 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
33778 xauth_path="/usr/openwin/bin/xauth"
33779 fi
33780
33781
33782fi
33783
33784
33785STRIP_OPT=-s
33786# Check whether --enable-strip was given.
33787if test "${enable_strip+set}" = set; then
33788 enableval=$enable_strip;
33789 if test "x$enableval" = "xno" ; then
33790 STRIP_OPT=
33791 fi
33792
33793
33794fi
33795
33796
33797
33798if test -z "$xauth_path" ; then
33799 XAUTH_PATH="undefined"
33800
33801else
33802
33803cat >>confdefs.h <<_ACEOF
33804#define XAUTH_PATH "$xauth_path"
33805_ACEOF
33806
33807 XAUTH_PATH=$xauth_path
33808
33809fi
33810
33811# Check for mail directory
33812
33813# Check whether --with-maildir was given.
33814if test "${with_maildir+set}" = set; then
33815 withval=$with_maildir;
33816 if test "X$withval" != X && test "x$withval" != xno && \
33817 test "x${withval}" != xyes; then
33818
33819cat >>confdefs.h <<_ACEOF
33820#define MAIL_DIRECTORY "$withval"
33821_ACEOF
33822
33823 fi
33824
33825else
33826
33827 if test "X$maildir" != "X"; then
33828 cat >>confdefs.h <<_ACEOF
33829#define MAIL_DIRECTORY "$maildir"
33830_ACEOF
33831
33832 else
33833 { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5
33834echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; }
33835 if test "$cross_compiling" = yes; then
33836
33837 { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
33838echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
33839
33840
33841else
33842 cat >conftest.$ac_ext <<_ACEOF
33843/* confdefs.h. */
33844_ACEOF
33845cat confdefs.h >>conftest.$ac_ext
33846cat >>conftest.$ac_ext <<_ACEOF
33847/* end confdefs.h. */
33848
33849#include <stdio.h>
33850#include <string.h>
33851#ifdef HAVE_PATHS_H
33852#include <paths.h>
33853#endif
33854#ifdef HAVE_MAILLOCK_H
33855#include <maillock.h>
33856#endif
33857#define DATA "conftest.maildir"
33858
33859int
33860main ()
33861{
33862
33863 FILE *fd;
33864 int rc;
33865
33866 fd = fopen(DATA,"w");
33867 if(fd == NULL)
33868 exit(1);
33869
33870#if defined (_PATH_MAILDIR)
33871 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
33872 exit(1);
33873#elif defined (MAILDIR)
33874 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
33875 exit(1);
33876#elif defined (_PATH_MAIL)
33877 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
33878 exit(1);
33879#else
33880 exit (2);
33881#endif
33882
33883 exit(0);
33884
33885 ;
33886 return 0;
33887}
33888_ACEOF
33889rm -f conftest$ac_exeext
33890if { (ac_try="$ac_link"
33891case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33894esac
33895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_link") 2>&5
33897 ac_status=$?
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33900 { (case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33903esac
33904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_try") 2>&5
33906 ac_status=$?
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908 (exit $ac_status); }; }; then
33909
33910 maildir_what=`awk -F: '{print $1}' conftest.maildir`
33911 maildir=`awk -F: '{print $2}' conftest.maildir \
33912 | sed 's|/$||'`
33913 { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5
33914echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; }
33915 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
33916 cat >>confdefs.h <<_ACEOF
33917#define MAIL_DIRECTORY "$maildir"
33918_ACEOF
33919
33920 fi
33921
33922else
33923 echo "$as_me: program exited with status $ac_status" >&5
33924echo "$as_me: failed program was:" >&5
33925sed 's/^/| /' conftest.$ac_ext >&5
33926
33927( exit $ac_status )
33928
33929 if test "X$ac_status" = "X2";then
33930# our test program didn't find it. Default to /var/spool/mail
33931 { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5
33932echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; }
33933 cat >>confdefs.h <<_ACEOF
33934#define MAIL_DIRECTORY "/var/spool/mail"
33935_ACEOF
33936
33937 else
33938 { echo "$as_me:$LINENO: result: *** not found ***" >&5
33939echo "${ECHO_T}*** not found ***" >&6; }
33940 fi
33941
33942fi
33943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33944fi
33945
33946
33947 fi
33948
33949
33950fi
33951 # maildir
33952
33953if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
33954 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
33955echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
33956 disable_ptmx_check=yes
33957fi
33958if test -z "$no_dev_ptmx" ; then
33959 if test "x$disable_ptmx_check" != "xyes" ; then
33960 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
33961echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
33962if test "${ac_cv_file___dev_ptmx_+set}" = set; then
33963 echo $ECHO_N "(cached) $ECHO_C" >&6
33964else
33965 test "$cross_compiling" = yes &&
33966 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
33967echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
33968 { (exit 1); exit 1; }; }
33969if test -r ""/dev/ptmx""; then
33970 ac_cv_file___dev_ptmx_=yes
33971else
33972 ac_cv_file___dev_ptmx_=no
33973fi
33974fi
33975{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
33976echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
33977if test $ac_cv_file___dev_ptmx_ = yes; then
33978
33979
33980cat >>confdefs.h <<_ACEOF
33981#define HAVE_DEV_PTMX 1
33982_ACEOF
33983
33984 have_dev_ptmx=1
33985
33986
33987fi
33988
33989 fi
33990fi
33991
33992if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
33993 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
33994echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
33995if test "${ac_cv_file___dev_ptc_+set}" = set; then
33996 echo $ECHO_N "(cached) $ECHO_C" >&6
33997else
33998 test "$cross_compiling" = yes &&
33999 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34000echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34001 { (exit 1); exit 1; }; }
34002if test -r ""/dev/ptc""; then
34003 ac_cv_file___dev_ptc_=yes
34004else
34005 ac_cv_file___dev_ptc_=no
34006fi
34007fi
34008{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
34009echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
34010if test $ac_cv_file___dev_ptc_ = yes; then
34011
34012
34013cat >>confdefs.h <<_ACEOF
34014#define HAVE_DEV_PTS_AND_PTC 1
34015_ACEOF
34016
34017 have_dev_ptc=1
34018
34019
34020fi
34021
34022else
34023 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
34024echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
34025fi
34026
34027# Options from here on. Some of these are preset by platform above
34028
34029# Check whether --with-mantype was given.
34030if test "${with_mantype+set}" = set; then
34031 withval=$with_mantype;
34032 case "$withval" in
34033 man|cat|doc)
34034 MANTYPE=$withval
34035 ;;
34036 *)
34037 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
34038echo "$as_me: error: invalid man type: $withval" >&2;}
34039 { (exit 1); exit 1; }; }
34040 ;;
34041 esac
34042
34043
34044fi
34045
34046if test -z "$MANTYPE"; then
34047 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
34048 for ac_prog in nroff awf
34049do
34050 # Extract the first word of "$ac_prog", so it can be a program name with args.
34051set dummy $ac_prog; ac_word=$2
34052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34054if test "${ac_cv_path_NROFF+set}" = set; then
34055 echo $ECHO_N "(cached) $ECHO_C" >&6
34056else
34057 case $NROFF in
34058 [\\/]* | ?:[\\/]*)
34059 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
34060 ;;
34061 *)
34062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34063for as_dir in $TestPath
34064do
34065 IFS=$as_save_IFS
34066 test -z "$as_dir" && as_dir=.
34067 for ac_exec_ext in '' $ac_executable_extensions; do
34068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34069 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
34070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34071 break 2
34072 fi
34073done
34074done
34075IFS=$as_save_IFS
34076
34077 ;;
34078esac
34079fi
34080NROFF=$ac_cv_path_NROFF
34081if test -n "$NROFF"; then
34082 { echo "$as_me:$LINENO: result: $NROFF" >&5
34083echo "${ECHO_T}$NROFF" >&6; }
34084else
34085 { echo "$as_me:$LINENO: result: no" >&5
34086echo "${ECHO_T}no" >&6; }
34087fi
34088
34089
34090 test -n "$NROFF" && break
34091done
34092test -n "$NROFF" || NROFF="/bin/false"
34093
34094 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
34095 MANTYPE=doc
34096 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
34097 MANTYPE=man
34098 else
34099 MANTYPE=cat
34100 fi
34101fi
34102
34103if test "$MANTYPE" = "doc"; then
34104 mansubdir=man;
34105else
34106 mansubdir=$MANTYPE;
34107fi
34108
34109
34110# Check whether to enable MD5 passwords
34111MD5_MSG="no"
34112
34113# Check whether --with-md5-passwords was given.
34114if test "${with_md5_passwords+set}" = set; then
34115 withval=$with_md5_passwords;
34116 if test "x$withval" != "xno" ; then
34117
34118cat >>confdefs.h <<\_ACEOF
34119#define HAVE_MD5_PASSWORDS 1
34120_ACEOF
34121
34122 MD5_MSG="yes"
34123 fi
34124
34125
34126fi
34127
34128
34129# Whether to disable shadow password support
34130
34131# Check whether --with-shadow was given.
34132if test "${with_shadow+set}" = set; then
34133 withval=$with_shadow;
34134 if test "x$withval" = "xno" ; then
34135 cat >>confdefs.h <<\_ACEOF
34136#define DISABLE_SHADOW 1
34137_ACEOF
34138
34139 disable_shadow=yes
34140 fi
34141
34142
34143fi
34144
34145
34146if test -z "$disable_shadow" ; then
34147 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
34148echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
34149 cat >conftest.$ac_ext <<_ACEOF
34150/* confdefs.h. */
34151_ACEOF
34152cat confdefs.h >>conftest.$ac_ext
34153cat >>conftest.$ac_ext <<_ACEOF
34154/* end confdefs.h. */
34155
34156#include <sys/types.h>
34157#include <shadow.h>
34158struct spwd sp;
34159
34160int
34161main ()
34162{
34163 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
34164 ;
34165 return 0;
34166}
34167_ACEOF
34168rm -f conftest.$ac_objext
34169if { (ac_try="$ac_compile"
34170case "(($ac_try" in
34171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34172 *) ac_try_echo=$ac_try;;
34173esac
34174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34175 (eval "$ac_compile") 2>conftest.er1
34176 ac_status=$?
34177 grep -v '^ *+' conftest.er1 >conftest.err
34178 rm -f conftest.er1
34179 cat conftest.err >&5
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); } && {
34182 test -z "$ac_c_werror_flag" ||
34183 test ! -s conftest.err
34184 } && test -s conftest.$ac_objext; then
34185 sp_expire_available=yes
34186else
34187 echo "$as_me: failed program was:" >&5
34188sed 's/^/| /' conftest.$ac_ext >&5
34189
34190
34191
34192fi
34193
34194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34195
34196 if test "x$sp_expire_available" = "xyes" ; then
34197 { echo "$as_me:$LINENO: result: yes" >&5
34198echo "${ECHO_T}yes" >&6; }
34199
34200cat >>confdefs.h <<\_ACEOF
34201#define HAS_SHADOW_EXPIRE 1
34202_ACEOF
34203
34204 else
34205 { echo "$as_me:$LINENO: result: no" >&5
34206echo "${ECHO_T}no" >&6; }
34207 fi
34208fi
34209
34210# Use ip address instead of hostname in $DISPLAY
34211if test ! -z "$IPADDR_IN_DISPLAY" ; then
34212 DISPLAY_HACK_MSG="yes"
34213
34214cat >>confdefs.h <<\_ACEOF
34215#define IPADDR_IN_DISPLAY 1
34216_ACEOF
34217
34218else
34219 DISPLAY_HACK_MSG="no"
34220
34221# Check whether --with-ipaddr-display was given.
34222if test "${with_ipaddr_display+set}" = set; then
34223 withval=$with_ipaddr_display;
34224 if test "x$withval" != "xno" ; then
34225 cat >>confdefs.h <<\_ACEOF
34226#define IPADDR_IN_DISPLAY 1
34227_ACEOF
34228
34229 DISPLAY_HACK_MSG="yes"
34230 fi
34231
34232
34233fi
34234
34235fi
34236
34237# check for /etc/default/login and use it if present.
34238# Check whether --enable-etc-default-login was given.
34239if test "${enable_etc_default_login+set}" = set; then
34240 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
34241 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
34242echo "$as_me: /etc/default/login handling disabled" >&6;}
34243 etc_default_login=no
34244 else
34245 etc_default_login=yes
34246 fi
34247else
34248 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
34249 then
34250 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
34251echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
34252 etc_default_login=no
34253 else
34254 etc_default_login=yes
34255 fi
34256
34257fi
34258
34259
34260if test "x$etc_default_login" != "xno"; then
34261 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
34262echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
34263if test "${ac_cv_file___etc_default_login_+set}" = set; then
34264 echo $ECHO_N "(cached) $ECHO_C" >&6
34265else
34266 test "$cross_compiling" = yes &&
34267 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34268echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34269 { (exit 1); exit 1; }; }
34270if test -r ""/etc/default/login""; then
34271 ac_cv_file___etc_default_login_=yes
34272else
34273 ac_cv_file___etc_default_login_=no
34274fi
34275fi
34276{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
34277echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
34278if test $ac_cv_file___etc_default_login_ = yes; then
34279 external_path_file=/etc/default/login
34280fi
34281
34282 if test "x$external_path_file" = "x/etc/default/login"; then
34283
34284cat >>confdefs.h <<\_ACEOF
34285#define HAVE_ETC_DEFAULT_LOGIN 1
34286_ACEOF
34287
34288 fi
34289fi
34290
34291if test $ac_cv_func_login_getcapbool = "yes" && \
34292 test $ac_cv_header_login_cap_h = "yes" ; then
34293 external_path_file=/etc/login.conf
34294fi
34295
34296# Whether to mess with the default path
34297SERVER_PATH_MSG="(default)"
34298
34299# Check whether --with-default-path was given.
34300if test "${with_default_path+set}" = set; then
34301 withval=$with_default_path;
34302 if test "x$external_path_file" = "x/etc/login.conf" ; then
34303 { echo "$as_me:$LINENO: WARNING:
34304--with-default-path=PATH has no effect on this system.
34305Edit /etc/login.conf instead." >&5
34306echo "$as_me: WARNING:
34307--with-default-path=PATH has no effect on this system.
34308Edit /etc/login.conf instead." >&2;}
34309 elif test "x$withval" != "xno" ; then
34310 if test ! -z "$external_path_file" ; then
34311 { echo "$as_me:$LINENO: WARNING:
34312--with-default-path=PATH will only be used if PATH is not defined in
34313$external_path_file ." >&5
34314echo "$as_me: WARNING:
34315--with-default-path=PATH will only be used if PATH is not defined in
34316$external_path_file ." >&2;}
34317 fi
34318 user_path="$withval"
34319 SERVER_PATH_MSG="$withval"
34320 fi
34321
34322else
34323 if test "x$external_path_file" = "x/etc/login.conf" ; then
34324 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
34325echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
34326 else
34327 if test ! -z "$external_path_file" ; then
34328 { echo "$as_me:$LINENO: WARNING:
34329If PATH is defined in $external_path_file, ensure the path to scp is included,
34330otherwise scp will not work." >&5
34331echo "$as_me: WARNING:
34332If PATH is defined in $external_path_file, ensure the path to scp is included,
34333otherwise scp will not work." >&2;}
34334 fi
34335 if test "$cross_compiling" = yes; then
34336 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34337
34338else
34339 cat >conftest.$ac_ext <<_ACEOF
34340/* confdefs.h. */
34341_ACEOF
34342cat confdefs.h >>conftest.$ac_ext
34343cat >>conftest.$ac_ext <<_ACEOF
34344/* end confdefs.h. */
34345
34346/* find out what STDPATH is */
34347#include <stdio.h>
34348#ifdef HAVE_PATHS_H
34349# include <paths.h>
34350#endif
34351#ifndef _PATH_STDPATH
34352# ifdef _PATH_USERPATH /* Irix */
34353# define _PATH_STDPATH _PATH_USERPATH
34354# else
34355# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
34356# endif
34357#endif
34358#include <sys/types.h>
34359#include <sys/stat.h>
34360#include <fcntl.h>
34361#define DATA "conftest.stdpath"
34362
34363int
34364main ()
34365{
34366
34367 FILE *fd;
34368 int rc;
34369
34370 fd = fopen(DATA,"w");
34371 if(fd == NULL)
34372 exit(1);
34373
34374 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
34375 exit(1);
34376
34377 exit(0);
34378
34379 ;
34380 return 0;
34381}
34382_ACEOF
34383rm -f conftest$ac_exeext
34384if { (ac_try="$ac_link"
34385case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34388esac
34389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_link") 2>&5
34391 ac_status=$?
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34394 { (case "(($ac_try" in
34395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34396 *) ac_try_echo=$ac_try;;
34397esac
34398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34399 (eval "$ac_try") 2>&5
34400 ac_status=$?
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); }; }; then
34403 user_path=`cat conftest.stdpath`
34404else
34405 echo "$as_me: program exited with status $ac_status" >&5
34406echo "$as_me: failed program was:" >&5
34407sed 's/^/| /' conftest.$ac_ext >&5
34408
34409( exit $ac_status )
34410 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34411fi
34412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34413fi
34414
34415
34416# make sure $bindir is in USER_PATH so scp will work
34417 t_bindir="${bindir}"
34418 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
34419 t_bindir=`eval echo ${t_bindir}`
34420 case $t_bindir in
34421 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
34422 esac
34423 case $t_bindir in
34424 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
34425 esac
34426 done
34427 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
34428 if test $? -ne 0 ; then
34429 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
34430 if test $? -ne 0 ; then
34431 user_path=$user_path:$t_bindir
34432 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
34433echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
34434 fi
34435 fi
34436 fi
34437
34438fi
34439
34440if test "x$external_path_file" != "x/etc/login.conf" ; then
34441
34442cat >>confdefs.h <<_ACEOF
34443#define USER_PATH "$user_path"
34444_ACEOF
34445
34446
34447fi
34448
34449# Set superuser path separately to user path
34450
34451# Check whether --with-superuser-path was given.
34452if test "${with_superuser_path+set}" = set; then
34453 withval=$with_superuser_path;
34454 if test -n "$withval" && test "x$withval" != "xno" && \
34455 test "x${withval}" != "xyes"; then
34456
34457cat >>confdefs.h <<_ACEOF
34458#define SUPERUSER_PATH "$withval"
34459_ACEOF
34460
34461 superuser_path=$withval
34462 fi
34463
34464
34465fi
34466
34467
34468
34469{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
34470echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
34471IPV4_IN6_HACK_MSG="no"
34472
34473# Check whether --with-4in6 was given.
34474if test "${with_4in6+set}" = set; then
34475 withval=$with_4in6;
34476 if test "x$withval" != "xno" ; then
34477 { echo "$as_me:$LINENO: result: yes" >&5
34478echo "${ECHO_T}yes" >&6; }
34479
34480cat >>confdefs.h <<\_ACEOF
34481#define IPV4_IN_IPV6 1
34482_ACEOF
34483
34484 IPV4_IN6_HACK_MSG="yes"
34485 else
34486 { echo "$as_me:$LINENO: result: no" >&5
34487echo "${ECHO_T}no" >&6; }
34488 fi
34489
34490else
34491
34492 if test "x$inet6_default_4in6" = "xyes"; then
34493 { echo "$as_me:$LINENO: result: yes (default)" >&5
34494echo "${ECHO_T}yes (default)" >&6; }
34495 cat >>confdefs.h <<\_ACEOF
34496#define IPV4_IN_IPV6 1
34497_ACEOF
34498
34499 IPV4_IN6_HACK_MSG="yes"
34500 else
34501 { echo "$as_me:$LINENO: result: no (default)" >&5
34502echo "${ECHO_T}no (default)" >&6; }
34503 fi
34504
34505
34506fi
34507
34508
34509# Whether to enable BSD auth support
34510BSD_AUTH_MSG=no
34511
34512# Check whether --with-bsd-auth was given.
34513if test "${with_bsd_auth+set}" = set; then
34514 withval=$with_bsd_auth;
34515 if test "x$withval" != "xno" ; then
34516
34517cat >>confdefs.h <<\_ACEOF
34518#define BSD_AUTH 1
34519_ACEOF
34520
34521 BSD_AUTH_MSG=yes
34522 fi
34523
34524
34525fi
34526
34527
34528# Where to place sshd.pid
34529piddir=/var/run
34530# make sure the directory exists
34531if test ! -d $piddir ; then
34532 piddir=`eval echo ${sysconfdir}`
34533 case $piddir in
34534 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
34535 esac
34536fi
34537
34538
34539# Check whether --with-pid-dir was given.
34540if test "${with_pid_dir+set}" = set; then
34541 withval=$with_pid_dir;
34542 if test -n "$withval" && test "x$withval" != "xno" && \
34543 test "x${withval}" != "xyes"; then
34544 piddir=$withval
34545 if test ! -d $piddir ; then
34546 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
34547echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
34548 fi
34549 fi
34550
34551
34552fi
34553
34554
34555
34556cat >>confdefs.h <<_ACEOF
34557#define _PATH_SSH_PIDDIR "$piddir"
34558_ACEOF
34559
34560
34561
34562# Check whether --enable-lastlog was given.
34563if test "${enable_lastlog+set}" = set; then
34564 enableval=$enable_lastlog;
34565 if test "x$enableval" = "xno" ; then
34566 cat >>confdefs.h <<\_ACEOF
34567#define DISABLE_LASTLOG 1
34568_ACEOF
34569
34570 fi
34571
34572
34573fi
34574
34575# Check whether --enable-utmp was given.
34576if test "${enable_utmp+set}" = set; then
34577 enableval=$enable_utmp;
34578 if test "x$enableval" = "xno" ; then
34579 cat >>confdefs.h <<\_ACEOF
34580#define DISABLE_UTMP 1
34581_ACEOF
34582
34583 fi
34584
34585
34586fi
34587
34588# Check whether --enable-utmpx was given.
34589if test "${enable_utmpx+set}" = set; then
34590 enableval=$enable_utmpx;
34591 if test "x$enableval" = "xno" ; then
34592
34593cat >>confdefs.h <<\_ACEOF
34594#define DISABLE_UTMPX 1
34595_ACEOF
34596
34597 fi
34598
34599
34600fi
34601
34602# Check whether --enable-wtmp was given.
34603if test "${enable_wtmp+set}" = set; then
34604 enableval=$enable_wtmp;
34605 if test "x$enableval" = "xno" ; then
34606 cat >>confdefs.h <<\_ACEOF
34607#define DISABLE_WTMP 1
34608_ACEOF
34609
34610 fi
34611
34612
34613fi
34614
34615# Check whether --enable-wtmpx was given.
34616if test "${enable_wtmpx+set}" = set; then
34617 enableval=$enable_wtmpx;
34618 if test "x$enableval" = "xno" ; then
34619
34620cat >>confdefs.h <<\_ACEOF
34621#define DISABLE_WTMPX 1
34622_ACEOF
34623
34624 fi
34625
34626
34627fi
34628
34629# Check whether --enable-libutil was given.
34630if test "${enable_libutil+set}" = set; then
34631 enableval=$enable_libutil;
34632 if test "x$enableval" = "xno" ; then
34633 cat >>confdefs.h <<\_ACEOF
34634#define DISABLE_LOGIN 1
34635_ACEOF
34636
34637 fi
34638
34639
34640fi
34641
34642# Check whether --enable-pututline was given.
34643if test "${enable_pututline+set}" = set; then
34644 enableval=$enable_pututline;
34645 if test "x$enableval" = "xno" ; then
34646
34647cat >>confdefs.h <<\_ACEOF
34648#define DISABLE_PUTUTLINE 1
34649_ACEOF
34650
34651 fi
34652
34653
34654fi
34655
34656# Check whether --enable-pututxline was given.
34657if test "${enable_pututxline+set}" = set; then
34658 enableval=$enable_pututxline;
34659 if test "x$enableval" = "xno" ; then
34660
34661cat >>confdefs.h <<\_ACEOF
34662#define DISABLE_PUTUTXLINE 1
34663_ACEOF
34664
34665 fi
34666
34667
34668fi
34669
34670
34671# Check whether --with-lastlog was given.
34672if test "${with_lastlog+set}" = set; then
34673 withval=$with_lastlog;
34674 if test "x$withval" = "xno" ; then
34675 cat >>confdefs.h <<\_ACEOF
34676#define DISABLE_LASTLOG 1
34677_ACEOF
34678
34679 elif test -n "$withval" && test "x${withval}" != "xyes"; then
34680 conf_lastlog_location=$withval
34681 fi
34682
34683
34684fi
34685
34686
34687
34688{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
34689echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
34690cat >conftest.$ac_ext <<_ACEOF
34691/* confdefs.h. */
34692_ACEOF
34693cat confdefs.h >>conftest.$ac_ext
34694cat >>conftest.$ac_ext <<_ACEOF
34695/* end confdefs.h. */
34696
34697#include <sys/types.h>
34698#include <utmp.h>
34699#ifdef HAVE_LASTLOG_H
34700# include <lastlog.h>
34701#endif
34702#ifdef HAVE_PATHS_H
34703# include <paths.h>
34704#endif
34705#ifdef HAVE_LOGIN_H
34706# include <login.h>
34707#endif
34708
34709int
34710main ()
34711{
34712 char *lastlog = LASTLOG_FILE;
34713 ;
34714 return 0;
34715}
34716_ACEOF
34717rm -f conftest.$ac_objext
34718if { (ac_try="$ac_compile"
34719case "(($ac_try" in
34720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34721 *) ac_try_echo=$ac_try;;
34722esac
34723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34724 (eval "$ac_compile") 2>conftest.er1
34725 ac_status=$?
34726 grep -v '^ *+' conftest.er1 >conftest.err
34727 rm -f conftest.er1
34728 cat conftest.err >&5
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } && {
34731 test -z "$ac_c_werror_flag" ||
34732 test ! -s conftest.err
34733 } && test -s conftest.$ac_objext; then
34734 { echo "$as_me:$LINENO: result: yes" >&5
34735echo "${ECHO_T}yes" >&6; }
34736else
34737 echo "$as_me: failed program was:" >&5
34738sed 's/^/| /' conftest.$ac_ext >&5
34739
34740
34741 { echo "$as_me:$LINENO: result: no" >&5
34742echo "${ECHO_T}no" >&6; }
34743 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
34744echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
34745 cat >conftest.$ac_ext <<_ACEOF
34746/* confdefs.h. */
34747_ACEOF
34748cat confdefs.h >>conftest.$ac_ext
34749cat >>conftest.$ac_ext <<_ACEOF
34750/* end confdefs.h. */
34751
34752#include <sys/types.h>
34753#include <utmp.h>
34754#ifdef HAVE_LASTLOG_H
34755# include <lastlog.h>
34756#endif
34757#ifdef HAVE_PATHS_H
34758# include <paths.h>
34759#endif
34760
34761int
34762main ()
34763{
34764 char *lastlog = _PATH_LASTLOG;
34765 ;
34766 return 0;
34767}
34768_ACEOF
34769rm -f conftest.$ac_objext
34770if { (ac_try="$ac_compile"
34771case "(($ac_try" in
34772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34773 *) ac_try_echo=$ac_try;;
34774esac
34775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34776 (eval "$ac_compile") 2>conftest.er1
34777 ac_status=$?
34778 grep -v '^ *+' conftest.er1 >conftest.err
34779 rm -f conftest.er1
34780 cat conftest.err >&5
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); } && {
34783 test -z "$ac_c_werror_flag" ||
34784 test ! -s conftest.err
34785 } && test -s conftest.$ac_objext; then
34786 { echo "$as_me:$LINENO: result: yes" >&5
34787echo "${ECHO_T}yes" >&6; }
34788else
34789 echo "$as_me: failed program was:" >&5
34790sed 's/^/| /' conftest.$ac_ext >&5
34791
34792
34793 { echo "$as_me:$LINENO: result: no" >&5
34794echo "${ECHO_T}no" >&6; }
34795 system_lastlog_path=no
34796
34797fi
34798
34799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34800
34801fi
34802
34803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34804
34805if test -z "$conf_lastlog_location"; then
34806 if test x"$system_lastlog_path" = x"no" ; then
34807 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
34808 if (test -d "$f" || test -f "$f") ; then
34809 conf_lastlog_location=$f
34810 fi
34811 done
34812 if test -z "$conf_lastlog_location"; then
34813 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
34814echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
34815 fi
34816 fi
34817fi
34818
34819if test -n "$conf_lastlog_location"; then
34820
34821cat >>confdefs.h <<_ACEOF
34822#define CONF_LASTLOG_FILE "$conf_lastlog_location"
34823_ACEOF
34824
34825fi
34826
34827{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
34828echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
34829cat >conftest.$ac_ext <<_ACEOF
34830/* confdefs.h. */
34831_ACEOF
34832cat confdefs.h >>conftest.$ac_ext
34833cat >>conftest.$ac_ext <<_ACEOF
34834/* end confdefs.h. */
34835
34836#include <sys/types.h>
34837#include <utmp.h>
34838#ifdef HAVE_PATHS_H
34839# include <paths.h>
34840#endif
34841
34842int
34843main ()
34844{
34845 char *utmp = UTMP_FILE;
34846 ;
34847 return 0;
34848}
34849_ACEOF
34850rm -f conftest.$ac_objext
34851if { (ac_try="$ac_compile"
34852case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34855esac
34856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_compile") 2>conftest.er1
34858 ac_status=$?
34859 grep -v '^ *+' conftest.er1 >conftest.err
34860 rm -f conftest.er1
34861 cat conftest.err >&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } && {
34864 test -z "$ac_c_werror_flag" ||
34865 test ! -s conftest.err
34866 } && test -s conftest.$ac_objext; then
34867 { echo "$as_me:$LINENO: result: yes" >&5
34868echo "${ECHO_T}yes" >&6; }
34869else
34870 echo "$as_me: failed program was:" >&5
34871sed 's/^/| /' conftest.$ac_ext >&5
34872
34873 { echo "$as_me:$LINENO: result: no" >&5
34874echo "${ECHO_T}no" >&6; }
34875 system_utmp_path=no
34876
34877fi
34878
34879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880if test -z "$conf_utmp_location"; then
34881 if test x"$system_utmp_path" = x"no" ; then
34882 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
34883 if test -f $f ; then
34884 conf_utmp_location=$f
34885 fi
34886 done
34887 if test -z "$conf_utmp_location"; then
34888 cat >>confdefs.h <<\_ACEOF
34889#define DISABLE_UTMP 1
34890_ACEOF
34891
34892 fi
34893 fi
34894fi
34895if test -n "$conf_utmp_location"; then
34896
34897cat >>confdefs.h <<_ACEOF
34898#define CONF_UTMP_FILE "$conf_utmp_location"
34899_ACEOF
34900
34901fi
34902
34903{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
34904echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
34905cat >conftest.$ac_ext <<_ACEOF
34906/* confdefs.h. */
34907_ACEOF
34908cat confdefs.h >>conftest.$ac_ext
34909cat >>conftest.$ac_ext <<_ACEOF
34910/* end confdefs.h. */
34911
34912#include <sys/types.h>
34913#include <utmp.h>
34914#ifdef HAVE_PATHS_H
34915# include <paths.h>
34916#endif
34917
34918int
34919main ()
34920{
34921 char *wtmp = WTMP_FILE;
34922 ;
34923 return 0;
34924}
34925_ACEOF
34926rm -f conftest.$ac_objext
34927if { (ac_try="$ac_compile"
34928case "(($ac_try" in
34929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34930 *) ac_try_echo=$ac_try;;
34931esac
34932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34933 (eval "$ac_compile") 2>conftest.er1
34934 ac_status=$?
34935 grep -v '^ *+' conftest.er1 >conftest.err
34936 rm -f conftest.er1
34937 cat conftest.err >&5
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); } && {
34940 test -z "$ac_c_werror_flag" ||
34941 test ! -s conftest.err
34942 } && test -s conftest.$ac_objext; then
34943 { echo "$as_me:$LINENO: result: yes" >&5
34944echo "${ECHO_T}yes" >&6; }
34945else
34946 echo "$as_me: failed program was:" >&5
34947sed 's/^/| /' conftest.$ac_ext >&5
34948
34949 { echo "$as_me:$LINENO: result: no" >&5
34950echo "${ECHO_T}no" >&6; }
34951 system_wtmp_path=no
34952
34953fi
34954
34955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34956if test -z "$conf_wtmp_location"; then
34957 if test x"$system_wtmp_path" = x"no" ; then
34958 for f in /usr/adm/wtmp /var/log/wtmp; do
34959 if test -f $f ; then
34960 conf_wtmp_location=$f
34961 fi
34962 done
34963 if test -z "$conf_wtmp_location"; then
34964 cat >>confdefs.h <<\_ACEOF
34965#define DISABLE_WTMP 1
34966_ACEOF
34967
34968 fi
34969 fi
34970fi
34971if test -n "$conf_wtmp_location"; then
34972
34973cat >>confdefs.h <<_ACEOF
34974#define CONF_WTMP_FILE "$conf_wtmp_location"
34975_ACEOF
34976
34977fi
34978
34979{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
34980echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
34981cat >conftest.$ac_ext <<_ACEOF
34982/* confdefs.h. */
34983_ACEOF
34984cat confdefs.h >>conftest.$ac_ext
34985cat >>conftest.$ac_ext <<_ACEOF
34986/* end confdefs.h. */
34987
34988#include <sys/types.h>
34989#include <utmp.h>
34990#ifdef HAVE_UTMPX_H
34991#include <utmpx.h>
34992#endif
34993#ifdef HAVE_PATHS_H
34994# include <paths.h>
34995#endif
34996
34997int
34998main ()
34999{
35000 char *wtmpx = WTMPX_FILE;
35001 ;
35002 return 0;
35003}
35004_ACEOF
35005rm -f conftest.$ac_objext
35006if { (ac_try="$ac_compile"
35007case "(($ac_try" in
35008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35009 *) ac_try_echo=$ac_try;;
35010esac
35011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35012 (eval "$ac_compile") 2>conftest.er1
35013 ac_status=$?
35014 grep -v '^ *+' conftest.er1 >conftest.err
35015 rm -f conftest.er1
35016 cat conftest.err >&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } && {
35019 test -z "$ac_c_werror_flag" ||
35020 test ! -s conftest.err
35021 } && test -s conftest.$ac_objext; then
35022 { echo "$as_me:$LINENO: result: yes" >&5
35023echo "${ECHO_T}yes" >&6; }
35024else
35025 echo "$as_me: failed program was:" >&5
35026sed 's/^/| /' conftest.$ac_ext >&5
35027
35028 { echo "$as_me:$LINENO: result: no" >&5
35029echo "${ECHO_T}no" >&6; }
35030 system_wtmpx_path=no
35031
35032fi
35033
35034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35035if test -z "$conf_wtmpx_location"; then
35036 if test x"$system_wtmpx_path" = x"no" ; then
35037 cat >>confdefs.h <<\_ACEOF
35038#define DISABLE_WTMPX 1
35039_ACEOF
35040
35041 fi
35042else
35043
35044cat >>confdefs.h <<_ACEOF
35045#define CONF_WTMPX_FILE "$conf_wtmpx_location"
35046_ACEOF
35047
35048fi
35049
35050
35051if test ! -z "$blibpath" ; then
35052 LDFLAGS="$LDFLAGS $blibflags$blibpath"
35053 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
35054echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
35055fi
35056
35057{ echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5
35058echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; }
35059if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then
35060 echo $ECHO_N "(cached) $ECHO_C" >&6
35061else
35062 cat >conftest.$ac_ext <<_ACEOF
35063/* confdefs.h. */
35064_ACEOF
35065cat confdefs.h >>conftest.$ac_ext
35066cat >>conftest.$ac_ext <<_ACEOF
35067/* end confdefs.h. */
35068
35069#ifdef HAVE_SYS_TYPES_H
35070#include <sys/types.h>
35071#endif
35072#ifdef HAVE_UTMP_H
35073#include <utmp.h>
35074#endif
35075#ifdef HAVE_UTMPX_H
35076#include <utmpx.h>
35077#endif
35078#ifdef HAVE_LASTLOG_H
35079#include <lastlog.h>
35080#endif
35081
35082
35083int
35084main ()
35085{
35086static struct lastlog ac_aggr;
35087if (ac_aggr.ll_line)
35088return 0;
35089 ;
35090 return 0;
35091}
35092_ACEOF
35093rm -f conftest.$ac_objext
35094if { (ac_try="$ac_compile"
35095case "(($ac_try" in
35096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35097 *) ac_try_echo=$ac_try;;
35098esac
35099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35100 (eval "$ac_compile") 2>conftest.er1
35101 ac_status=$?
35102 grep -v '^ *+' conftest.er1 >conftest.err
35103 rm -f conftest.er1
35104 cat conftest.err >&5
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); } && {
35107 test -z "$ac_c_werror_flag" ||
35108 test ! -s conftest.err
35109 } && test -s conftest.$ac_objext; then
35110 ac_cv_member_struct_lastlog_ll_line=yes
35111else
35112 echo "$as_me: failed program was:" >&5
35113sed 's/^/| /' conftest.$ac_ext >&5
35114
35115 cat >conftest.$ac_ext <<_ACEOF
35116/* confdefs.h. */
35117_ACEOF
35118cat confdefs.h >>conftest.$ac_ext
35119cat >>conftest.$ac_ext <<_ACEOF
35120/* end confdefs.h. */
35121
35122#ifdef HAVE_SYS_TYPES_H
35123#include <sys/types.h>
35124#endif
35125#ifdef HAVE_UTMP_H
35126#include <utmp.h>
35127#endif
35128#ifdef HAVE_UTMPX_H
35129#include <utmpx.h>
35130#endif
35131#ifdef HAVE_LASTLOG_H
35132#include <lastlog.h>
35133#endif
35134
35135
35136int
35137main ()
35138{
35139static struct lastlog ac_aggr;
35140if (sizeof ac_aggr.ll_line)
35141return 0;
35142 ;
35143 return 0;
35144}
35145_ACEOF
35146rm -f conftest.$ac_objext
35147if { (ac_try="$ac_compile"
35148case "(($ac_try" in
35149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35150 *) ac_try_echo=$ac_try;;
35151esac
35152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35153 (eval "$ac_compile") 2>conftest.er1
35154 ac_status=$?
35155 grep -v '^ *+' conftest.er1 >conftest.err
35156 rm -f conftest.er1
35157 cat conftest.err >&5
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } && {
35160 test -z "$ac_c_werror_flag" ||
35161 test ! -s conftest.err
35162 } && test -s conftest.$ac_objext; then
35163 ac_cv_member_struct_lastlog_ll_line=yes
35164else
35165 echo "$as_me: failed program was:" >&5
35166sed 's/^/| /' conftest.$ac_ext >&5
35167
35168 ac_cv_member_struct_lastlog_ll_line=no
35169fi
35170
35171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172fi
35173
35174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35175fi
35176{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5
35177echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; }
35178if test $ac_cv_member_struct_lastlog_ll_line = yes; then
35179 :
35180else
35181
35182 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
35183 cat >>confdefs.h <<\_ACEOF
35184#define DISABLE_LASTLOG 1
35185_ACEOF
35186
35187 fi
35188
35189fi
35190
35191
35192{ echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5
35193echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; }
35194if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then
35195 echo $ECHO_N "(cached) $ECHO_C" >&6
35196else
35197 cat >conftest.$ac_ext <<_ACEOF
35198/* confdefs.h. */
35199_ACEOF
35200cat confdefs.h >>conftest.$ac_ext
35201cat >>conftest.$ac_ext <<_ACEOF
35202/* end confdefs.h. */
35203
35204#ifdef HAVE_SYS_TYPES_H
35205#include <sys/types.h>
35206#endif
35207#ifdef HAVE_UTMP_H
35208#include <utmp.h>
35209#endif
35210#ifdef HAVE_UTMPX_H
35211#include <utmpx.h>
35212#endif
35213#ifdef HAVE_LASTLOG_H
35214#include <lastlog.h>
35215#endif
35216
35217
35218int
35219main ()
35220{
35221static struct utmp ac_aggr;
35222if (ac_aggr.ut_line)
35223return 0;
35224 ;
35225 return 0;
35226}
35227_ACEOF
35228rm -f conftest.$ac_objext
35229if { (ac_try="$ac_compile"
35230case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35233esac
35234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35235 (eval "$ac_compile") 2>conftest.er1
35236 ac_status=$?
35237 grep -v '^ *+' conftest.er1 >conftest.err
35238 rm -f conftest.er1
35239 cat conftest.err >&5
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); } && {
35242 test -z "$ac_c_werror_flag" ||
35243 test ! -s conftest.err
35244 } && test -s conftest.$ac_objext; then
35245 ac_cv_member_struct_utmp_ut_line=yes
35246else
35247 echo "$as_me: failed program was:" >&5
35248sed 's/^/| /' conftest.$ac_ext >&5
35249
35250 cat >conftest.$ac_ext <<_ACEOF
35251/* confdefs.h. */
35252_ACEOF
35253cat confdefs.h >>conftest.$ac_ext
35254cat >>conftest.$ac_ext <<_ACEOF
35255/* end confdefs.h. */
35256
35257#ifdef HAVE_SYS_TYPES_H
35258#include <sys/types.h>
35259#endif
35260#ifdef HAVE_UTMP_H
35261#include <utmp.h>
35262#endif
35263#ifdef HAVE_UTMPX_H
35264#include <utmpx.h>
35265#endif
35266#ifdef HAVE_LASTLOG_H
35267#include <lastlog.h>
35268#endif
35269
35270
35271int
35272main ()
35273{
35274static struct utmp ac_aggr;
35275if (sizeof ac_aggr.ut_line)
35276return 0;
35277 ;
35278 return 0;
35279}
35280_ACEOF
35281rm -f conftest.$ac_objext
35282if { (ac_try="$ac_compile"
35283case "(($ac_try" in
35284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35285 *) ac_try_echo=$ac_try;;
35286esac
35287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35288 (eval "$ac_compile") 2>conftest.er1
35289 ac_status=$?
35290 grep -v '^ *+' conftest.er1 >conftest.err
35291 rm -f conftest.er1
35292 cat conftest.err >&5
35293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294 (exit $ac_status); } && {
35295 test -z "$ac_c_werror_flag" ||
35296 test ! -s conftest.err
35297 } && test -s conftest.$ac_objext; then
35298 ac_cv_member_struct_utmp_ut_line=yes
35299else
35300 echo "$as_me: failed program was:" >&5
35301sed 's/^/| /' conftest.$ac_ext >&5
35302
35303 ac_cv_member_struct_utmp_ut_line=no
35304fi
35305
35306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307fi
35308
35309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35310fi
35311{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5
35312echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; }
35313if test $ac_cv_member_struct_utmp_ut_line = yes; then
35314 :
35315else
35316
35317 cat >>confdefs.h <<\_ACEOF
35318#define DISABLE_UTMP 1
35319_ACEOF
35320
35321 cat >>confdefs.h <<\_ACEOF
35322#define DISABLE_WTMP 1
35323_ACEOF
35324
35325
35326fi
35327
35328
35329CFLAGS="$CFLAGS $werror_flags"
35330
35331if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
35332 TEST_SSH_IPV6=no
35333else
35334 TEST_SSH_IPV6=yes
35335fi
35336{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
35337echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
35338if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
35339 echo $ECHO_N "(cached) $ECHO_C" >&6
35340else
35341 cat >conftest.$ac_ext <<_ACEOF
35342/* confdefs.h. */
35343_ACEOF
35344cat confdefs.h >>conftest.$ac_ext
35345cat >>conftest.$ac_ext <<_ACEOF
35346/* end confdefs.h. */
35347$ac_includes_default
35348int
35349main ()
35350{
35351#ifndef BROKEN_GETADDRINFO
35352 (void) BROKEN_GETADDRINFO;
35353#endif
35354
35355 ;
35356 return 0;
35357}
35358_ACEOF
35359rm -f conftest.$ac_objext
35360if { (ac_try="$ac_compile"
35361case "(($ac_try" in
35362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363 *) ac_try_echo=$ac_try;;
35364esac
35365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35366 (eval "$ac_compile") 2>conftest.er1
35367 ac_status=$?
35368 grep -v '^ *+' conftest.er1 >conftest.err
35369 rm -f conftest.er1
35370 cat conftest.err >&5
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); } && {
35373 test -z "$ac_c_werror_flag" ||
35374 test ! -s conftest.err
35375 } && test -s conftest.$ac_objext; then
35376 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
35377else
35378 echo "$as_me: failed program was:" >&5
35379sed 's/^/| /' conftest.$ac_ext >&5
35380
35381 ac_cv_have_decl_BROKEN_GETADDRINFO=no
35382fi
35383
35384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35385fi
35386{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
35387echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
35388if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
35389 TEST_SSH_IPV6=no
35390fi
35391
35392TEST_SSH_IPV6=$TEST_SSH_IPV6
35393
35394TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
35395
35396UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
35397
35398
35399
35400ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
35401
35402cat >confcache <<\_ACEOF
35403# This file is a shell script that caches the results of configure
35404# tests run on this system so they can be shared between configure
35405# scripts and configure runs, see configure's option --config-cache.
35406# It is not useful on other systems. If it contains results you don't
35407# want to keep, you may remove or edit it.
35408#
35409# config.status only pays attention to the cache file if you give it
35410# the --recheck option to rerun configure.
35411#
35412# `ac_cv_env_foo' variables (set or unset) will be overridden when
35413# loading this file, other *unset* `ac_cv_foo' will be assigned the
35414# following values.
35415
35416_ACEOF
35417
35418# The following way of writing the cache mishandles newlines in values,
35419# but we know of no workaround that is simple, portable, and efficient.
35420# So, we kill variables containing newlines.
35421# Ultrix sh set writes to stderr and can't be redirected directly,
35422# and sets the high bit in the cache file unless we assign to the vars.
35423(
35424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35425 eval ac_val=\$$ac_var
35426 case $ac_val in #(
35427 *${as_nl}*)
35428 case $ac_var in #(
35429 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35430echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35431 esac
35432 case $ac_var in #(
35433 _ | IFS | as_nl) ;; #(
35434 *) $as_unset $ac_var ;;
35435 esac ;;
35436 esac
35437 done
35438
35439 (set) 2>&1 |
35440 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35441 *${as_nl}ac_space=\ *)
35442 # `set' does not quote correctly, so add quotes (double-quote
35443 # substitution turns \\\\ into \\, and sed turns \\ into \).
35444 sed -n \
35445 "s/'/'\\\\''/g;
35446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35447 ;; #(
35448 *)
35449 # `set' quotes correctly as required by POSIX, so do not add quotes.
35450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35451 ;;
35452 esac |
35453 sort
35454) |
35455 sed '
35456 /^ac_cv_env_/b end
35457 t clear
35458 :clear
35459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35460 t end
35461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35462 :end' >>confcache
35463if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35464 if test -w "$cache_file"; then
35465 test "x$cache_file" != "x/dev/null" &&
35466 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35467echo "$as_me: updating cache $cache_file" >&6;}
35468 cat confcache >$cache_file
35469 else
35470 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35471echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35472 fi
35473fi
35474rm -f confcache
35475
35476test "x$prefix" = xNONE && prefix=$ac_default_prefix
35477# Let make expand exec_prefix.
35478test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35479
35480DEFS=-DHAVE_CONFIG_H
35481
35482ac_libobjs=
35483ac_ltlibobjs=
35484for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35485 # 1. Remove the extension, and $U if already installed.
35486 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35487 ac_i=`echo "$ac_i" | sed "$ac_script"`
35488 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35489 # will be set to the directory where LIBOBJS objects are built.
35490 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35491 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35492done
35493LIBOBJS=$ac_libobjs
35494
35495LTLIBOBJS=$ac_ltlibobjs
35496
35497
35498
35499: ${CONFIG_STATUS=./config.status}
35500ac_clean_files_save=$ac_clean_files
35501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35502{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35503echo "$as_me: creating $CONFIG_STATUS" >&6;}
35504cat >$CONFIG_STATUS <<_ACEOF
35505#! $SHELL
35506# Generated by $as_me.
35507# Run this file to recreate the current configuration.
35508# Compiler output produced by configure, useful for debugging
35509# configure, is in config.log if it exists.
35510
35511debug=false
35512ac_cs_recheck=false
35513ac_cs_silent=false
35514SHELL=\${CONFIG_SHELL-$SHELL}
35515_ACEOF
35516
35517cat >>$CONFIG_STATUS <<\_ACEOF
35518## --------------------- ##
35519## M4sh Initialization. ##
35520## --------------------- ##
35521
35522# Be more Bourne compatible
35523DUALCASE=1; export DUALCASE # for MKS sh
35524if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35525 emulate sh
35526 NULLCMD=:
35527 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35528 # is contrary to our usage. Disable this feature.
35529 alias -g '${1+"$@"}'='"$@"'
35530 setopt NO_GLOB_SUBST
35531else
35532 case `(set -o) 2>/dev/null` in
35533 *posix*) set -o posix ;;
35534esac
35535
35536fi
35537
35538
35539
35540
35541# PATH needs CR
35542# Avoid depending upon Character Ranges.
35543as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35544as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35545as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35546as_cr_digits='0123456789'
35547as_cr_alnum=$as_cr_Letters$as_cr_digits
35548
35549# The user is always right.
35550if test "${PATH_SEPARATOR+set}" != set; then
35551 echo "#! /bin/sh" >conf$$.sh
35552 echo "exit 0" >>conf$$.sh
35553 chmod +x conf$$.sh
35554 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35555 PATH_SEPARATOR=';'
35556 else
35557 PATH_SEPARATOR=:
35558 fi
35559 rm -f conf$$.sh
35560fi
35561
35562# Support unset when possible.
35563if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35564 as_unset=unset
35565else
35566 as_unset=false
35567fi
35568
35569
35570# IFS
35571# We need space, tab and new line, in precisely that order. Quoting is
35572# there to prevent editors from complaining about space-tab.
35573# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35574# splitting by setting IFS to empty value.)
35575as_nl='
35576'
35577IFS=" "" $as_nl"
35578
35579# Find who we are. Look in the path if we contain no directory separator.
35580case $0 in
35581 *[\\/]* ) as_myself=$0 ;;
35582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35583for as_dir in $PATH
35584do
35585 IFS=$as_save_IFS
35586 test -z "$as_dir" && as_dir=.
35587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35588done
35589IFS=$as_save_IFS
35590
35591 ;;
35592esac
35593# We did not find ourselves, most probably we were run as `sh COMMAND'
35594# in which case we are not to be found in the path.
35595if test "x$as_myself" = x; then
35596 as_myself=$0
35597fi
35598if test ! -f "$as_myself"; then
35599 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35600 { (exit 1); exit 1; }
35601fi
35602
35603# Work around bugs in pre-3.0 UWIN ksh.
35604for as_var in ENV MAIL MAILPATH
35605do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35606done
35607PS1='$ '
35608PS2='> '
35609PS4='+ '
35610
35611# NLS nuisances.
35612for as_var in \
35613 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35614 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35615 LC_TELEPHONE LC_TIME
35616do
35617 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35618 eval $as_var=C; export $as_var
35619 else
35620 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35621 fi
35622done
35623
35624# Required to use basename.
35625if expr a : '\(a\)' >/dev/null 2>&1 &&
35626 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35627 as_expr=expr
35628else
35629 as_expr=false
35630fi
35631
35632if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35633 as_basename=basename
35634else
35635 as_basename=false
35636fi
35637
35638
35639# Name of the executable.
35640as_me=`$as_basename -- "$0" ||
35641$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35642 X"$0" : 'X\(//\)$' \| \
35643 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35644echo X/"$0" |
35645 sed '/^.*\/\([^/][^/]*\)\/*$/{
35646 s//\1/
35647 q
35648 }
35649 /^X\/\(\/\/\)$/{
35650 s//\1/
35651 q
35652 }
35653 /^X\/\(\/\).*/{
35654 s//\1/
35655 q
35656 }
35657 s/.*/./; q'`
35658
35659# CDPATH.
35660$as_unset CDPATH
35661
35662
35663
35664 as_lineno_1=$LINENO
35665 as_lineno_2=$LINENO
35666 test "x$as_lineno_1" != "x$as_lineno_2" &&
35667 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35668
35669 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35670 # uniformly replaced by the line number. The first 'sed' inserts a
35671 # line-number line after each line using $LINENO; the second 'sed'
35672 # does the real work. The second script uses 'N' to pair each
35673 # line-number line with the line containing $LINENO, and appends
35674 # trailing '-' during substitution so that $LINENO is not a special
35675 # case at line end.
35676 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35677 # scripts with optimization help from Paolo Bonzini. Blame Lee
35678 # E. McMahon (1931-1989) for sed's syntax. :-)
35679 sed -n '
35680 p
35681 /[$]LINENO/=
35682 ' <$as_myself |
35683 sed '
35684 s/[$]LINENO.*/&-/
35685 t lineno
35686 b
35687 :lineno
35688 N
35689 :loop
35690 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35691 t loop
35692 s/-\n.*//
35693 ' >$as_me.lineno &&
35694 chmod +x "$as_me.lineno" ||
35695 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35696 { (exit 1); exit 1; }; }
35697
35698 # Don't try to exec as it changes $[0], causing all sort of problems
35699 # (the dirname of $[0] is not the place where we might find the
35700 # original and so on. Autoconf is especially sensitive to this).
35701 . "./$as_me.lineno"
35702 # Exit status is that of the last command.
35703 exit
35704}
35705
35706
35707if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35708 as_dirname=dirname
35709else
35710 as_dirname=false
35711fi
35712
35713ECHO_C= ECHO_N= ECHO_T=
35714case `echo -n x` in
35715-n*)
35716 case `echo 'x\c'` in
35717 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35718 *) ECHO_C='\c';;
35719 esac;;
35720*)
35721 ECHO_N='-n';;
35722esac
35723
35724if expr a : '\(a\)' >/dev/null 2>&1 &&
35725 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35726 as_expr=expr
35727else
35728 as_expr=false
35729fi
35730
35731rm -f conf$$ conf$$.exe conf$$.file
35732if test -d conf$$.dir; then
35733 rm -f conf$$.dir/conf$$.file
35734else
35735 rm -f conf$$.dir
35736 mkdir conf$$.dir
35737fi
35738echo >conf$$.file
35739if ln -s conf$$.file conf$$ 2>/dev/null; then
35740 as_ln_s='ln -s'
35741 # ... but there are two gotchas:
35742 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35743 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35744 # In both cases, we have to default to `cp -p'.
35745 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35746 as_ln_s='cp -p'
35747elif ln conf$$.file conf$$ 2>/dev/null; then
35748 as_ln_s=ln
35749else
35750 as_ln_s='cp -p'
35751fi
35752rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35753rmdir conf$$.dir 2>/dev/null
35754
35755if mkdir -p . 2>/dev/null; then
35756 as_mkdir_p=:
35757else
35758 test -d ./-p && rmdir ./-p
35759 as_mkdir_p=false
35760fi
35761
35762if test -x / >/dev/null 2>&1; then
35763 as_test_x='test -x'
35764else
35765 if ls -dL / >/dev/null 2>&1; then
35766 as_ls_L_option=L
35767 else
35768 as_ls_L_option=
35769 fi
35770 as_test_x='
35771 eval sh -c '\''
35772 if test -d "$1"; then
35773 test -d "$1/.";
35774 else
35775 case $1 in
35776 -*)set "./$1";;
35777 esac;
35778 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35779 ???[sx]*):;;*)false;;esac;fi
35780 '\'' sh
35781 '
35782fi
35783as_executable_p=$as_test_x
35784
35785# Sed expression to map a string onto a valid CPP name.
35786as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35787
35788# Sed expression to map a string onto a valid variable name.
35789as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35790
35791
35792exec 6>&1
35793
35794# Save the log message, to keep $[0] and so on meaningful, and to
35795# report actual input values of CONFIG_FILES etc. instead of their
35796# values after options handling.
35797ac_log="
35798This file was extended by OpenSSH $as_me Portable, which was
35799generated by GNU Autoconf 2.61. Invocation command line was
35800
35801 CONFIG_FILES = $CONFIG_FILES
35802 CONFIG_HEADERS = $CONFIG_HEADERS
35803 CONFIG_LINKS = $CONFIG_LINKS
35804 CONFIG_COMMANDS = $CONFIG_COMMANDS
35805 $ $0 $@
35806
35807on `(hostname || uname -n) 2>/dev/null | sed 1q`
35808"
35809
35810_ACEOF
35811
35812cat >>$CONFIG_STATUS <<_ACEOF
35813# Files that config.status was made for.
35814config_files="$ac_config_files"
35815config_headers="$ac_config_headers"
35816
35817_ACEOF
35818
35819cat >>$CONFIG_STATUS <<\_ACEOF
35820ac_cs_usage="\
35821\`$as_me' instantiates files from templates according to the
35822current configuration.
35823
35824Usage: $0 [OPTIONS] [FILE]...
35825
35826 -h, --help print this help, then exit
35827 -V, --version print version number and configuration settings, then exit
35828 -q, --quiet do not print progress messages
35829 -d, --debug don't remove temporary files
35830 --recheck update $as_me by reconfiguring in the same conditions
35831 --file=FILE[:TEMPLATE]
35832 instantiate the configuration file FILE
35833 --header=FILE[:TEMPLATE]
35834 instantiate the configuration header FILE
35835
35836Configuration files:
35837$config_files
35838
35839Configuration headers:
35840$config_headers
35841
35842Report bugs to <bug-autoconf@gnu.org>."
35843
35844_ACEOF
35845cat >>$CONFIG_STATUS <<_ACEOF
35846ac_cs_version="\\
35847OpenSSH config.status Portable
35848configured by $0, generated by GNU Autoconf 2.61,
35849 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35850
35851Copyright (C) 2006 Free Software Foundation, Inc.
35852This config.status script is free software; the Free Software Foundation
35853gives unlimited permission to copy, distribute and modify it."
35854
35855ac_pwd='$ac_pwd'
35856srcdir='$srcdir'
35857INSTALL='$INSTALL'
35858_ACEOF
35859
35860cat >>$CONFIG_STATUS <<\_ACEOF
35861# If no file are specified by the user, then we need to provide default
35862# value. By we need to know if files were specified by the user.
35863ac_need_defaults=:
35864while test $# != 0
35865do
35866 case $1 in
35867 --*=*)
35868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35870 ac_shift=:
35871 ;;
35872 *)
35873 ac_option=$1
35874 ac_optarg=$2
35875 ac_shift=shift
35876 ;;
35877 esac
35878
35879 case $ac_option in
35880 # Handling of the options.
35881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35882 ac_cs_recheck=: ;;
35883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35884 echo "$ac_cs_version"; exit ;;
35885 --debug | --debu | --deb | --de | --d | -d )
35886 debug=: ;;
35887 --file | --fil | --fi | --f )
35888 $ac_shift
35889 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35890 ac_need_defaults=false;;
35891 --header | --heade | --head | --hea )
35892 $ac_shift
35893 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35894 ac_need_defaults=false;;
35895 --he | --h)
35896 # Conflict between --help and --header
35897 { echo "$as_me: error: ambiguous option: $1
35898Try \`$0 --help' for more information." >&2
35899 { (exit 1); exit 1; }; };;
35900 --help | --hel | -h )
35901 echo "$ac_cs_usage"; exit ;;
35902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35904 ac_cs_silent=: ;;
35905
35906 # This is an error.
35907 -*) { echo "$as_me: error: unrecognized option: $1
35908Try \`$0 --help' for more information." >&2
35909 { (exit 1); exit 1; }; } ;;
35910
35911 *) ac_config_targets="$ac_config_targets $1"
35912 ac_need_defaults=false ;;
35913
35914 esac
35915 shift
35916done
35917
35918ac_configure_extra_args=
35919
35920if $ac_cs_silent; then
35921 exec 6>/dev/null
35922 ac_configure_extra_args="$ac_configure_extra_args --silent"
35923fi
35924
35925_ACEOF
35926cat >>$CONFIG_STATUS <<_ACEOF
35927if \$ac_cs_recheck; then
35928 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35929 CONFIG_SHELL=$SHELL
35930 export CONFIG_SHELL
35931 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35932fi
35933
35934_ACEOF
35935cat >>$CONFIG_STATUS <<\_ACEOF
35936exec 5>>config.log
35937{
35938 echo
35939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35940## Running $as_me. ##
35941_ASBOX
35942 echo "$ac_log"
35943} >&5
35944
35945_ACEOF
35946cat >>$CONFIG_STATUS <<_ACEOF
35947_ACEOF
35948
35949cat >>$CONFIG_STATUS <<\_ACEOF
35950
35951# Handling of arguments.
35952for ac_config_target in $ac_config_targets
35953do
35954 case $ac_config_target in
35955 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35956 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35957 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
35958 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
35959 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
35960 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
35961 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
35962 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
35963
35964 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35965echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35966 { (exit 1); exit 1; }; };;
35967 esac
35968done
35969
35970
35971# If the user did not use the arguments to specify the items to instantiate,
35972# then the envvar interface is used. Set only those that are not.
35973# We use the long form for the default assignment because of an extremely
35974# bizarre bug on SunOS 4.1.3.
35975if $ac_need_defaults; then
35976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35978fi
35979
35980# Have a temporary directory for convenience. Make it in the build tree
35981# simply because there is no reason against having it here, and in addition,
35982# creating and moving files from /tmp can sometimes cause problems.
35983# Hook for its removal unless debugging.
35984# Note that there is a small window in which the directory will not be cleaned:
35985# after its creation but before its name has been assigned to `$tmp'.
35986$debug ||
35987{
35988 tmp=
35989 trap 'exit_status=$?
35990 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35991' 0
35992 trap '{ (exit 1); exit 1; }' 1 2 13 15
35993}
35994# Create a (secure) tmp directory for tmp files.
35995
35996{
35997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35998 test -n "$tmp" && test -d "$tmp"
35999} ||
36000{
36001 tmp=./conf$$-$RANDOM
36002 (umask 077 && mkdir "$tmp")
36003} ||
36004{
36005 echo "$me: cannot create a temporary directory in ." >&2
36006 { (exit 1); exit 1; }
36007}
36008
36009#
36010# Set up the sed scripts for CONFIG_FILES section.
36011#
36012
36013# No need to generate the scripts if there are no CONFIG_FILES.
36014# This happens for instance when ./config.status config.h
36015if test -n "$CONFIG_FILES"; then
36016
36017_ACEOF
36018
36019
36020
36021ac_delim='%!_!# '
36022for ac_last_try in false false false false false :; do
36023 cat >conf$$subs.sed <<_ACEOF
36024SHELL!$SHELL$ac_delim
36025PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36026PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36027PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36028PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36029PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36030PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36031exec_prefix!$exec_prefix$ac_delim
36032prefix!$prefix$ac_delim
36033program_transform_name!$program_transform_name$ac_delim
36034bindir!$bindir$ac_delim
36035sbindir!$sbindir$ac_delim
36036libexecdir!$libexecdir$ac_delim
36037datarootdir!$datarootdir$ac_delim
36038datadir!$datadir$ac_delim
36039sysconfdir!$sysconfdir$ac_delim
36040sharedstatedir!$sharedstatedir$ac_delim
36041localstatedir!$localstatedir$ac_delim
36042includedir!$includedir$ac_delim
36043oldincludedir!$oldincludedir$ac_delim
36044docdir!$docdir$ac_delim
36045infodir!$infodir$ac_delim
36046htmldir!$htmldir$ac_delim
36047dvidir!$dvidir$ac_delim
36048pdfdir!$pdfdir$ac_delim
36049psdir!$psdir$ac_delim
36050libdir!$libdir$ac_delim
36051localedir!$localedir$ac_delim
36052mandir!$mandir$ac_delim
36053DEFS!$DEFS$ac_delim
36054ECHO_C!$ECHO_C$ac_delim
36055ECHO_N!$ECHO_N$ac_delim
36056ECHO_T!$ECHO_T$ac_delim
36057LIBS!$LIBS$ac_delim
36058build_alias!$build_alias$ac_delim
36059host_alias!$host_alias$ac_delim
36060target_alias!$target_alias$ac_delim
36061CC!$CC$ac_delim
36062CFLAGS!$CFLAGS$ac_delim
36063LDFLAGS!$LDFLAGS$ac_delim
36064CPPFLAGS!$CPPFLAGS$ac_delim
36065ac_ct_CC!$ac_ct_CC$ac_delim
36066EXEEXT!$EXEEXT$ac_delim
36067OBJEXT!$OBJEXT$ac_delim
36068build!$build$ac_delim
36069build_cpu!$build_cpu$ac_delim
36070build_vendor!$build_vendor$ac_delim
36071build_os!$build_os$ac_delim
36072host!$host$ac_delim
36073host_cpu!$host_cpu$ac_delim
36074host_vendor!$host_vendor$ac_delim
36075host_os!$host_os$ac_delim
36076CPP!$CPP$ac_delim
36077GREP!$GREP$ac_delim
36078EGREP!$EGREP$ac_delim
36079AWK!$AWK$ac_delim
36080RANLIB!$RANLIB$ac_delim
36081INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36082INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36083INSTALL_DATA!$INSTALL_DATA$ac_delim
36084AR!$AR$ac_delim
36085ac_ct_AR!$ac_ct_AR$ac_delim
36086CAT!$CAT$ac_delim
36087KILL!$KILL$ac_delim
36088PERL!$PERL$ac_delim
36089SED!$SED$ac_delim
36090ENT!$ENT$ac_delim
36091TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
36092SH!$SH$ac_delim
36093GROFF!$GROFF$ac_delim
36094NROFF!$NROFF$ac_delim
36095MANDOC!$MANDOC$ac_delim
36096TEST_SHELL!$TEST_SHELL$ac_delim
36097MANFMT!$MANFMT$ac_delim
36098PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
36099PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
36100MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
36101STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
36102LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
36103PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
36104LD!$LD$ac_delim
36105PKGCONFIG!$PKGCONFIG$ac_delim
36106LIBEDIT!$LIBEDIT$ac_delim
36107TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
36108COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
36109SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
36110SSHLIBS!$SSHLIBS$ac_delim
36111SSHDLIBS!$SSHDLIBS$ac_delim
36112KRB5CONF!$KRB5CONF$ac_delim
36113GSSLIBS!$GSSLIBS$ac_delim
36114K5LIBS!$K5LIBS$ac_delim
36115PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
36116xauth_path!$xauth_path$ac_delim
36117STRIP_OPT!$STRIP_OPT$ac_delim
36118XAUTH_PATH!$XAUTH_PATH$ac_delim
36119MANTYPE!$MANTYPE$ac_delim
36120mansubdir!$mansubdir$ac_delim
36121_ACEOF
36122
36123 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36124 break
36125 elif $ac_last_try; then
36126 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36127echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36128 { (exit 1); exit 1; }; }
36129 else
36130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36131 fi
36132done
36133
36134ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36135if test -n "$ac_eof"; then
36136 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36137 ac_eof=`expr $ac_eof + 1`
36138fi
36139
36140cat >>$CONFIG_STATUS <<_ACEOF
36141cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36143_ACEOF
36144sed '
36145s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36146s/^/s,@/; s/!/@,|#_!!_#|/
36147:n
36148t n
36149s/'"$ac_delim"'$/,g/; t
36150s/$/\\/; p
36151N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36152' >>$CONFIG_STATUS <conf$$subs.sed
36153rm -f conf$$subs.sed
36154cat >>$CONFIG_STATUS <<_ACEOF
36155CEOF$ac_eof
36156_ACEOF
36157
36158
36159ac_delim='%!_!# '
36160for ac_last_try in false false false false false :; do
36161 cat >conf$$subs.sed <<_ACEOF
36162user_path!$user_path$ac_delim
36163piddir!$piddir$ac_delim
36164TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
36165TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim
36166UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim
36167LIBOBJS!$LIBOBJS$ac_delim
36168LTLIBOBJS!$LTLIBOBJS$ac_delim
36169_ACEOF
36170
36171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
36172 break
36173 elif $ac_last_try; then
36174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36175echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36176 { (exit 1); exit 1; }; }
36177 else
36178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36179 fi
36180done
36181
36182ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36183if test -n "$ac_eof"; then
36184 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36185 ac_eof=`expr $ac_eof + 1`
36186fi
36187
36188cat >>$CONFIG_STATUS <<_ACEOF
36189cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36191_ACEOF
36192sed '
36193s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36194s/^/s,@/; s/!/@,|#_!!_#|/
36195:n
36196t n
36197s/'"$ac_delim"'$/,g/; t
36198s/$/\\/; p
36199N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36200' >>$CONFIG_STATUS <conf$$subs.sed
36201rm -f conf$$subs.sed
36202cat >>$CONFIG_STATUS <<_ACEOF
36203:end
36204s/|#_!!_#|//g
36205CEOF$ac_eof
36206_ACEOF
36207
36208
36209# VPATH may cause trouble with some makes, so we remove $(srcdir),
36210# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36211# trailing colons and then remove the whole line if VPATH becomes empty
36212# (actually we leave an empty line to preserve line numbers).
36213if test "x$srcdir" = x.; then
36214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36215s/:*\$(srcdir):*/:/
36216s/:*\${srcdir}:*/:/
36217s/:*@srcdir@:*/:/
36218s/^\([^=]*=[ ]*\):*/\1/
36219s/:*$//
36220s/^[^=]*=[ ]*$//
36221}'
36222fi
36223
36224cat >>$CONFIG_STATUS <<\_ACEOF
36225fi # test -n "$CONFIG_FILES"
36226
36227
36228for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
36229do
36230 case $ac_tag in
36231 :[FHLC]) ac_mode=$ac_tag; continue;;
36232 esac
36233 case $ac_mode$ac_tag in
36234 :[FHL]*:*);;
36235 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36236echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36237 { (exit 1); exit 1; }; };;
36238 :[FH]-) ac_tag=-:-;;
36239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36240 esac
36241 ac_save_IFS=$IFS
36242 IFS=:
36243 set x $ac_tag
36244 IFS=$ac_save_IFS
36245 shift
36246 ac_file=$1
36247 shift
36248
36249 case $ac_mode in
36250 :L) ac_source=$1;;
36251 :[FH])
36252 ac_file_inputs=
36253 for ac_f
36254 do
36255 case $ac_f in
36256 -) ac_f="$tmp/stdin";;
36257 *) # Look for the file first in the build tree, then in the source tree
36258 # (if the path is not absolute). The absolute path cannot be DOS-style,
36259 # because $ac_f cannot contain `:'.
36260 test -f "$ac_f" ||
36261 case $ac_f in
36262 [\\/$]*) false;;
36263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36264 esac ||
36265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36266echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36267 { (exit 1); exit 1; }; };;
36268 esac
36269 ac_file_inputs="$ac_file_inputs $ac_f"
36270 done
36271
36272 # Let's still pretend it is `configure' which instantiates (i.e., don't
36273 # use $as_me), people would be surprised to read:
36274 # /* config.h. Generated by config.status. */
36275 configure_input="Generated from "`IFS=:
36276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36277 if test x"$ac_file" != x-; then
36278 configure_input="$ac_file. $configure_input"
36279 { echo "$as_me:$LINENO: creating $ac_file" >&5
36280echo "$as_me: creating $ac_file" >&6;}
36281 fi
36282
36283 case $ac_tag in
36284 *:-:* | *:-) cat >"$tmp/stdin";;
36285 esac
36286 ;;
36287 esac
36288
36289 ac_dir=`$as_dirname -- "$ac_file" ||
36290$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36291 X"$ac_file" : 'X\(//\)[^/]' \| \
36292 X"$ac_file" : 'X\(//\)$' \| \
36293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36294echo X"$ac_file" |
36295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36296 s//\1/
36297 q
36298 }
36299 /^X\(\/\/\)[^/].*/{
36300 s//\1/
36301 q
36302 }
36303 /^X\(\/\/\)$/{
36304 s//\1/
36305 q
36306 }
36307 /^X\(\/\).*/{
36308 s//\1/
36309 q
36310 }
36311 s/.*/./; q'`
36312 { as_dir="$ac_dir"
36313 case $as_dir in #(
36314 -*) as_dir=./$as_dir;;
36315 esac
36316 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36317 as_dirs=
36318 while :; do
36319 case $as_dir in #(
36320 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36321 *) as_qdir=$as_dir;;
36322 esac
36323 as_dirs="'$as_qdir' $as_dirs"
36324 as_dir=`$as_dirname -- "$as_dir" ||
36325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36326 X"$as_dir" : 'X\(//\)[^/]' \| \
36327 X"$as_dir" : 'X\(//\)$' \| \
36328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36329echo X"$as_dir" |
36330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36331 s//\1/
36332 q
36333 }
36334 /^X\(\/\/\)[^/].*/{
36335 s//\1/
36336 q
36337 }
36338 /^X\(\/\/\)$/{
36339 s//\1/
36340 q
36341 }
36342 /^X\(\/\).*/{
36343 s//\1/
36344 q
36345 }
36346 s/.*/./; q'`
36347 test -d "$as_dir" && break
36348 done
36349 test -z "$as_dirs" || eval "mkdir $as_dirs"
36350 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36351echo "$as_me: error: cannot create directory $as_dir" >&2;}
36352 { (exit 1); exit 1; }; }; }
36353 ac_builddir=.
36354
36355case "$ac_dir" in
36356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36357*)
36358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36359 # A ".." for each directory in $ac_dir_suffix.
36360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36361 case $ac_top_builddir_sub in
36362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36364 esac ;;
36365esac
36366ac_abs_top_builddir=$ac_pwd
36367ac_abs_builddir=$ac_pwd$ac_dir_suffix
36368# for backward compatibility:
36369ac_top_builddir=$ac_top_build_prefix
36370
36371case $srcdir in
36372 .) # We are building in place.
36373 ac_srcdir=.
36374 ac_top_srcdir=$ac_top_builddir_sub
36375 ac_abs_top_srcdir=$ac_pwd ;;
36376 [\\/]* | ?:[\\/]* ) # Absolute name.
36377 ac_srcdir=$srcdir$ac_dir_suffix;
36378 ac_top_srcdir=$srcdir
36379 ac_abs_top_srcdir=$srcdir ;;
36380 *) # Relative name.
36381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36382 ac_top_srcdir=$ac_top_build_prefix$srcdir
36383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36384esac
36385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36386
36387
36388 case $ac_mode in
36389 :F)
36390 #
36391 # CONFIG_FILE
36392 #
36393
36394 case $INSTALL in
36395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36397 esac
36398_ACEOF
36399
36400cat >>$CONFIG_STATUS <<\_ACEOF
36401# If the template does not know about datarootdir, expand it.
36402# FIXME: This hack should be removed a few years after 2.60.
36403ac_datarootdir_hack=; ac_datarootdir_seen=
36404
36405case `sed -n '/datarootdir/ {
36406 p
36407 q
36408}
36409/@datadir@/p
36410/@docdir@/p
36411/@infodir@/p
36412/@localedir@/p
36413/@mandir@/p
36414' $ac_file_inputs` in
36415*datarootdir*) ac_datarootdir_seen=yes;;
36416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36418echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36419_ACEOF
36420cat >>$CONFIG_STATUS <<_ACEOF
36421 ac_datarootdir_hack='
36422 s&@datadir@&$datadir&g
36423 s&@docdir@&$docdir&g
36424 s&@infodir@&$infodir&g
36425 s&@localedir@&$localedir&g
36426 s&@mandir@&$mandir&g
36427 s&\\\${datarootdir}&$datarootdir&g' ;;
36428esac
36429_ACEOF
36430
36431# Neutralize VPATH when `$srcdir' = `.'.
36432# Shell code in configure.ac might set extrasub.
36433# FIXME: do we really want to maintain this feature?
36434cat >>$CONFIG_STATUS <<_ACEOF
36435 sed "$ac_vpsub
36436$extrasub
36437_ACEOF
36438cat >>$CONFIG_STATUS <<\_ACEOF
36439:t
36440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36441s&@configure_input@&$configure_input&;t t
36442s&@top_builddir@&$ac_top_builddir_sub&;t t
36443s&@srcdir@&$ac_srcdir&;t t
36444s&@abs_srcdir@&$ac_abs_srcdir&;t t
36445s&@top_srcdir@&$ac_top_srcdir&;t t
36446s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36447s&@builddir@&$ac_builddir&;t t
36448s&@abs_builddir@&$ac_abs_builddir&;t t
36449s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36450s&@INSTALL@&$ac_INSTALL&;t t
36451$ac_datarootdir_hack
36452" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36453
36454test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36458which seems to be undefined. Please make sure it is defined." >&5
36459echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36460which seems to be undefined. Please make sure it is defined." >&2;}
36461
36462 rm -f "$tmp/stdin"
36463 case $ac_file in
36464 -) cat "$tmp/out"; rm -f "$tmp/out";;
36465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36466 esac
36467 ;;
36468 :H)
36469 #
36470 # CONFIG_HEADER
36471 #
36472_ACEOF
36473
36474# Transform confdefs.h into a sed script `conftest.defines', that
36475# substitutes the proper values into config.h.in to produce config.h.
36476rm -f conftest.defines conftest.tail
36477# First, append a space to every undef/define line, to ease matching.
36478echo 's/$/ /' >conftest.defines
36479# Then, protect against being on the right side of a sed subst, or in
36480# an unquoted here document, in config.status. If some macros were
36481# called several times there might be several #defines for the same
36482# symbol, which is useless. But do not sort them, since the last
36483# AC_DEFINE must be honored.
36484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36485# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36486# NAME is the cpp macro being defined, VALUE is the value it is being given.
36487# PARAMS is the parameter list in the macro definition--in most cases, it's
36488# just an empty string.
36489ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36490ac_dB='\\)[ (].*,\\1define\\2'
36491ac_dC=' '
36492ac_dD=' ,'
36493
36494uniq confdefs.h |
36495 sed -n '
36496 t rset
36497 :rset
36498 s/^[ ]*#[ ]*define[ ][ ]*//
36499 t ok
36500 d
36501 :ok
36502 s/[\\&,]/\\&/g
36503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36505 ' >>conftest.defines
36506
36507# Remove the space that was appended to ease matching.
36508# Then replace #undef with comments. This is necessary, for
36509# example, in the case of _POSIX_SOURCE, which is predefined and required
36510# on some systems where configure will not decide to define it.
36511# (The regexp can be short, since the line contains either #define or #undef.)
36512echo 's/ $//
36513s,^[ #]*u.*,/* & */,' >>conftest.defines
36514
36515# Break up conftest.defines:
36516ac_max_sed_lines=50
36517
36518# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36519# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36520# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36521# et cetera.
36522ac_in='$ac_file_inputs'
36523ac_out='"$tmp/out1"'
36524ac_nxt='"$tmp/out2"'
36525
36526while :
36527do
36528 # Write a here document:
36529 cat >>$CONFIG_STATUS <<_ACEOF
36530 # First, check the format of the line:
36531 cat >"\$tmp/defines.sed" <<\\CEOF
36532/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36533/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36534b
36535:def
36536_ACEOF
36537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36538 echo 'CEOF
36539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36542 grep . conftest.tail >/dev/null || break
36543 rm -f conftest.defines
36544 mv conftest.tail conftest.defines
36545done
36546rm -f conftest.defines conftest.tail
36547
36548echo "ac_result=$ac_in" >>$CONFIG_STATUS
36549cat >>$CONFIG_STATUS <<\_ACEOF
36550 if test x"$ac_file" != x-; then
36551 echo "/* $configure_input */" >"$tmp/config.h"
36552 cat "$ac_result" >>"$tmp/config.h"
36553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36555echo "$as_me: $ac_file is unchanged" >&6;}
36556 else
36557 rm -f $ac_file
36558 mv "$tmp/config.h" $ac_file
36559 fi
36560 else
36561 echo "/* $configure_input */"
36562 cat "$ac_result"
36563 fi
36564 rm -f "$tmp/out12"
36565 ;;
36566
36567
36568 esac
36569
36570done # for ac_tag
36571
36572
36573{ (exit 0); exit 0; }
36574_ACEOF
36575chmod +x $CONFIG_STATUS
36576ac_clean_files=$ac_clean_files_save
36577
36578
36579# configure is writing to config.log, and then calls config.status.
36580# config.status does its own redirection, appending to config.log.
36581# Unfortunately, on DOS this fails, as config.log is still kept open
36582# by configure, so config.status won't be able to write to it; its
36583# output is simply discarded. So we exec the FD to /dev/null,
36584# effectively closing config.log, so it can be properly (re)opened and
36585# appended to by config.status. When coming back to configure, we
36586# need to make the FD available again.
36587if test "$no_create" != yes; then
36588 ac_cs_success=:
36589 ac_config_status_args=
36590 test "$silent" = yes &&
36591 ac_config_status_args="$ac_config_status_args --quiet"
36592 exec 5>/dev/null
36593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36594 exec 5>>config.log
36595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36596 # would make configure fail if this is the last instruction.
36597 $ac_cs_success || { (exit 1); exit 1; }
36598fi
36599
36600
36601# Print summary of options
36602
36603# Someone please show me a better way :)
36604A=`eval echo ${prefix}` ; A=`eval echo ${A}`
36605B=`eval echo ${bindir}` ; B=`eval echo ${B}`
36606C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
36607D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
36608E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
36609F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
36610G=`eval echo ${piddir}` ; G=`eval echo ${G}`
36611H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
36612I=`eval echo ${user_path}` ; I=`eval echo ${I}`
36613J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
36614
36615echo ""
36616echo "OpenSSH has been configured with the following options:"
36617echo " User binaries: $B"
36618echo " System binaries: $C"
36619echo " Configuration files: $D"
36620echo " Askpass program: $E"
36621echo " Manual pages: $F"
36622echo " PID file: $G"
36623echo " Privilege separation chroot path: $H"
36624if test "x$external_path_file" = "x/etc/login.conf" ; then
36625echo " At runtime, sshd will use the path defined in $external_path_file"
36626echo " Make sure the path to scp is present, otherwise scp will not work"
36627else
36628echo " sshd default user PATH: $I"
36629 if test ! -z "$external_path_file"; then
36630echo " (If PATH is set in $external_path_file it will be used instead. If"
36631echo " used, ensure the path to scp is present, otherwise scp will not work.)"
36632 fi
36633fi
36634if test ! -z "$superuser_path" ; then
36635echo " sshd superuser user PATH: $J"
36636fi
36637echo " Manpage format: $MANTYPE"
36638echo " PAM support: $PAM_MSG"
36639echo " OSF SIA support: $SIA_MSG"
36640echo " KerberosV support: $KRB5_MSG"
36641echo " SELinux support: $SELINUX_MSG"
36642echo " Smartcard support: $SCARD_MSG"
36643echo " S/KEY support: $SKEY_MSG"
36644echo " MD5 password support: $MD5_MSG"
36645echo " libedit support: $LIBEDIT_MSG"
36646echo " Solaris process contract support: $SPC_MSG"
36647echo " Solaris project support: $SP_MSG"
36648echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
36649echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
36650echo " BSD Auth support: $BSD_AUTH_MSG"
36651echo " Random number source: $RAND_MSG"
36652echo " Privsep sandbox style: $SANDBOX_STYLE"
36653
36654echo ""
36655
36656echo " Host: ${host}"
36657echo " Compiler: ${CC}"
36658echo " Compiler flags: ${CFLAGS}"
36659echo "Preprocessor flags: ${CPPFLAGS}"
36660echo " Linker flags: ${LDFLAGS}"
36661echo " Libraries: ${LIBS}"
36662if test ! -z "${SSHDLIBS}"; then
36663echo " +for sshd: ${SSHDLIBS}"
36664fi
36665if test ! -z "${SSHLIBS}"; then
36666echo " +for ssh: ${SSHLIBS}"
36667fi
36668
36669echo ""
36670
36671if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
36672 echo "SVR4 style packages are supported with \"make package\""
36673 echo ""
36674fi
36675
36676if test "x$PAM_MSG" = "xyes" ; then
36677 echo "PAM is enabled. You may need to install a PAM control file "
36678 echo "for sshd, otherwise password authentication may fail. "
36679 echo "Example PAM control files can be found in the contrib/ "
36680 echo "subdirectory"
36681 echo ""
36682fi
36683
36684if test ! -z "$NO_PEERCHECK" ; then
36685 echo "WARNING: the operating system that you are using does not"
36686 echo "appear to support getpeereid(), getpeerucred() or the"
36687 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
36688 echo "enforce security checks to prevent unauthorised connections to"
36689 echo "ssh-agent. Their absence increases the risk that a malicious"
36690 echo "user can connect to your agent."
36691 echo ""
36692fi
36693
36694if test "$AUDIT_MODULE" = "bsm" ; then
36695 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
36696 echo "See the Solaris section in README.platform for details."
36697fi