]> andersk Git - gssapi-openssh.git/blame - openssh/configure
The man2html from jbasney on pkilab2 works whereas the standard one doesn't.
[gssapi-openssh.git] / openssh / configure
CommitLineData
317e5d15 1#! /bin/sh
2# From configure.ac Revision: 1.367 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.60 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 Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26fi
27BIN_SH=xpg4; export BIN_SH # for Tru64
28DUALCASE=1; export DUALCASE # for MKS sh
29
30
31# PATH needs CR
32# Avoid depending upon Character Ranges.
33as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36as_cr_digits='0123456789'
37as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39# The user is always right.
40if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50fi
51
52# Support unset when possible.
53if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55else
56 as_unset=false
57fi
58
59
60# IFS
61# We need space, tab and new line, in precisely that order. Quoting is
62# there to prevent editors from complaining about space-tab.
63# (If _AS_PATH_WALK were called with IFS unset, it would disable word
64# splitting by setting IFS to empty value.)
65as_nl='
66'
67IFS=" "" $as_nl"
68
69# Find who we are. Look in the path if we contain no directory separator.
70case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73for as_dir in $PATH
74do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78done
79IFS=$as_save_IFS
80
81 ;;
82esac
83# We did not find ourselves, most probably we were run as `sh COMMAND'
84# in which case we are not to be found in the path.
85if test "x$as_myself" = x; then
86 as_myself=$0
87fi
88if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91fi
92
93# Work around bugs in pre-3.0 UWIN ksh.
94for as_var in ENV MAIL MAILPATH
95do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96done
97PS1='$ '
98PS2='> '
99PS4='+ '
100
101# NLS nuisances.
102for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 fi
112done
113
114# Required to use basename.
115if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118else
119 as_expr=false
120fi
121
122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124else
125 as_basename=false
126fi
127
128
129# Name of the executable.
130as_me=`$as_basename -- "$0" ||
131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149# CDPATH.
150$as_unset CDPATH
151
152
153if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156else
157 as_have_required=no
158fi
159
160 if test $as_have_required = yes && (eval ":
161(as_func_return () {
162 (exit \$1)
163}
164as_func_success () {
165 as_func_return 0
166}
167as_func_failure () {
168 as_func_return 1
169}
170as_func_ret_success () {
171 return 0
172}
173as_func_ret_failure () {
174 return 1
175}
176
177exitcode=0
178if as_func_success; then
179 :
180else
181 exitcode=1
182 echo as_func_success failed.
183fi
184
185if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188fi
189
190if as_func_ret_success; then
191 :
192else
193 exitcode=1
194 echo as_func_ret_success failed.
195fi
196
197if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200fi
201
202if (set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204else
205 exitcode=1
206 echo positional parameters were not saved.
207fi
208
209test \$exitcode = 0) || { (exit 1); exit 1; }
210
211(
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216") 2> /dev/null; then
217 :
218else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231done
232IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239# Be Bourne compatible
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249fi
250BIN_SH=xpg4; export BIN_SH # for Tru64
251DUALCASE=1; export DUALCASE # for MKS sh
252
253:
254_ASEOF
255}; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259# Be Bourne compatible
260if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269fi
270BIN_SH=xpg4; export BIN_SH # for Tru64
271DUALCASE=1; export DUALCASE # for MKS sh
272
273:
274(as_func_return () {
275 (exit $1)
276}
277as_func_success () {
278 as_func_return 0
279}
280as_func_failure () {
281 as_func_return 1
282}
283as_func_ret_success () {
284 return 0
285}
286as_func_ret_failure () {
287 return 1
288}
289
290exitcode=0
291if as_func_success; then
292 :
293else
294 exitcode=1
295 echo as_func_success failed.
296fi
297
298if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
301fi
302
303if as_func_ret_success; then
304 :
305else
306 exitcode=1
307 echo as_func_ret_success failed.
308fi
309
310if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
313fi
314
315if ( set x; as_func_ret_success y && test x = "$1" ); then
316 :
317else
318 exitcode=1
319 echo positional parameters were not saved.
320fi
321
322test $exitcode = 0) || { (exit 1); exit 1; }
323
324(
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330_ASEOF
331}; then
332 break
333fi
334
335fi
336
337 done
338
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345fi
346
347
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
354fi
355
356
357fi
358
359fi
360
361
362
363(eval "as_func_return () {
364 (exit \$1)
365}
366as_func_success () {
367 as_func_return 0
368}
369as_func_failure () {
370 as_func_return 1
371}
372as_func_ret_success () {
373 return 0
374}
375as_func_ret_failure () {
376 return 1
377}
378
379exitcode=0
380if as_func_success; then
381 :
382else
383 exitcode=1
384 echo as_func_success failed.
385fi
386
387if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
390fi
391
392if as_func_ret_success; then
393 :
394else
395 exitcode=1
396 echo as_func_ret_success failed.
397fi
398
399if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
402fi
403
404if (set x; as_func_ret_success y && test x = \"\$1\" ); then
405 :
406else
407 exitcode=1
408 echo positional parameters were not saved.
409fi
410
411test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
416}
417
418
419
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
460}
461
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465else
466 as_dirname=false
467fi
468
469ECHO_C= ECHO_N= ECHO_T=
470case `echo -n x` in
471-n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
476*)
477 ECHO_N='-n';;
478esac
479
480if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
482 as_expr=expr
483else
484 as_expr=false
485fi
486
487rm -f conf$$ conf$$.exe conf$$.file
488if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
493fi
494echo >conf$$.file
495if ln -s conf$$.file conf$$ 2>/dev/null; then
496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 as_ln_s='cp -p'
503elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518# Find out whether ``test -x'' works. Don't use a zero-byte file, as
519# systems may use methods other than mode bits to determine executability.
520cat >conf$$.file <<_ASEOF
521#! /bin/sh
522exit 0
523_ASEOF
524chmod +x conf$$.file
525if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527else
528 as_executable_p=:
529fi
530rm -f conf$$.file
531
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540exec 7<&0 </dev/null 6>&1
541
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558SHELL=${CONFIG_SHELL-/bin/sh}
559
560# Identity of this package.
561PACKAGE_NAME='OpenSSH'
562PACKAGE_TARNAME='openssh'
563PACKAGE_VERSION='Portable'
564PACKAGE_STRING='OpenSSH Portable'
565PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
566
567ac_unique_file="ssh.c"
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
571#if HAVE_SYS_TYPES_H
572# include <sys/types.h>
573#endif
574#if HAVE_SYS_STAT_H
575# include <sys/stat.h>
576#endif
577#if STDC_HEADERS
578# include <stdlib.h>
579# include <stddef.h>
580#else
581# if HAVE_STDLIB_H
582# include <stdlib.h>
583# endif
584#endif
585#if HAVE_STRING_H
586# if !STDC_HEADERS && HAVE_MEMORY_H
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
591#if HAVE_STRINGS_H
592# include <strings.h>
593#endif
594#if HAVE_INTTYPES_H
595# include <inttypes.h>
596#endif
597#if HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#if HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
604ac_subst_vars='SHELL
605PATH_SEPARATOR
606PACKAGE_NAME
607PACKAGE_TARNAME
608PACKAGE_VERSION
609PACKAGE_STRING
610PACKAGE_BUGREPORT
611exec_prefix
612prefix
613program_transform_name
614bindir
615sbindir
616libexecdir
617datarootdir
618datadir
619sysconfdir
620sharedstatedir
621localstatedir
622includedir
623oldincludedir
624docdir
625infodir
626htmldir
627dvidir
628pdfdir
629psdir
630libdir
631localedir
632mandir
633DEFS
634ECHO_C
635ECHO_N
636ECHO_T
637LIBS
638build_alias
639host_alias
640target_alias
641CC
642CFLAGS
643LDFLAGS
644CPPFLAGS
645ac_ct_CC
646EXEEXT
647OBJEXT
648build
649build_cpu
650build_vendor
651build_os
652host
653host_cpu
654host_vendor
655host_os
656CPP
657GREP
658EGREP
659AWK
660RANLIB
661INSTALL_PROGRAM
662INSTALL_SCRIPT
663INSTALL_DATA
664AR
665CAT
666KILL
667PERL
668SED
669ENT
670TEST_MINUS_S_SH
671SH
672TEST_SHELL
673PATH_GROUPADD_PROG
674PATH_USERADD_PROG
675MAKE_PACKAGE_SUPPORTED
676STARTUP_SCRIPT_SHELL
677LOGIN_PROGRAM_FALLBACK
678PATH_PASSWD_PROG
679LD
680SSHDLIBS
681LIBWRAP
682LIBEDIT
683LIBPAM
684INSTALL_SSH_RAND_HELPER
685SSH_PRIVSEP_USER
686PROG_LS
687PROG_NETSTAT
688PROG_ARP
689PROG_IFCONFIG
690PROG_JSTAT
691PROG_PS
692PROG_SAR
693PROG_W
694PROG_WHO
695PROG_LAST
696PROG_LASTLOG
697PROG_DF
698PROG_VMSTAT
699PROG_UPTIME
700PROG_IPCS
701PROG_TAIL
702INSTALL_SSH_PRNG_CMDS
703OPENSC_CONFIG
704LIBSELINUX
705PRIVSEP_PATH
706xauth_path
707STRIP_OPT
708XAUTH_PATH
709NROFF
710MANTYPE
711mansubdir
712user_path
713piddir
714LIBOBJS
715LTLIBOBJS'
716ac_subst_files=''
717 ac_precious_vars='build_alias
718host_alias
719target_alias
720CC
721CFLAGS
722LDFLAGS
723CPPFLAGS
724CPP'
725
726
727# Initialize some variables set by options.
728ac_init_help=
729ac_init_version=false
730# The variables have the same names as the options, with
731# dashes changed to underlines.
732cache_file=/dev/null
733exec_prefix=NONE
734no_create=
735no_recursion=
736prefix=NONE
737program_prefix=NONE
738program_suffix=NONE
739program_transform_name=s,x,x,
740silent=
741site=
742srcdir=
743verbose=
744x_includes=NONE
745x_libraries=NONE
746
747# Installation directory options.
748# These are left unexpanded so users can "make install exec_prefix=/foo"
749# and all the variables that are supposed to be based on exec_prefix
750# by default will actually change.
751# Use braces instead of parens because sh, perl, etc. also accept them.
752# (The list follows the same order as the GNU Coding Standards.)
753bindir='${exec_prefix}/bin'
754sbindir='${exec_prefix}/sbin'
755libexecdir='${exec_prefix}/libexec'
756datarootdir='${prefix}/share'
757datadir='${datarootdir}'
758sysconfdir='${prefix}/etc'
759sharedstatedir='${prefix}/com'
760localstatedir='${prefix}/var'
761includedir='${prefix}/include'
762oldincludedir='/usr/include'
763docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764infodir='${datarootdir}/info'
765htmldir='${docdir}'
766dvidir='${docdir}'
767pdfdir='${docdir}'
768psdir='${docdir}'
769libdir='${exec_prefix}/lib'
770localedir='${datarootdir}/locale'
771mandir='${datarootdir}/man'
772
773ac_prev=
774ac_dashdash=
775for ac_option
776do
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
780 ac_prev=
781 continue
782 fi
783
784 case $ac_option in
785 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *) ac_optarg=yes ;;
787 esac
788
789 # Accept the important Cygnus configure options, so we can diagnose typos.
790
791 case $ac_dashdash$ac_option in
792 --)
793 ac_dashdash=yes ;;
794
795 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 ac_prev=bindir ;;
797 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798 bindir=$ac_optarg ;;
799
800 -build | --build | --buil | --bui | --bu)
801 ac_prev=build_alias ;;
802 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803 build_alias=$ac_optarg ;;
804
805 -cache-file | --cache-file | --cache-fil | --cache-fi \
806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807 ac_prev=cache_file ;;
808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810 cache_file=$ac_optarg ;;
811
812 --config-cache | -C)
813 cache_file=config.cache ;;
814
815 -datadir | --datadir | --datadi | --datad)
816 ac_prev=datadir ;;
817 -datadir=* | --datadir=* | --datadi=* | --datad=*)
818 datadir=$ac_optarg ;;
819
820 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821 | --dataroo | --dataro | --datar)
822 ac_prev=datarootdir ;;
823 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825 datarootdir=$ac_optarg ;;
826
827 -disable-* | --disable-*)
828 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
831 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832 { (exit 1); exit 1; }; }
833 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
834 eval enable_$ac_feature=no ;;
835
836 -docdir | --docdir | --docdi | --doc | --do)
837 ac_prev=docdir ;;
838 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839 docdir=$ac_optarg ;;
840
841 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 ac_prev=dvidir ;;
843 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844 dvidir=$ac_optarg ;;
845
846 -enable-* | --enable-*)
847 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
850 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
851 { (exit 1); exit 1; }; }
852 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
853 eval enable_$ac_feature=\$ac_optarg ;;
854
855 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857 | --exec | --exe | --ex)
858 ac_prev=exec_prefix ;;
859 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861 | --exec=* | --exe=* | --ex=*)
862 exec_prefix=$ac_optarg ;;
863
864 -gas | --gas | --ga | --g)
865 # Obsolete; use --with-gas.
866 with_gas=yes ;;
867
868 -help | --help | --hel | --he | -h)
869 ac_init_help=long ;;
870 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871 ac_init_help=recursive ;;
872 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873 ac_init_help=short ;;
874
875 -host | --host | --hos | --ho)
876 ac_prev=host_alias ;;
877 -host=* | --host=* | --hos=* | --ho=*)
878 host_alias=$ac_optarg ;;
879
880 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881 ac_prev=htmldir ;;
882 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883 | --ht=*)
884 htmldir=$ac_optarg ;;
885
886 -includedir | --includedir | --includedi | --included | --include \
887 | --includ | --inclu | --incl | --inc)
888 ac_prev=includedir ;;
889 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890 | --includ=* | --inclu=* | --incl=* | --inc=*)
891 includedir=$ac_optarg ;;
892
893 -infodir | --infodir | --infodi | --infod | --info | --inf)
894 ac_prev=infodir ;;
895 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896 infodir=$ac_optarg ;;
897
898 -libdir | --libdir | --libdi | --libd)
899 ac_prev=libdir ;;
900 -libdir=* | --libdir=* | --libdi=* | --libd=*)
901 libdir=$ac_optarg ;;
902
903 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904 | --libexe | --libex | --libe)
905 ac_prev=libexecdir ;;
906 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907 | --libexe=* | --libex=* | --libe=*)
908 libexecdir=$ac_optarg ;;
909
910 -localedir | --localedir | --localedi | --localed | --locale)
911 ac_prev=localedir ;;
912 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913 localedir=$ac_optarg ;;
914
915 -localstatedir | --localstatedir | --localstatedi | --localstated \
916 | --localstate | --localstat | --localsta | --localst | --locals)
917 ac_prev=localstatedir ;;
918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920 localstatedir=$ac_optarg ;;
921
922 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923 ac_prev=mandir ;;
924 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 mandir=$ac_optarg ;;
926
927 -nfp | --nfp | --nf)
928 # Obsolete; use --without-fp.
929 with_fp=no ;;
930
931 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932 | --no-cr | --no-c | -n)
933 no_create=yes ;;
934
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937 no_recursion=yes ;;
938
939 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941 | --oldin | --oldi | --old | --ol | --o)
942 ac_prev=oldincludedir ;;
943 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946 oldincludedir=$ac_optarg ;;
947
948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949 ac_prev=prefix ;;
950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951 prefix=$ac_optarg ;;
952
953 -program-prefix | --program-prefix | --program-prefi | --program-pref \
954 | --program-pre | --program-pr | --program-p)
955 ac_prev=program_prefix ;;
956 -program-prefix=* | --program-prefix=* | --program-prefi=* \
957 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958 program_prefix=$ac_optarg ;;
959
960 -program-suffix | --program-suffix | --program-suffi | --program-suff \
961 | --program-suf | --program-su | --program-s)
962 ac_prev=program_suffix ;;
963 -program-suffix=* | --program-suffix=* | --program-suffi=* \
964 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965 program_suffix=$ac_optarg ;;
966
967 -program-transform-name | --program-transform-name \
968 | --program-transform-nam | --program-transform-na \
969 | --program-transform-n | --program-transform- \
970 | --program-transform | --program-transfor \
971 | --program-transfo | --program-transf \
972 | --program-trans | --program-tran \
973 | --progr-tra | --program-tr | --program-t)
974 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
983
984 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985 ac_prev=pdfdir ;;
986 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987 pdfdir=$ac_optarg ;;
988
989 -psdir | --psdir | --psdi | --psd | --ps)
990 ac_prev=psdir ;;
991 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992 psdir=$ac_optarg ;;
993
994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995 | -silent | --silent | --silen | --sile | --sil)
996 silent=yes ;;
997
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 ac_prev=sbindir ;;
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 | --sbi=* | --sb=*)
1002 sbindir=$ac_optarg ;;
1003
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1007 | --sha | --sh)
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 | --sha=* | --sh=*)
1013 sharedstatedir=$ac_optarg ;;
1014
1015 -site | --site | --sit)
1016 ac_prev=site ;;
1017 -site=* | --site=* | --sit=*)
1018 site=$ac_optarg ;;
1019
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 ac_prev=srcdir ;;
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1024
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1031
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1036
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038 verbose=yes ;;
1039
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1042
1043 -with-* | --with-*)
1044 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package=`echo $ac_package| sed 's/-/_/g'`
1050 eval with_$ac_package=\$ac_optarg ;;
1051
1052 -without-* | --without-*)
1053 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package | sed 's/-/_/g'`
1059 eval with_$ac_package=no ;;
1060
1061 --x)
1062 # Obsolete; use --with-x.
1063 with_x=yes ;;
1064
1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066 | --x-incl | --x-inc | --x-in | --x-i)
1067 ac_prev=x_includes ;;
1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070 x_includes=$ac_optarg ;;
1071
1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074 ac_prev=x_libraries ;;
1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077 x_libraries=$ac_optarg ;;
1078
1079 -*) { echo "$as_me: error: unrecognized option: $ac_option
1080Try \`$0 --help' for more information." >&2
1081 { (exit 1); exit 1; }; }
1082 ;;
1083
1084 *=*)
1085 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1089 { (exit 1); exit 1; }; }
1090 eval $ac_envvar=\$ac_optarg
1091 export $ac_envvar ;;
1092
1093 *)
1094 # FIXME: should be removed in autoconf 3.0.
1095 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1099 ;;
1100
1101 esac
1102done
1103
1104if test -n "$ac_prev"; then
1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106 { echo "$as_me: error: missing argument to $ac_option" >&2
1107 { (exit 1); exit 1; }; }
1108fi
1109
1110# Be sure to have absolute directory names.
1111for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112 datadir sysconfdir sharedstatedir localstatedir includedir \
1113 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114 libdir localedir mandir
1115do
1116 eval ac_val=\$$ac_var
1117 case $ac_val in
1118 [\\/$]* | ?:[\\/]* ) continue;;
1119 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120 esac
1121 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1122 { (exit 1); exit 1; }; }
1123done
1124
1125# There might be people who depend on the old broken behavior: `$host'
1126# used to hold the argument of --host etc.
1127# FIXME: To remove some day.
1128build=$build_alias
1129host=$host_alias
1130target=$target_alias
1131
1132# FIXME: To remove some day.
1133if test "x$host_alias" != x; then
1134 if test "x$build_alias" = x; then
1135 cross_compiling=maybe
1136 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137 If a cross compiler is detected then cross compile mode will be used." >&2
1138 elif test "x$build_alias" != "x$host_alias"; then
1139 cross_compiling=yes
1140 fi
1141fi
1142
1143ac_tool_prefix=
1144test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145
1146test "$silent" = yes && exec 6>/dev/null
1147
1148
1149ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150ac_ls_di=`ls -di .` &&
1151ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152 { echo "$as_me: error: Working directory cannot be determined" >&2
1153 { (exit 1); exit 1; }; }
1154test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 { echo "$as_me: error: pwd does not report name of working directory" >&2
1156 { (exit 1); exit 1; }; }
1157
1158
1159# Find the source files, if location was not specified.
1160if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$0" ||
1164$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$0" : 'X\(//\)[^/]' \| \
1166 X"$0" : 'X\(//\)$' \| \
1167 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168echo X"$0" |
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\/\)[^/].*/{
1174 s//\1/
1175 q
1176 }
1177 /^X\(\/\/\)$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\).*/{
1182 s//\1/
1183 q
1184 }
1185 s/.*/./; q'`
1186 srcdir=$ac_confdir
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1188 srcdir=..
1189 fi
1190else
1191 ac_srcdir_defaulted=no
1192fi
1193if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1196 { (exit 1); exit 1; }; }
1197fi
1198ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199ac_abs_confdir=`(
1200 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1201 { (exit 1); exit 1; }; }
1202 pwd)`
1203# When building in place, set srcdir=.
1204if test "$ac_abs_confdir" = "$ac_pwd"; then
1205 srcdir=.
1206fi
1207# Remove unnecessary trailing slashes from srcdir.
1208# Double slashes in file names in object file debugging info
1209# mess up M-x gdb in Emacs.
1210case $srcdir in
1211*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212esac
1213for ac_var in $ac_precious_vars; do
1214 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_env_${ac_var}_value=\$${ac_var}
1216 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218done
1219
1220#
1221# Report the --help message.
1222#
1223if test "$ac_init_help" = "long"; then
1224 # Omit some internal or obsolete options to make the list less imposing.
1225 # This message is too long to be a string in the A/UX 3.1 sh.
1226 cat <<_ACEOF
1227\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1228
1229Usage: $0 [OPTION]... [VAR=VALUE]...
1230
1231To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232VAR=VALUE. See below for descriptions of some of the useful variables.
1233
1234Defaults for the options are specified in brackets.
1235
1236Configuration:
1237 -h, --help display this help and exit
1238 --help=short display options specific to this package
1239 --help=recursive display the short help of all the included packages
1240 -V, --version display version information and exit
1241 -q, --quiet, --silent do not print \`checking...' messages
1242 --cache-file=FILE cache test results in FILE [disabled]
1243 -C, --config-cache alias for \`--cache-file=config.cache'
1244 -n, --no-create do not create output files
1245 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246
1247Installation directories:
1248 --prefix=PREFIX install architecture-independent files in PREFIX
1249 [$ac_default_prefix]
1250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1251 [PREFIX]
1252
1253By default, \`make install' will install all the files in
1254\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1255an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256for instance \`--prefix=\$HOME'.
1257
1258For better control, use the options below.
1259
1260Fine tuning of the installation directories:
1261 --bindir=DIR user executables [EPREFIX/bin]
1262 --sbindir=DIR system admin executables [EPREFIX/sbin]
1263 --libexecdir=DIR program executables [EPREFIX/libexec]
1264 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1265 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1266 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1267 --libdir=DIR object code libraries [EPREFIX/lib]
1268 --includedir=DIR C header files [PREFIX/include]
1269 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1270 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1271 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1272 --infodir=DIR info documentation [DATAROOTDIR/info]
1273 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1274 --mandir=DIR man documentation [DATAROOTDIR/man]
1275 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1276 --htmldir=DIR html documentation [DOCDIR]
1277 --dvidir=DIR dvi documentation [DOCDIR]
1278 --pdfdir=DIR pdf documentation [DOCDIR]
1279 --psdir=DIR ps documentation [DOCDIR]
1280_ACEOF
1281
1282 cat <<\_ACEOF
1283
1284System types:
1285 --build=BUILD configure for building on BUILD [guessed]
1286 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1287_ACEOF
1288fi
1289
1290if test -n "$ac_init_help"; then
1291 case $ac_init_help in
1292 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1293 esac
1294 cat <<\_ACEOF
1295
1296Optional Features:
1297 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1298 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1299 --disable-largefile omit support for large files
1300 --disable-strip Disable calling strip(1) on install
1301 --disable-etc-default-login Disable using PATH from /etc/default/login no
1302 --disable-lastlog disable use of lastlog even if detected no
1303 --disable-utmp disable use of utmp even if detected no
1304 --disable-utmpx disable use of utmpx even if detected no
1305 --disable-wtmp disable use of wtmp even if detected no
1306 --disable-wtmpx disable use of wtmpx even if detected no
1307 --disable-libutil disable use of libutil (login() etc.) no
1308 --disable-pututline disable use of pututline() etc. (uwtmp) no
1309 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1310
1311Optional Packages:
1312 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1313 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1314 --without-rpath Disable auto-added -R linker paths
1315 --with-solaris-contracts Enable Solaris process contracts (experimental)
1316 --with-osfsia Enable Digital Unix SIA
1317 --with-cflags Specify additional flags to pass to compiler
1318 --with-cppflags Specify additional flags to pass to preprocessor
1319 --with-ldflags Specify additional flags to pass to linker
1320 --with-libs Specify additional libraries to link with
1321 --with-Werror Build main code with -Werror
1322 --with-zlib=PATH Use zlib in PATH
1323 --without-zlib-version-check Disable zlib version check
1324 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1325 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1326 --with-libedit[=PATH] Enable libedit support for sftp
1327 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1328 --with-ssl-dir=PATH Specify path to OpenSSL installation
1329 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1330 --with-pam Enable PAM support
1331 --with-rand-helper Use subprocess to gather strong randomness
1332 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1333 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1334 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1335 --with-privsep-user=user Specify non-privileged user for privilege separation
1336 --with-sectok Enable smartcard support using libsectok
1337 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1338 --with-selinux Enable SELinux support
1339 --with-kerberos5=PATH Enable Kerberos 5 support
1340 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1341 --with-xauth=PATH Specify path to xauth program
1342 --with-mantype=man|cat|doc Set man page type
1343 --with-md5-passwords Enable use of MD5 passwords
1344 --without-shadow Disable shadow password support
1345 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1346 --with-default-path= Specify default \$PATH environment for server
1347 --with-superuser-path= Specify different path for super-user
1348 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1349 --with-bsd-auth Enable BSD auth support
1350 --with-pid-dir=PATH Specify location of ssh.pid file
1351 --with-lastlog=FILE|DIR specify lastlog location common locations
1352
1353Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1359 you have headers in a nonstandard directory <include dir>
1360 CPP C preprocessor
1361
1362Use these variables to override the choices made by `configure' or to help
1363it to find libraries and programs with nonstandard names/locations.
1364
1365Report bugs to <openssh-unix-dev@mindrot.org>.
1366_ACEOF
1367ac_status=$?
1368fi
1369
1370if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1374 ac_builddir=.
1375
1376case "$ac_dir" in
1377.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378*)
1379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386esac
1387ac_abs_top_builddir=$ac_pwd
1388ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389# for backward compatibility:
1390ac_top_builddir=$ac_top_build_prefix
1391
1392case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405esac
1406ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1421fi
1422
1423test -n "$ac_init_help" && exit $ac_status
1424if $ac_init_version; then
1425 cat <<\_ACEOF
1426OpenSSH configure Portable
1427generated by GNU Autoconf 2.60
1428
1429Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14302002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431This configure script is free software; the Free Software Foundation
1432gives unlimited permission to copy, distribute and modify it.
1433_ACEOF
1434 exit
1435fi
1436cat >config.log <<_ACEOF
1437This file contains any messages produced by compilers while
1438running configure, to aid debugging if configure makes a mistake.
1439
1440It was created by OpenSSH $as_me Portable, which was
1441generated by GNU Autoconf 2.60. Invocation command line was
1442
1443 $ $0 $@
1444
1445_ACEOF
1446exec 5>>config.log
1447{
1448cat <<_ASUNAME
1449## --------- ##
1450## Platform. ##
1451## --------- ##
1452
1453hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458
1459/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461
1462/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1463/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1464/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1466/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1467/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1468/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469
1470_ASUNAME
1471
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1478done
1479IFS=$as_save_IFS
1480
1481} >&5
1482
1483cat >&5 <<_ACEOF
1484
1485
1486## ----------- ##
1487## Core tests. ##
1488## ----------- ##
1489
1490_ACEOF
1491
1492
1493# Keep a trace of the command line.
1494# Strip out --no-create and --no-recursion so they do not pile up.
1495# Strip out --silent because we don't want to record it for future runs.
1496# Also quote any args containing shell meta-characters.
1497# Make two passes to allow for proper duplicate-argument suppression.
1498ac_configure_args=
1499ac_configure_args0=
1500ac_configure_args1=
1501ac_must_keep_next=false
1502for ac_pass in 1 2
1503do
1504 for ac_arg
1505 do
1506 case $ac_arg in
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1510 continue ;;
1511 *\'*)
1512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1513 esac
1514 case $ac_pass in
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 2)
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1520 else
1521 case $ac_arg in
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 esac
1529 ;;
1530 -* ) ac_must_keep_next=true ;;
1531 esac
1532 fi
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 ;;
1535 esac
1536 done
1537done
1538$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540
1541# When interrupted or exit'd, cleanup temporary files, and complete
1542# config.log. We remove comments because anyway the quotes in there
1543# would cause problems or look ugly.
1544# WARNING: Use '\'' to represent an apostrophe within the trap.
1545# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1548 {
1549 echo
1550
1551 cat <<\_ASBOX
1552## ---------------- ##
1553## Cache variables. ##
1554## ---------------- ##
1555_ASBOX
1556 echo
1557 # The following way of writing the cache mishandles newlines in values,
1558(
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in #(
1562 *${as_nl}*)
1563 case $ac_var in #(
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 esac
1567 case $ac_var in #(
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1570 esac ;;
1571 esac
1572 done
1573 (set) 2>&1 |
1574 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1576 sed -n \
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 ;; #(
1580 *)
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 ;;
1583 esac |
1584 sort
1585)
1586 echo
1587
1588 cat <<\_ASBOX
1589## ----------------- ##
1590## Output variables. ##
1591## ----------------- ##
1592_ASBOX
1593 echo
1594 for ac_var in $ac_subst_vars
1595 do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 esac
1600 echo "$ac_var='\''$ac_val'\''"
1601 done | sort
1602 echo
1603
1604 if test -n "$ac_subst_files"; then
1605 cat <<\_ASBOX
1606## ------------------- ##
1607## File substitutions. ##
1608## ------------------- ##
1609_ASBOX
1610 echo
1611 for ac_var in $ac_subst_files
1612 do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1620 fi
1621
1622 if test -s confdefs.h; then
1623 cat <<\_ASBOX
1624## ----------- ##
1625## confdefs.h. ##
1626## ----------- ##
1627_ASBOX
1628 echo
1629 cat confdefs.h
1630 echo
1631 fi
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1635 } >&5
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 exit $exit_status
1639' 0
1640for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642done
1643ac_signal=0
1644
1645# confdefs.h avoids OS command line length limits that DEFS can exceed.
1646rm -f -r conftest* confdefs.h
1647
1648# Predefined preprocessor variables.
1649
1650cat >>confdefs.h <<_ACEOF
1651#define PACKAGE_NAME "$PACKAGE_NAME"
1652_ACEOF
1653
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define PACKAGE_VERSION "$PACKAGE_VERSION"
1662_ACEOF
1663
1664
1665cat >>confdefs.h <<_ACEOF
1666#define PACKAGE_STRING "$PACKAGE_STRING"
1667_ACEOF
1668
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672_ACEOF
1673
1674
1675# Let the site file select an alternate cache file if it wants to.
1676# Prefer explicitly selected file to automatically selected ones.
1677if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681else
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1684fi
1685shift
1686for ac_site_file
1687do
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1692 . "$ac_site_file"
1693 fi
1694done
1695
1696if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701echo "$as_me: loading cache $cache_file" >&6;}
1702 case $cache_file in
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1705 esac
1706 fi
1707else
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709echo "$as_me: creating cache $cache_file" >&6;}
1710 >$cache_file
1711fi
1712
1713# Check that the precious variables saved in the cache have kept the same
1714# value.
1715ac_cache_corrupted=false
1716for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1722 set,)
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1726 ,set)
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1730 ,);;
1731 *)
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1736echo "$as_me: former value: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1738echo "$as_me: current value: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1740 fi;;
1741 esac
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1744 case $ac_new_val in
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1747 esac
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1751 esac
1752 fi
1753done
1754if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1756echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1757 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1758echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1760fi
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786ac_ext=c
1787ac_cpp='$CPP $CPPFLAGS'
1788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791
1792
1793
1794
1795
1796ac_config_headers="$ac_config_headers config.h"
1797
1798ac_ext=c
1799ac_cpp='$CPP $CPPFLAGS'
1800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1805set dummy ${ac_tool_prefix}gcc; ac_word=$2
1806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1808if test "${ac_cv_prog_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1824 fi
1825done
1826done
1827IFS=$as_save_IFS
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833 { echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6; }
1835else
1836 { echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6; }
1838fi
1839
1840
1841fi
1842if test -z "$ac_cv_prog_CC"; then
1843 ac_ct_CC=$CC
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845set dummy gcc; ac_word=$2
1846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850else
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853else
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1861 ac_cv_prog_ac_ct_CC="gcc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1864 fi
1865done
1866done
1867IFS=$as_save_IFS
1868
1869fi
1870fi
1871ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872if test -n "$ac_ct_CC"; then
1873 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874echo "${ECHO_T}$ac_ct_CC" >&6; }
1875else
1876 { echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6; }
1878fi
1879
1880 if test "x$ac_ct_CC" = x; then
1881 CC=""
1882 else
1883 case $cross_compiling:$ac_tool_warned in
1884yes:)
1885{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1886whose name does not start with the host triplet. If you think this
1887configuration is useful to you, please write to autoconf@gnu.org." >&5
1888echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1889whose name does not start with the host triplet. If you think this
1890configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1891ac_tool_warned=yes ;;
1892esac
1893 CC=$ac_ct_CC
1894 fi
1895else
1896 CC="$ac_cv_prog_CC"
1897fi
1898
1899if test -z "$CC"; then
1900 if test -n "$ac_tool_prefix"; then
1901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1902set dummy ${ac_tool_prefix}cc; ac_word=$2
1903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1905if test "${ac_cv_prog_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1910else
1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1918 ac_cv_prog_CC="${ac_tool_prefix}cc"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922done
1923done
1924IFS=$as_save_IFS
1925
1926fi
1927fi
1928CC=$ac_cv_prog_CC
1929if test -n "$CC"; then
1930 { echo "$as_me:$LINENO: result: $CC" >&5
1931echo "${ECHO_T}$CC" >&6; }
1932else
1933 { echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6; }
1935fi
1936
1937
1938 fi
1939fi
1940if test -z "$CC"; then
1941 # Extract the first word of "cc", so it can be a program name with args.
1942set dummy cc; ac_word=$2
1943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1945if test "${ac_cv_prog_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 if test -n "$CC"; then
1949 ac_cv_prog_CC="$CC" # Let the user override the test.
1950else
1951 ac_prog_rejected=no
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1960 ac_prog_rejected=yes
1961 continue
1962 fi
1963 ac_cv_prog_CC="cc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1966 fi
1967done
1968done
1969IFS=$as_save_IFS
1970
1971if test $ac_prog_rejected = yes; then
1972 # We found a bogon in the path, so make sure we never use it.
1973 set dummy $ac_cv_prog_CC
1974 shift
1975 if test $# != 0; then
1976 # We chose a different compiler from the bogus one.
1977 # However, it has the same basename, so the bogon will be chosen
1978 # first if we set CC to just the basename; use the full file name.
1979 shift
1980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1981 fi
1982fi
1983fi
1984fi
1985CC=$ac_cv_prog_CC
1986if test -n "$CC"; then
1987 { echo "$as_me:$LINENO: result: $CC" >&5
1988echo "${ECHO_T}$CC" >&6; }
1989else
1990 { echo "$as_me:$LINENO: result: no" >&5
1991echo "${ECHO_T}no" >&6; }
1992fi
1993
1994
1995fi
1996if test -z "$CC"; then
1997 if test -n "$ac_tool_prefix"; then
1998 for ac_prog in cl.exe
1999 do
2000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2004if test "${ac_cv_prog_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2009else
2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 break 2
2020 fi
2021done
2022done
2023IFS=$as_save_IFS
2024
2025fi
2026fi
2027CC=$ac_cv_prog_CC
2028if test -n "$CC"; then
2029 { echo "$as_me:$LINENO: result: $CC" >&5
2030echo "${ECHO_T}$CC" >&6; }
2031else
2032 { echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6; }
2034fi
2035
2036
2037 test -n "$CC" && break
2038 done
2039fi
2040if test -z "$CC"; then
2041 ac_ct_CC=$CC
2042 for ac_prog in cl.exe
2043do
2044 # Extract the first word of "$ac_prog", so it can be a program name with args.
2045set dummy $ac_prog; ac_word=$2
2046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_prog_ac_ct_CC="$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2064 fi
2065done
2066done
2067IFS=$as_save_IFS
2068
2069fi
2070fi
2071ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072if test -n "$ac_ct_CC"; then
2073 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074echo "${ECHO_T}$ac_ct_CC" >&6; }
2075else
2076 { echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6; }
2078fi
2079
2080
2081 test -n "$ac_ct_CC" && break
2082done
2083
2084 if test "x$ac_ct_CC" = x; then
2085 CC=""
2086 else
2087 case $cross_compiling:$ac_tool_warned in
2088yes:)
2089{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2090whose name does not start with the host triplet. If you think this
2091configuration is useful to you, please write to autoconf@gnu.org." >&5
2092echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2093whose name does not start with the host triplet. If you think this
2094configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2095ac_tool_warned=yes ;;
2096esac
2097 CC=$ac_ct_CC
2098 fi
2099fi
2100
2101fi
2102
2103
2104test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: no acceptable C compiler found in \$PATH
2107See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2109
2110# Provide some information about the compiler.
2111echo "$as_me:$LINENO: checking for C compiler version" >&5
2112ac_compiler=`set X $ac_compile; echo $2`
2113{ (ac_try="$ac_compiler --version >&5"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler --version >&5") 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123{ (ac_try="$ac_compiler -v >&5"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129 (eval "$ac_compiler -v >&5") 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133{ (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143
2144cat >conftest.$ac_ext <<_ACEOF
2145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
2150
2151int
2152main ()
2153{
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159ac_clean_files_save=$ac_clean_files
2160ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161# Try to create an executable without -o first, disregard a.out.
2162# It will help us diagnose broken compilers, and finding out an intuition
2163# of exeext.
2164{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167#
2168# List of possible output files, starting from the most likely.
2169# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170# only as a last resort. b.out is created by i960 compilers.
2171ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172#
2173# The IRIX 6 linker writes into existing files which may not be
2174# executable, retaining their permissions. Remove them first so a
2175# subsequent execution test works.
2176ac_rmfiles=
2177for ac_file in $ac_files
2178do
2179 case $ac_file in
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2182 esac
2183done
2184rm -f $ac_rmfiles
2185
2186if { (ac_try="$ac_link_default"
2187case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190esac
2191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_link_default") 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198# in a Makefile. We should not override ac_cv_exeext if it was cached,
2199# so that the user can short-circuit this test for compilers unknown to
2200# Autoconf.
2201for ac_file in $ac_files
2202do
2203 test -f "$ac_file" || continue
2204 case $ac_file in
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2206 ;;
2207 [ab].out )
2208 # We found the default executable, but exeext='' is most
2209 # certainly right.
2210 break;;
2211 *.* )
2212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213 then :; else
2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 fi
2216 # We set ac_cv_exeext here because the later test for it is not
2217 # safe: cross compilers may not add the suffix if given an `-o'
2218 # argument, so we may need to know it at that point already.
2219 # Even if this section looks crufty: it has the advantage of
2220 # actually working.
2221 break;;
2222 * )
2223 break;;
2224 esac
2225done
2226test "$ac_cv_exeext" = no && ac_cv_exeext=
2227
2228else
2229 echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
2231
2232{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: C compiler cannot create executables
2235See \`config.log' for more details." >&2;}
2236 { (exit 77); exit 77; }; }
2237fi
2238
2239ac_exeext=$ac_cv_exeext
2240{ echo "$as_me:$LINENO: result: $ac_file" >&5
2241echo "${ECHO_T}$ac_file" >&6; }
2242
2243# Check that the compiler produces executables we can run. If not, either
2244# the compiler is broken, or we cross compile.
2245{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248# If not cross compiling, check that we can run a simple program.
2249if test "$cross_compiling" != yes; then
2250 if { ac_try='./$ac_file'
2251 { (case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254esac
2255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_try") 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 cross_compiling=no
2261 else
2262 if test "$cross_compiling" = maybe; then
2263 cross_compiling=yes
2264 else
2265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: cannot run C compiled programs.
2269If you meant to cross compile, use \`--host'.
2270See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2272 fi
2273 fi
2274fi
2275{ echo "$as_me:$LINENO: result: yes" >&5
2276echo "${ECHO_T}yes" >&6; }
2277
2278rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279ac_clean_files=$ac_clean_files_save
2280# Check that the compiler produces executables we can run. If not, either
2281# the compiler is broken, or we cross compile.
2282{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285echo "${ECHO_T}$cross_compiling" >&6; }
2286
2287{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289if { (ac_try="$ac_link"
2290case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295 (eval "$ac_link") 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2301# work properly (i.e., refer to `conftest.exe'), while it won't with
2302# `rm'.
2303for ac_file in conftest.exe conftest conftest.*; do
2304 test -f "$ac_file" || continue
2305 case $ac_file in
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308 break;;
2309 * ) break;;
2310 esac
2311done
2312else
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314See \`config.log' for more details." >&5
2315echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2318fi
2319
2320rm -f conftest$ac_cv_exeext
2321{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323
2324rm -f conftest.$ac_ext
2325EXEEXT=$ac_cv_exeext
2326ac_exeext=$EXEEXT
2327{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338
2339int
2340main ()
2341{
2342
2343 ;
2344 return 0;
2345}
2346_ACEOF
2347rm -f conftest.o conftest.obj
2348if { (ac_try="$ac_compile"
2349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compile") 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 for ac_file in conftest.o conftest.obj conftest.*; do
2359 test -f "$ac_file" || continue;
2360 case $ac_file in
2361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2363 break;;
2364 esac
2365done
2366else
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371See \`config.log' for more details." >&5
2372echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2375fi
2376
2377rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378fi
2379{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380echo "${ECHO_T}$ac_cv_objext" >&6; }
2381OBJEXT=$ac_cv_objext
2382ac_objext=$OBJEXT
2383{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388 cat >conftest.$ac_ext <<_ACEOF
2389/* confdefs.h. */
2390_ACEOF
2391cat confdefs.h >>conftest.$ac_ext
2392cat >>conftest.$ac_ext <<_ACEOF
2393/* end confdefs.h. */
2394
2395int
2396main ()
2397{
2398#ifndef __GNUC__
2399 choke me
2400#endif
2401
2402 ;
2403 return 0;
2404}
2405_ACEOF
2406rm -f conftest.$ac_objext
2407if { (ac_try="$ac_compile"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_compile") 2>conftest.er1
2414 ac_status=$?
2415 grep -v '^ *+' conftest.er1 >conftest.err
2416 rm -f conftest.er1
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424esac
2425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434esac
2435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 ac_compiler_gnu=yes
2441else
2442 echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 ac_compiler_gnu=no
2446fi
2447
2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449ac_cv_c_compiler_gnu=$ac_compiler_gnu
2450
2451fi
2452{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454GCC=`test $ac_compiler_gnu = yes && echo yes`
2455ac_test_CFLAGS=${CFLAGS+set}
2456ac_save_CFLAGS=$CFLAGS
2457{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 ac_save_c_werror_flag=$ac_c_werror_flag
2463 ac_c_werror_flag=yes
2464 ac_cv_prog_cc_g=no
2465 CFLAGS="-g"
2466 cat >conftest.$ac_ext <<_ACEOF
2467/* confdefs.h. */
2468_ACEOF
2469cat confdefs.h >>conftest.$ac_ext
2470cat >>conftest.$ac_ext <<_ACEOF
2471/* end confdefs.h. */
2472
2473int
2474main ()
2475{
2476
2477 ;
2478 return 0;
2479}
2480_ACEOF
2481rm -f conftest.$ac_objext
2482if { (ac_try="$ac_compile"
2483case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compile") 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_try") 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_prog_cc_g=yes
2516else
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 CFLAGS=""
2521 cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
2527
2528int
2529main ()
2530{
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536rm -f conftest.$ac_objext
2537if { (ac_try="$ac_compile"
2538case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564esac
2565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 :
2571else
2572 echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 ac_c_werror_flag=$ac_save_c_werror_flag
2576 CFLAGS="-g"
2577 cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h. */
2583
2584int
2585main ()
2586{
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592rm -f conftest.$ac_objext
2593if { (ac_try="$ac_compile"
2594case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2610esac
2611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620esac
2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_try") 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv_prog_cc_g=yes
2627else
2628 echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631
2632fi
2633
2634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635fi
2636
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_c_werror_flag=$ac_save_c_werror_flag
2642fi
2643{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2649 CFLAGS="-g -O2"
2650 else
2651 CFLAGS="-g"
2652 fi
2653else
2654 if test "$GCC" = yes; then
2655 CFLAGS="-O2"
2656 else
2657 CFLAGS=
2658 fi
2659fi
2660{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662if test "${ac_cv_prog_cc_c89+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 ac_cv_prog_cc_c89=no
2666ac_save_CC=$CC
2667cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h. */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h. */
2673#include <stdarg.h>
2674#include <stdio.h>
2675#include <sys/types.h>
2676#include <sys/stat.h>
2677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678struct buf { int x; };
2679FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680static char *e (p, i)
2681 char **p;
2682 int i;
2683{
2684 return p[i];
2685}
2686static char *f (char * (*g) (char **, int), char **p, ...)
2687{
2688 char *s;
2689 va_list v;
2690 va_start (v,p);
2691 s = g (p, va_arg (v,int));
2692 va_end (v);
2693 return s;
2694}
2695
2696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std. */
2703int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
2705/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706 inside strings and character constants. */
2707#define FOO(x) 'x'
2708int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709
2710int test (int i, double x);
2711struct s1 {int (*f) (int a);};
2712struct s2 {int (*f) (double a);};
2713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714int argc;
2715char **argv;
2716int
2717main ()
2718{
2719return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726do
2727 CC="$ac_save_CC $ac_arg"
2728 rm -f conftest.$ac_objext
2729if { (ac_try="$ac_compile"
2730case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743 { (case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_try") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_try") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_prog_cc_c89=$ac_arg
2763else
2764 echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
2768fi
2769
2770rm -f core conftest.err conftest.$ac_objext
2771 test "x$ac_cv_prog_cc_c89" != "xno" && break
2772done
2773rm -f conftest.$ac_ext
2774CC=$ac_save_CC
2775
2776fi
2777# AC_CACHE_VAL
2778case "x$ac_cv_prog_cc_c89" in
2779 x)
2780 { echo "$as_me:$LINENO: result: none needed" >&5
2781echo "${ECHO_T}none needed" >&6; } ;;
2782 xno)
2783 { echo "$as_me:$LINENO: result: unsupported" >&5
2784echo "${ECHO_T}unsupported" >&6; } ;;
2785 *)
2786 CC="$CC $ac_cv_prog_cc_c89"
2787 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2789esac
2790
2791
2792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798ac_aux_dir=
2799for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2800 if test -f "$ac_dir/install-sh"; then
2801 ac_aux_dir=$ac_dir
2802 ac_install_sh="$ac_aux_dir/install-sh -c"
2803 break
2804 elif test -f "$ac_dir/install.sh"; then
2805 ac_aux_dir=$ac_dir
2806 ac_install_sh="$ac_aux_dir/install.sh -c"
2807 break
2808 elif test -f "$ac_dir/shtool"; then
2809 ac_aux_dir=$ac_dir
2810 ac_install_sh="$ac_aux_dir/shtool install -c"
2811 break
2812 fi
2813done
2814if test -z "$ac_aux_dir"; then
2815 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2816echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2817 { (exit 1); exit 1; }; }
2818fi
2819
2820# These three variables are undocumented and unsupported,
2821# and are intended to be withdrawn in a future Autoconf release.
2822# They can cause serious problems if a builder's source tree is in a directory
2823# whose full name contains unusual characters.
2824ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2825ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2826ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2827
2828
2829# Make sure we can run config.sub.
2830$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2831 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2832echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2833 { (exit 1); exit 1; }; }
2834
2835{ echo "$as_me:$LINENO: checking build system type" >&5
2836echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2837if test "${ac_cv_build+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840 ac_build_alias=$build_alias
2841test "x$ac_build_alias" = x &&
2842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2843test "x$ac_build_alias" = x &&
2844 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2845echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2846 { (exit 1); exit 1; }; }
2847ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2848 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2849echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2850 { (exit 1); exit 1; }; }
2851
2852fi
2853{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2854echo "${ECHO_T}$ac_cv_build" >&6; }
2855case $ac_cv_build in
2856*-*-*) ;;
2857*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2858echo "$as_me: error: invalid value of canonical build" >&2;}
2859 { (exit 1); exit 1; }; };;
2860esac
2861build=$ac_cv_build
2862ac_save_IFS=$IFS; IFS='-'
2863set x $ac_cv_build
2864shift
2865build_cpu=$1
2866build_vendor=$2
2867shift; shift
2868# Remember, the first character of IFS is used to create $*,
2869# except with old shells:
2870build_os=$*
2871IFS=$ac_save_IFS
2872case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2873
2874
2875{ echo "$as_me:$LINENO: checking host system type" >&5
2876echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2877if test "${ac_cv_host+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879else
2880 if test "x$host_alias" = x; then
2881 ac_cv_host=$ac_cv_build
2882else
2883 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2884 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2885echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2886 { (exit 1); exit 1; }; }
2887fi
2888
2889fi
2890{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2891echo "${ECHO_T}$ac_cv_host" >&6; }
2892case $ac_cv_host in
2893*-*-*) ;;
2894*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2895echo "$as_me: error: invalid value of canonical host" >&2;}
2896 { (exit 1); exit 1; }; };;
2897esac
2898host=$ac_cv_host
2899ac_save_IFS=$IFS; IFS='-'
2900set x $ac_cv_host
2901shift
2902host_cpu=$1
2903host_vendor=$2
2904shift; shift
2905# Remember, the first character of IFS is used to create $*,
2906# except with old shells:
2907host_os=$*
2908IFS=$ac_save_IFS
2909case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2910
2911
2912
2913ac_ext=c
2914ac_cpp='$CPP $CPPFLAGS'
2915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2920# On Suns, sometimes $CPP names a directory.
2921if test -n "$CPP" && test -d "$CPP"; then
2922 CPP=
2923fi
2924if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 # Double quotes because CPP needs to be expanded
2929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2930 do
2931 ac_preproc_ok=false
2932for ac_c_preproc_warn_flag in '' yes
2933do
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h. */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h. */
2946#ifdef __STDC__
2947# include <limits.h>
2948#else
2949# include <assert.h>
2950#endif
2951 Syntax error
2952_ACEOF
2953if { (ac_try="$ac_cpp conftest.$ac_ext"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2969 else
2970 ac_cpp_err=
2971 fi
2972else
2973 ac_cpp_err=yes
2974fi
2975if test -z "$ac_cpp_err"; then
2976 :
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 # Broken: fails on valid input.
2982continue
2983fi
2984
2985rm -f conftest.err conftest.$ac_ext
2986
2987 # OK, works on sane cases. Now check whether nonexistent headers
2988 # can be detected and how.
2989 cat >conftest.$ac_ext <<_ACEOF
2990/* confdefs.h. */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h. */
2995#include <ac_nonexistent.h>
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; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3013 else
3014 ac_cpp_err=
3015 fi
3016else
3017 ac_cpp_err=yes
3018fi
3019if test -z "$ac_cpp_err"; then
3020 # Broken: success on invalid input.
3021continue
3022else
3023 echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 # Passes both tests.
3027ac_preproc_ok=:
3028break
3029fi
3030
3031rm -f conftest.err conftest.$ac_ext
3032
3033done
3034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035rm -f conftest.err conftest.$ac_ext
3036if $ac_preproc_ok; then
3037 break
3038fi
3039
3040 done
3041 ac_cv_prog_CPP=$CPP
3042
3043fi
3044 CPP=$ac_cv_prog_CPP
3045else
3046 ac_cv_prog_CPP=$CPP
3047fi
3048{ echo "$as_me:$LINENO: result: $CPP" >&5
3049echo "${ECHO_T}$CPP" >&6; }
3050ac_preproc_ok=false
3051for ac_c_preproc_warn_flag in '' yes
3052do
3053 # Use a header file that comes with gcc, so configuring glibc
3054 # with a fresh cross-compiler works.
3055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056 # <limits.h> exists even on freestanding compilers.
3057 # On the NeXT, cc -E runs the code through the compiler's parser,
3058 # not just through cpp. "Syntax error" is here to catch this case.
3059 cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
3065#ifdef __STDC__
3066# include <limits.h>
3067#else
3068# include <assert.h>
3069#endif
3070 Syntax error
3071_ACEOF
3072if { (ac_try="$ac_cpp conftest.$ac_ext"
3073case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076esac
3077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_c_preproc_warn_flag
3087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088 else
3089 ac_cpp_err=
3090 fi
3091else
3092 ac_cpp_err=yes
3093fi
3094if test -z "$ac_cpp_err"; then
3095 :
3096else
3097 echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 # Broken: fails on valid input.
3101continue
3102fi
3103
3104rm -f conftest.err conftest.$ac_ext
3105
3106 # OK, works on sane cases. Now check whether nonexistent headers
3107 # can be detected and how.
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114#include <ac_nonexistent.h>
3115_ACEOF
3116if { (ac_try="$ac_cpp conftest.$ac_ext"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132 else
3133 ac_cpp_err=
3134 fi
3135else
3136 ac_cpp_err=yes
3137fi
3138if test -z "$ac_cpp_err"; then
3139 # Broken: success on invalid input.
3140continue
3141else
3142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 # Passes both tests.
3146ac_preproc_ok=:
3147break
3148fi
3149
3150rm -f conftest.err conftest.$ac_ext
3151
3152done
3153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154rm -f conftest.err conftest.$ac_ext
3155if $ac_preproc_ok; then
3156 :
3157else
3158 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3159See \`config.log' for more details." >&5
3160echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3161See \`config.log' for more details." >&2;}
3162 { (exit 1); exit 1; }; }
3163fi
3164
3165ac_ext=c
3166ac_cpp='$CPP $CPPFLAGS'
3167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171
3172{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3173echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3174if test "${ac_cv_path_GREP+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 # Extract the first word of "grep ggrep" to use in msg output
3178if test -z "$GREP"; then
3179set dummy grep ggrep; ac_prog_name=$2
3180if test "${ac_cv_path_GREP+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183 ac_path_GREP_found=false
3184# Loop through the user's path and test for each of PROGNAME-LIST
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_prog in grep ggrep; do
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3193 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3194 # Check for GNU ac_path_GREP and select it if it is found.
3195 # Check for GNU $ac_path_GREP
3196case `"$ac_path_GREP" --version 2>&1` in
3197*GNU*)
3198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3199*)
3200 ac_count=0
3201 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3202 while :
3203 do
3204 cat "conftest.in" "conftest.in" >"conftest.tmp"
3205 mv "conftest.tmp" "conftest.in"
3206 cp "conftest.in" "conftest.nl"
3207 echo 'GREP' >> "conftest.nl"
3208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3210 ac_count=`expr $ac_count + 1`
3211 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3212 # Best one so far, save it but keep looking for a better one
3213 ac_cv_path_GREP="$ac_path_GREP"
3214 ac_path_GREP_max=$ac_count
3215 fi
3216 # 10*(2^10) chars as input seems more than enough
3217 test $ac_count -gt 10 && break
3218 done
3219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3220esac
3221
3222
3223 $ac_path_GREP_found && break 3
3224 done
3225done
3226
3227done
3228IFS=$as_save_IFS
3229
3230
3231fi
3232
3233GREP="$ac_cv_path_GREP"
3234if test -z "$GREP"; then
3235 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3236echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3237 { (exit 1); exit 1; }; }
3238fi
3239
3240else
3241 ac_cv_path_GREP=$GREP
3242fi
3243
3244
3245fi
3246{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3247echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3248 GREP="$ac_cv_path_GREP"
3249
3250
3251{ echo "$as_me:$LINENO: checking for egrep" >&5
3252echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3253if test "${ac_cv_path_EGREP+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3257 then ac_cv_path_EGREP="$GREP -E"
3258 else
3259 # Extract the first word of "egrep" to use in msg output
3260if test -z "$EGREP"; then
3261set dummy egrep; ac_prog_name=$2
3262if test "${ac_cv_path_EGREP+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265 ac_path_EGREP_found=false
3266# Loop through the user's path and test for each of PROGNAME-LIST
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3269do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_prog in egrep; do
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3275 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3276 # Check for GNU ac_path_EGREP and select it if it is found.
3277 # Check for GNU $ac_path_EGREP
3278case `"$ac_path_EGREP" --version 2>&1` in
3279*GNU*)
3280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3281*)
3282 ac_count=0
3283 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3284 while :
3285 do
3286 cat "conftest.in" "conftest.in" >"conftest.tmp"
3287 mv "conftest.tmp" "conftest.in"
3288 cp "conftest.in" "conftest.nl"
3289 echo 'EGREP' >> "conftest.nl"
3290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3292 ac_count=`expr $ac_count + 1`
3293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3294 # Best one so far, save it but keep looking for a better one
3295 ac_cv_path_EGREP="$ac_path_EGREP"
3296 ac_path_EGREP_max=$ac_count
3297 fi
3298 # 10*(2^10) chars as input seems more than enough
3299 test $ac_count -gt 10 && break
3300 done
3301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3302esac
3303
3304
3305 $ac_path_EGREP_found && break 3
3306 done
3307done
3308
3309done
3310IFS=$as_save_IFS
3311
3312
3313fi
3314
3315EGREP="$ac_cv_path_EGREP"
3316if test -z "$EGREP"; then
3317 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3318echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3319 { (exit 1); exit 1; }; }
3320fi
3321
3322else
3323 ac_cv_path_EGREP=$EGREP
3324fi
3325
3326
3327 fi
3328fi
3329{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3330echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3331 EGREP="$ac_cv_path_EGREP"
3332
3333
3334{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3335echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3336if test "${ac_cv_header_stdc+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339 cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h. */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h. */
3345#include <stdlib.h>
3346#include <stdarg.h>
3347#include <string.h>
3348#include <float.h>
3349
3350int
3351main ()
3352{
3353
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358rm -f conftest.$ac_objext
3359if { (ac_try="$ac_compile"
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3373 { (case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_try") 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_try") 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_header_stdc=yes
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 ac_cv_header_stdc=no
3398fi
3399
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401
3402if test $ac_cv_header_stdc = yes; then
3403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3404 cat >conftest.$ac_ext <<_ACEOF
3405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h. */
3410#include <string.h>
3411
3412_ACEOF
3413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 $EGREP "memchr" >/dev/null 2>&1; then
3415 :
3416else
3417 ac_cv_header_stdc=no
3418fi
3419rm -f conftest*
3420
3421fi
3422
3423if test $ac_cv_header_stdc = yes; then
3424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3425 cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
3431#include <stdlib.h>
3432
3433_ACEOF
3434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 $EGREP "free" >/dev/null 2>&1; then
3436 :
3437else
3438 ac_cv_header_stdc=no
3439fi
3440rm -f conftest*
3441
3442fi
3443
3444if test $ac_cv_header_stdc = yes; then
3445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3446 if test "$cross_compiling" = yes; then
3447 :
3448else
3449 cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h. */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h. */
3455#include <ctype.h>
3456#include <stdlib.h>
3457#if ((' ' & 0x0FF) == 0x020)
3458# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3459# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3460#else
3461# define ISLOWER(c) \
3462 (('a' <= (c) && (c) <= 'i') \
3463 || ('j' <= (c) && (c) <= 'r') \
3464 || ('s' <= (c) && (c) <= 'z'))
3465# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3466#endif
3467
3468#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3469int
3470main ()
3471{
3472 int i;
3473 for (i = 0; i < 256; i++)
3474 if (XOR (islower (i), ISLOWER (i))
3475 || toupper (i) != TOUPPER (i))
3476 return 2;
3477 return 0;
3478}
3479_ACEOF
3480rm -f conftest$ac_exeext
3481if { (ac_try="$ac_link"
3482case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485esac
3486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_link") 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_try") 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 :
3501else
3502 echo "$as_me: program exited with status $ac_status" >&5
3503echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506( exit $ac_status )
3507ac_cv_header_stdc=no
3508fi
3509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3510fi
3511
3512
3513fi
3514fi
3515{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3516echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3517if test $ac_cv_header_stdc = yes; then
3518
3519cat >>confdefs.h <<\_ACEOF
3520#define STDC_HEADERS 1
3521_ACEOF
3522
3523fi
3524
3525# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3536 inttypes.h stdint.h unistd.h
3537do
3538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h. */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h. */
3550$ac_includes_default
3551
3552#include <$ac_header>
3553_ACEOF
3554rm -f conftest.$ac_objext
3555if { (ac_try="$ac_compile"
3556case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559esac
3560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3569 { (case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572esac
3573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_try") 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_try") 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 eval "$as_ac_Header=yes"
3589else
3590 echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 eval "$as_ac_Header=no"
3594fi
3595
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597fi
3598ac_res=`eval echo '${'$as_ac_Header'}'`
3599 { echo "$as_me:$LINENO: result: $ac_res" >&5
3600echo "${ECHO_T}$ac_res" >&6; }
3601if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<_ACEOF
3603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604_ACEOF
3605
3606fi
3607
3608done
3609
3610
3611{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3612echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3613if test "${ac_cv_c_bigendian+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 # See if sys/param.h defines the BYTE_ORDER macro.
3617cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h. */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h. */
3623#include <sys/types.h>
3624#include <sys/param.h>
3625
3626int
3627main ()
3628{
3629#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3630 bogus endian macros
3631#endif
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext
3638if { (ac_try="$ac_compile"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_compile") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3652 { (case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655esac
3656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_try") 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 # It does; now see whether it defined to BIG_ENDIAN or not.
3672cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
3678#include <sys/types.h>
3679#include <sys/param.h>
3680
3681int
3682main ()
3683{
3684#if BYTE_ORDER != BIG_ENDIAN
3685 not big endian
3686#endif
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext
3693if { (ac_try="$ac_compile"
3694case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697esac
3698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_compile") 2>conftest.er1
3700 ac_status=$?
3701 grep -v '^ *+' conftest.er1 >conftest.err
3702 rm -f conftest.er1
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3707 { (case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710esac
3711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_try") 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_try") 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_c_bigendian=yes
3727else
3728 echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 ac_cv_c_bigendian=no
3732fi
3733
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735else
3736 echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 # It does not; compile a test program.
3740if test "$cross_compiling" = yes; then
3741 # try to guess the endianness by grepping values into an object file
3742 ac_cv_c_bigendian=unknown
3743 cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
3749short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3750short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3751void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3752short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3753short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3754void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3755int
3756main ()
3757{
3758 _ascii (); _ebcdic ();
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext
3764if { (ac_try="$ac_compile"
3765case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768esac
3769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_compile") 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781esac
3782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783 (eval "$ac_try") 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_try") 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3798 ac_cv_c_bigendian=yes
3799fi
3800if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3801 if test "$ac_cv_c_bigendian" = unknown; then
3802 ac_cv_c_bigendian=no
3803 else
3804 # finding both strings is unlikely to happen, but who knows?
3805 ac_cv_c_bigendian=unknown
3806 fi
3807fi
3808else
3809 echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812
3813fi
3814
3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816else
3817 cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h. */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h. */
3823$ac_includes_default
3824int
3825main ()
3826{
3827
3828 /* Are we little or big endian? From Harbison&Steele. */
3829 union
3830 {
3831 long int l;
3832 char c[sizeof (long int)];
3833 } u;
3834 u.l = 1;
3835 return u.c[sizeof (long int) - 1] == 1;
3836
3837 ;
3838 return 0;
3839}
3840_ACEOF
3841rm -f conftest$ac_exeext
3842if { (ac_try="$ac_link"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_link") 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_c_bigendian=no
3862else
3863 echo "$as_me: program exited with status $ac_status" >&5
3864echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867( exit $ac_status )
3868ac_cv_c_bigendian=yes
3869fi
3870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3871fi
3872
3873
3874fi
3875
3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877fi
3878{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3879echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3880case $ac_cv_c_bigendian in
3881 yes)
3882
3883cat >>confdefs.h <<\_ACEOF
3884#define WORDS_BIGENDIAN 1
3885_ACEOF
3886 ;;
3887 no)
3888 ;;
3889 *)
3890 { { echo "$as_me:$LINENO: error: unknown endianness
3891presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3892echo "$as_me: error: unknown endianness
3893presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3894 { (exit 1); exit 1; }; } ;;
3895esac
3896
3897
3898# Checks for programs.
3899for ac_prog in gawk mawk nawk awk
3900do
3901 # Extract the first word of "$ac_prog", so it can be a program name with args.
3902set dummy $ac_prog; ac_word=$2
3903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3905if test "${ac_cv_prog_AWK+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 if test -n "$AWK"; then
3909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_AWK="$ac_prog"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922done
3923done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928AWK=$ac_cv_prog_AWK
3929if test -n "$AWK"; then
3930 { echo "$as_me:$LINENO: result: $AWK" >&5
3931echo "${ECHO_T}$AWK" >&6; }
3932else
3933 { echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6; }
3935fi
3936
3937
3938 test -n "$AWK" && break
3939done
3940
3941ac_ext=c
3942ac_cpp='$CPP $CPPFLAGS'
3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3947echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3948# On Suns, sometimes $CPP names a directory.
3949if test -n "$CPP" && test -d "$CPP"; then
3950 CPP=
3951fi
3952if test -z "$CPP"; then
3953 if test "${ac_cv_prog_CPP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 # Double quotes because CPP needs to be expanded
3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3958 do
3959 ac_preproc_ok=false
3960for ac_c_preproc_warn_flag in '' yes
3961do
3962 # Use a header file that comes with gcc, so configuring glibc
3963 # with a fresh cross-compiler works.
3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 # <limits.h> exists even on freestanding compilers.
3966 # On the NeXT, cc -E runs the code through the compiler's parser,
3967 # not just through cpp. "Syntax error" is here to catch this case.
3968 cat >conftest.$ac_ext <<_ACEOF
3969/* confdefs.h. */
3970_ACEOF
3971cat confdefs.h >>conftest.$ac_ext
3972cat >>conftest.$ac_ext <<_ACEOF
3973/* end confdefs.h. */
3974#ifdef __STDC__
3975# include <limits.h>
3976#else
3977# include <assert.h>
3978#endif
3979 Syntax error
3980_ACEOF
3981if { (ac_try="$ac_cpp conftest.$ac_ext"
3982case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985esac
3986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null; then
3994 if test -s conftest.err; then
3995 ac_cpp_err=$ac_c_preproc_warn_flag
3996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997 else
3998 ac_cpp_err=
3999 fi
4000else
4001 ac_cpp_err=yes
4002fi
4003if test -z "$ac_cpp_err"; then
4004 :
4005else
4006 echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 # Broken: fails on valid input.
4010continue
4011fi
4012
4013rm -f conftest.err conftest.$ac_ext
4014
4015 # OK, works on sane cases. Now check whether nonexistent headers
4016 # can be detected and how.
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023#include <ac_nonexistent.h>
4024_ACEOF
4025if { (ac_try="$ac_cpp conftest.$ac_ext"
4026case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } >/dev/null; then
4038 if test -s conftest.err; then
4039 ac_cpp_err=$ac_c_preproc_warn_flag
4040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4041 else
4042 ac_cpp_err=
4043 fi
4044else
4045 ac_cpp_err=yes
4046fi
4047if test -z "$ac_cpp_err"; then
4048 # Broken: success on invalid input.
4049continue
4050else
4051 echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 # Passes both tests.
4055ac_preproc_ok=:
4056break
4057fi
4058
4059rm -f conftest.err conftest.$ac_ext
4060
4061done
4062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063rm -f conftest.err conftest.$ac_ext
4064if $ac_preproc_ok; then
4065 break
4066fi
4067
4068 done
4069 ac_cv_prog_CPP=$CPP
4070
4071fi
4072 CPP=$ac_cv_prog_CPP
4073else
4074 ac_cv_prog_CPP=$CPP
4075fi
4076{ echo "$as_me:$LINENO: result: $CPP" >&5
4077echo "${ECHO_T}$CPP" >&6; }
4078ac_preproc_ok=false
4079for ac_c_preproc_warn_flag in '' yes
4080do
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
4087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
4093#ifdef __STDC__
4094# include <limits.h>
4095#else
4096# include <assert.h>
4097#endif
4098 Syntax error
4099_ACEOF
4100if { (ac_try="$ac_cpp conftest.$ac_ext"
4101case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null; then
4113 if test -s conftest.err; then
4114 ac_cpp_err=$ac_c_preproc_warn_flag
4115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4116 else
4117 ac_cpp_err=
4118 fi
4119else
4120 ac_cpp_err=yes
4121fi
4122if test -z "$ac_cpp_err"; then
4123 :
4124else
4125 echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128 # Broken: fails on valid input.
4129continue
4130fi
4131
4132rm -f conftest.err conftest.$ac_ext
4133
4134 # OK, works on sane cases. Now check whether nonexistent headers
4135 # can be detected and how.
4136 cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
4142#include <ac_nonexistent.h>
4143_ACEOF
4144if { (ac_try="$ac_cpp conftest.$ac_ext"
4145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null; then
4157 if test -s conftest.err; then
4158 ac_cpp_err=$ac_c_preproc_warn_flag
4159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4160 else
4161 ac_cpp_err=
4162 fi
4163else
4164 ac_cpp_err=yes
4165fi
4166if test -z "$ac_cpp_err"; then
4167 # Broken: success on invalid input.
4168continue
4169else
4170 echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 # Passes both tests.
4174ac_preproc_ok=:
4175break
4176fi
4177
4178rm -f conftest.err conftest.$ac_ext
4179
4180done
4181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182rm -f conftest.err conftest.$ac_ext
4183if $ac_preproc_ok; then
4184 :
4185else
4186 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4187See \`config.log' for more details." >&5
4188echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4189See \`config.log' for more details." >&2;}
4190 { (exit 1); exit 1; }; }
4191fi
4192
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4201set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204if test "${ac_cv_prog_RANLIB+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207 if test -n "$RANLIB"; then
4208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221done
4222done
4223IFS=$as_save_IFS
4224
4225fi
4226fi
4227RANLIB=$ac_cv_prog_RANLIB
4228if test -n "$RANLIB"; then
4229 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4230echo "${ECHO_T}$RANLIB" >&6; }
4231else
4232 { echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6; }
4234fi
4235
4236
4237fi
4238if test -z "$ac_cv_prog_RANLIB"; then
4239 ac_ct_RANLIB=$RANLIB
4240 # Extract the first word of "ranlib", so it can be a program name with args.
4241set dummy ranlib; ac_word=$2
4242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 if test -n "$ac_ct_RANLIB"; then
4248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_ac_ct_RANLIB="ranlib"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261done
4262done
4263IFS=$as_save_IFS
4264
4265fi
4266fi
4267ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4268if test -n "$ac_ct_RANLIB"; then
4269 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4270echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4271else
4272 { echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6; }
4274fi
4275
4276 if test "x$ac_ct_RANLIB" = x; then
4277 RANLIB=":"
4278 else
4279 case $cross_compiling:$ac_tool_warned in
4280yes:)
4281{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4282whose name does not start with the host triplet. If you think this
4283configuration is useful to you, please write to autoconf@gnu.org." >&5
4284echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4285whose name does not start with the host triplet. If you think this
4286configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4287ac_tool_warned=yes ;;
4288esac
4289 RANLIB=$ac_ct_RANLIB
4290 fi
4291else
4292 RANLIB="$ac_cv_prog_RANLIB"
4293fi
4294
4295# Find a good install program. We prefer a C program (faster),
4296# so one script is as good as another. But avoid the broken or
4297# incompatible versions:
4298# SysV /etc/install, /usr/sbin/install
4299# SunOS /usr/etc/install
4300# IRIX /sbin/install
4301# AIX /bin/install
4302# AmigaOS /C/install, which installs bootblocks on floppy discs
4303# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4304# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4305# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4306# OS/2's system install, which has a completely different semantic
4307# ./install, which can be erroneously created by make from ./install.sh.
4308{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4309echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4310if test -z "$INSTALL"; then
4311if test "${ac_cv_path_install+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
4314 as_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 # Account for people who put trailing slashes in PATH elements.
4320case $as_dir/ in
4321 ./ | .// | /cC/* | \
4322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4324 /usr/ucb/* ) ;;
4325 *)
4326 # OSF1 and SCO ODT 3.0 have their own names for install.
4327 # Don't use installbsd from OSF since it installs stuff as root
4328 # by default.
4329 for ac_prog in ginstall scoinst install; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4332 if test $ac_prog = install &&
4333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4334 # AIX install. It has an incompatible calling convention.
4335 :
4336 elif test $ac_prog = install &&
4337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4338 # program-specific install script used by HP pwplus--don't use.
4339 :
4340 else
4341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4342 break 3
4343 fi
4344 fi
4345 done
4346 done
4347 ;;
4348esac
4349done
4350IFS=$as_save_IFS
4351
4352
4353fi
4354 if test "${ac_cv_path_install+set}" = set; then
4355 INSTALL=$ac_cv_path_install
4356 else
4357 # As a last resort, use the slow shell script. Don't cache a
4358 # value for INSTALL within a source directory, because that will
4359 # break other packages using the cache if that directory is
4360 # removed, or if the value is a relative name.
4361 INSTALL=$ac_install_sh
4362 fi
4363fi
4364{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4365echo "${ECHO_T}$INSTALL" >&6; }
4366
4367# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4368# It thinks the first close brace ends the variable substitution.
4369test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4370
4371test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4372
4373test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4374
4375{ echo "$as_me:$LINENO: checking for egrep" >&5
4376echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4377if test "${ac_cv_path_EGREP+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4382 else
4383 # Extract the first word of "egrep" to use in msg output
4384if test -z "$EGREP"; then
4385set dummy egrep; ac_prog_name=$2
4386if test "${ac_cv_path_EGREP+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 ac_path_EGREP_found=false
4390# Loop through the user's path and test for each of PROGNAME-LIST
4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in egrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4399 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4400 # Check for GNU ac_path_EGREP and select it if it is found.
4401 # Check for GNU $ac_path_EGREP
4402case `"$ac_path_EGREP" --version 2>&1` in
4403*GNU*)
4404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4405*)
4406 ac_count=0
4407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4408 while :
4409 do
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 echo 'EGREP' >> "conftest.nl"
4414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 ac_count=`expr $ac_count + 1`
4417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_EGREP="$ac_path_EGREP"
4420 ac_path_EGREP_max=$ac_count
4421 fi
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4424 done
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426esac
4427
4428
4429 $ac_path_EGREP_found && break 3
4430 done
4431done
4432
4433done
4434IFS=$as_save_IFS
4435
4436
4437fi
4438
4439EGREP="$ac_cv_path_EGREP"
4440if test -z "$EGREP"; then
4441 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443 { (exit 1); exit 1; }; }
4444fi
4445
4446else
4447 ac_cv_path_EGREP=$EGREP
4448fi
4449
4450
4451 fi
4452fi
4453{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4454echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4455 EGREP="$ac_cv_path_EGREP"
4456
4457
4458# Extract the first word of "ar", so it can be a program name with args.
4459set dummy ar; ac_word=$2
4460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462if test "${ac_cv_path_AR+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 case $AR in
4466 [\\/]* | ?:[\\/]*)
4467 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4468 ;;
4469 *)
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481done
4482done
4483IFS=$as_save_IFS
4484
4485 ;;
4486esac
4487fi
4488AR=$ac_cv_path_AR
4489if test -n "$AR"; then
4490 { echo "$as_me:$LINENO: result: $AR" >&5
4491echo "${ECHO_T}$AR" >&6; }
4492else
4493 { echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6; }
4495fi
4496
4497
4498# Extract the first word of "cat", so it can be a program name with args.
4499set dummy cat; ac_word=$2
4500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4502if test "${ac_cv_path_CAT+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505 case $CAT in
4506 [\\/]* | ?:[\\/]*)
4507 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4508 ;;
4509 *)
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521done
4522done
4523IFS=$as_save_IFS
4524
4525 ;;
4526esac
4527fi
4528CAT=$ac_cv_path_CAT
4529if test -n "$CAT"; then
4530 { echo "$as_me:$LINENO: result: $CAT" >&5
4531echo "${ECHO_T}$CAT" >&6; }
4532else
4533 { echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6; }
4535fi
4536
4537
4538# Extract the first word of "kill", so it can be a program name with args.
4539set dummy kill; ac_word=$2
4540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542if test "${ac_cv_path_KILL+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545 case $KILL in
4546 [\\/]* | ?:[\\/]*)
4547 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4548 ;;
4549 *)
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562done
4563IFS=$as_save_IFS
4564
4565 ;;
4566esac
4567fi
4568KILL=$ac_cv_path_KILL
4569if test -n "$KILL"; then
4570 { echo "$as_me:$LINENO: result: $KILL" >&5
4571echo "${ECHO_T}$KILL" >&6; }
4572else
4573 { echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6; }
4575fi
4576
4577
4578for ac_prog in perl5 perl
4579do
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581set dummy $ac_prog; ac_word=$2
4582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584if test "${ac_cv_path_PERL+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 case $PERL in
4588 [\\/]* | ?:[\\/]*)
4589 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4590 ;;
4591 *)
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605IFS=$as_save_IFS
4606
4607 ;;
4608esac
4609fi
4610PERL=$ac_cv_path_PERL
4611if test -n "$PERL"; then
4612 { echo "$as_me:$LINENO: result: $PERL" >&5
4613echo "${ECHO_T}$PERL" >&6; }
4614else
4615 { echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6; }
4617fi
4618
4619
4620 test -n "$PERL" && break
4621done
4622
4623# Extract the first word of "sed", so it can be a program name with args.
4624set dummy sed; ac_word=$2
4625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627if test "${ac_cv_path_SED+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630 case $SED in
4631 [\\/]* | ?:[\\/]*)
4632 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4633 ;;
4634 *)
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647done
4648IFS=$as_save_IFS
4649
4650 ;;
4651esac
4652fi
4653SED=$ac_cv_path_SED
4654if test -n "$SED"; then
4655 { echo "$as_me:$LINENO: result: $SED" >&5
4656echo "${ECHO_T}$SED" >&6; }
4657else
4658 { echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6; }
4660fi
4661
4662
4663
4664# Extract the first word of "ent", so it can be a program name with args.
4665set dummy ent; ac_word=$2
4666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668if test "${ac_cv_path_ENT+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 case $ENT in
4672 [\\/]* | ?:[\\/]*)
4673 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4674 ;;
4675 *)
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687done
4688done
4689IFS=$as_save_IFS
4690
4691 ;;
4692esac
4693fi
4694ENT=$ac_cv_path_ENT
4695if test -n "$ENT"; then
4696 { echo "$as_me:$LINENO: result: $ENT" >&5
4697echo "${ECHO_T}$ENT" >&6; }
4698else
4699 { echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6; }
4701fi
4702
4703
4704
4705# Extract the first word of "bash", so it can be a program name with args.
4706set dummy bash; ac_word=$2
4707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 case $TEST_MINUS_S_SH in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729done
4730IFS=$as_save_IFS
4731
4732 ;;
4733esac
4734fi
4735TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4736if test -n "$TEST_MINUS_S_SH"; then
4737 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4738echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4739else
4740 { echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6; }
4742fi
4743
4744
4745# Extract the first word of "ksh", so it can be a program name with args.
4746set dummy ksh; ac_word=$2
4747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752 case $TEST_MINUS_S_SH in
4753 [\\/]* | ?:[\\/]*)
4754 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4755 ;;
4756 *)
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768done
4769done
4770IFS=$as_save_IFS
4771
4772 ;;
4773esac
4774fi
4775TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4776if test -n "$TEST_MINUS_S_SH"; then
4777 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4778echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4779else
4780 { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
4782fi
4783
4784
4785# Extract the first word of "sh", so it can be a program name with args.
4786set dummy sh; ac_word=$2
4787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792 case $TEST_MINUS_S_SH in
4793 [\\/]* | ?:[\\/]*)
4794 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4795 ;;
4796 *)
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4807 fi
4808done
4809done
4810IFS=$as_save_IFS
4811
4812 ;;
4813esac
4814fi
4815TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4816if test -n "$TEST_MINUS_S_SH"; then
4817 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4818echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4819else
4820 { echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6; }
4822fi
4823
4824
4825# Extract the first word of "sh", so it can be a program name with args.
4826set dummy sh; ac_word=$2
4827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829if test "${ac_cv_path_SH+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832 case $SH in
4833 [\\/]* | ?:[\\/]*)
4834 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4835 ;;
4836 *)
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4847 fi
4848done
4849done
4850IFS=$as_save_IFS
4851
4852 ;;
4853esac
4854fi
4855SH=$ac_cv_path_SH
4856if test -n "$SH"; then
4857 { echo "$as_me:$LINENO: result: $SH" >&5
4858echo "${ECHO_T}$SH" >&6; }
4859else
4860 { echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6; }
4862fi
4863
4864
4865TEST_SHELL=sh
4866
4867
4868# Extract the first word of "groupadd", so it can be a program name with args.
4869set dummy groupadd; ac_word=$2
4870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875 case $PATH_GROUPADD_PROG in
4876 [\\/]* | ?:[\\/]*)
4877 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4878 ;;
4879 *)
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891done
4892done
4893IFS=$as_save_IFS
4894
4895 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4896 ;;
4897esac
4898fi
4899PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4900if test -n "$PATH_GROUPADD_PROG"; then
4901 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4902echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4903else
4904 { echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6; }
4906fi
4907
4908
4909# Extract the first word of "useradd", so it can be a program name with args.
4910set dummy useradd; ac_word=$2
4911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916 case $PATH_USERADD_PROG in
4917 [\\/]* | ?:[\\/]*)
4918 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4919 ;;
4920 *)
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4923do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932done
4933done
4934IFS=$as_save_IFS
4935
4936 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4937 ;;
4938esac
4939fi
4940PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4941if test -n "$PATH_USERADD_PROG"; then
4942 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4943echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4944else
4945 { echo "$as_me:$LINENO: result: no" >&5
4946echo "${ECHO_T}no" >&6; }
4947fi
4948
4949
4950# Extract the first word of "pkgmk", so it can be a program name with args.
4951set dummy pkgmk; ac_word=$2
4952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4958 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4959else
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971done
4972done
4973IFS=$as_save_IFS
4974
4975 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4976fi
4977fi
4978MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4979if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4980 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4981echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4982else
4983 { echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6; }
4985fi
4986
4987
4988if test -x /sbin/sh; then
4989 STARTUP_SCRIPT_SHELL=/sbin/sh
4990
4991else
4992 STARTUP_SCRIPT_SHELL=/bin/sh
4993
4994fi
4995
4996# System features
4997# Check whether --enable-largefile was given.
4998if test "${enable_largefile+set}" = set; then
4999 enableval=$enable_largefile;
5000fi
5001
5002if test "$enable_largefile" != no; then
5003
5004 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5005echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5006if test "${ac_cv_sys_largefile_CC+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009 ac_cv_sys_largefile_CC=no
5010 if test "$GCC" != yes; then
5011 ac_save_CC=$CC
5012 while :; do
5013 # IRIX 6.2 and later do not support large files by default,
5014 # so use the C compiler's -n32 option if that helps.
5015 cat >conftest.$ac_ext <<_ACEOF
5016/* confdefs.h. */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h. */
5021#include <sys/types.h>
5022 /* Check that off_t can represent 2**63 - 1 correctly.
5023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5024 since some C++ compilers masquerading as C compilers
5025 incorrectly reject 9223372036854775807. */
5026#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5028 && LARGE_OFF_T % 2147483647 == 1)
5029 ? 1 : -1];
5030int
5031main ()
5032{
5033
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038 rm -f conftest.$ac_objext
5039if { (ac_try="$ac_compile"
5040case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } &&
5052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5053 { (case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056esac
5057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_try") 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (case "(($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_try") 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 break
5073else
5074 echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077
5078fi
5079
5080rm -f core conftest.err conftest.$ac_objext
5081 CC="$CC -n32"
5082 rm -f conftest.$ac_objext
5083if { (ac_try="$ac_compile"
5084case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087esac
5088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_compile") 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5097 { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_try") 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; } &&
5106 { ac_try='test -s conftest.$ac_objext'
5107 { (case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110esac
5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_try") 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_sys_largefile_CC=' -n32'; break
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121
5122fi
5123
5124rm -f core conftest.err conftest.$ac_objext
5125 break
5126 done
5127 CC=$ac_save_CC
5128 rm -f conftest.$ac_ext
5129 fi
5130fi
5131{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5132echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5133 if test "$ac_cv_sys_largefile_CC" != no; then
5134 CC=$CC$ac_cv_sys_largefile_CC
5135 fi
5136
5137 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5138echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5139if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142 while :; do
5143 ac_cv_sys_file_offset_bits=no
5144 cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h. */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h. */
5150#include <sys/types.h>
5151 /* Check that off_t can represent 2**63 - 1 correctly.
5152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5153 since some C++ compilers masquerading as C compilers
5154 incorrectly reject 9223372036854775807. */
5155#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5157 && LARGE_OFF_T % 2147483647 == 1)
5158 ? 1 : -1];
5159int
5160main ()
5161{
5162
5163 ;
5164 return 0;
5165}
5166_ACEOF
5167rm -f conftest.$ac_objext
5168if { (ac_try="$ac_compile"
5169case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172esac
5173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_compile") 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } &&
5181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5182 { (case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5185esac
5186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_try") 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try='test -s conftest.$ac_objext'
5192 { (case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_try") 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 break
5202else
5203 echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206
5207fi
5208
5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h. */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h. */
5216#define _FILE_OFFSET_BITS 64
5217#include <sys/types.h>
5218 /* Check that off_t can represent 2**63 - 1 correctly.
5219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5220 since some C++ compilers masquerading as C compilers
5221 incorrectly reject 9223372036854775807. */
5222#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5224 && LARGE_OFF_T % 2147483647 == 1)
5225 ? 1 : -1];
5226int
5227main ()
5228{
5229
5230 ;
5231 return 0;
5232}
5233_ACEOF
5234rm -f conftest.$ac_objext
5235if { (ac_try="$ac_compile"
5236case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5239esac
5240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5249 { (case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252esac
5253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_try") 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262esac
5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_try") 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 ac_cv_sys_file_offset_bits=64; break
5269else
5270 echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273
5274fi
5275
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 break
5278done
5279fi
5280{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5281echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5282if test "$ac_cv_sys_file_offset_bits" != no; then
5283
5284cat >>confdefs.h <<_ACEOF
5285#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5286_ACEOF
5287
5288fi
5289rm -f conftest*
5290 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5291echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5292if test "${ac_cv_sys_large_files+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295 while :; do
5296 ac_cv_sys_large_files=no
5297 cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h. */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h. */
5303#include <sys/types.h>
5304 /* Check that off_t can represent 2**63 - 1 correctly.
5305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5306 since some C++ compilers masquerading as C compilers
5307 incorrectly reject 9223372036854775807. */
5308#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5310 && LARGE_OFF_T % 2147483647 == 1)
5311 ? 1 : -1];
5312int
5313main ()
5314{
5315
5316 ;
5317 return 0;
5318}
5319_ACEOF
5320rm -f conftest.$ac_objext
5321if { (ac_try="$ac_compile"
5322case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325esac
5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_compile") 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5335 { (case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338esac
5339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_try") 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_try") 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 break
5355else
5356 echo "$as_me: failed program was:" >&5
5357sed 's/^/| /' conftest.$ac_ext >&5
5358
5359
5360fi
5361
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369#define _LARGE_FILES 1
5370#include <sys/types.h>
5371 /* Check that off_t can represent 2**63 - 1 correctly.
5372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373 since some C++ compilers masquerading as C compilers
5374 incorrectly reject 9223372036854775807. */
5375#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377 && LARGE_OFF_T % 2147483647 == 1)
5378 ? 1 : -1];
5379int
5380main ()
5381{
5382
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387rm -f conftest.$ac_objext
5388if { (ac_try="$ac_compile"
5389case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392esac
5393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_compile") 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5402 { (case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_try") 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_try") 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 ac_cv_sys_large_files=1; break
5422else
5423 echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426
5427fi
5428
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 break
5431done
5432fi
5433{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5434echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5435if test "$ac_cv_sys_large_files" != no; then
5436
5437cat >>confdefs.h <<_ACEOF
5438#define _LARGE_FILES $ac_cv_sys_large_files
5439_ACEOF
5440
5441fi
5442rm -f conftest*
5443fi
5444
5445
5446if test -z "$AR" ; then
5447 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5448echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5449 { (exit 1); exit 1; }; }
5450fi
5451
5452# Use LOGIN_PROGRAM from environment if possible
5453if test ! -z "$LOGIN_PROGRAM" ; then
5454
5455cat >>confdefs.h <<_ACEOF
5456#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5457_ACEOF
5458
5459else
5460 # Search for login
5461 # Extract the first word of "login", so it can be a program name with args.
5462set dummy login; ac_word=$2
5463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 case $LOGIN_PROGRAM_FALLBACK in
5469 [\\/]* | ?:[\\/]*)
5470 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5471 ;;
5472 *)
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484done
5485done
5486IFS=$as_save_IFS
5487
5488 ;;
5489esac
5490fi
5491LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5492if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5493 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5494echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5495else
5496 { echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6; }
5498fi
5499
5500
5501 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5502 cat >>confdefs.h <<_ACEOF
5503#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5504_ACEOF
5505
5506 fi
5507fi
5508
5509# Extract the first word of "passwd", so it can be a program name with args.
5510set dummy passwd; ac_word=$2
5511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5513if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 case $PATH_PASSWD_PROG in
5517 [\\/]* | ?:[\\/]*)
5518 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5519 ;;
5520 *)
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532done
5533done
5534IFS=$as_save_IFS
5535
5536 ;;
5537esac
5538fi
5539PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5540if test -n "$PATH_PASSWD_PROG"; then
5541 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5542echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5543else
5544 { echo "$as_me:$LINENO: result: no" >&5
5545echo "${ECHO_T}no" >&6; }
5546fi
5547
5548
5549if test ! -z "$PATH_PASSWD_PROG" ; then
5550
5551cat >>confdefs.h <<_ACEOF
5552#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5553_ACEOF
5554
5555fi
5556
5557if test -z "$LD" ; then
5558 LD=$CC
5559fi
5560
5561
5562{ echo "$as_me:$LINENO: checking for inline" >&5
5563echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5564if test "${ac_cv_c_inline+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567 ac_cv_c_inline=no
5568for ac_kw in inline __inline__ __inline; do
5569 cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h. */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h. */
5575#ifndef __cplusplus
5576typedef int foo_t;
5577static $ac_kw foo_t static_foo () {return 0; }
5578$ac_kw foo_t foo () {return 0; }
5579#endif
5580
5581_ACEOF
5582rm -f conftest.$ac_objext
5583if { (ac_try="$ac_compile"
5584case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_compile") 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_c_inline=$ac_kw
5617else
5618 echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621
5622fi
5623
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 test "$ac_cv_c_inline" != no && break
5626done
5627
5628fi
5629{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5630echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5631
5632
5633case $ac_cv_c_inline in
5634 inline | yes) ;;
5635 *)
5636 case $ac_cv_c_inline in
5637 no) ac_val=;;
5638 *) ac_val=$ac_cv_c_inline;;
5639 esac
5640 cat >>confdefs.h <<_ACEOF
5641#ifndef __cplusplus
5642#define inline $ac_val
5643#endif
5644_ACEOF
5645 ;;
5646esac
5647
5648
5649{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5650echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5651if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
5660#include <limits.h>
5661
5662int
5663main ()
5664{
5665#ifndef LLONG_MAX
5666 char *p = (char *) LLONG_MAX;
5667 return !p;
5668#endif
5669
5670 ;
5671 return 0;
5672}
5673_ACEOF
5674rm -f conftest.$ac_objext
5675if { (ac_try="$ac_compile"
5676case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5689 { (case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692esac
5693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_try") 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702esac
5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_try") 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_have_decl_LLONG_MAX=yes
5709else
5710 echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 ac_cv_have_decl_LLONG_MAX=no
5714fi
5715
5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717fi
5718{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5719echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5720if test $ac_cv_have_decl_LLONG_MAX = yes; then
5721 have_llong_max=1
5722fi
5723
5724
5725if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5726 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5727 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5728 case $GCC_VER in
5729 1.*) ;;
5730 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5731 2.*) ;;
5732 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5733 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
5734 *) ;;
5735 esac
5736
5737 if test -z "$have_llong_max"; then
5738 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5739 unset ac_cv_have_decl_LLONG_MAX
5740 saved_CFLAGS="$CFLAGS"
5741 CFLAGS="$CFLAGS -std=gnu99"
5742 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5743echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5744if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747 cat >conftest.$ac_ext <<_ACEOF
5748/* confdefs.h. */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h. */
5753#include <limits.h>
5754
5755
5756int
5757main ()
5758{
5759#ifndef LLONG_MAX
5760 char *p = (char *) LLONG_MAX;
5761 return !p;
5762#endif
5763
5764 ;
5765 return 0;
5766}
5767_ACEOF
5768rm -f conftest.$ac_objext
5769if { (ac_try="$ac_compile"
5770case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773esac
5774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5796esac
5797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_try") 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_cv_have_decl_LLONG_MAX=yes
5803else
5804 echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807 ac_cv_have_decl_LLONG_MAX=no
5808fi
5809
5810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811fi
5812{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5813echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5814if test $ac_cv_have_decl_LLONG_MAX = yes; then
5815 have_llong_max=1
5816else
5817 CFLAGS="$saved_CFLAGS"
5818fi
5819
5820 fi
5821fi
5822
5823
5824# Check whether --with-rpath was given.
5825if test "${with_rpath+set}" = set; then
5826 withval=$with_rpath;
5827 if test "x$withval" = "xno" ; then
5828 need_dash_r=""
5829 fi
5830 if test "x$withval" = "xyes" ; then
5831 need_dash_r=1
5832 fi
5833
5834
5835fi
5836
5837
5838# Messages for features tested for in target-specific section
5839SIA_MSG="no"
5840SPC_MSG="no"
5841
5842# Check for some target-specific stuff
5843case "$host" in
5844*-*-aix*)
5845 # Some versions of VAC won't allow macro redefinitions at
5846 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
5847 # particularly with older versions of vac or xlc.
5848 # It also throws errors about null macro argments, but these are
5849 # not fatal.
5850 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
5851echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
5852 cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h. */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h. */
5858
5859#define testmacro foo
5860#define testmacro bar
5861int main(void) { exit(0); }
5862
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (ac_try="$ac_compile"
5866case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869esac
5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879 { (case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 { echo "$as_me:$LINENO: result: yes" >&5
5899echo "${ECHO_T}yes" >&6; }
5900else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 { echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6; }
5906 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
5907 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
5908 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5909 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5910
5911
5912fi
5913
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915
5916 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
5917echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
5918 if (test -z "$blibpath"); then
5919 blibpath="/usr/lib:/lib"
5920 fi
5921 saved_LDFLAGS="$LDFLAGS"
5922 if test "$GCC" = "yes"; then
5923 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
5924 else
5925 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
5926 fi
5927 for tryflags in $flags ;do
5928 if (test -z "$blibflags"); then
5929 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
5930 cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h. */
5936
5937int
5938main ()
5939{
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
5945rm -f conftest.$ac_objext conftest$ac_exeext
5946if { (ac_try="$ac_link"
5947case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_link") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960 { (case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_try") 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest$ac_exeext'
5970 { (case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_try") 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 blibflags=$tryflags
5980else
5981 echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984
5985fi
5986
5987rm -f core conftest.err conftest.$ac_objext \
5988 conftest$ac_exeext conftest.$ac_ext
5989 fi
5990 done
5991 if (test -z "$blibflags"); then
5992 { echo "$as_me:$LINENO: result: not found" >&5
5993echo "${ECHO_T}not found" >&6; }
5994 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
5995echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
5996 { (exit 1); exit 1; }; }
5997 else
5998 { echo "$as_me:$LINENO: result: $blibflags" >&5
5999echo "${ECHO_T}$blibflags" >&6; }
6000 fi
6001 LDFLAGS="$saved_LDFLAGS"
6002 { echo "$as_me:$LINENO: checking for authenticate" >&5
6003echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6004if test "${ac_cv_func_authenticate+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h. */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h. */
6013/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6015#define authenticate innocuous_authenticate
6016
6017/* System header to define __stub macros and hopefully few prototypes,
6018 which can conflict with char authenticate (); below.
6019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020 <limits.h> exists even on freestanding compilers. */
6021
6022#ifdef __STDC__
6023# include <limits.h>
6024#else
6025# include <assert.h>
6026#endif
6027
6028#undef authenticate
6029
6030/* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6033#ifdef __cplusplus
6034extern "C"
6035#endif
6036char authenticate ();
6037/* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040#if defined __stub_authenticate || defined __stub___authenticate
6041choke me
6042#endif
6043
6044int
6045main ()
6046{
6047return authenticate ();
6048 ;
6049 return 0;
6050}
6051_ACEOF
6052rm -f conftest.$ac_objext conftest$ac_exeext
6053if { (ac_try="$ac_link"
6054case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057esac
6058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_link") 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6067 { (case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_try") 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_try") 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_func_authenticate=yes
6087else
6088 echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091 ac_cv_func_authenticate=no
6092fi
6093
6094rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6096fi
6097{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6098echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6099if test $ac_cv_func_authenticate = yes; then
6100
6101cat >>confdefs.h <<\_ACEOF
6102#define WITH_AIXAUTHENTICATE 1
6103_ACEOF
6104
6105else
6106 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6107echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6108if test "${ac_cv_lib_s_authenticate+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 ac_check_lib_save_LIBS=$LIBS
6112LIBS="-ls $LIBS"
6113cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h. */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h. */
6119
6120/* Override any GCC internal prototype to avoid an error.
6121 Use char because int might match the return type of a GCC
6122 builtin and then its argument prototype would still apply. */
6123#ifdef __cplusplus
6124extern "C"
6125#endif
6126char authenticate ();
6127int
6128main ()
6129{
6130return authenticate ();
6131 ;
6132 return 0;
6133}
6134_ACEOF
6135rm -f conftest.$ac_objext conftest$ac_exeext
6136if { (ac_try="$ac_link"
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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6150 { (case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153esac
6154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_try") 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest$ac_exeext'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_lib_s_authenticate=yes
6170else
6171 echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174 ac_cv_lib_s_authenticate=no
6175fi
6176
6177rm -f core conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179LIBS=$ac_check_lib_save_LIBS
6180fi
6181{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6182echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6183if test $ac_cv_lib_s_authenticate = yes; then
6184 cat >>confdefs.h <<\_ACEOF
6185#define WITH_AIXAUTHENTICATE 1
6186_ACEOF
6187
6188 LIBS="$LIBS -ls"
6189
6190fi
6191
6192
6193fi
6194
6195 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6196echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6197if test "${ac_cv_have_decl_authenticate+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 cat >conftest.$ac_ext <<_ACEOF
6201/* confdefs.h. */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h. */
6206#include <usersec.h>
6207
6208int
6209main ()
6210{
6211#ifndef authenticate
6212 char *p = (char *) authenticate;
6213 return !p;
6214#endif
6215
6216 ;
6217 return 0;
6218}
6219_ACEOF
6220rm -f conftest.$ac_objext
6221if { (ac_try="$ac_compile"
6222case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248esac
6249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_try") 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_have_decl_authenticate=yes
6255else
6256 echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 ac_cv_have_decl_authenticate=no
6260fi
6261
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263fi
6264{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6265echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6266if test $ac_cv_have_decl_authenticate = yes; then
6267
6268cat >>confdefs.h <<_ACEOF
6269#define HAVE_DECL_AUTHENTICATE 1
6270_ACEOF
6271
6272
6273else
6274 cat >>confdefs.h <<_ACEOF
6275#define HAVE_DECL_AUTHENTICATE 0
6276_ACEOF
6277
6278
6279fi
6280{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6281echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6282if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285 cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h. */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h. */
6291#include <usersec.h>
6292
6293int
6294main ()
6295{
6296#ifndef loginrestrictions
6297 char *p = (char *) loginrestrictions;
6298 return !p;
6299#endif
6300
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (ac_try="$ac_compile"
6307case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310esac
6311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_have_decl_loginrestrictions=yes
6340else
6341 echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_cv_have_decl_loginrestrictions=no
6345fi
6346
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348fi
6349{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6350echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6351if test $ac_cv_have_decl_loginrestrictions = yes; then
6352
6353cat >>confdefs.h <<_ACEOF
6354#define HAVE_DECL_LOGINRESTRICTIONS 1
6355_ACEOF
6356
6357
6358else
6359 cat >>confdefs.h <<_ACEOF
6360#define HAVE_DECL_LOGINRESTRICTIONS 0
6361_ACEOF
6362
6363
6364fi
6365{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6366echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6367if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370 cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
6376#include <usersec.h>
6377
6378int
6379main ()
6380{
6381#ifndef loginsuccess
6382 char *p = (char *) loginsuccess;
6383 return !p;
6384#endif
6385
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext
6391if { (ac_try="$ac_compile"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6405 { (case "(($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_try") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_cv_have_decl_loginsuccess=yes
6425else
6426 echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 ac_cv_have_decl_loginsuccess=no
6430fi
6431
6432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433fi
6434{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6435echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6436if test $ac_cv_have_decl_loginsuccess = yes; then
6437
6438cat >>confdefs.h <<_ACEOF
6439#define HAVE_DECL_LOGINSUCCESS 1
6440_ACEOF
6441
6442
6443else
6444 cat >>confdefs.h <<_ACEOF
6445#define HAVE_DECL_LOGINSUCCESS 0
6446_ACEOF
6447
6448
6449fi
6450{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6451echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6452if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455 cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h. */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h. */
6461#include <usersec.h>
6462
6463int
6464main ()
6465{
6466#ifndef passwdexpired
6467 char *p = (char *) passwdexpired;
6468 return !p;
6469#endif
6470
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475rm -f conftest.$ac_objext
6476if { (ac_try="$ac_compile"
6477case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490 { (case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_try") 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_have_decl_passwdexpired=yes
6510else
6511 echo "$as_me: failed program was:" >&5
6512sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 ac_cv_have_decl_passwdexpired=no
6515fi
6516
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518fi
6519{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6520echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6521if test $ac_cv_have_decl_passwdexpired = yes; then
6522
6523cat >>confdefs.h <<_ACEOF
6524#define HAVE_DECL_PASSWDEXPIRED 1
6525_ACEOF
6526
6527
6528else
6529 cat >>confdefs.h <<_ACEOF
6530#define HAVE_DECL_PASSWDEXPIRED 0
6531_ACEOF
6532
6533
6534fi
6535{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6536echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6537if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540 cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
6546#include <usersec.h>
6547
6548int
6549main ()
6550{
6551#ifndef setauthdb
6552 char *p = (char *) setauthdb;
6553 return !p;
6554#endif
6555
6556 ;
6557 return 0;
6558}
6559_ACEOF
6560rm -f conftest.$ac_objext
6561if { (ac_try="$ac_compile"
6562case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565esac
6566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_compile") 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6575 { (case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_try") 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; } &&
6584 { ac_try='test -s conftest.$ac_objext'
6585 { (case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588esac
6589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_try") 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_have_decl_setauthdb=yes
6595else
6596 echo "$as_me: failed program was:" >&5
6597sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_cv_have_decl_setauthdb=no
6600fi
6601
6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603fi
6604{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6605echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6606if test $ac_cv_have_decl_setauthdb = yes; then
6607
6608cat >>confdefs.h <<_ACEOF
6609#define HAVE_DECL_SETAUTHDB 1
6610_ACEOF
6611
6612
6613else
6614 cat >>confdefs.h <<_ACEOF
6615#define HAVE_DECL_SETAUTHDB 0
6616_ACEOF
6617
6618
6619fi
6620
6621
6622 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6623echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6624if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627 cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h. */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h. */
6633#include <usersec.h>
6634
6635
6636int
6637main ()
6638{
6639#ifndef loginfailed
6640 char *p = (char *) loginfailed;
6641 return !p;
6642#endif
6643
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648rm -f conftest.$ac_objext
6649if { (ac_try="$ac_compile"
6650case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6653esac
6654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_compile") 2>conftest.er1
6656 ac_status=$?
6657 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -f conftest.er1
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6663 { (case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666esac
6667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_try") 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; } &&
6672 { ac_try='test -s conftest.$ac_objext'
6673 { (case "(($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_try") 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_have_decl_loginfailed=yes
6683else
6684 echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
6686
6687 ac_cv_have_decl_loginfailed=no
6688fi
6689
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691fi
6692{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6693echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6694if test $ac_cv_have_decl_loginfailed = yes; then
6695
6696cat >>confdefs.h <<_ACEOF
6697#define HAVE_DECL_LOGINFAILED 1
6698_ACEOF
6699
6700{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6701echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6702 cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h. */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h. */
6708#include <usersec.h>
6709int
6710main ()
6711{
6712(void)loginfailed("user","host","tty",0);
6713 ;
6714 return 0;
6715}
6716_ACEOF
6717rm -f conftest.$ac_objext
6718if { (ac_try="$ac_compile"
6719case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722esac
6723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6725 ac_status=$?
6726 grep -v '^ *+' conftest.er1 >conftest.err
6727 rm -f conftest.er1
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6732 { (case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735esac
6736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_try") 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest.$ac_objext'
6742 { (case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745esac
6746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_try") 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 { echo "$as_me:$LINENO: result: yes" >&5
6752echo "${ECHO_T}yes" >&6; }
6753
6754cat >>confdefs.h <<\_ACEOF
6755#define AIX_LOGINFAILED_4ARG 1
6756_ACEOF
6757
6758else
6759 echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 { echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6; }
6764
6765fi
6766
6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768else
6769 cat >>confdefs.h <<_ACEOF
6770#define HAVE_DECL_LOGINFAILED 0
6771_ACEOF
6772
6773
6774fi
6775
6776
6777
6778for ac_func in setauthdb
6779do
6780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6781{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h. */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h. */
6792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6794#define $ac_func innocuous_$ac_func
6795
6796/* System header to define __stub macros and hopefully few prototypes,
6797 which can conflict with char $ac_func (); below.
6798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799 <limits.h> exists even on freestanding compilers. */
6800
6801#ifdef __STDC__
6802# include <limits.h>
6803#else
6804# include <assert.h>
6805#endif
6806
6807#undef $ac_func
6808
6809/* Override any GCC internal prototype to avoid an error.
6810 Use char because int might match the return type of a GCC
6811 builtin and then its argument prototype would still apply. */
6812#ifdef __cplusplus
6813extern "C"
6814#endif
6815char $ac_func ();
6816/* The GNU C library defines this for functions which it implements
6817 to always fail with ENOSYS. Some functions are actually named
6818 something starting with __ and the normal name is an alias. */
6819#if defined __stub_$ac_func || defined __stub___$ac_func
6820choke me
6821#endif
6822
6823int
6824main ()
6825{
6826return $ac_func ();
6827 ;
6828 return 0;
6829}
6830_ACEOF
6831rm -f conftest.$ac_objext conftest$ac_exeext
6832if { (ac_try="$ac_link"
6833case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836esac
6837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_link") 2>conftest.er1
6839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6846 { (case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849esac
6850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_try") 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; } &&
6855 { ac_try='test -s conftest$ac_exeext'
6856 { (case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6859esac
6860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_try") 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 eval "$as_ac_var=yes"
6866else
6867 echo "$as_me: failed program was:" >&5
6868sed 's/^/| /' conftest.$ac_ext >&5
6869
6870 eval "$as_ac_var=no"
6871fi
6872
6873rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6875fi
6876ac_res=`eval echo '${'$as_ac_var'}'`
6877 { echo "$as_me:$LINENO: result: $ac_res" >&5
6878echo "${ECHO_T}$ac_res" >&6; }
6879if test `eval echo '${'$as_ac_var'}'` = yes; then
6880 cat >>confdefs.h <<_ACEOF
6881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6882_ACEOF
6883
6884fi
6885done
6886
6887 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
6888echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
6889if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892 cat >conftest.$ac_ext <<_ACEOF
6893/* confdefs.h. */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h. */
6898 #include <limits.h>
6899 #include <fcntl.h>
6900
6901
6902int
6903main ()
6904{
6905#ifndef F_CLOSEM
6906 char *p = (char *) F_CLOSEM;
6907 return !p;
6908#endif
6909
6910 ;
6911 return 0;
6912}
6913_ACEOF
6914rm -f conftest.$ac_objext
6915if { (ac_try="$ac_compile"
6916case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919esac
6920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_compile") 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6929 { (case "(($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_try") 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942esac
6943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_have_decl_F_CLOSEM=yes
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 ac_cv_have_decl_F_CLOSEM=no
6954fi
6955
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957fi
6958{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
6959echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
6960if test $ac_cv_have_decl_F_CLOSEM = yes; then
6961
6962cat >>confdefs.h <<\_ACEOF
6963#define HAVE_FCNTL_CLOSEM 1
6964_ACEOF
6965
6966fi
6967
6968 check_for_aix_broken_getaddrinfo=1
6969
6970cat >>confdefs.h <<\_ACEOF
6971#define BROKEN_REALPATH 1
6972_ACEOF
6973
6974
6975cat >>confdefs.h <<\_ACEOF
6976#define SETEUID_BREAKS_SETUID 1
6977_ACEOF
6978
6979
6980cat >>confdefs.h <<\_ACEOF
6981#define BROKEN_SETREUID 1
6982_ACEOF
6983
6984
6985cat >>confdefs.h <<\_ACEOF
6986#define BROKEN_SETREGID 1
6987_ACEOF
6988
6989
6990cat >>confdefs.h <<\_ACEOF
6991#define DISABLE_LASTLOG 1
6992_ACEOF
6993
6994
6995cat >>confdefs.h <<\_ACEOF
6996#define LOGIN_NEEDS_UTMPX 1
6997_ACEOF
6998
6999
7000cat >>confdefs.h <<\_ACEOF
7001#define SPT_TYPE SPT_REUSEARGV
7002_ACEOF
7003
7004
7005cat >>confdefs.h <<\_ACEOF
7006#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7007_ACEOF
7008
7009
7010cat >>confdefs.h <<\_ACEOF
7011#define PTY_ZEROREAD 1
7012_ACEOF
7013
7014 ;;
7015*-*-cygwin*)
7016 check_for_libcrypt_later=1
7017 LIBS="$LIBS /usr/lib/textmode.o"
7018
7019cat >>confdefs.h <<\_ACEOF
7020#define HAVE_CYGWIN 1
7021_ACEOF
7022
7023
7024cat >>confdefs.h <<\_ACEOF
7025#define USE_PIPES 1
7026_ACEOF
7027
7028
7029cat >>confdefs.h <<\_ACEOF
7030#define DISABLE_SHADOW 1
7031_ACEOF
7032
7033
7034cat >>confdefs.h <<\_ACEOF
7035#define IP_TOS_IS_BROKEN 1
7036_ACEOF
7037
7038
7039cat >>confdefs.h <<\_ACEOF
7040#define NO_X11_UNIX_SOCKETS 1
7041_ACEOF
7042
7043
7044cat >>confdefs.h <<\_ACEOF
7045#define NO_IPPORT_RESERVED_CONCEPT 1
7046_ACEOF
7047
7048
7049cat >>confdefs.h <<\_ACEOF
7050#define DISABLE_FD_PASSING 1
7051_ACEOF
7052
7053 ;;
7054*-*-dgux*)
7055 cat >>confdefs.h <<\_ACEOF
7056#define IP_TOS_IS_BROKEN 1
7057_ACEOF
7058
7059 cat >>confdefs.h <<\_ACEOF
7060#define SETEUID_BREAKS_SETUID 1
7061_ACEOF
7062
7063 cat >>confdefs.h <<\_ACEOF
7064#define BROKEN_SETREUID 1
7065_ACEOF
7066
7067 cat >>confdefs.h <<\_ACEOF
7068#define BROKEN_SETREGID 1
7069_ACEOF
7070
7071 ;;
7072*-*-darwin*)
7073 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7074echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7075 if test "$cross_compiling" = yes; then
7076 { echo "$as_me:$LINENO: result: assume it is working" >&5
7077echo "${ECHO_T}assume it is working" >&6; }
7078else
7079 cat >conftest.$ac_ext <<_ACEOF
7080/* confdefs.h. */
7081_ACEOF
7082cat confdefs.h >>conftest.$ac_ext
7083cat >>conftest.$ac_ext <<_ACEOF
7084/* end confdefs.h. */
7085#include <mach-o/dyld.h>
7086main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7087 exit(0);
7088 else
7089 exit(1);
7090}
7091_ACEOF
7092rm -f conftest$ac_exeext
7093if { (ac_try="$ac_link"
7094case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097esac
7098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_link") 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7103 { (case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106esac
7107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_try") 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 { echo "$as_me:$LINENO: result: working" >&5
7113echo "${ECHO_T}working" >&6; }
7114else
7115 echo "$as_me: program exited with status $ac_status" >&5
7116echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119( exit $ac_status )
7120{ echo "$as_me:$LINENO: result: buggy" >&5
7121echo "${ECHO_T}buggy" >&6; }
7122
7123cat >>confdefs.h <<\_ACEOF
7124#define BROKEN_GETADDRINFO 1
7125_ACEOF
7126
7127fi
7128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7129fi
7130
7131
7132 cat >>confdefs.h <<\_ACEOF
7133#define SETEUID_BREAKS_SETUID 1
7134_ACEOF
7135
7136 cat >>confdefs.h <<\_ACEOF
7137#define BROKEN_SETREUID 1
7138_ACEOF
7139
7140 cat >>confdefs.h <<\_ACEOF
7141#define BROKEN_SETREGID 1
7142_ACEOF
7143
7144
7145cat >>confdefs.h <<_ACEOF
7146#define BIND_8_COMPAT 1
7147_ACEOF
7148
7149
7150cat >>confdefs.h <<\_ACEOF
7151#define SSH_TUN_FREEBSD 1
7152_ACEOF
7153
7154
7155cat >>confdefs.h <<\_ACEOF
7156#define SSH_TUN_COMPAT_AF 1
7157_ACEOF
7158
7159
7160cat >>confdefs.h <<\_ACEOF
7161#define SSH_TUN_PREPEND_AF 1
7162_ACEOF
7163
7164 ;;
7165*-*-dragonfly*)
7166 SSHDLIBS="$SSHDLIBS -lcrypt"
7167 ;;
7168*-*-hpux*)
7169 # first we define all of the options common to all HP-UX releases
7170 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7171 IPADDR_IN_DISPLAY=yes
7172 cat >>confdefs.h <<\_ACEOF
7173#define USE_PIPES 1
7174_ACEOF
7175
7176
7177cat >>confdefs.h <<\_ACEOF
7178#define LOGIN_NO_ENDOPT 1
7179_ACEOF
7180
7181 cat >>confdefs.h <<\_ACEOF
7182#define LOGIN_NEEDS_UTMPX 1
7183_ACEOF
7184
7185
7186cat >>confdefs.h <<\_ACEOF
7187#define LOCKED_PASSWD_STRING "*"
7188_ACEOF
7189
7190 cat >>confdefs.h <<\_ACEOF
7191#define SPT_TYPE SPT_PSTAT
7192_ACEOF
7193
7194 MAIL="/var/mail/username"
7195 LIBS="$LIBS -lsec"
7196
7197{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7198echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7199if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202 ac_check_lib_save_LIBS=$LIBS
7203LIBS="-lxnet $LIBS"
7204cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h. */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h. */
7210
7211/* Override any GCC internal prototype to avoid an error.
7212 Use char because int might match the return type of a GCC
7213 builtin and then its argument prototype would still apply. */
7214#ifdef __cplusplus
7215extern "C"
7216#endif
7217char t_error ();
7218int
7219main ()
7220{
7221return t_error ();
7222 ;
7223 return 0;
7224}
7225_ACEOF
7226rm -f conftest.$ac_objext conftest$ac_exeext
7227if { (ac_try="$ac_link"
7228case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231esac
7232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_link") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7241 { (case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244esac
7245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_try") 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest$ac_exeext'
7251 { (case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7254esac
7255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256 (eval "$ac_try") 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_lib_xnet_t_error=yes
7261else
7262 echo "$as_me: failed program was:" >&5
7263sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 ac_cv_lib_xnet_t_error=no
7266fi
7267
7268rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270LIBS=$ac_check_lib_save_LIBS
7271fi
7272{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7273echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7274if test $ac_cv_lib_xnet_t_error = yes; then
7275 cat >>confdefs.h <<_ACEOF
7276#define HAVE_LIBXNET 1
7277_ACEOF
7278
7279 LIBS="-lxnet $LIBS"
7280
7281else
7282 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7283echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7284 { (exit 1); exit 1; }; }
7285fi
7286
7287
7288 # next, we define all of the options specific to major releases
7289 case "$host" in
7290 *-*-hpux10*)
7291 if test -z "$GCC"; then
7292 CFLAGS="$CFLAGS -Ae"
7293 fi
7294 ;;
7295 *-*-hpux11*)
7296
7297cat >>confdefs.h <<\_ACEOF
7298#define PAM_SUN_CODEBASE 1
7299_ACEOF
7300
7301
7302cat >>confdefs.h <<\_ACEOF
7303#define DISABLE_UTMP 1
7304_ACEOF
7305
7306
7307cat >>confdefs.h <<\_ACEOF
7308#define USE_BTMP 1
7309_ACEOF
7310
7311 check_for_hpux_broken_getaddrinfo=1
7312 check_for_conflicting_getspnam=1
7313 ;;
7314 esac
7315
7316 # lastly, we define options specific to minor releases
7317 case "$host" in
7318 *-*-hpux10.26)
7319
7320cat >>confdefs.h <<\_ACEOF
7321#define HAVE_SECUREWARE 1
7322_ACEOF
7323
7324 disable_ptmx_check=yes
7325 LIBS="$LIBS -lsecpw"
7326 ;;
7327 esac
7328 ;;
7329*-*-irix5*)
7330 PATH="$PATH:/usr/etc"
7331
7332cat >>confdefs.h <<\_ACEOF
7333#define BROKEN_INET_NTOA 1
7334_ACEOF
7335
7336 cat >>confdefs.h <<\_ACEOF
7337#define SETEUID_BREAKS_SETUID 1
7338_ACEOF
7339
7340 cat >>confdefs.h <<\_ACEOF
7341#define BROKEN_SETREUID 1
7342_ACEOF
7343
7344 cat >>confdefs.h <<\_ACEOF
7345#define BROKEN_SETREGID 1
7346_ACEOF
7347
7348
7349cat >>confdefs.h <<\_ACEOF
7350#define WITH_ABBREV_NO_TTY 1
7351_ACEOF
7352
7353 cat >>confdefs.h <<\_ACEOF
7354#define LOCKED_PASSWD_STRING "*LK*"
7355_ACEOF
7356
7357 ;;
7358*-*-irix6*)
7359 PATH="$PATH:/usr/etc"
7360
7361cat >>confdefs.h <<\_ACEOF
7362#define WITH_IRIX_ARRAY 1
7363_ACEOF
7364
7365
7366cat >>confdefs.h <<\_ACEOF
7367#define WITH_IRIX_PROJECT 1
7368_ACEOF
7369
7370
7371cat >>confdefs.h <<\_ACEOF
7372#define WITH_IRIX_AUDIT 1
7373_ACEOF
7374
7375 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7376echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7377if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380 cat >conftest.$ac_ext <<_ACEOF
7381/* confdefs.h. */
7382_ACEOF
7383cat confdefs.h >>conftest.$ac_ext
7384cat >>conftest.$ac_ext <<_ACEOF
7385/* end confdefs.h. */
7386/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7388#define jlimit_startjob innocuous_jlimit_startjob
7389
7390/* System header to define __stub macros and hopefully few prototypes,
7391 which can conflict with char jlimit_startjob (); below.
7392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393 <limits.h> exists even on freestanding compilers. */
7394
7395#ifdef __STDC__
7396# include <limits.h>
7397#else
7398# include <assert.h>
7399#endif
7400
7401#undef jlimit_startjob
7402
7403/* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7406#ifdef __cplusplus
7407extern "C"
7408#endif
7409char jlimit_startjob ();
7410/* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7414choke me
7415#endif
7416
7417int
7418main ()
7419{
7420return jlimit_startjob ();
7421 ;
7422 return 0;
7423}
7424_ACEOF
7425rm -f conftest.$ac_objext conftest$ac_exeext
7426if { (ac_try="$ac_link"
7427case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430esac
7431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_link") 2>conftest.er1
7433 ac_status=$?
7434 grep -v '^ *+' conftest.er1 >conftest.err
7435 rm -f conftest.er1
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7440 { (case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443esac
7444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_try") 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest$ac_exeext'
7450 { (case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453esac
7454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_try") 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_func_jlimit_startjob=yes
7460else
7461 echo "$as_me: failed program was:" >&5
7462sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 ac_cv_func_jlimit_startjob=no
7465fi
7466
7467rm -f core conftest.err conftest.$ac_objext \
7468 conftest$ac_exeext conftest.$ac_ext
7469fi
7470{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7471echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7472if test $ac_cv_func_jlimit_startjob = yes; then
7473
7474cat >>confdefs.h <<\_ACEOF
7475#define WITH_IRIX_JOBS 1
7476_ACEOF
7477
7478fi
7479
7480 cat >>confdefs.h <<\_ACEOF
7481#define BROKEN_INET_NTOA 1
7482_ACEOF
7483
7484 cat >>confdefs.h <<\_ACEOF
7485#define SETEUID_BREAKS_SETUID 1
7486_ACEOF
7487
7488 cat >>confdefs.h <<\_ACEOF
7489#define BROKEN_SETREUID 1
7490_ACEOF
7491
7492 cat >>confdefs.h <<\_ACEOF
7493#define BROKEN_SETREGID 1
7494_ACEOF
7495
7496
7497cat >>confdefs.h <<\_ACEOF
7498#define BROKEN_UPDWTMPX 1
7499_ACEOF
7500
7501 cat >>confdefs.h <<\_ACEOF
7502#define WITH_ABBREV_NO_TTY 1
7503_ACEOF
7504
7505 cat >>confdefs.h <<\_ACEOF
7506#define LOCKED_PASSWD_STRING "*LK*"
7507_ACEOF
7508
7509 ;;
7510*-*-linux*)
7511 no_dev_ptmx=1
7512 check_for_libcrypt_later=1
7513 check_for_openpty_ctty_bug=1
7514
7515cat >>confdefs.h <<\_ACEOF
7516#define DONT_TRY_OTHER_AF 1
7517_ACEOF
7518
7519
7520cat >>confdefs.h <<\_ACEOF
7521#define PAM_TTY_KLUDGE 1
7522_ACEOF
7523
7524
7525cat >>confdefs.h <<\_ACEOF
7526#define LOCKED_PASSWD_PREFIX "!"
7527_ACEOF
7528
7529 cat >>confdefs.h <<\_ACEOF
7530#define SPT_TYPE SPT_REUSEARGV
7531_ACEOF
7532
7533
7534cat >>confdefs.h <<\_ACEOF
7535#define LINK_OPNOTSUPP_ERRNO EPERM
7536_ACEOF
7537
7538
7539cat >>confdefs.h <<\_ACEOF
7540#define _PATH_BTMP "/var/log/btmp"
7541_ACEOF
7542
7543 cat >>confdefs.h <<\_ACEOF
7544#define USE_BTMP 1
7545_ACEOF
7546
7547 inet6_default_4in6=yes
7548 case `uname -r` in
7549 1.*|2.0.*)
7550
7551cat >>confdefs.h <<\_ACEOF
7552#define BROKEN_CMSG_TYPE 1
7553_ACEOF
7554
7555 ;;
7556 esac
7557 # tun(4) forwarding compat code
7558
7559for ac_header in linux/if_tun.h
7560do
7561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567fi
7568ac_res=`eval echo '${'$as_ac_Header'}'`
7569 { echo "$as_me:$LINENO: result: $ac_res" >&5
7570echo "${ECHO_T}$ac_res" >&6; }
7571else
7572 # Is the header compilable?
7573{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7575cat >conftest.$ac_ext <<_ACEOF
7576/* confdefs.h. */
7577_ACEOF
7578cat confdefs.h >>conftest.$ac_ext
7579cat >>conftest.$ac_ext <<_ACEOF
7580/* end confdefs.h. */
7581$ac_includes_default
7582#include <$ac_header>
7583_ACEOF
7584rm -f conftest.$ac_objext
7585if { (ac_try="$ac_compile"
7586case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589esac
7590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7599 { (case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602esac
7603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_try") 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest.$ac_objext'
7609 { (case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612esac
7613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_try") 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_header_compiler=yes
7619else
7620 echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ac_header_compiler=no
7624fi
7625
7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7628echo "${ECHO_T}$ac_header_compiler" >&6; }
7629
7630# Is the header present?
7631{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7633cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
7639#include <$ac_header>
7640_ACEOF
7641if { (ac_try="$ac_cpp conftest.$ac_ext"
7642case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645esac
7646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } >/dev/null; then
7654 if test -s conftest.err; then
7655 ac_cpp_err=$ac_c_preproc_warn_flag
7656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7657 else
7658 ac_cpp_err=
7659 fi
7660else
7661 ac_cpp_err=yes
7662fi
7663if test -z "$ac_cpp_err"; then
7664 ac_header_preproc=yes
7665else
7666 echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669 ac_header_preproc=no
7670fi
7671
7672rm -f conftest.err conftest.$ac_ext
7673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7674echo "${ECHO_T}$ac_header_preproc" >&6; }
7675
7676# So? What about this header?
7677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7678 yes:no: )
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7683 ac_header_preproc=yes
7684 ;;
7685 no:yes:* )
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7698 ( cat <<\_ASBOX
7699## ------------------------------------------- ##
7700## Report this to openssh-unix-dev@mindrot.org ##
7701## ------------------------------------------- ##
7702_ASBOX
7703 ) | sed "s/^/$as_me: WARNING: /" >&2
7704 ;;
7705esac
7706{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711 eval "$as_ac_Header=\$ac_header_preproc"
7712fi
7713ac_res=`eval echo '${'$as_ac_Header'}'`
7714 { echo "$as_me:$LINENO: result: $ac_res" >&5
7715echo "${ECHO_T}$ac_res" >&6; }
7716
7717fi
7718if test `eval echo '${'$as_ac_Header'}'` = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7721_ACEOF
7722
7723fi
7724
7725done
7726
7727 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7728
7729cat >>confdefs.h <<\_ACEOF
7730#define SSH_TUN_LINUX 1
7731_ACEOF
7732
7733
7734cat >>confdefs.h <<\_ACEOF
7735#define SSH_TUN_COMPAT_AF 1
7736_ACEOF
7737
7738
7739cat >>confdefs.h <<\_ACEOF
7740#define SSH_TUN_PREPEND_AF 1
7741_ACEOF
7742
7743 fi
7744 ;;
7745mips-sony-bsd|mips-sony-newsos4)
7746
7747cat >>confdefs.h <<\_ACEOF
7748#define NEED_SETPGRP 1
7749_ACEOF
7750
7751 SONY=1
7752 ;;
7753*-*-netbsd*)
7754 check_for_libcrypt_before=1
7755 if test "x$withval" != "xno" ; then
7756 need_dash_r=1
7757 fi
7758
7759cat >>confdefs.h <<\_ACEOF
7760#define SSH_TUN_FREEBSD 1
7761_ACEOF
7762
7763 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7764 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7765echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7766if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768fi
7769{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7770echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7771else
7772 # Is the header compilable?
7773{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7774echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7775cat >conftest.$ac_ext <<_ACEOF
7776/* confdefs.h. */
7777_ACEOF
7778cat confdefs.h >>conftest.$ac_ext
7779cat >>conftest.$ac_ext <<_ACEOF
7780/* end confdefs.h. */
7781$ac_includes_default
7782#include <net/if_tap.h>
7783_ACEOF
7784rm -f conftest.$ac_objext
7785if { (ac_try="$ac_compile"
7786case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789esac
7790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7799 { (case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802esac
7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_try") 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; } &&
7808 { ac_try='test -s conftest.$ac_objext'
7809 { (case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812esac
7813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_try") 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 ac_header_compiler=yes
7819else
7820 echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_header_compiler=no
7824fi
7825
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7828echo "${ECHO_T}$ac_header_compiler" >&6; }
7829
7830# Is the header present?
7831{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7832echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7833cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
7839#include <net/if_tap.h>
7840_ACEOF
7841if { (ac_try="$ac_cpp conftest.$ac_ext"
7842case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } >/dev/null; then
7854 if test -s conftest.err; then
7855 ac_cpp_err=$ac_c_preproc_warn_flag
7856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7857 else
7858 ac_cpp_err=
7859 fi
7860else
7861 ac_cpp_err=yes
7862fi
7863if test -z "$ac_cpp_err"; then
7864 ac_header_preproc=yes
7865else
7866 echo "$as_me: failed program was:" >&5
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_header_preproc=no
7870fi
7871
7872rm -f conftest.err conftest.$ac_ext
7873{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874echo "${ECHO_T}$ac_header_preproc" >&6; }
7875
7876# So? What about this header?
7877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878 yes:no: )
7879 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7880echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7882echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7884 ;;
7885 no:yes:* )
7886 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7887echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
7889echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7891echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
7893echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7895echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7897echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7898 ( cat <<\_ASBOX
7899## ------------------------------------------- ##
7900## Report this to openssh-unix-dev@mindrot.org ##
7901## ------------------------------------------- ##
7902_ASBOX
7903 ) | sed "s/^/$as_me: WARNING: /" >&2
7904 ;;
7905esac
7906{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7907echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7908if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 ac_cv_header_net_if_tap_h=$ac_header_preproc
7912fi
7913{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7914echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7915
7916fi
7917if test $ac_cv_header_net_if_tap_h = yes; then
7918 :
7919else
7920
7921cat >>confdefs.h <<\_ACEOF
7922#define SSH_TUN_NO_L2 1
7923_ACEOF
7924
7925fi
7926
7927
7928
7929cat >>confdefs.h <<\_ACEOF
7930#define SSH_TUN_PREPEND_AF 1
7931_ACEOF
7932
7933 ;;
7934*-*-freebsd*)
7935 check_for_libcrypt_later=1
7936
7937cat >>confdefs.h <<\_ACEOF
7938#define LOCKED_PASSWD_PREFIX "*LOCKED*"
7939_ACEOF
7940
7941
7942cat >>confdefs.h <<\_ACEOF
7943#define SSH_TUN_FREEBSD 1
7944_ACEOF
7945
7946 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7947 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7948echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7949if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951fi
7952{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7953echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7954else
7955 # Is the header compilable?
7956{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7957echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7958cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h. */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h. */
7964$ac_includes_default
7965#include <net/if_tap.h>
7966_ACEOF
7967rm -f conftest.$ac_objext
7968if { (ac_try="$ac_compile"
7969case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_compile") 2>conftest.er1
7975 ac_status=$?
7976 grep -v '^ *+' conftest.er1 >conftest.err
7977 rm -f conftest.er1
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7982 { (case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985esac
7986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_try") 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995esac
7996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_try") 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 ac_header_compiler=yes
8002else
8003 echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006 ac_header_compiler=no
8007fi
8008
8009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8011echo "${ECHO_T}$ac_header_compiler" >&6; }
8012
8013# Is the header present?
8014{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8015echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8016cat >conftest.$ac_ext <<_ACEOF
8017/* confdefs.h. */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h. */
8022#include <net/if_tap.h>
8023_ACEOF
8024if { (ac_try="$ac_cpp conftest.$ac_ext"
8025case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } >/dev/null; then
8037 if test -s conftest.err; then
8038 ac_cpp_err=$ac_c_preproc_warn_flag
8039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8040 else
8041 ac_cpp_err=
8042 fi
8043else
8044 ac_cpp_err=yes
8045fi
8046if test -z "$ac_cpp_err"; then
8047 ac_header_preproc=yes
8048else
8049 echo "$as_me: failed program was:" >&5
8050sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_header_preproc=no
8053fi
8054
8055rm -f conftest.err conftest.$ac_ext
8056{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8057echo "${ECHO_T}$ac_header_preproc" >&6; }
8058
8059# So? What about this header?
8060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8061 yes:no: )
8062 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8063echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8065echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8066 ac_header_preproc=yes
8067 ;;
8068 no:yes:* )
8069 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8070echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8072echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8074echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8076echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8078echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8080echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8081 ( cat <<\_ASBOX
8082## ------------------------------------------- ##
8083## Report this to openssh-unix-dev@mindrot.org ##
8084## ------------------------------------------- ##
8085_ASBOX
8086 ) | sed "s/^/$as_me: WARNING: /" >&2
8087 ;;
8088esac
8089{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8090echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8091if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093else
8094 ac_cv_header_net_if_tap_h=$ac_header_preproc
8095fi
8096{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8097echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8098
8099fi
8100if test $ac_cv_header_net_if_tap_h = yes; then
8101 :
8102else
8103
8104cat >>confdefs.h <<\_ACEOF
8105#define SSH_TUN_NO_L2 1
8106_ACEOF
8107
8108fi
8109
8110
8111 ;;
8112*-*-bsdi*)
8113 cat >>confdefs.h <<\_ACEOF
8114#define SETEUID_BREAKS_SETUID 1
8115_ACEOF
8116
8117 cat >>confdefs.h <<\_ACEOF
8118#define BROKEN_SETREUID 1
8119_ACEOF
8120
8121 cat >>confdefs.h <<\_ACEOF
8122#define BROKEN_SETREGID 1
8123_ACEOF
8124
8125 ;;
8126*-next-*)
8127 conf_lastlog_location="/usr/adm/lastlog"
8128 conf_utmp_location=/etc/utmp
8129 conf_wtmp_location=/usr/adm/wtmp
8130 MAIL=/usr/spool/mail
8131
8132cat >>confdefs.h <<\_ACEOF
8133#define HAVE_NEXT 1
8134_ACEOF
8135
8136 cat >>confdefs.h <<\_ACEOF
8137#define BROKEN_REALPATH 1
8138_ACEOF
8139
8140 cat >>confdefs.h <<\_ACEOF
8141#define USE_PIPES 1
8142_ACEOF
8143
8144
8145cat >>confdefs.h <<\_ACEOF
8146#define BROKEN_SAVED_UIDS 1
8147_ACEOF
8148
8149 ;;
8150*-*-openbsd*)
8151
8152cat >>confdefs.h <<\_ACEOF
8153#define HAVE_ATTRIBUTE__SENTINEL__ 1
8154_ACEOF
8155
8156
8157cat >>confdefs.h <<\_ACEOF
8158#define HAVE_ATTRIBUTE__BOUNDED__ 1
8159_ACEOF
8160
8161
8162cat >>confdefs.h <<\_ACEOF
8163#define SSH_TUN_OPENBSD 1
8164_ACEOF
8165
8166
8167cat >>confdefs.h <<\_ACEOF
8168#define SYSLOG_R_SAFE_IN_SIGHAND 1
8169_ACEOF
8170
8171 ;;
8172*-*-solaris*)
8173 if test "x$withval" != "xno" ; then
8174 need_dash_r=1
8175 fi
8176 cat >>confdefs.h <<\_ACEOF
8177#define PAM_SUN_CODEBASE 1
8178_ACEOF
8179
8180 cat >>confdefs.h <<\_ACEOF
8181#define LOGIN_NEEDS_UTMPX 1
8182_ACEOF
8183
8184
8185cat >>confdefs.h <<\_ACEOF
8186#define LOGIN_NEEDS_TERM 1
8187_ACEOF
8188
8189 cat >>confdefs.h <<\_ACEOF
8190#define PAM_TTY_KLUDGE 1
8191_ACEOF
8192
8193
8194cat >>confdefs.h <<\_ACEOF
8195#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8196_ACEOF
8197
8198 cat >>confdefs.h <<\_ACEOF
8199#define LOCKED_PASSWD_STRING "*LK*"
8200_ACEOF
8201
8202 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8203
8204cat >>confdefs.h <<\_ACEOF
8205#define SSHD_ACQUIRES_CTTY 1
8206_ACEOF
8207
8208
8209cat >>confdefs.h <<\_ACEOF
8210#define PASSWD_NEEDS_USERNAME 1
8211_ACEOF
8212
8213 external_path_file=/etc/default/login
8214 # hardwire lastlog location (can't detect it on some versions)
8215 conf_lastlog_location="/var/adm/lastlog"
8216 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8217echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8218 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8219 if test "$sol2ver" -ge 8; then
8220 { echo "$as_me:$LINENO: result: yes" >&5
8221echo "${ECHO_T}yes" >&6; }
8222 cat >>confdefs.h <<\_ACEOF
8223#define DISABLE_UTMP 1
8224_ACEOF
8225
8226
8227cat >>confdefs.h <<\_ACEOF
8228#define DISABLE_WTMP 1
8229_ACEOF
8230
8231 else
8232 { echo "$as_me:$LINENO: result: no" >&5
8233echo "${ECHO_T}no" >&6; }
8234 fi
8235
8236# Check whether --with-solaris-contracts was given.
8237if test "${with_solaris_contracts+set}" = set; then
8238 withval=$with_solaris_contracts;
8239 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8240echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8241if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243else
8244 ac_check_lib_save_LIBS=$LIBS
8245LIBS="-lcontract $LIBS"
8246cat >conftest.$ac_ext <<_ACEOF
8247/* confdefs.h. */
8248_ACEOF
8249cat confdefs.h >>conftest.$ac_ext
8250cat >>conftest.$ac_ext <<_ACEOF
8251/* end confdefs.h. */
8252
8253/* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8256#ifdef __cplusplus
8257extern "C"
8258#endif
8259char ct_tmpl_activate ();
8260int
8261main ()
8262{
8263return ct_tmpl_activate ();
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268rm -f conftest.$ac_objext conftest$ac_exeext
8269if { (ac_try="$ac_link"
8270case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273esac
8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_link") 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283 { (case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286esac
8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_try") 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest$ac_exeext'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296esac
8297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_lib_contract_ct_tmpl_activate=yes
8303else
8304 echo "$as_me: failed program was:" >&5
8305sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ac_cv_lib_contract_ct_tmpl_activate=no
8308fi
8309
8310rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312LIBS=$ac_check_lib_save_LIBS
8313fi
8314{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8315echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8316if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8317
8318cat >>confdefs.h <<\_ACEOF
8319#define USE_SOLARIS_PROCESS_CONTRACTS 1
8320_ACEOF
8321
8322 SSHDLIBS="$SSHDLIBS -lcontract"
8323
8324 SPC_MSG="yes"
8325fi
8326
8327
8328fi
8329
8330 ;;
8331*-*-sunos4*)
8332 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8333
8334for ac_func in getpwanam
8335do
8336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8337{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 cat >conftest.$ac_ext <<_ACEOF
8343/* confdefs.h. */
8344_ACEOF
8345cat confdefs.h >>conftest.$ac_ext
8346cat >>conftest.$ac_ext <<_ACEOF
8347/* end confdefs.h. */
8348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8350#define $ac_func innocuous_$ac_func
8351
8352/* System header to define __stub macros and hopefully few prototypes,
8353 which can conflict with char $ac_func (); below.
8354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355 <limits.h> exists even on freestanding compilers. */
8356
8357#ifdef __STDC__
8358# include <limits.h>
8359#else
8360# include <assert.h>
8361#endif
8362
8363#undef $ac_func
8364
8365/* Override any GCC internal prototype to avoid an error.
8366 Use char because int might match the return type of a GCC
8367 builtin and then its argument prototype would still apply. */
8368#ifdef __cplusplus
8369extern "C"
8370#endif
8371char $ac_func ();
8372/* The GNU C library defines this for functions which it implements
8373 to always fail with ENOSYS. Some functions are actually named
8374 something starting with __ and the normal name is an alias. */
8375#if defined __stub_$ac_func || defined __stub___$ac_func
8376choke me
8377#endif
8378
8379int
8380main ()
8381{
8382return $ac_func ();
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext conftest$ac_exeext
8388if { (ac_try="$ac_link"
8389case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_link") 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest$ac_exeext'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8415esac
8416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 eval "$as_ac_var=yes"
8422else
8423 echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 eval "$as_ac_var=no"
8427fi
8428
8429rm -f core conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8431fi
8432ac_res=`eval echo '${'$as_ac_var'}'`
8433 { echo "$as_me:$LINENO: result: $ac_res" >&5
8434echo "${ECHO_T}$ac_res" >&6; }
8435if test `eval echo '${'$as_ac_var'}'` = yes; then
8436 cat >>confdefs.h <<_ACEOF
8437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8438_ACEOF
8439
8440fi
8441done
8442
8443 cat >>confdefs.h <<\_ACEOF
8444#define PAM_SUN_CODEBASE 1
8445_ACEOF
8446
8447 conf_utmp_location=/etc/utmp
8448 conf_wtmp_location=/var/adm/wtmp
8449 conf_lastlog_location=/var/adm/lastlog
8450 cat >>confdefs.h <<\_ACEOF
8451#define USE_PIPES 1
8452_ACEOF
8453
8454 ;;
8455*-ncr-sysv*)
8456 LIBS="$LIBS -lc89"
8457 cat >>confdefs.h <<\_ACEOF
8458#define USE_PIPES 1
8459_ACEOF
8460
8461 cat >>confdefs.h <<\_ACEOF
8462#define SSHD_ACQUIRES_CTTY 1
8463_ACEOF
8464
8465 cat >>confdefs.h <<\_ACEOF
8466#define SETEUID_BREAKS_SETUID 1
8467_ACEOF
8468
8469 cat >>confdefs.h <<\_ACEOF
8470#define BROKEN_SETREUID 1
8471_ACEOF
8472
8473 cat >>confdefs.h <<\_ACEOF
8474#define BROKEN_SETREGID 1
8475_ACEOF
8476
8477 ;;
8478*-sni-sysv*)
8479 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8480
8481{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8482echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8483if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485else
8486 ac_check_lib_save_LIBS=$LIBS
8487LIBS="-ldl $LIBS"
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494
8495/* Override any GCC internal prototype to avoid an error.
8496 Use char because int might match the return type of a GCC
8497 builtin and then its argument prototype would still apply. */
8498#ifdef __cplusplus
8499extern "C"
8500#endif
8501char dlsym ();
8502int
8503main ()
8504{
8505return dlsym ();
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (ac_try="$ac_link"
8512case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515esac
8516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528esac
8529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_try") 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538esac
8539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_lib_dl_dlsym=yes
8545else
8546 echo "$as_me: failed program was:" >&5
8547sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_cv_lib_dl_dlsym=no
8550fi
8551
8552rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554LIBS=$ac_check_lib_save_LIBS
8555fi
8556{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8557echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8558if test $ac_cv_lib_dl_dlsym = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560#define HAVE_LIBDL 1
8561_ACEOF
8562
8563 LIBS="-ldl $LIBS"
8564
8565fi
8566
8567 # -lresolv needs to be at the end of LIBS or DNS lookups break
8568 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8569echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8570if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572else
8573 ac_check_lib_save_LIBS=$LIBS
8574LIBS="-lresolv $LIBS"
8575cat >conftest.$ac_ext <<_ACEOF
8576/* confdefs.h. */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h. */
8581
8582/* Override any GCC internal prototype to avoid an error.
8583 Use char because int might match the return type of a GCC
8584 builtin and then its argument prototype would still apply. */
8585#ifdef __cplusplus
8586extern "C"
8587#endif
8588char res_query ();
8589int
8590main ()
8591{
8592return res_query ();
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest.$ac_objext conftest$ac_exeext
8598if { (ac_try="$ac_link"
8599case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612 { (case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615esac
8616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_try") 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_lib_resolv_res_query=yes
8632else
8633 echo "$as_me: failed program was:" >&5
8634sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 ac_cv_lib_resolv_res_query=no
8637fi
8638
8639rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641LIBS=$ac_check_lib_save_LIBS
8642fi
8643{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8644echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8645if test $ac_cv_lib_resolv_res_query = yes; then
8646 LIBS="$LIBS -lresolv"
8647fi
8648
8649 IPADDR_IN_DISPLAY=yes
8650 cat >>confdefs.h <<\_ACEOF
8651#define USE_PIPES 1
8652_ACEOF
8653
8654 cat >>confdefs.h <<\_ACEOF
8655#define IP_TOS_IS_BROKEN 1
8656_ACEOF
8657
8658 cat >>confdefs.h <<\_ACEOF
8659#define SETEUID_BREAKS_SETUID 1
8660_ACEOF
8661
8662 cat >>confdefs.h <<\_ACEOF
8663#define BROKEN_SETREUID 1
8664_ACEOF
8665
8666 cat >>confdefs.h <<\_ACEOF
8667#define BROKEN_SETREGID 1
8668_ACEOF
8669
8670 cat >>confdefs.h <<\_ACEOF
8671#define SSHD_ACQUIRES_CTTY 1
8672_ACEOF
8673
8674 external_path_file=/etc/default/login
8675 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8676 # Attention: always take care to bind libsocket and libnsl before libc,
8677 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8678 ;;
8679# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8680*-*-sysv4.2*)
8681 cat >>confdefs.h <<\_ACEOF
8682#define USE_PIPES 1
8683_ACEOF
8684
8685 cat >>confdefs.h <<\_ACEOF
8686#define SETEUID_BREAKS_SETUID 1
8687_ACEOF
8688
8689 cat >>confdefs.h <<\_ACEOF
8690#define BROKEN_SETREUID 1
8691_ACEOF
8692
8693 cat >>confdefs.h <<\_ACEOF
8694#define BROKEN_SETREGID 1
8695_ACEOF
8696
8697
8698cat >>confdefs.h <<\_ACEOF
8699#define PASSWD_NEEDS_USERNAME 1
8700_ACEOF
8701
8702 cat >>confdefs.h <<\_ACEOF
8703#define LOCKED_PASSWD_STRING "*LK*"
8704_ACEOF
8705
8706 ;;
8707# UnixWare 7.x, OpenUNIX 8
8708*-*-sysv5*)
8709 check_for_libcrypt_later=1
8710
8711cat >>confdefs.h <<\_ACEOF
8712#define UNIXWARE_LONG_PASSWORDS 1
8713_ACEOF
8714
8715 cat >>confdefs.h <<\_ACEOF
8716#define USE_PIPES 1
8717_ACEOF
8718
8719 cat >>confdefs.h <<\_ACEOF
8720#define SETEUID_BREAKS_SETUID 1
8721_ACEOF
8722
8723 cat >>confdefs.h <<\_ACEOF
8724#define BROKEN_SETREUID 1
8725_ACEOF
8726
8727 cat >>confdefs.h <<\_ACEOF
8728#define BROKEN_SETREGID 1
8729_ACEOF
8730
8731 cat >>confdefs.h <<\_ACEOF
8732#define PASSWD_NEEDS_USERNAME 1
8733_ACEOF
8734
8735 case "$host" in
8736 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8737 TEST_SHELL=/u95/bin/sh
8738
8739cat >>confdefs.h <<\_ACEOF
8740#define BROKEN_LIBIAF 1
8741_ACEOF
8742
8743 cat >>confdefs.h <<\_ACEOF
8744#define BROKEN_UPDWTMPX 1
8745_ACEOF
8746
8747 ;;
8748 *) cat >>confdefs.h <<\_ACEOF
8749#define LOCKED_PASSWD_STRING "*LK*"
8750_ACEOF
8751
8752 ;;
8753 esac
8754 ;;
8755*-*-sysv*)
8756 ;;
8757# SCO UNIX and OEM versions of SCO UNIX
8758*-*-sco3.2v4*)
8759 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8760echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8761 { (exit 1); exit 1; }; }
8762 ;;
8763# SCO OpenServer 5.x
8764*-*-sco3.2v5*)
8765 if test -z "$GCC"; then
8766 CFLAGS="$CFLAGS -belf"
8767 fi
8768 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8769 no_dev_ptmx=1
8770 cat >>confdefs.h <<\_ACEOF
8771#define USE_PIPES 1
8772_ACEOF
8773
8774 cat >>confdefs.h <<\_ACEOF
8775#define HAVE_SECUREWARE 1
8776_ACEOF
8777
8778 cat >>confdefs.h <<\_ACEOF
8779#define DISABLE_SHADOW 1
8780_ACEOF
8781
8782 cat >>confdefs.h <<\_ACEOF
8783#define DISABLE_FD_PASSING 1
8784_ACEOF
8785
8786 cat >>confdefs.h <<\_ACEOF
8787#define SETEUID_BREAKS_SETUID 1
8788_ACEOF
8789
8790 cat >>confdefs.h <<\_ACEOF
8791#define BROKEN_SETREUID 1
8792_ACEOF
8793
8794 cat >>confdefs.h <<\_ACEOF
8795#define BROKEN_SETREGID 1
8796_ACEOF
8797
8798 cat >>confdefs.h <<\_ACEOF
8799#define WITH_ABBREV_NO_TTY 1
8800_ACEOF
8801
8802 cat >>confdefs.h <<\_ACEOF
8803#define BROKEN_UPDWTMPX 1
8804_ACEOF
8805
8806 cat >>confdefs.h <<\_ACEOF
8807#define PASSWD_NEEDS_USERNAME 1
8808_ACEOF
8809
8810
8811
8812for ac_func in getluid setluid
8813do
8814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8815{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819else
8820 cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8828#define $ac_func innocuous_$ac_func
8829
8830/* System header to define __stub macros and hopefully few prototypes,
8831 which can conflict with char $ac_func (); below.
8832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833 <limits.h> exists even on freestanding compilers. */
8834
8835#ifdef __STDC__
8836# include <limits.h>
8837#else
8838# include <assert.h>
8839#endif
8840
8841#undef $ac_func
8842
8843/* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846#ifdef __cplusplus
8847extern "C"
8848#endif
8849char $ac_func ();
8850/* The GNU C library defines this for functions which it implements
8851 to always fail with ENOSYS. Some functions are actually named
8852 something starting with __ and the normal name is an alias. */
8853#if defined __stub_$ac_func || defined __stub___$ac_func
8854choke me
8855#endif
8856
8857int
8858main ()
8859{
8860return $ac_func ();
8861 ;
8862 return 0;
8863}
8864_ACEOF
8865rm -f conftest.$ac_objext conftest$ac_exeext
8866if { (ac_try="$ac_link"
8867case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870esac
8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_link") 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8880 { (case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_try") 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893esac
8894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_try") 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 eval "$as_ac_var=yes"
8900else
8901 echo "$as_me: failed program was:" >&5
8902sed 's/^/| /' conftest.$ac_ext >&5
8903
8904 eval "$as_ac_var=no"
8905fi
8906
8907rm -f core conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
8909fi
8910ac_res=`eval echo '${'$as_ac_var'}'`
8911 { echo "$as_me:$LINENO: result: $ac_res" >&5
8912echo "${ECHO_T}$ac_res" >&6; }
8913if test `eval echo '${'$as_ac_var'}'` = yes; then
8914 cat >>confdefs.h <<_ACEOF
8915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8916_ACEOF
8917
8918fi
8919done
8920
8921 MANTYPE=man
8922 TEST_SHELL=ksh
8923 ;;
8924*-*-unicosmk*)
8925
8926cat >>confdefs.h <<\_ACEOF
8927#define NO_SSH_LASTLOG 1
8928_ACEOF
8929
8930 cat >>confdefs.h <<\_ACEOF
8931#define SETEUID_BREAKS_SETUID 1
8932_ACEOF
8933
8934 cat >>confdefs.h <<\_ACEOF
8935#define BROKEN_SETREUID 1
8936_ACEOF
8937
8938 cat >>confdefs.h <<\_ACEOF
8939#define BROKEN_SETREGID 1
8940_ACEOF
8941
8942 cat >>confdefs.h <<\_ACEOF
8943#define USE_PIPES 1
8944_ACEOF
8945
8946 cat >>confdefs.h <<\_ACEOF
8947#define DISABLE_FD_PASSING 1
8948_ACEOF
8949
8950 LDFLAGS="$LDFLAGS"
8951 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8952 MANTYPE=cat
8953 ;;
8954*-*-unicosmp*)
8955 cat >>confdefs.h <<\_ACEOF
8956#define SETEUID_BREAKS_SETUID 1
8957_ACEOF
8958
8959 cat >>confdefs.h <<\_ACEOF
8960#define BROKEN_SETREUID 1
8961_ACEOF
8962
8963 cat >>confdefs.h <<\_ACEOF
8964#define BROKEN_SETREGID 1
8965_ACEOF
8966
8967 cat >>confdefs.h <<\_ACEOF
8968#define WITH_ABBREV_NO_TTY 1
8969_ACEOF
8970
8971 cat >>confdefs.h <<\_ACEOF
8972#define USE_PIPES 1
8973_ACEOF
8974
8975 cat >>confdefs.h <<\_ACEOF
8976#define DISABLE_FD_PASSING 1
8977_ACEOF
8978
8979 LDFLAGS="$LDFLAGS"
8980 LIBS="$LIBS -lgen -lacid -ldb"
8981 MANTYPE=cat
8982 ;;
8983*-*-unicos*)
8984 cat >>confdefs.h <<\_ACEOF
8985#define SETEUID_BREAKS_SETUID 1
8986_ACEOF
8987
8988 cat >>confdefs.h <<\_ACEOF
8989#define BROKEN_SETREUID 1
8990_ACEOF
8991
8992 cat >>confdefs.h <<\_ACEOF
8993#define BROKEN_SETREGID 1
8994_ACEOF
8995
8996 cat >>confdefs.h <<\_ACEOF
8997#define USE_PIPES 1
8998_ACEOF
8999
9000 cat >>confdefs.h <<\_ACEOF
9001#define DISABLE_FD_PASSING 1
9002_ACEOF
9003
9004 cat >>confdefs.h <<\_ACEOF
9005#define NO_SSH_LASTLOG 1
9006_ACEOF
9007
9008 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9009 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9010 MANTYPE=cat
9011 ;;
9012*-dec-osf*)
9013 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9014echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9015 no_osfsia=""
9016
9017# Check whether --with-osfsia was given.
9018if test "${with_osfsia+set}" = set; then
9019 withval=$with_osfsia;
9020 if test "x$withval" = "xno" ; then
9021 { echo "$as_me:$LINENO: result: disabled" >&5
9022echo "${ECHO_T}disabled" >&6; }
9023 no_osfsia=1
9024 fi
9025
9026fi
9027
9028 if test -z "$no_osfsia" ; then
9029 if test -f /etc/sia/matrix.conf; then
9030 { echo "$as_me:$LINENO: result: yes" >&5
9031echo "${ECHO_T}yes" >&6; }
9032
9033cat >>confdefs.h <<\_ACEOF
9034#define HAVE_OSF_SIA 1
9035_ACEOF
9036
9037
9038cat >>confdefs.h <<\_ACEOF
9039#define DISABLE_LOGIN 1
9040_ACEOF
9041
9042 cat >>confdefs.h <<\_ACEOF
9043#define DISABLE_FD_PASSING 1
9044_ACEOF
9045
9046 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9047 SIA_MSG="yes"
9048 else
9049 { echo "$as_me:$LINENO: result: no" >&5
9050echo "${ECHO_T}no" >&6; }
9051
9052cat >>confdefs.h <<\_ACEOF
9053#define LOCKED_PASSWD_SUBSTR "Nologin"
9054_ACEOF
9055
9056 fi
9057 fi
9058 cat >>confdefs.h <<\_ACEOF
9059#define BROKEN_GETADDRINFO 1
9060_ACEOF
9061
9062 cat >>confdefs.h <<\_ACEOF
9063#define SETEUID_BREAKS_SETUID 1
9064_ACEOF
9065
9066 cat >>confdefs.h <<\_ACEOF
9067#define BROKEN_SETREUID 1
9068_ACEOF
9069
9070 cat >>confdefs.h <<\_ACEOF
9071#define BROKEN_SETREGID 1
9072_ACEOF
9073
9074 ;;
9075
9076*-*-nto-qnx*)
9077 cat >>confdefs.h <<\_ACEOF
9078#define USE_PIPES 1
9079_ACEOF
9080
9081 cat >>confdefs.h <<\_ACEOF
9082#define NO_X11_UNIX_SOCKETS 1
9083_ACEOF
9084
9085
9086cat >>confdefs.h <<\_ACEOF
9087#define MISSING_NFDBITS 1
9088_ACEOF
9089
9090
9091cat >>confdefs.h <<\_ACEOF
9092#define MISSING_HOWMANY 1
9093_ACEOF
9094
9095
9096cat >>confdefs.h <<\_ACEOF
9097#define MISSING_FD_MASK 1
9098_ACEOF
9099
9100 cat >>confdefs.h <<\_ACEOF
9101#define DISABLE_LASTLOG 1
9102_ACEOF
9103
9104 cat >>confdefs.h <<\_ACEOF
9105#define SSHD_ACQUIRES_CTTY 1
9106_ACEOF
9107
9108 enable_etc_default_login=no # has incompatible /etc/default/login
9109 ;;
9110
9111*-*-ultrix*)
9112
9113cat >>confdefs.h <<\_ACEOF
9114#define BROKEN_GETGROUPS 1
9115_ACEOF
9116
9117
9118cat >>confdefs.h <<\_ACEOF
9119#define BROKEN_MMAP 1
9120_ACEOF
9121
9122 cat >>confdefs.h <<\_ACEOF
9123#define NEED_SETPGRP 1
9124_ACEOF
9125
9126
9127cat >>confdefs.h <<\_ACEOF
9128#define HAVE_SYS_SYSLOG_H 1
9129_ACEOF
9130
9131 ;;
9132
9133*-*-lynxos)
9134 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9135 cat >>confdefs.h <<\_ACEOF
9136#define MISSING_HOWMANY 1
9137_ACEOF
9138
9139
9140cat >>confdefs.h <<\_ACEOF
9141#define BROKEN_SETVBUF 1
9142_ACEOF
9143
9144 ;;
9145esac
9146
9147# Allow user to specify flags
9148
9149# Check whether --with-cflags was given.
9150if test "${with_cflags+set}" = set; then
9151 withval=$with_cflags;
9152 if test -n "$withval" && test "x$withval" != "xno" && \
9153 test "x${withval}" != "xyes"; then
9154 CFLAGS="$CFLAGS $withval"
9155 fi
9156
9157
9158fi
9159
9160
9161# Check whether --with-cppflags was given.
9162if test "${with_cppflags+set}" = set; then
9163 withval=$with_cppflags;
9164 if test -n "$withval" && test "x$withval" != "xno" && \
9165 test "x${withval}" != "xyes"; then
9166 CPPFLAGS="$CPPFLAGS $withval"
9167 fi
9168
9169
9170fi
9171
9172
9173# Check whether --with-ldflags was given.
9174if test "${with_ldflags+set}" = set; then
9175 withval=$with_ldflags;
9176 if test -n "$withval" && test "x$withval" != "xno" && \
9177 test "x${withval}" != "xyes"; then
9178 LDFLAGS="$LDFLAGS $withval"
9179 fi
9180
9181
9182fi
9183
9184
9185# Check whether --with-libs was given.
9186if test "${with_libs+set}" = set; then
9187 withval=$with_libs;
9188 if test -n "$withval" && test "x$withval" != "xno" && \
9189 test "x${withval}" != "xyes"; then
9190 LIBS="$LIBS $withval"
9191 fi
9192
9193
9194fi
9195
9196
9197# Check whether --with-Werror was given.
9198if test "${with_Werror+set}" = set; then
9199 withval=$with_Werror;
9200 if test -n "$withval" && test "x$withval" != "xno"; then
9201 werror_flags="-Werror"
9202 if test "x${withval}" != "xyes"; then
9203 werror_flags="$withval"
9204 fi
9205 fi
9206
9207
9208fi
9209
9210
9211{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9212echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9213if test "$cross_compiling" = yes; then
9214 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9215echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9216
9217else
9218 cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224
9225#include <stdio.h>
9226int main(){exit(0);}
9227
9228_ACEOF
9229rm -f conftest$ac_exeext
9230if { (ac_try="$ac_link"
9231case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234esac
9235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_link") 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9240 { (case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243esac
9244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_try") 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 { echo "$as_me:$LINENO: result: yes" >&5
9250echo "${ECHO_T}yes" >&6; }
9251else
9252 echo "$as_me: program exited with status $ac_status" >&5
9253echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256( exit $ac_status )
9257
9258 { echo "$as_me:$LINENO: result: no" >&5
9259echo "${ECHO_T}no" >&6; }
9260 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9261echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9262 { (exit 1); exit 1; }; }
9263
9264fi
9265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9266fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329for ac_header in \
9330 bstring.h \
9331 crypt.h \
9332 crypto/sha2.h \
9333 dirent.h \
9334 endian.h \
9335 features.h \
9336 fcntl.h \
9337 floatingpoint.h \
9338 getopt.h \
9339 glob.h \
9340 ia.h \
9341 iaf.h \
9342 limits.h \
9343 login.h \
9344 maillock.h \
9345 ndir.h \
9346 net/if_tun.h \
9347 netdb.h \
9348 netgroup.h \
9349 pam/pam_appl.h \
9350 paths.h \
9351 pty.h \
9352 readpassphrase.h \
9353 rpc/types.h \
9354 security/pam_appl.h \
9355 sha2.h \
9356 shadow.h \
9357 stddef.h \
9358 stdint.h \
9359 string.h \
9360 strings.h \
9361 sys/audit.h \
9362 sys/bitypes.h \
9363 sys/bsdtty.h \
9364 sys/cdefs.h \
9365 sys/dir.h \
9366 sys/mman.h \
9367 sys/ndir.h \
9368 sys/prctl.h \
9369 sys/pstat.h \
9370 sys/select.h \
9371 sys/stat.h \
9372 sys/stream.h \
9373 sys/stropts.h \
9374 sys/strtio.h \
9375 sys/sysmacros.h \
9376 sys/time.h \
9377 sys/timers.h \
9378 sys/un.h \
9379 time.h \
9380 tmpdir.h \
9381 ttyent.h \
9382 unistd.h \
9383 usersec.h \
9384 util.h \
9385 utime.h \
9386 utmp.h \
9387 utmpx.h \
9388 vis.h \
9389
9390do
9391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397fi
9398ac_res=`eval echo '${'$as_ac_Header'}'`
9399 { echo "$as_me:$LINENO: result: $ac_res" >&5
9400echo "${ECHO_T}$ac_res" >&6; }
9401else
9402 # Is the header compilable?
9403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9405cat >conftest.$ac_ext <<_ACEOF
9406/* confdefs.h. */
9407_ACEOF
9408cat confdefs.h >>conftest.$ac_ext
9409cat >>conftest.$ac_ext <<_ACEOF
9410/* end confdefs.h. */
9411$ac_includes_default
9412#include <$ac_header>
9413_ACEOF
9414rm -f conftest.$ac_objext
9415if { (ac_try="$ac_compile"
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_compile") 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); } &&
9428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9429 { (case "(($ac_try" in
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9432esac
9433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_try") 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_try") 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_header_compiler=yes
9449else
9450 echo "$as_me: failed program was:" >&5
9451sed 's/^/| /' conftest.$ac_ext >&5
9452
9453 ac_header_compiler=no
9454fi
9455
9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9458echo "${ECHO_T}$ac_header_compiler" >&6; }
9459
9460# Is the header present?
9461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9463cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469#include <$ac_header>
9470_ACEOF
9471if { (ac_try="$ac_cpp conftest.$ac_ext"
9472case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475esac
9476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } >/dev/null; then
9484 if test -s conftest.err; then
9485 ac_cpp_err=$ac_c_preproc_warn_flag
9486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9487 else
9488 ac_cpp_err=
9489 fi
9490else
9491 ac_cpp_err=yes
9492fi
9493if test -z "$ac_cpp_err"; then
9494 ac_header_preproc=yes
9495else
9496 echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 ac_header_preproc=no
9500fi
9501
9502rm -f conftest.err conftest.$ac_ext
9503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9504echo "${ECHO_T}$ac_header_preproc" >&6; }
9505
9506# So? What about this header?
9507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9508 yes:no: )
9509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9513 ac_header_preproc=yes
9514 ;;
9515 no:yes:* )
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9528 ( cat <<\_ASBOX
9529## ------------------------------------------- ##
9530## Report this to openssh-unix-dev@mindrot.org ##
9531## ------------------------------------------- ##
9532_ASBOX
9533 ) | sed "s/^/$as_me: WARNING: /" >&2
9534 ;;
9535esac
9536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540else
9541 eval "$as_ac_Header=\$ac_header_preproc"
9542fi
9543ac_res=`eval echo '${'$as_ac_Header'}'`
9544 { echo "$as_me:$LINENO: result: $ac_res" >&5
9545echo "${ECHO_T}$ac_res" >&6; }
9546
9547fi
9548if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549 cat >>confdefs.h <<_ACEOF
9550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551_ACEOF
9552
9553fi
9554
9555done
9556
9557
9558# lastlog.h requires sys/time.h to be included first on Solaris
9559
9560for ac_header in lastlog.h
9561do
9562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567else
9568 cat >conftest.$ac_ext <<_ACEOF
9569/* confdefs.h. */
9570_ACEOF
9571cat confdefs.h >>conftest.$ac_ext
9572cat >>conftest.$ac_ext <<_ACEOF
9573/* end confdefs.h. */
9574
9575#ifdef HAVE_SYS_TIME_H
9576# include <sys/time.h>
9577#endif
9578
9579
9580#include <$ac_header>
9581_ACEOF
9582rm -f conftest.$ac_objext
9583if { (ac_try="$ac_compile"
9584case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587esac
9588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_compile") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9597 { (case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_try") 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest.$ac_objext'
9607 { (case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610esac
9611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_try") 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 eval "$as_ac_Header=yes"
9617else
9618 echo "$as_me: failed program was:" >&5
9619sed 's/^/| /' conftest.$ac_ext >&5
9620
9621 eval "$as_ac_Header=no"
9622fi
9623
9624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625fi
9626ac_res=`eval echo '${'$as_ac_Header'}'`
9627 { echo "$as_me:$LINENO: result: $ac_res" >&5
9628echo "${ECHO_T}$ac_res" >&6; }
9629if test `eval echo '${'$as_ac_Header'}'` = yes; then
9630 cat >>confdefs.h <<_ACEOF
9631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9632_ACEOF
9633
9634fi
9635
9636done
9637
9638
9639# sys/ptms.h requires sys/stream.h to be included first on Solaris
9640
9641for ac_header in sys/ptms.h
9642do
9643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648else
9649 cat >conftest.$ac_ext <<_ACEOF
9650/* confdefs.h. */
9651_ACEOF
9652cat confdefs.h >>conftest.$ac_ext
9653cat >>conftest.$ac_ext <<_ACEOF
9654/* end confdefs.h. */
9655
9656#ifdef HAVE_SYS_STREAM_H
9657# include <sys/stream.h>
9658#endif
9659
9660
9661#include <$ac_header>
9662_ACEOF
9663rm -f conftest.$ac_objext
9664if { (ac_try="$ac_compile"
9665case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668esac
9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9681esac
9682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest.$ac_objext'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691esac
9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 eval "$as_ac_Header=yes"
9698else
9699 echo "$as_me: failed program was:" >&5
9700sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 eval "$as_ac_Header=no"
9703fi
9704
9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706fi
9707ac_res=`eval echo '${'$as_ac_Header'}'`
9708 { echo "$as_me:$LINENO: result: $ac_res" >&5
9709echo "${ECHO_T}$ac_res" >&6; }
9710if test `eval echo '${'$as_ac_Header'}'` = yes; then
9711 cat >>confdefs.h <<_ACEOF
9712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9713_ACEOF
9714
9715fi
9716
9717done
9718
9719
9720# login_cap.h requires sys/types.h on NetBSD
9721
9722for ac_header in login_cap.h
9723do
9724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729else
9730 cat >conftest.$ac_ext <<_ACEOF
9731/* confdefs.h. */
9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h. */
9736
9737#include <sys/types.h>
9738
9739
9740#include <$ac_header>
9741_ACEOF
9742rm -f conftest.$ac_objext
9743if { (ac_try="$ac_compile"
9744case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_compile") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770esac
9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 eval "$as_ac_Header=yes"
9777else
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 eval "$as_ac_Header=no"
9782fi
9783
9784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785fi
9786ac_res=`eval echo '${'$as_ac_Header'}'`
9787 { echo "$as_me:$LINENO: result: $ac_res" >&5
9788echo "${ECHO_T}$ac_res" >&6; }
9789if test `eval echo '${'$as_ac_Header'}'` = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9792_ACEOF
9793
9794fi
9795
9796done
9797
9798
9799# Checks for libraries.
9800{ echo "$as_me:$LINENO: checking for yp_match" >&5
9801echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9802if test "${ac_cv_func_yp_match+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805 cat >conftest.$ac_ext <<_ACEOF
9806/* confdefs.h. */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h. */
9811/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9813#define yp_match innocuous_yp_match
9814
9815/* System header to define __stub macros and hopefully few prototypes,
9816 which can conflict with char yp_match (); below.
9817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818 <limits.h> exists even on freestanding compilers. */
9819
9820#ifdef __STDC__
9821# include <limits.h>
9822#else
9823# include <assert.h>
9824#endif
9825
9826#undef yp_match
9827
9828/* Override any GCC internal prototype to avoid an error.
9829 Use char because int might match the return type of a GCC
9830 builtin and then its argument prototype would still apply. */
9831#ifdef __cplusplus
9832extern "C"
9833#endif
9834char yp_match ();
9835/* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838#if defined __stub_yp_match || defined __stub___yp_match
9839choke me
9840#endif
9841
9842int
9843main ()
9844{
9845return yp_match ();
9846 ;
9847 return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
9851if { (ac_try="$ac_link"
9852case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9855esac
9856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_link") 2>conftest.er1
9858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9865 { (case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_try") 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9878esac
9879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_try") 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_func_yp_match=yes
9885else
9886 echo "$as_me: failed program was:" >&5
9887sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_cv_func_yp_match=no
9890fi
9891
9892rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894fi
9895{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9896echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9897if test $ac_cv_func_yp_match = yes; then
9898 :
9899else
9900
9901{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9902echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9903if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905else
9906 ac_check_lib_save_LIBS=$LIBS
9907LIBS="-lnsl $LIBS"
9908cat >conftest.$ac_ext <<_ACEOF
9909/* confdefs.h. */
9910_ACEOF
9911cat confdefs.h >>conftest.$ac_ext
9912cat >>conftest.$ac_ext <<_ACEOF
9913/* end confdefs.h. */
9914
9915/* Override any GCC internal prototype to avoid an error.
9916 Use char because int might match the return type of a GCC
9917 builtin and then its argument prototype would still apply. */
9918#ifdef __cplusplus
9919extern "C"
9920#endif
9921char yp_match ();
9922int
9923main ()
9924{
9925return yp_match ();
9926 ;
9927 return 0;
9928}
9929_ACEOF
9930rm -f conftest.$ac_objext conftest$ac_exeext
9931if { (ac_try="$ac_link"
9932case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935esac
9936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9945 { (case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948esac
9949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_try") 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958esac
9959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_try") 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_cv_lib_nsl_yp_match=yes
9965else
9966 echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 ac_cv_lib_nsl_yp_match=no
9970fi
9971
9972rm -f core conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974LIBS=$ac_check_lib_save_LIBS
9975fi
9976{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9977echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9978if test $ac_cv_lib_nsl_yp_match = yes; then
9979 cat >>confdefs.h <<_ACEOF
9980#define HAVE_LIBNSL 1
9981_ACEOF
9982
9983 LIBS="-lnsl $LIBS"
9984
9985fi
9986
9987fi
9988
9989{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9990echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9991if test "${ac_cv_func_setsockopt+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994 cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h. */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h. */
10000/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002#define setsockopt innocuous_setsockopt
10003
10004/* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char setsockopt (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10008
10009#ifdef __STDC__
10010# include <limits.h>
10011#else
10012# include <assert.h>
10013#endif
10014
10015#undef setsockopt
10016
10017/* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10020#ifdef __cplusplus
10021extern "C"
10022#endif
10023char setsockopt ();
10024/* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027#if defined __stub_setsockopt || defined __stub___setsockopt
10028choke me
10029#endif
10030
10031int
10032main ()
10033{
10034return setsockopt ();
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_func_setsockopt=yes
10074else
10075 echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 ac_cv_func_setsockopt=no
10079fi
10080
10081rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083fi
10084{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10085echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
10086if test $ac_cv_func_setsockopt = yes; then
10087 :
10088else
10089
10090{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10091echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
10092if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094else
10095 ac_check_lib_save_LIBS=$LIBS
10096LIBS="-lsocket $LIBS"
10097cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h. */
10103
10104/* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10107#ifdef __cplusplus
10108extern "C"
10109#endif
10110char setsockopt ();
10111int
10112main ()
10113{
10114return setsockopt ();
10115 ;
10116 return 0;
10117}
10118_ACEOF
10119rm -f conftest.$ac_objext conftest$ac_exeext
10120if { (ac_try="$ac_link"
10121case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_socket_setsockopt=yes
10154else
10155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_cv_lib_socket_setsockopt=no
10159fi
10160
10161rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163LIBS=$ac_check_lib_save_LIBS
10164fi
10165{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10166echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
10167if test $ac_cv_lib_socket_setsockopt = yes; then
10168 cat >>confdefs.h <<_ACEOF
10169#define HAVE_LIBSOCKET 1
10170_ACEOF
10171
10172 LIBS="-lsocket $LIBS"
10173
10174fi
10175
10176fi
10177
10178
10179
10180for ac_func in dirname
10181do
10182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10183{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10185if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188 cat >conftest.$ac_ext <<_ACEOF
10189/* confdefs.h. */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h. */
10194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10196#define $ac_func innocuous_$ac_func
10197
10198/* System header to define __stub macros and hopefully few prototypes,
10199 which can conflict with char $ac_func (); below.
10200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10201 <limits.h> exists even on freestanding compilers. */
10202
10203#ifdef __STDC__
10204# include <limits.h>
10205#else
10206# include <assert.h>
10207#endif
10208
10209#undef $ac_func
10210
10211/* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214#ifdef __cplusplus
10215extern "C"
10216#endif
10217char $ac_func ();
10218/* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221#if defined __stub_$ac_func || defined __stub___$ac_func
10222choke me
10223#endif
10224
10225int
10226main ()
10227{
10228return $ac_func ();
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext conftest$ac_exeext
10234if { (ac_try="$ac_link"
10235case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_link") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251esac
10252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest$ac_exeext'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10261esac
10262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 eval "$as_ac_var=yes"
10268else
10269 echo "$as_me: failed program was:" >&5
10270sed 's/^/| /' conftest.$ac_ext >&5
10271
10272 eval "$as_ac_var=no"
10273fi
10274
10275rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277fi
10278ac_res=`eval echo '${'$as_ac_var'}'`
10279 { echo "$as_me:$LINENO: result: $ac_res" >&5
10280echo "${ECHO_T}$ac_res" >&6; }
10281if test `eval echo '${'$as_ac_var'}'` = yes; then
10282 cat >>confdefs.h <<_ACEOF
10283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10284_ACEOF
10285
10286for ac_header in libgen.h
10287do
10288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294fi
10295ac_res=`eval echo '${'$as_ac_Header'}'`
10296 { echo "$as_me:$LINENO: result: $ac_res" >&5
10297echo "${ECHO_T}$ac_res" >&6; }
10298else
10299 # Is the header compilable?
10300{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10302cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
10308$ac_includes_default
10309#include <$ac_header>
10310_ACEOF
10311rm -f conftest.$ac_objext
10312if { (ac_try="$ac_compile"
10313case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316esac
10317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_compile") 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10326 { (case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329esac
10330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_try") 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest.$ac_objext'
10336 { (case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339esac
10340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_try") 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_header_compiler=yes
10346else
10347 echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 ac_header_compiler=no
10351fi
10352
10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10355echo "${ECHO_T}$ac_header_compiler" >&6; }
10356
10357# Is the header present?
10358{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10360cat >conftest.$ac_ext <<_ACEOF
10361/* confdefs.h. */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h. */
10366#include <$ac_header>
10367_ACEOF
10368if { (ac_try="$ac_cpp conftest.$ac_ext"
10369case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } >/dev/null; then
10381 if test -s conftest.err; then
10382 ac_cpp_err=$ac_c_preproc_warn_flag
10383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10384 else
10385 ac_cpp_err=
10386 fi
10387else
10388 ac_cpp_err=yes
10389fi
10390if test -z "$ac_cpp_err"; then
10391 ac_header_preproc=yes
10392else
10393 echo "$as_me: failed program was:" >&5
10394sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 ac_header_preproc=no
10397fi
10398
10399rm -f conftest.err conftest.$ac_ext
10400{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10401echo "${ECHO_T}$ac_header_preproc" >&6; }
10402
10403# So? What about this header?
10404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10405 yes:no: )
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10410 ac_header_preproc=yes
10411 ;;
10412 no:yes:* )
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10425 ( cat <<\_ASBOX
10426## ------------------------------------------- ##
10427## Report this to openssh-unix-dev@mindrot.org ##
10428## ------------------------------------------- ##
10429_ASBOX
10430 ) | sed "s/^/$as_me: WARNING: /" >&2
10431 ;;
10432esac
10433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437else
10438 eval "$as_ac_Header=\$ac_header_preproc"
10439fi
10440ac_res=`eval echo '${'$as_ac_Header'}'`
10441 { echo "$as_me:$LINENO: result: $ac_res" >&5
10442echo "${ECHO_T}$ac_res" >&6; }
10443
10444fi
10445if test `eval echo '${'$as_ac_Header'}'` = yes; then
10446 cat >>confdefs.h <<_ACEOF
10447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448_ACEOF
10449
10450fi
10451
10452done
10453
10454else
10455
10456 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10457echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10458if test "${ac_cv_lib_gen_dirname+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460else
10461 ac_check_lib_save_LIBS=$LIBS
10462LIBS="-lgen $LIBS"
10463cat >conftest.$ac_ext <<_ACEOF
10464/* confdefs.h. */
10465_ACEOF
10466cat confdefs.h >>conftest.$ac_ext
10467cat >>conftest.$ac_ext <<_ACEOF
10468/* end confdefs.h. */
10469
10470/* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10473#ifdef __cplusplus
10474extern "C"
10475#endif
10476char dirname ();
10477int
10478main ()
10479{
10480return dirname ();
10481 ;
10482 return 0;
10483}
10484_ACEOF
10485rm -f conftest.$ac_objext conftest$ac_exeext
10486if { (ac_try="$ac_link"
10487case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490esac
10491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_link") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500 { (case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503esac
10504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_try") 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest$ac_exeext'
10510 { (case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513esac
10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_try") 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_lib_gen_dirname=yes
10520else
10521 echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
10524 ac_cv_lib_gen_dirname=no
10525fi
10526
10527rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529LIBS=$ac_check_lib_save_LIBS
10530fi
10531{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10532echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10533if test $ac_cv_lib_gen_dirname = yes; then
10534
10535 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10536echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10537if test "${ac_cv_have_broken_dirname+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540
10541 save_LIBS="$LIBS"
10542 LIBS="$LIBS -lgen"
10543 if test "$cross_compiling" = yes; then
10544 ac_cv_have_broken_dirname="no"
10545else
10546 cat >conftest.$ac_ext <<_ACEOF
10547/* confdefs.h. */
10548_ACEOF
10549cat confdefs.h >>conftest.$ac_ext
10550cat >>conftest.$ac_ext <<_ACEOF
10551/* end confdefs.h. */
10552
10553#include <libgen.h>
10554#include <string.h>
10555
10556int main(int argc, char **argv) {
10557 char *s, buf[32];
10558
10559 strncpy(buf,"/etc", 32);
10560 s = dirname(buf);
10561 if (!s || strncmp(s, "/", 32) != 0) {
10562 exit(1);
10563 } else {
10564 exit(0);
10565 }
10566}
10567
10568_ACEOF
10569rm -f conftest$ac_exeext
10570if { (ac_try="$ac_link"
10571case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574esac
10575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_link") 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10580 { (case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583esac
10584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_try") 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_have_broken_dirname="no"
10590else
10591 echo "$as_me: program exited with status $ac_status" >&5
10592echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595( exit $ac_status )
10596 ac_cv_have_broken_dirname="yes"
10597fi
10598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10599fi
10600
10601
10602 LIBS="$save_LIBS"
10603
10604fi
10605{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10606echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10607 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10608 LIBS="$LIBS -lgen"
10609 cat >>confdefs.h <<\_ACEOF
10610#define HAVE_DIRNAME 1
10611_ACEOF
10612
10613
10614for ac_header in libgen.h
10615do
10616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622fi
10623ac_res=`eval echo '${'$as_ac_Header'}'`
10624 { echo "$as_me:$LINENO: result: $ac_res" >&5
10625echo "${ECHO_T}$ac_res" >&6; }
10626else
10627 # Is the header compilable?
10628{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636$ac_includes_default
10637#include <$ac_header>
10638_ACEOF
10639rm -f conftest.$ac_objext
10640if { (ac_try="$ac_compile"
10641case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644esac
10645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657esac
10658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest.$ac_objext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_header_compiler=yes
10674else
10675 echo "$as_me: failed program was:" >&5
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ac_header_compiler=no
10679fi
10680
10681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683echo "${ECHO_T}$ac_header_compiler" >&6; }
10684
10685# Is the header present?
10686{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10688cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694#include <$ac_header>
10695_ACEOF
10696if { (ac_try="$ac_cpp conftest.$ac_ext"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10712 else
10713 ac_cpp_err=
10714 fi
10715else
10716 ac_cpp_err=yes
10717fi
10718if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
10720else
10721 echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_header_preproc=no
10725fi
10726
10727rm -f conftest.err conftest.$ac_ext
10728{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729echo "${ECHO_T}$ac_header_preproc" >&6; }
10730
10731# So? What about this header?
10732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10733 yes:no: )
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10735echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10737echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10738 ac_header_preproc=yes
10739 ;;
10740 no:yes:* )
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10742echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10744echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10746echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10748echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10750echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10752echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10753 ( cat <<\_ASBOX
10754## ------------------------------------------- ##
10755## Report this to openssh-unix-dev@mindrot.org ##
10756## ------------------------------------------- ##
10757_ASBOX
10758 ) | sed "s/^/$as_me: WARNING: /" >&2
10759 ;;
10760esac
10761{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765else
10766 eval "$as_ac_Header=\$ac_header_preproc"
10767fi
10768ac_res=`eval echo '${'$as_ac_Header'}'`
10769 { echo "$as_me:$LINENO: result: $ac_res" >&5
10770echo "${ECHO_T}$ac_res" >&6; }
10771
10772fi
10773if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10776_ACEOF
10777
10778fi
10779
10780done
10781
10782 fi
10783
10784fi
10785
10786
10787fi
10788done
10789
10790
10791{ echo "$as_me:$LINENO: checking for getspnam" >&5
10792echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10793if test "${ac_cv_func_getspnam+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796 cat >conftest.$ac_ext <<_ACEOF
10797/* confdefs.h. */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h. */
10802/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10804#define getspnam innocuous_getspnam
10805
10806/* System header to define __stub macros and hopefully few prototypes,
10807 which can conflict with char getspnam (); below.
10808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809 <limits.h> exists even on freestanding compilers. */
10810
10811#ifdef __STDC__
10812# include <limits.h>
10813#else
10814# include <assert.h>
10815#endif
10816
10817#undef getspnam
10818
10819/* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10822#ifdef __cplusplus
10823extern "C"
10824#endif
10825char getspnam ();
10826/* The GNU C library defines this for functions which it implements
10827 to always fail with ENOSYS. Some functions are actually named
10828 something starting with __ and the normal name is an alias. */
10829#if defined __stub_getspnam || defined __stub___getspnam
10830choke me
10831#endif
10832
10833int
10834main ()
10835{
10836return getspnam ();
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841rm -f conftest.$ac_objext conftest$ac_exeext
10842if { (ac_try="$ac_link"
10843case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846esac
10847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_link") 2>conftest.er1
10849 ac_status=$?
10850 grep -v '^ *+' conftest.er1 >conftest.err
10851 rm -f conftest.er1
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_func_getspnam=yes
10876else
10877 echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 ac_cv_func_getspnam=no
10881fi
10882
10883rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885fi
10886{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10887echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10888if test $ac_cv_func_getspnam = yes; then
10889 :
10890else
10891 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10892echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10893if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 ac_check_lib_save_LIBS=$LIBS
10897LIBS="-lgen $LIBS"
10898cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
10904
10905/* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10908#ifdef __cplusplus
10909extern "C"
10910#endif
10911char getspnam ();
10912int
10913main ()
10914{
10915return getspnam ();
10916 ;
10917 return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext conftest$ac_exeext
10921if { (ac_try="$ac_link"
10922case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935 { (case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_try") 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_lib_gen_getspnam=yes
10955else
10956 echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_cv_lib_gen_getspnam=no
10960fi
10961
10962rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964LIBS=$ac_check_lib_save_LIBS
10965fi
10966{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10967echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10968if test $ac_cv_lib_gen_getspnam = yes; then
10969 LIBS="$LIBS -lgen"
10970fi
10971
10972fi
10973
10974{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10975echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10976if test "${ac_cv_search_basename+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979 ac_func_search_save_LIBS=$LIBS
10980cat >conftest.$ac_ext <<_ACEOF
10981/* confdefs.h. */
10982_ACEOF
10983cat confdefs.h >>conftest.$ac_ext
10984cat >>conftest.$ac_ext <<_ACEOF
10985/* end confdefs.h. */
10986
10987/* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990#ifdef __cplusplus
10991extern "C"
10992#endif
10993char basename ();
10994int
10995main ()
10996{
10997return basename ();
10998 ;
10999 return 0;
11000}
11001_ACEOF
11002for ac_lib in '' gen; do
11003 if test -z "$ac_lib"; then
11004 ac_res="none required"
11005 else
11006 ac_res=-l$ac_lib
11007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11008 fi
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010if { (ac_try="$ac_link"
11011case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014esac
11015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037esac
11038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_try") 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 ac_cv_search_basename=$ac_res
11044else
11045 echo "$as_me: failed program was:" >&5
11046sed 's/^/| /' conftest.$ac_ext >&5
11047
11048
11049fi
11050
11051rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext
11053 if test "${ac_cv_search_basename+set}" = set; then
11054 break
11055fi
11056done
11057if test "${ac_cv_search_basename+set}" = set; then
11058 :
11059else
11060 ac_cv_search_basename=no
11061fi
11062rm conftest.$ac_ext
11063LIBS=$ac_func_search_save_LIBS
11064fi
11065{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
11066echo "${ECHO_T}$ac_cv_search_basename" >&6; }
11067ac_res=$ac_cv_search_basename
11068if test "$ac_res" != no; then
11069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11070
11071cat >>confdefs.h <<\_ACEOF
11072#define HAVE_BASENAME 1
11073_ACEOF
11074
11075fi
11076
11077
11078
11079# Check whether --with-zlib was given.
11080if test "${with_zlib+set}" = set; then
11081 withval=$with_zlib; if test "x$withval" = "xno" ; then
11082 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
11083echo "$as_me: error: *** zlib is required ***" >&2;}
11084 { (exit 1); exit 1; }; }
11085 elif test "x$withval" != "xyes"; then
11086 if test -d "$withval/lib"; then
11087 if test -n "${need_dash_r}"; then
11088 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11089 else
11090 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11091 fi
11092 else
11093 if test -n "${need_dash_r}"; then
11094 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11095 else
11096 LDFLAGS="-L${withval} ${LDFLAGS}"
11097 fi
11098 fi
11099 if test -d "$withval/include"; then
11100 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11101 else
11102 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11103 fi
11104 fi
11105
11106fi
11107
11108
11109
11110{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11111echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
11112if test "${ac_cv_lib_z_deflate+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 ac_check_lib_save_LIBS=$LIBS
11116LIBS="-lz $LIBS"
11117cat >conftest.$ac_ext <<_ACEOF
11118/* confdefs.h. */
11119_ACEOF
11120cat confdefs.h >>conftest.$ac_ext
11121cat >>conftest.$ac_ext <<_ACEOF
11122/* end confdefs.h. */
11123
11124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127#ifdef __cplusplus
11128extern "C"
11129#endif
11130char deflate ();
11131int
11132main ()
11133{
11134return deflate ();
11135 ;
11136 return 0;
11137}
11138_ACEOF
11139rm -f conftest.$ac_objext conftest$ac_exeext
11140if { (ac_try="$ac_link"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_lib_z_deflate=yes
11174else
11175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_cv_lib_z_deflate=no
11179fi
11180
11181rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183LIBS=$ac_check_lib_save_LIBS
11184fi
11185{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11186echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
11187if test $ac_cv_lib_z_deflate = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189#define HAVE_LIBZ 1
11190_ACEOF
11191
11192 LIBS="-lz $LIBS"
11193
11194else
11195
11196 saved_CPPFLAGS="$CPPFLAGS"
11197 saved_LDFLAGS="$LDFLAGS"
11198 save_LIBS="$LIBS"
11199 if test -n "${need_dash_r}"; then
11200 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
11201 else
11202 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
11203 fi
11204 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
11205 LIBS="$LIBS -lz"
11206 cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212
11213/* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11216#ifdef __cplusplus
11217extern "C"
11218#endif
11219char deflate ();
11220int
11221main ()
11222{
11223return deflate ();
11224 ;
11225 return 0;
11226}
11227_ACEOF
11228rm -f conftest.$ac_objext conftest$ac_exeext
11229if { (ac_try="$ac_link"
11230case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_link") 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11243 { (case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_try") 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest$ac_exeext'
11253 { (case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_try") 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 cat >>confdefs.h <<\_ACEOF
11263#define HAVE_LIBZ 1
11264_ACEOF
11265
11266else
11267 echo "$as_me: failed program was:" >&5
11268sed 's/^/| /' conftest.$ac_ext >&5
11269
11270
11271 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
11272echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
11273 { (exit 1); exit 1; }; }
11274
11275
11276fi
11277
11278rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11280
11281
11282fi
11283
11284if test "${ac_cv_header_zlib_h+set}" = set; then
11285 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11286echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11287if test "${ac_cv_header_zlib_h+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289fi
11290{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11291echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11292else
11293 # Is the header compilable?
11294{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
11295echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11296cat >conftest.$ac_ext <<_ACEOF
11297/* confdefs.h. */
11298_ACEOF
11299cat confdefs.h >>conftest.$ac_ext
11300cat >>conftest.$ac_ext <<_ACEOF
11301/* end confdefs.h. */
11302$ac_includes_default
11303#include <zlib.h>
11304_ACEOF
11305rm -f conftest.$ac_objext
11306if { (ac_try="$ac_compile"
11307case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310esac
11311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_compile") 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11320 { (case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323esac
11324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_try") 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333esac
11334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_try") 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_header_compiler=yes
11340else
11341 echo "$as_me: failed program was:" >&5
11342sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 ac_header_compiler=no
11345fi
11346
11347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349echo "${ECHO_T}$ac_header_compiler" >&6; }
11350
11351# Is the header present?
11352{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
11353echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11354cat >conftest.$ac_ext <<_ACEOF
11355/* confdefs.h. */
11356_ACEOF
11357cat confdefs.h >>conftest.$ac_ext
11358cat >>conftest.$ac_ext <<_ACEOF
11359/* end confdefs.h. */
11360#include <zlib.h>
11361_ACEOF
11362if { (ac_try="$ac_cpp conftest.$ac_ext"
11363case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366esac
11367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev/null; then
11375 if test -s conftest.err; then
11376 ac_cpp_err=$ac_c_preproc_warn_flag
11377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11378 else
11379 ac_cpp_err=
11380 fi
11381else
11382 ac_cpp_err=yes
11383fi
11384if test -z "$ac_cpp_err"; then
11385 ac_header_preproc=yes
11386else
11387 echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 ac_header_preproc=no
11391fi
11392
11393rm -f conftest.err conftest.$ac_ext
11394{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11395echo "${ECHO_T}$ac_header_preproc" >&6; }
11396
11397# So? What about this header?
11398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11399 yes:no: )
11400 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11401echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11403echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11404 ac_header_preproc=yes
11405 ;;
11406 no:yes:* )
11407 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11408echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11410echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11412echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11414echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11416echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11418echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11419 ( cat <<\_ASBOX
11420## ------------------------------------------- ##
11421## Report this to openssh-unix-dev@mindrot.org ##
11422## ------------------------------------------- ##
11423_ASBOX
11424 ) | sed "s/^/$as_me: WARNING: /" >&2
11425 ;;
11426esac
11427{ echo "$as_me:$LINENO: checking for zlib.h" >&5
11428echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11429if test "${ac_cv_header_zlib_h+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431else
11432 ac_cv_header_zlib_h=$ac_header_preproc
11433fi
11434{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11435echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11436
11437fi
11438if test $ac_cv_header_zlib_h = yes; then
11439 :
11440else
11441 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
11442echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
11443 { (exit 1); exit 1; }; }
11444fi
11445
11446
11447
11448
11449# Check whether --with-zlib-version-check was given.
11450if test "${with_zlib_version_check+set}" = set; then
11451 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
11452 zlib_check_nonfatal=1
11453 fi
11454
11455
11456fi
11457
11458
11459{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11460echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
11461if test "$cross_compiling" = yes; then
11462 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11463echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11464
11465else
11466 cat >conftest.$ac_ext <<_ACEOF
11467/* confdefs.h. */
11468_ACEOF
11469cat confdefs.h >>conftest.$ac_ext
11470cat >>conftest.$ac_ext <<_ACEOF
11471/* end confdefs.h. */
11472
11473#include <stdio.h>
11474#include <zlib.h>
11475int main()
11476{
11477 int a=0, b=0, c=0, d=0, n, v;
11478 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11479 if (n != 3 && n != 4)
11480 exit(1);
11481 v = a*1000000 + b*10000 + c*100 + d;
11482 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11483
11484 /* 1.1.4 is OK */
11485 if (a == 1 && b == 1 && c >= 4)
11486 exit(0);
11487
11488 /* 1.2.3 and up are OK */
11489 if (v >= 1020300)
11490 exit(0);
11491
11492 exit(2);
11493}
11494
11495_ACEOF
11496rm -f conftest$ac_exeext
11497if { (ac_try="$ac_link"
11498case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501esac
11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 { echo "$as_me:$LINENO: result: no" >&5
11517echo "${ECHO_T}no" >&6; }
11518else
11519 echo "$as_me: program exited with status $ac_status" >&5
11520echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
11523( exit $ac_status )
11524 { echo "$as_me:$LINENO: result: yes" >&5
11525echo "${ECHO_T}yes" >&6; }
11526 if test -z "$zlib_check_nonfatal" ; then
11527 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11528Your reported zlib version has known security problems. It's possible your
11529vendor has fixed these problems without changing the version number. If you
11530are sure this is the case, you can disable the check by running
11531\"./configure --without-zlib-version-check\".
11532If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11533See http://www.gzip.org/zlib/ for details." >&5
11534echo "$as_me: error: *** zlib too old - check config.log ***
11535Your reported zlib version has known security problems. It's possible your
11536vendor has fixed these problems without changing the version number. If you
11537are sure this is the case, you can disable the check by running
11538\"./configure --without-zlib-version-check\".
11539If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11540See http://www.gzip.org/zlib/ for details." >&2;}
11541 { (exit 1); exit 1; }; }
11542 else
11543 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11544echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11545 fi
11546
11547fi
11548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11549fi
11550
11551
11552
11553{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
11554echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11555if test "${ac_cv_func_strcasecmp+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557else
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11566#define strcasecmp innocuous_strcasecmp
11567
11568/* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char strcasecmp (); below.
11570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571 <limits.h> exists even on freestanding compilers. */
11572
11573#ifdef __STDC__
11574# include <limits.h>
11575#else
11576# include <assert.h>
11577#endif
11578
11579#undef strcasecmp
11580
11581/* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11584#ifdef __cplusplus
11585extern "C"
11586#endif
11587char strcasecmp ();
11588/* The GNU C library defines this for functions which it implements
11589 to always fail with ENOSYS. Some functions are actually named
11590 something starting with __ and the normal name is an alias. */
11591#if defined __stub_strcasecmp || defined __stub___strcasecmp
11592choke me
11593#endif
11594
11595int
11596main ()
11597{
11598return strcasecmp ();
11599 ;
11600 return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext conftest$ac_exeext
11604if { (ac_try="$ac_link"
11605case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608esac
11609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_link") 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
11622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_func_strcasecmp=yes
11638else
11639 echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ac_cv_func_strcasecmp=no
11643fi
11644
11645rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647fi
11648{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11649echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11650if test $ac_cv_func_strcasecmp = yes; then
11651 :
11652else
11653 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11654echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11655if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 ac_check_lib_save_LIBS=$LIBS
11659LIBS="-lresolv $LIBS"
11660cat >conftest.$ac_ext <<_ACEOF
11661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
11666
11667/* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11670#ifdef __cplusplus
11671extern "C"
11672#endif
11673char strcasecmp ();
11674int
11675main ()
11676{
11677return strcasecmp ();
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682rm -f conftest.$ac_objext conftest$ac_exeext
11683if { (ac_try="$ac_link"
11684case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687esac
11688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_link") 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11697 { (case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700esac
11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_try") 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try='test -s conftest$ac_exeext'
11707 { (case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710esac
11711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_try") 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_lib_resolv_strcasecmp=yes
11717else
11718 echo "$as_me: failed program was:" >&5
11719sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 ac_cv_lib_resolv_strcasecmp=no
11722fi
11723
11724rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726LIBS=$ac_check_lib_save_LIBS
11727fi
11728{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11729echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11730if test $ac_cv_lib_resolv_strcasecmp = yes; then
11731 LIBS="$LIBS -lresolv"
11732fi
11733
11734
11735fi
11736
11737
11738for ac_func in utimes
11739do
11740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754#define $ac_func innocuous_$ac_func
11755
11756/* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11760
11761#ifdef __STDC__
11762# include <limits.h>
11763#else
11764# include <assert.h>
11765#endif
11766
11767#undef $ac_func
11768
11769/* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775char $ac_func ();
11776/* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779#if defined __stub_$ac_func || defined __stub___$ac_func
11780choke me
11781#endif
11782
11783int
11784main ()
11785{
11786return $ac_func ();
11787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext conftest$ac_exeext
11792if { (ac_try="$ac_link"
11793case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809esac
11810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11826else
11827 echo "$as_me: failed program was:" >&5
11828sed 's/^/| /' conftest.$ac_ext >&5
11829
11830 eval "$as_ac_var=no"
11831fi
11832
11833rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835fi
11836ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838echo "${ECHO_T}$ac_res" >&6; }
11839if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842_ACEOF
11843
11844else
11845 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11846echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11847if test "${ac_cv_lib_c89_utimes+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849else
11850 ac_check_lib_save_LIBS=$LIBS
11851LIBS="-lc89 $LIBS"
11852cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
11858
11859/* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862#ifdef __cplusplus
11863extern "C"
11864#endif
11865char utimes ();
11866int
11867main ()
11868{
11869return utimes ();
11870 ;
11871 return 0;
11872}
11873_ACEOF
11874rm -f conftest.$ac_objext conftest$ac_exeext
11875if { (ac_try="$ac_link"
11876case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879esac
11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_cv_lib_c89_utimes=yes
11909else
11910 echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
11913 ac_cv_lib_c89_utimes=no
11914fi
11915
11916rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918LIBS=$ac_check_lib_save_LIBS
11919fi
11920{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11921echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11922if test $ac_cv_lib_c89_utimes = yes; then
11923 cat >>confdefs.h <<\_ACEOF
11924#define HAVE_UTIMES 1
11925_ACEOF
11926
11927 LIBS="$LIBS -lc89"
11928fi
11929
11930
11931fi
11932done
11933
11934
11935
11936for ac_header in libutil.h
11937do
11938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944fi
11945ac_res=`eval echo '${'$as_ac_Header'}'`
11946 { echo "$as_me:$LINENO: result: $ac_res" >&5
11947echo "${ECHO_T}$ac_res" >&6; }
11948else
11949 # Is the header compilable?
11950{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11952cat >conftest.$ac_ext <<_ACEOF
11953/* confdefs.h. */
11954_ACEOF
11955cat confdefs.h >>conftest.$ac_ext
11956cat >>conftest.$ac_ext <<_ACEOF
11957/* end confdefs.h. */
11958$ac_includes_default
11959#include <$ac_header>
11960_ACEOF
11961rm -f conftest.$ac_objext
11962if { (ac_try="$ac_compile"
11963case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_compile") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_header_compiler=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 ac_header_compiler=no
12001fi
12002
12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12005echo "${ECHO_T}$ac_header_compiler" >&6; }
12006
12007# Is the header present?
12008{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12010cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016#include <$ac_header>
12017_ACEOF
12018if { (ac_try="$ac_cpp conftest.$ac_ext"
12019case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022esac
12023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev/null; then
12031 if test -s conftest.err; then
12032 ac_cpp_err=$ac_c_preproc_warn_flag
12033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034 else
12035 ac_cpp_err=
12036 fi
12037else
12038 ac_cpp_err=yes
12039fi
12040if test -z "$ac_cpp_err"; then
12041 ac_header_preproc=yes
12042else
12043 echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 ac_header_preproc=no
12047fi
12048
12049rm -f conftest.err conftest.$ac_ext
12050{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12051echo "${ECHO_T}$ac_header_preproc" >&6; }
12052
12053# So? What about this header?
12054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12055 yes:no: )
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12060 ac_header_preproc=yes
12061 ;;
12062 no:yes:* )
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12070echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12075 ( cat <<\_ASBOX
12076## ------------------------------------------- ##
12077## Report this to openssh-unix-dev@mindrot.org ##
12078## ------------------------------------------- ##
12079_ASBOX
12080 ) | sed "s/^/$as_me: WARNING: /" >&2
12081 ;;
12082esac
12083{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088 eval "$as_ac_Header=\$ac_header_preproc"
12089fi
12090ac_res=`eval echo '${'$as_ac_Header'}'`
12091 { echo "$as_me:$LINENO: result: $ac_res" >&5
12092echo "${ECHO_T}$ac_res" >&6; }
12093
12094fi
12095if test `eval echo '${'$as_ac_Header'}'` = yes; then
12096 cat >>confdefs.h <<_ACEOF
12097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12098_ACEOF
12099
12100fi
12101
12102done
12103
12104{ echo "$as_me:$LINENO: checking for library containing login" >&5
12105echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
12106if test "${ac_cv_search_login+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 ac_func_search_save_LIBS=$LIBS
12110cat >conftest.$ac_ext <<_ACEOF
12111/* confdefs.h. */
12112_ACEOF
12113cat confdefs.h >>conftest.$ac_ext
12114cat >>conftest.$ac_ext <<_ACEOF
12115/* end confdefs.h. */
12116
12117/* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12120#ifdef __cplusplus
12121extern "C"
12122#endif
12123char login ();
12124int
12125main ()
12126{
12127return login ();
12128 ;
12129 return 0;
12130}
12131_ACEOF
12132for ac_lib in '' util bsd; do
12133 if test -z "$ac_lib"; then
12134 ac_res="none required"
12135 else
12136 ac_res=-l$ac_lib
12137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12138 fi
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140if { (ac_try="$ac_link"
12141case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144esac
12145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12154 { (case "(($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_try") 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_search_login=$ac_res
12174else
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178
12179fi
12180
12181rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext
12183 if test "${ac_cv_search_login+set}" = set; then
12184 break
12185fi
12186done
12187if test "${ac_cv_search_login+set}" = set; then
12188 :
12189else
12190 ac_cv_search_login=no
12191fi
12192rm conftest.$ac_ext
12193LIBS=$ac_func_search_save_LIBS
12194fi
12195{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
12196echo "${ECHO_T}$ac_cv_search_login" >&6; }
12197ac_res=$ac_cv_search_login
12198if test "$ac_res" != no; then
12199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12200
12201cat >>confdefs.h <<\_ACEOF
12202#define HAVE_LOGIN 1
12203_ACEOF
12204
12205fi
12206
12207
12208
12209
12210for ac_func in logout updwtmp logwtmp
12211do
12212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217else
12218 cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
12224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12226#define $ac_func innocuous_$ac_func
12227
12228/* System header to define __stub macros and hopefully few prototypes,
12229 which can conflict with char $ac_func (); below.
12230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12231 <limits.h> exists even on freestanding compilers. */
12232
12233#ifdef __STDC__
12234# include <limits.h>
12235#else
12236# include <assert.h>
12237#endif
12238
12239#undef $ac_func
12240
12241/* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12244#ifdef __cplusplus
12245extern "C"
12246#endif
12247char $ac_func ();
12248/* The GNU C library defines this for functions which it implements
12249 to always fail with ENOSYS. Some functions are actually named
12250 something starting with __ and the normal name is an alias. */
12251#if defined __stub_$ac_func || defined __stub___$ac_func
12252choke me
12253#endif
12254
12255int
12256main ()
12257{
12258return $ac_func ();
12259 ;
12260 return 0;
12261}
12262_ACEOF
12263rm -f conftest.$ac_objext conftest$ac_exeext
12264if { (ac_try="$ac_link"
12265case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268esac
12269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_link") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12278 { (case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_try") 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try='test -s conftest$ac_exeext'
12288 { (case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291esac
12292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_try") 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 eval "$as_ac_var=yes"
12298else
12299 echo "$as_me: failed program was:" >&5
12300sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 eval "$as_ac_var=no"
12303fi
12304
12305rm -f core conftest.err conftest.$ac_objext \
12306 conftest$ac_exeext conftest.$ac_ext
12307fi
12308ac_res=`eval echo '${'$as_ac_var'}'`
12309 { echo "$as_me:$LINENO: result: $ac_res" >&5
12310echo "${ECHO_T}$ac_res" >&6; }
12311if test `eval echo '${'$as_ac_var'}'` = yes; then
12312 cat >>confdefs.h <<_ACEOF
12313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12314_ACEOF
12315
12316fi
12317done
12318
12319
12320
12321for ac_func in strftime
12322do
12323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12324{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12326if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328else
12329 cat >conftest.$ac_ext <<_ACEOF
12330/* confdefs.h. */
12331_ACEOF
12332cat confdefs.h >>conftest.$ac_ext
12333cat >>conftest.$ac_ext <<_ACEOF
12334/* end confdefs.h. */
12335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12337#define $ac_func innocuous_$ac_func
12338
12339/* System header to define __stub macros and hopefully few prototypes,
12340 which can conflict with char $ac_func (); below.
12341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12342 <limits.h> exists even on freestanding compilers. */
12343
12344#ifdef __STDC__
12345# include <limits.h>
12346#else
12347# include <assert.h>
12348#endif
12349
12350#undef $ac_func
12351
12352/* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char $ac_func ();
12359/* The GNU C library defines this for functions which it implements
12360 to always fail with ENOSYS. Some functions are actually named
12361 something starting with __ and the normal name is an alias. */
12362#if defined __stub_$ac_func || defined __stub___$ac_func
12363choke me
12364#endif
12365
12366int
12367main ()
12368{
12369return $ac_func ();
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (ac_try="$ac_link"
12376case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
12380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392esac
12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402esac
12403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 eval "$as_ac_var=yes"
12409else
12410 echo "$as_me: failed program was:" >&5
12411sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 eval "$as_ac_var=no"
12414fi
12415
12416rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418fi
12419ac_res=`eval echo '${'$as_ac_var'}'`
12420 { echo "$as_me:$LINENO: result: $ac_res" >&5
12421echo "${ECHO_T}$ac_res" >&6; }
12422if test `eval echo '${'$as_ac_var'}'` = yes; then
12423 cat >>confdefs.h <<_ACEOF
12424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12425_ACEOF
12426
12427else
12428 # strftime is in -lintl on SCO UNIX.
12429{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12430echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12431if test "${ac_cv_lib_intl_strftime+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12433else
12434 ac_check_lib_save_LIBS=$LIBS
12435LIBS="-lintl $LIBS"
12436cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442
12443/* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12446#ifdef __cplusplus
12447extern "C"
12448#endif
12449char strftime ();
12450int
12451main ()
12452{
12453return strftime ();
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (ac_try="$ac_link"
12460case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463esac
12464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_link") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476esac
12477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_try") 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_lib_intl_strftime=yes
12493else
12494 echo "$as_me: failed program was:" >&5
12495sed 's/^/| /' conftest.$ac_ext >&5
12496
12497 ac_cv_lib_intl_strftime=no
12498fi
12499
12500rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502LIBS=$ac_check_lib_save_LIBS
12503fi
12504{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12505echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12506if test $ac_cv_lib_intl_strftime = yes; then
12507 cat >>confdefs.h <<\_ACEOF
12508#define HAVE_STRFTIME 1
12509_ACEOF
12510
12511LIBS="-lintl $LIBS"
12512fi
12513
12514fi
12515done
12516
12517
12518# Check for ALTDIRFUNC glob() extension
12519{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
12520echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
12521cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
12527
12528 #include <glob.h>
12529 #ifdef GLOB_ALTDIRFUNC
12530 FOUNDIT
12531 #endif
12532
12533_ACEOF
12534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12535 $EGREP "FOUNDIT" >/dev/null 2>&1; then
12536
12537
12538cat >>confdefs.h <<\_ACEOF
12539#define GLOB_HAS_ALTDIRFUNC 1
12540_ACEOF
12541
12542 { echo "$as_me:$LINENO: result: yes" >&5
12543echo "${ECHO_T}yes" >&6; }
12544
12545else
12546
12547 { echo "$as_me:$LINENO: result: no" >&5
12548echo "${ECHO_T}no" >&6; }
12549
12550
12551fi
12552rm -f conftest*
12553
12554
12555# Check for g.gl_matchc glob() extension
12556{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
12557echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
12558cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h. */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
12563/* end confdefs.h. */
12564 #include <glob.h>
12565int
12566main ()
12567{
12568glob_t g; g.gl_matchc = 1;
12569 ;
12570 return 0;
12571}
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (ac_try="$ac_compile"
12575case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601esac
12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607
12608
12609cat >>confdefs.h <<\_ACEOF
12610#define GLOB_HAS_GL_MATCHC 1
12611_ACEOF
12612
12613 { echo "$as_me:$LINENO: result: yes" >&5
12614echo "${ECHO_T}yes" >&6; }
12615
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620
12621 { echo "$as_me:$LINENO: result: no" >&5
12622echo "${ECHO_T}no" >&6; }
12623
12624
12625fi
12626
12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628
12629{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12630echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
12631if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633else
12634 cat >conftest.$ac_ext <<_ACEOF
12635/* confdefs.h. */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h. */
12640#include <glob.h>
12641
12642int
12643main ()
12644{
12645#ifndef GLOB_NOMATCH
12646 char *p = (char *) GLOB_NOMATCH;
12647 return !p;
12648#endif
12649
12650 ;
12651 return 0;
12652}
12653_ACEOF
12654rm -f conftest.$ac_objext
12655if { (ac_try="$ac_compile"
12656case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659esac
12660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_compile") 2>conftest.er1
12662 ac_status=$?
12663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672esac
12673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12682esac
12683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_have_decl_GLOB_NOMATCH=yes
12689else
12690 echo "$as_me: failed program was:" >&5
12691sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 ac_cv_have_decl_GLOB_NOMATCH=no
12694fi
12695
12696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697fi
12698{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12699echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12700if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12701
12702cat >>confdefs.h <<_ACEOF
12703#define HAVE_DECL_GLOB_NOMATCH 1
12704_ACEOF
12705
12706
12707else
12708 cat >>confdefs.h <<_ACEOF
12709#define HAVE_DECL_GLOB_NOMATCH 0
12710_ACEOF
12711
12712
12713fi
12714
12715
12716
12717{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12718echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12719if test "$cross_compiling" = yes; then
12720
12721 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12722echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12723 cat >>confdefs.h <<\_ACEOF
12724#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12725_ACEOF
12726
12727
12728
12729else
12730 cat >conftest.$ac_ext <<_ACEOF
12731/* confdefs.h. */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
12735/* end confdefs.h. */
12736
12737#include <sys/types.h>
12738#include <dirent.h>
12739int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12740
12741_ACEOF
12742rm -f conftest$ac_exeext
12743if { (ac_try="$ac_link"
12744case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12747esac
12748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_link") 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756esac
12757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 { echo "$as_me:$LINENO: result: yes" >&5
12763echo "${ECHO_T}yes" >&6; }
12764else
12765 echo "$as_me: program exited with status $ac_status" >&5
12766echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769( exit $ac_status )
12770
12771 { echo "$as_me:$LINENO: result: no" >&5
12772echo "${ECHO_T}no" >&6; }
12773
12774cat >>confdefs.h <<\_ACEOF
12775#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12776_ACEOF
12777
12778
12779fi
12780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12781fi
12782
12783
12784
12785{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12786echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12787if test -d "/proc/$$/fd" ; then
12788
12789cat >>confdefs.h <<\_ACEOF
12790#define HAVE_PROC_PID 1
12791_ACEOF
12792
12793 { echo "$as_me:$LINENO: result: yes" >&5
12794echo "${ECHO_T}yes" >&6; }
12795else
12796 { echo "$as_me:$LINENO: result: no" >&5
12797echo "${ECHO_T}no" >&6; }
12798fi
12799
12800# Check whether user wants S/Key support
12801SKEY_MSG="no"
12802
12803# Check whether --with-skey was given.
12804if test "${with_skey+set}" = set; then
12805 withval=$with_skey;
12806 if test "x$withval" != "xno" ; then
12807
12808 if test "x$withval" != "xyes" ; then
12809 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12810 LDFLAGS="$LDFLAGS -L${withval}/lib"
12811 fi
12812
12813
12814cat >>confdefs.h <<\_ACEOF
12815#define SKEY 1
12816_ACEOF
12817
12818 LIBS="-lskey $LIBS"
12819 SKEY_MSG="yes"
12820
12821 { echo "$as_me:$LINENO: checking for s/key support" >&5
12822echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12823 cat >conftest.$ac_ext <<_ACEOF
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
12829
12830#include <stdio.h>
12831#include <skey.h>
12832int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12833
12834_ACEOF
12835rm -f conftest.$ac_objext conftest$ac_exeext
12836if { (ac_try="$ac_link"
12837case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840esac
12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_link") 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853esac
12854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest$ac_exeext'
12860 { (case "(($ac_try" in
12861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862 *) ac_try_echo=$ac_try;;
12863esac
12864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865 (eval "$ac_try") 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 { echo "$as_me:$LINENO: result: yes" >&5
12870echo "${ECHO_T}yes" >&6; }
12871else
12872 echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875
12876 { echo "$as_me:$LINENO: result: no" >&5
12877echo "${ECHO_T}no" >&6; }
12878 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12879echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12880 { (exit 1); exit 1; }; }
12881
12882fi
12883
12884rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12887echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12888 cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h. */
12894#include <stdio.h>
12895 #include <skey.h>
12896int
12897main ()
12898{
12899(void)skeychallenge(NULL,"name","",0);
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (ac_try="$ac_compile"
12906case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_compile") 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922esac
12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 { echo "$as_me:$LINENO: result: yes" >&5
12939echo "${ECHO_T}yes" >&6; }
12940
12941cat >>confdefs.h <<\_ACEOF
12942#define SKEYCHALLENGE_4ARG 1
12943_ACEOF
12944
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 { echo "$as_me:$LINENO: result: no" >&5
12950echo "${ECHO_T}no" >&6; }
12951
12952fi
12953
12954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 fi
12956
12957
12958fi
12959
12960
12961# Check whether user wants TCP wrappers support
12962TCPW_MSG="no"
12963
12964# Check whether --with-tcp-wrappers was given.
12965if test "${with_tcp_wrappers+set}" = set; then
12966 withval=$with_tcp_wrappers;
12967 if test "x$withval" != "xno" ; then
12968 saved_LIBS="$LIBS"
12969 saved_LDFLAGS="$LDFLAGS"
12970 saved_CPPFLAGS="$CPPFLAGS"
12971 if test -n "${withval}" && \
12972 test "x${withval}" != "xyes"; then
12973 if test -d "${withval}/lib"; then
12974 if test -n "${need_dash_r}"; then
12975 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12976 else
12977 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12978 fi
12979 else
12980 if test -n "${need_dash_r}"; then
12981 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12982 else
12983 LDFLAGS="-L${withval} ${LDFLAGS}"
12984 fi
12985 fi
12986 if test -d "${withval}/include"; then
12987 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12988 else
12989 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12990 fi
12991 fi
12992 LIBWRAP="-lwrap"
12993 LIBS="$LIBWRAP $LIBS"
12994 { echo "$as_me:$LINENO: checking for libwrap" >&5
12995echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12996 cat >conftest.$ac_ext <<_ACEOF
12997/* confdefs.h. */
12998_ACEOF
12999cat confdefs.h >>conftest.$ac_ext
13000cat >>conftest.$ac_ext <<_ACEOF
13001/* end confdefs.h. */
13002
13003#include <sys/types.h>
13004#include <sys/socket.h>
13005#include <netinet/in.h>
13006#include <tcpd.h>
13007 int deny_severity = 0, allow_severity = 0;
13008
13009int
13010main ()
13011{
13012hosts_access(0);
13013 ;
13014 return 0;
13015}
13016_ACEOF
13017rm -f conftest.$ac_objext conftest$ac_exeext
13018if { (ac_try="$ac_link"
13019case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_link") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035esac
13036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest$ac_exeext'
13042 { (case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13045esac
13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_try") 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051
13052 { echo "$as_me:$LINENO: result: yes" >&5
13053echo "${ECHO_T}yes" >&6; }
13054
13055cat >>confdefs.h <<\_ACEOF
13056#define LIBWRAP 1
13057_ACEOF
13058
13059
13060 TCPW_MSG="yes"
13061
13062else
13063 echo "$as_me: failed program was:" >&5
13064sed 's/^/| /' conftest.$ac_ext >&5
13065
13066
13067 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
13068echo "$as_me: error: *** libwrap missing" >&2;}
13069 { (exit 1); exit 1; }; }
13070
13071
13072fi
13073
13074rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 LIBS="$saved_LIBS"
13077 fi
13078
13079
13080fi
13081
13082
13083# Check whether user wants libedit support
13084LIBEDIT_MSG="no"
13085
13086# Check whether --with-libedit was given.
13087if test "${with_libedit+set}" = set; then
13088 withval=$with_libedit; if test "x$withval" != "xno" ; then
13089 if test "x$withval" != "xyes"; then
13090 CPPFLAGS="$CPPFLAGS -I${withval}/include"
13091 if test -n "${need_dash_r}"; then
13092 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13093 else
13094 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13095 fi
13096 fi
13097 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
13098echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
13099if test "${ac_cv_lib_edit_el_init+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101else
13102 ac_check_lib_save_LIBS=$LIBS
13103LIBS="-ledit -lcurses
13104 $LIBS"
13105cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111
13112/* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13115#ifdef __cplusplus
13116extern "C"
13117#endif
13118char el_init ();
13119int
13120main ()
13121{
13122return el_init ();
13123 ;
13124 return 0;
13125}
13126_ACEOF
13127rm -f conftest.$ac_objext conftest$ac_exeext
13128if { (ac_try="$ac_link"
13129case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155esac
13156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_lib_edit_el_init=yes
13162else
13163 echo "$as_me: failed program was:" >&5
13164sed 's/^/| /' conftest.$ac_ext >&5
13165
13166 ac_cv_lib_edit_el_init=no
13167fi
13168
13169rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171LIBS=$ac_check_lib_save_LIBS
13172fi
13173{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
13174echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
13175if test $ac_cv_lib_edit_el_init = yes; then
13176
13177cat >>confdefs.h <<\_ACEOF
13178#define USE_LIBEDIT 1
13179_ACEOF
13180
13181 LIBEDIT="-ledit -lcurses"
13182 LIBEDIT_MSG="yes"
13183
13184
13185else
13186 { { echo "$as_me:$LINENO: error: libedit not found" >&5
13187echo "$as_me: error: libedit not found" >&2;}
13188 { (exit 1); exit 1; }; }
13189fi
13190
13191 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
13192echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
13193 cat >conftest.$ac_ext <<_ACEOF
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
13198/* end confdefs.h. */
13199
13200#include <histedit.h>
13201int main(void)
13202{
13203 int i = H_SETSIZE;
13204 el_init("", NULL, NULL, NULL);
13205 exit(0);
13206}
13207
13208_ACEOF
13209rm -f conftest.$ac_objext
13210if { (ac_try="$ac_compile"
13211case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_compile") 2>conftest.er1
13217 ac_status=$?
13218 grep -v '^ *+' conftest.er1 >conftest.err
13219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
13223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 { echo "$as_me:$LINENO: result: yes" >&5
13244echo "${ECHO_T}yes" >&6; }
13245else
13246 echo "$as_me: failed program was:" >&5
13247sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 { echo "$as_me:$LINENO: result: no" >&5
13250echo "${ECHO_T}no" >&6; }
13251 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
13252echo "$as_me: error: libedit version is not compatible" >&2;}
13253 { (exit 1); exit 1; }; }
13254
13255fi
13256
13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 fi
13259
13260fi
13261
13262
13263AUDIT_MODULE=none
13264
13265# Check whether --with-audit was given.
13266if test "${with_audit+set}" = set; then
13267 withval=$with_audit;
13268 { echo "$as_me:$LINENO: checking for supported audit module" >&5
13269echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
13270 case "$withval" in
13271 bsm)
13272 { echo "$as_me:$LINENO: result: bsm" >&5
13273echo "${ECHO_T}bsm" >&6; }
13274 AUDIT_MODULE=bsm
13275
13276for ac_header in bsm/audit.h
13277do
13278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283else
13284 cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
13290
13291#ifdef HAVE_TIME_H
13292# include <time.h>
13293#endif
13294
13295
13296
13297#include <$ac_header>
13298_ACEOF
13299rm -f conftest.$ac_objext
13300if { (ac_try="$ac_compile"
13301case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304esac
13305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_compile") 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314 { (case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_try") 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest.$ac_objext'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 eval "$as_ac_Header=yes"
13334else
13335 echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 eval "$as_ac_Header=no"
13339fi
13340
13341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342fi
13343ac_res=`eval echo '${'$as_ac_Header'}'`
13344 { echo "$as_me:$LINENO: result: $ac_res" >&5
13345echo "${ECHO_T}$ac_res" >&6; }
13346if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347 cat >>confdefs.h <<_ACEOF
13348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13349_ACEOF
13350
13351else
13352 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
13353echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
13354 { (exit 1); exit 1; }; }
13355fi
13356
13357done
13358
13359
13360{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
13361echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
13362if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365 ac_check_lib_save_LIBS=$LIBS
13366LIBS="-lbsm $LIBS"
13367cat >conftest.$ac_ext <<_ACEOF
13368/* confdefs.h. */
13369_ACEOF
13370cat confdefs.h >>conftest.$ac_ext
13371cat >>conftest.$ac_ext <<_ACEOF
13372/* end confdefs.h. */
13373
13374/* Override any GCC internal prototype to avoid an error.
13375 Use char because int might match the return type of a GCC
13376 builtin and then its argument prototype would still apply. */
13377#ifdef __cplusplus
13378extern "C"
13379#endif
13380char getaudit ();
13381int
13382main ()
13383{
13384return getaudit ();
13385 ;
13386 return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext conftest$ac_exeext
13390if { (ac_try="$ac_link"
13391case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394esac
13395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_link") 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404 { (case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407esac
13408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_try") 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest$ac_exeext'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_lib_bsm_getaudit=yes
13424else
13425 echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428 ac_cv_lib_bsm_getaudit=no
13429fi
13430
13431rm -f core conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433LIBS=$ac_check_lib_save_LIBS
13434fi
13435{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
13436echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
13437if test $ac_cv_lib_bsm_getaudit = yes; then
13438 cat >>confdefs.h <<_ACEOF
13439#define HAVE_LIBBSM 1
13440_ACEOF
13441
13442 LIBS="-lbsm $LIBS"
13443
13444else
13445 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
13446echo "$as_me: error: BSM enabled and required library not found" >&2;}
13447 { (exit 1); exit 1; }; }
13448fi
13449
13450
13451for ac_func in getaudit
13452do
13453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467#define $ac_func innocuous_$ac_func
13468
13469/* System header to define __stub macros and hopefully few prototypes,
13470 which can conflict with char $ac_func (); below.
13471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472 <limits.h> exists even on freestanding compilers. */
13473
13474#ifdef __STDC__
13475# include <limits.h>
13476#else
13477# include <assert.h>
13478#endif
13479
13480#undef $ac_func
13481
13482/* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485#ifdef __cplusplus
13486extern "C"
13487#endif
13488char $ac_func ();
13489/* The GNU C library defines this for functions which it implements
13490 to always fail with ENOSYS. Some functions are actually named
13491 something starting with __ and the normal name is an alias. */
13492#if defined __stub_$ac_func || defined __stub___$ac_func
13493choke me
13494#endif
13495
13496int
13497main ()
13498{
13499return $ac_func ();
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (ac_try="$ac_link"
13506case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522esac
13523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532esac
13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 eval "$as_ac_var=yes"
13539else
13540 echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 eval "$as_ac_var=no"
13544fi
13545
13546rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548fi
13549ac_res=`eval echo '${'$as_ac_var'}'`
13550 { echo "$as_me:$LINENO: result: $ac_res" >&5
13551echo "${ECHO_T}$ac_res" >&6; }
13552if test `eval echo '${'$as_ac_var'}'` = yes; then
13553 cat >>confdefs.h <<_ACEOF
13554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13555_ACEOF
13556
13557else
13558 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
13559echo "$as_me: error: BSM enabled and required function not found" >&2;}
13560 { (exit 1); exit 1; }; }
13561fi
13562done
13563
13564 # These are optional
13565
13566for ac_func in getaudit_addr
13567do
13568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13569{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573else
13574 cat >conftest.$ac_ext <<_ACEOF
13575/* confdefs.h. */
13576_ACEOF
13577cat confdefs.h >>conftest.$ac_ext
13578cat >>conftest.$ac_ext <<_ACEOF
13579/* end confdefs.h. */
13580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13582#define $ac_func innocuous_$ac_func
13583
13584/* System header to define __stub macros and hopefully few prototypes,
13585 which can conflict with char $ac_func (); below.
13586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13587 <limits.h> exists even on freestanding compilers. */
13588
13589#ifdef __STDC__
13590# include <limits.h>
13591#else
13592# include <assert.h>
13593#endif
13594
13595#undef $ac_func
13596
13597/* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603char $ac_func ();
13604/* The GNU C library defines this for functions which it implements
13605 to always fail with ENOSYS. Some functions are actually named
13606 something starting with __ and the normal name is an alias. */
13607#if defined __stub_$ac_func || defined __stub___$ac_func
13608choke me
13609#endif
13610
13611int
13612main ()
13613{
13614return $ac_func ();
13615 ;
13616 return 0;
13617}
13618_ACEOF
13619rm -f conftest.$ac_objext conftest$ac_exeext
13620if { (ac_try="$ac_link"
13621case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624esac
13625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_link") 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13634 { (case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637esac
13638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_try") 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647esac
13648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_try") 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 eval "$as_ac_var=yes"
13654else
13655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 eval "$as_ac_var=no"
13659fi
13660
13661rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663fi
13664ac_res=`eval echo '${'$as_ac_var'}'`
13665 { echo "$as_me:$LINENO: result: $ac_res" >&5
13666echo "${ECHO_T}$ac_res" >&6; }
13667if test `eval echo '${'$as_ac_var'}'` = yes; then
13668 cat >>confdefs.h <<_ACEOF
13669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13670_ACEOF
13671
13672fi
13673done
13674
13675
13676cat >>confdefs.h <<\_ACEOF
13677#define USE_BSM_AUDIT 1
13678_ACEOF
13679
13680 ;;
13681 debug)
13682 AUDIT_MODULE=debug
13683 { echo "$as_me:$LINENO: result: debug" >&5
13684echo "${ECHO_T}debug" >&6; }
13685
13686cat >>confdefs.h <<\_ACEOF
13687#define SSH_AUDIT_EVENTS 1
13688_ACEOF
13689
13690 ;;
13691 no)
13692 { echo "$as_me:$LINENO: result: no" >&5
13693echo "${ECHO_T}no" >&6; }
13694 ;;
13695 *)
13696 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
13697echo "$as_me: error: Unknown audit module $withval" >&2;}
13698 { (exit 1); exit 1; }; }
13699 ;;
13700 esac
13701
13702fi
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786for ac_func in \
13787 arc4random \
13788 asprintf \
13789 b64_ntop \
13790 __b64_ntop \
13791 b64_pton \
13792 __b64_pton \
13793 bcopy \
13794 bindresvport_sa \
13795 clock \
13796 closefrom \
13797 dirfd \
13798 fchmod \
13799 fchown \
13800 freeaddrinfo \
13801 futimes \
13802 getaddrinfo \
13803 getcwd \
13804 getgrouplist \
13805 getnameinfo \
13806 getopt \
13807 getpeereid \
13808 _getpty \
13809 getrlimit \
13810 getttyent \
13811 glob \
13812 inet_aton \
13813 inet_ntoa \
13814 inet_ntop \
13815 innetgr \
13816 login_getcapbool \
13817 md5_crypt \
13818 memmove \
13819 mkdtemp \
13820 mmap \
13821 ngetaddrinfo \
13822 nsleep \
13823 ogetaddrinfo \
13824 openlog_r \
13825 openpty \
13826 prctl \
13827 pstat \
13828 readpassphrase \
13829 realpath \
13830 recvmsg \
13831 rresvport_af \
13832 sendmsg \
13833 setdtablesize \
13834 setegid \
13835 setenv \
13836 seteuid \
13837 setgroups \
13838 setlogin \
13839 setpcred \
13840 setproctitle \
13841 setregid \
13842 setreuid \
13843 setrlimit \
13844 setsid \
13845 setvbuf \
13846 sigaction \
13847 sigvec \
13848 snprintf \
13849 socketpair \
13850 strdup \
13851 strerror \
13852 strlcat \
13853 strlcpy \
13854 strmode \
13855 strnvis \
13856 strtonum \
13857 strtoll \
13858 strtoul \
13859 sysconf \
13860 tcgetpgrp \
13861 truncate \
13862 unsetenv \
13863 updwtmpx \
13864 vasprintf \
13865 vhangup \
13866 vsnprintf \
13867 waitpid \
13868
13869do
13870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 cat >conftest.$ac_ext <<_ACEOF
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13884#define $ac_func innocuous_$ac_func
13885
13886/* System header to define __stub macros and hopefully few prototypes,
13887 which can conflict with char $ac_func (); below.
13888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13889 <limits.h> exists even on freestanding compilers. */
13890
13891#ifdef __STDC__
13892# include <limits.h>
13893#else
13894# include <assert.h>
13895#endif
13896
13897#undef $ac_func
13898
13899/* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13902#ifdef __cplusplus
13903extern "C"
13904#endif
13905char $ac_func ();
13906/* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
13908 something starting with __ and the normal name is an alias. */
13909#if defined __stub_$ac_func || defined __stub___$ac_func
13910choke me
13911#endif
13912
13913int
13914main ()
13915{
13916return $ac_func ();
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext conftest$ac_exeext
13922if { (ac_try="$ac_link"
13923case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926esac
13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_link") 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 eval "$as_ac_var=yes"
13956else
13957 echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 eval "$as_ac_var=no"
13961fi
13962
13963rm -f core conftest.err conftest.$ac_objext \
13964 conftest$ac_exeext conftest.$ac_ext
13965fi
13966ac_res=`eval echo '${'$as_ac_var'}'`
13967 { echo "$as_me:$LINENO: result: $ac_res" >&5
13968echo "${ECHO_T}$ac_res" >&6; }
13969if test `eval echo '${'$as_ac_var'}'` = yes; then
13970 cat >>confdefs.h <<_ACEOF
13971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13972_ACEOF
13973
13974fi
13975done
13976
13977
13978# IRIX has a const char return value for gai_strerror()
13979
13980for ac_func in gai_strerror
13981do
13982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988 cat >conftest.$ac_ext <<_ACEOF
13989/* confdefs.h. */
13990_ACEOF
13991cat confdefs.h >>conftest.$ac_ext
13992cat >>conftest.$ac_ext <<_ACEOF
13993/* end confdefs.h. */
13994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13996#define $ac_func innocuous_$ac_func
13997
13998/* System header to define __stub macros and hopefully few prototypes,
13999 which can conflict with char $ac_func (); below.
14000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14001 <limits.h> exists even on freestanding compilers. */
14002
14003#ifdef __STDC__
14004# include <limits.h>
14005#else
14006# include <assert.h>
14007#endif
14008
14009#undef $ac_func
14010
14011/* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014#ifdef __cplusplus
14015extern "C"
14016#endif
14017char $ac_func ();
14018/* The GNU C library defines this for functions which it implements
14019 to always fail with ENOSYS. Some functions are actually named
14020 something starting with __ and the normal name is an alias. */
14021#if defined __stub_$ac_func || defined __stub___$ac_func
14022choke me
14023#endif
14024
14025int
14026main ()
14027{
14028return $ac_func ();
14029 ;
14030 return 0;
14031}
14032_ACEOF
14033rm -f conftest.$ac_objext conftest$ac_exeext
14034if { (ac_try="$ac_link"
14035case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038esac
14039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_link") 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051esac
14052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061esac
14062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 eval "$as_ac_var=yes"
14068else
14069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 eval "$as_ac_var=no"
14073fi
14074
14075rm -f core conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077fi
14078ac_res=`eval echo '${'$as_ac_var'}'`
14079 { echo "$as_me:$LINENO: result: $ac_res" >&5
14080echo "${ECHO_T}$ac_res" >&6; }
14081if test `eval echo '${'$as_ac_var'}'` = yes; then
14082 cat >>confdefs.h <<_ACEOF
14083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14084_ACEOF
14085
14086 cat >>confdefs.h <<\_ACEOF
14087#define HAVE_GAI_STRERROR 1
14088_ACEOF
14089
14090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096
14097#include <sys/types.h>
14098#include <sys/socket.h>
14099#include <netdb.h>
14100
14101const char *gai_strerror(int);
14102int
14103main ()
14104{
14105
14106char *str;
14107
14108str = gai_strerror(0);
14109 ;
14110 return 0;
14111}
14112_ACEOF
14113rm -f conftest.$ac_objext
14114if { (ac_try="$ac_compile"
14115case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118esac
14119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_compile") 2>conftest.er1
14121 ac_status=$?
14122 grep -v '^ *+' conftest.er1 >conftest.err
14123 rm -f conftest.er1
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14128 { (case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131esac
14132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_try") 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141esac
14142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_try") 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147
14148
14149cat >>confdefs.h <<\_ACEOF
14150#define HAVE_CONST_GAI_STRERROR_PROTO 1
14151_ACEOF
14152
14153else
14154 echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157
14158fi
14159
14160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161fi
14162done
14163
14164
14165{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
14166echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
14167if test "${ac_cv_search_nanosleep+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14169else
14170 ac_func_search_save_LIBS=$LIBS
14171cat >conftest.$ac_ext <<_ACEOF
14172/* confdefs.h. */
14173_ACEOF
14174cat confdefs.h >>conftest.$ac_ext
14175cat >>conftest.$ac_ext <<_ACEOF
14176/* end confdefs.h. */
14177
14178/* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14181#ifdef __cplusplus
14182extern "C"
14183#endif
14184char nanosleep ();
14185int
14186main ()
14187{
14188return nanosleep ();
14189 ;
14190 return 0;
14191}
14192_ACEOF
14193for ac_lib in '' rt posix4; do
14194 if test -z "$ac_lib"; then
14195 ac_res="none required"
14196 else
14197 ac_res=-l$ac_lib
14198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14199 fi
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201if { (ac_try="$ac_link"
14202case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205esac
14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218esac
14219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest$ac_exeext'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228esac
14229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 ac_cv_search_nanosleep=$ac_res
14235else
14236 echo "$as_me: failed program was:" >&5
14237sed 's/^/| /' conftest.$ac_ext >&5
14238
14239
14240fi
14241
14242rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext
14244 if test "${ac_cv_search_nanosleep+set}" = set; then
14245 break
14246fi
14247done
14248if test "${ac_cv_search_nanosleep+set}" = set; then
14249 :
14250else
14251 ac_cv_search_nanosleep=no
14252fi
14253rm conftest.$ac_ext
14254LIBS=$ac_func_search_save_LIBS
14255fi
14256{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
14257echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
14258ac_res=$ac_cv_search_nanosleep
14259if test "$ac_res" != no; then
14260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14261
14262cat >>confdefs.h <<\_ACEOF
14263#define HAVE_NANOSLEEP 1
14264_ACEOF
14265
14266fi
14267
14268
14269{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
14270echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
14271if test "${ac_cv_have_decl_getrusage+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
14274 cat >conftest.$ac_ext <<_ACEOF
14275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
14279/* end confdefs.h. */
14280$ac_includes_default
14281int
14282main ()
14283{
14284#ifndef getrusage
14285 char *p = (char *) getrusage;
14286 return !p;
14287#endif
14288
14289 ;
14290 return 0;
14291}
14292_ACEOF
14293rm -f conftest.$ac_objext
14294if { (ac_try="$ac_compile"
14295case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321esac
14322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_have_decl_getrusage=yes
14328else
14329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_cv_have_decl_getrusage=no
14333fi
14334
14335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336fi
14337{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
14338echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
14339if test $ac_cv_have_decl_getrusage = yes; then
14340
14341for ac_func in getrusage
14342do
14343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348else
14349 cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14357#define $ac_func innocuous_$ac_func
14358
14359/* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char $ac_func (); below.
14361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362 <limits.h> exists even on freestanding compilers. */
14363
14364#ifdef __STDC__
14365# include <limits.h>
14366#else
14367# include <assert.h>
14368#endif
14369
14370#undef $ac_func
14371
14372/* Override any GCC internal prototype to avoid an error.
14373 Use char because int might match the return type of a GCC
14374 builtin and then its argument prototype would still apply. */
14375#ifdef __cplusplus
14376extern "C"
14377#endif
14378char $ac_func ();
14379/* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382#if defined __stub_$ac_func || defined __stub___$ac_func
14383choke me
14384#endif
14385
14386int
14387main ()
14388{
14389return $ac_func ();
14390 ;
14391 return 0;
14392}
14393_ACEOF
14394rm -f conftest.$ac_objext conftest$ac_exeext
14395if { (ac_try="$ac_link"
14396case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14399esac
14400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_link") 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14409 { (case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14412esac
14413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_try") 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest$ac_exeext'
14419 { (case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422esac
14423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_try") 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 eval "$as_ac_var=yes"
14429else
14430 echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433 eval "$as_ac_var=no"
14434fi
14435
14436rm -f core conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14438fi
14439ac_res=`eval echo '${'$as_ac_var'}'`
14440 { echo "$as_me:$LINENO: result: $ac_res" >&5
14441echo "${ECHO_T}$ac_res" >&6; }
14442if test `eval echo '${'$as_ac_var'}'` = yes; then
14443 cat >>confdefs.h <<_ACEOF
14444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14445_ACEOF
14446
14447fi
14448done
14449
14450fi
14451
14452{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
14453echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
14454if test "${ac_cv_have_decl_strsep+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456else
14457 cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463
14464#ifdef HAVE_STRING_H
14465# include <string.h>
14466#endif
14467
14468
14469int
14470main ()
14471{
14472#ifndef strsep
14473 char *p = (char *) strsep;
14474 return !p;
14475#endif
14476
14477 ;
14478 return 0;
14479}
14480_ACEOF
14481rm -f conftest.$ac_objext
14482if { (ac_try="$ac_compile"
14483case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486esac
14487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } &&
14495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14496 { (case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499esac
14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_try") 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14509esac
14510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511 (eval "$ac_try") 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 ac_cv_have_decl_strsep=yes
14516else
14517 echo "$as_me: failed program was:" >&5
14518sed 's/^/| /' conftest.$ac_ext >&5
14519
14520 ac_cv_have_decl_strsep=no
14521fi
14522
14523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524fi
14525{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
14526echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
14527if test $ac_cv_have_decl_strsep = yes; then
14528
14529for ac_func in strsep
14530do
14531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14532{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14534if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537 cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14545#define $ac_func innocuous_$ac_func
14546
14547/* System header to define __stub macros and hopefully few prototypes,
14548 which can conflict with char $ac_func (); below.
14549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14550 <limits.h> exists even on freestanding compilers. */
14551
14552#ifdef __STDC__
14553# include <limits.h>
14554#else
14555# include <assert.h>
14556#endif
14557
14558#undef $ac_func
14559
14560/* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563#ifdef __cplusplus
14564extern "C"
14565#endif
14566char $ac_func ();
14567/* The GNU C library defines this for functions which it implements
14568 to always fail with ENOSYS. Some functions are actually named
14569 something starting with __ and the normal name is an alias. */
14570#if defined __stub_$ac_func || defined __stub___$ac_func
14571choke me
14572#endif
14573
14574int
14575main ()
14576{
14577return $ac_func ();
14578 ;
14579 return 0;
14580}
14581_ACEOF
14582rm -f conftest.$ac_objext conftest$ac_exeext
14583if { (ac_try="$ac_link"
14584case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587esac
14588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_link") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597 { (case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600esac
14601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_try") 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest$ac_exeext'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610esac
14611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 eval "$as_ac_var=yes"
14617else
14618 echo "$as_me: failed program was:" >&5
14619sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 eval "$as_ac_var=no"
14622fi
14623
14624rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626fi
14627ac_res=`eval echo '${'$as_ac_var'}'`
14628 { echo "$as_me:$LINENO: result: $ac_res" >&5
14629echo "${ECHO_T}$ac_res" >&6; }
14630if test `eval echo '${'$as_ac_var'}'` = yes; then
14631 cat >>confdefs.h <<_ACEOF
14632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14633_ACEOF
14634
14635fi
14636done
14637
14638fi
14639
14640
14641{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
14642echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
14643if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else
14646 cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */
14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */
14652#include <termios.h>
14653
14654
14655int
14656main ()
14657{
14658#ifndef tcsendbreak
14659 char *p = (char *) tcsendbreak;
14660 return !p;
14661#endif
14662
14663 ;
14664 return 0;
14665}
14666_ACEOF
14667rm -f conftest.$ac_objext
14668if { (ac_try="$ac_compile"
14669case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672esac
14673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682 { (case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685esac
14686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_try") 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695esac
14696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_try") 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_have_decl_tcsendbreak=yes
14702else
14703 echo "$as_me: failed program was:" >&5
14704sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 ac_cv_have_decl_tcsendbreak=no
14707fi
14708
14709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710fi
14711{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
14712echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
14713if test $ac_cv_have_decl_tcsendbreak = yes; then
14714 cat >>confdefs.h <<\_ACEOF
14715#define HAVE_TCSENDBREAK 1
14716_ACEOF
14717
14718else
14719
14720for ac_func in tcsendbreak
14721do
14722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727else
14728 cat >conftest.$ac_ext <<_ACEOF
14729/* confdefs.h. */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h. */
14734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14736#define $ac_func innocuous_$ac_func
14737
14738/* System header to define __stub macros and hopefully few prototypes,
14739 which can conflict with char $ac_func (); below.
14740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14741 <limits.h> exists even on freestanding compilers. */
14742
14743#ifdef __STDC__
14744# include <limits.h>
14745#else
14746# include <assert.h>
14747#endif
14748
14749#undef $ac_func
14750
14751/* Override any GCC internal prototype to avoid an error.
14752 Use char because int might match the return type of a GCC
14753 builtin and then its argument prototype would still apply. */
14754#ifdef __cplusplus
14755extern "C"
14756#endif
14757char $ac_func ();
14758/* The GNU C library defines this for functions which it implements
14759 to always fail with ENOSYS. Some functions are actually named
14760 something starting with __ and the normal name is an alias. */
14761#if defined __stub_$ac_func || defined __stub___$ac_func
14762choke me
14763#endif
14764
14765int
14766main ()
14767{
14768return $ac_func ();
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773rm -f conftest.$ac_objext conftest$ac_exeext
14774if { (ac_try="$ac_link"
14775case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778esac
14779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_link") 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
14787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14788 { (case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14791esac
14792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_try") 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; } &&
14797 { ac_try='test -s conftest$ac_exeext'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801esac
14802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_try") 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 eval "$as_ac_var=yes"
14808else
14809 echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 eval "$as_ac_var=no"
14813fi
14814
14815rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14817fi
14818ac_res=`eval echo '${'$as_ac_var'}'`
14819 { echo "$as_me:$LINENO: result: $ac_res" >&5
14820echo "${ECHO_T}$ac_res" >&6; }
14821if test `eval echo '${'$as_ac_var'}'` = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14824_ACEOF
14825
14826fi
14827done
14828
14829fi
14830
14831
14832{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14833echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
14834if test "${ac_cv_have_decl_h_errno+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836else
14837 cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
14843#include <netdb.h>
14844
14845int
14846main ()
14847{
14848#ifndef h_errno
14849 char *p = (char *) h_errno;
14850 return !p;
14851#endif
14852
14853 ;
14854 return 0;
14855}
14856_ACEOF
14857rm -f conftest.$ac_objext
14858if { (ac_try="$ac_compile"
14859case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14862esac
14863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_compile") 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14872 { (case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875esac
14876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_try") 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14885esac
14886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887 (eval "$ac_try") 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_have_decl_h_errno=yes
14892else
14893 echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896 ac_cv_have_decl_h_errno=no
14897fi
14898
14899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900fi
14901{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14902echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
14903if test $ac_cv_have_decl_h_errno = yes; then
14904
14905cat >>confdefs.h <<_ACEOF
14906#define HAVE_DECL_H_ERRNO 1
14907_ACEOF
14908
14909
14910else
14911 cat >>confdefs.h <<_ACEOF
14912#define HAVE_DECL_H_ERRNO 0
14913_ACEOF
14914
14915
14916fi
14917
14918
14919
14920{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14921echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
14922if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14924else
14925 cat >conftest.$ac_ext <<_ACEOF
14926/* confdefs.h. */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
14930/* end confdefs.h. */
14931
14932#include <sys/types.h>
14933#include <sys/socket.h>
14934
14935
14936int
14937main ()
14938{
14939#ifndef SHUT_RD
14940 char *p = (char *) SHUT_RD;
14941 return !p;
14942#endif
14943
14944 ;
14945 return 0;
14946}
14947_ACEOF
14948rm -f conftest.$ac_objext
14949if { (ac_try="$ac_compile"
14950case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953esac
14954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14963 { (case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966esac
14967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976esac
14977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_try") 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_cv_have_decl_SHUT_RD=yes
14983else
14984 echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 ac_cv_have_decl_SHUT_RD=no
14988fi
14989
14990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991fi
14992{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14993echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14994if test $ac_cv_have_decl_SHUT_RD = yes; then
14995
14996cat >>confdefs.h <<_ACEOF
14997#define HAVE_DECL_SHUT_RD 1
14998_ACEOF
14999
15000
15001else
15002 cat >>confdefs.h <<_ACEOF
15003#define HAVE_DECL_SHUT_RD 0
15004_ACEOF
15005
15006
15007fi
15008
15009
15010
15011{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
15012echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
15013if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016 cat >conftest.$ac_ext <<_ACEOF
15017/* confdefs.h. */
15018_ACEOF
15019cat confdefs.h >>conftest.$ac_ext
15020cat >>conftest.$ac_ext <<_ACEOF
15021/* end confdefs.h. */
15022
15023#include <sys/types.h>
15024#ifdef HAVE_SYS_STAT_H
15025# include <sys/stat.h>
15026#endif
15027#ifdef HAVE_FCNTL_H
15028# include <fcntl.h>
15029#endif
15030
15031
15032int
15033main ()
15034{
15035#ifndef O_NONBLOCK
15036 char *p = (char *) O_NONBLOCK;
15037 return !p;
15038#endif
15039
15040 ;
15041 return 0;
15042}
15043_ACEOF
15044rm -f conftest.$ac_objext
15045if { (ac_try="$ac_compile"
15046case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049esac
15050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_compile") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062esac
15063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest.$ac_objext'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_have_decl_O_NONBLOCK=yes
15079else
15080 echo "$as_me: failed program was:" >&5
15081sed 's/^/| /' conftest.$ac_ext >&5
15082
15083 ac_cv_have_decl_O_NONBLOCK=no
15084fi
15085
15086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087fi
15088{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
15089echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
15090if test $ac_cv_have_decl_O_NONBLOCK = yes; then
15091
15092cat >>confdefs.h <<_ACEOF
15093#define HAVE_DECL_O_NONBLOCK 1
15094_ACEOF
15095
15096
15097else
15098 cat >>confdefs.h <<_ACEOF
15099#define HAVE_DECL_O_NONBLOCK 0
15100_ACEOF
15101
15102
15103fi
15104
15105
15106
15107{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
15108echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
15109if test "${ac_cv_have_decl_writev+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111else
15112 cat >conftest.$ac_ext <<_ACEOF
15113/* confdefs.h. */
15114_ACEOF
15115cat confdefs.h >>conftest.$ac_ext
15116cat >>conftest.$ac_ext <<_ACEOF
15117/* end confdefs.h. */
15118
15119#include <sys/types.h>
15120#include <sys/uio.h>
15121#include <unistd.h>
15122
15123
15124int
15125main ()
15126{
15127#ifndef writev
15128 char *p = (char *) writev;
15129 return !p;
15130#endif
15131
15132 ;
15133 return 0;
15134}
15135_ACEOF
15136rm -f conftest.$ac_objext
15137if { (ac_try="$ac_compile"
15138case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15141esac
15142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_compile") 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15151 { (case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154esac
15155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_try") 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164esac
15165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_try") 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_have_decl_writev=yes
15171else
15172 echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ac_cv_have_decl_writev=no
15176fi
15177
15178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179fi
15180{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
15181echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
15182if test $ac_cv_have_decl_writev = yes; then
15183
15184cat >>confdefs.h <<_ACEOF
15185#define HAVE_DECL_WRITEV 1
15186_ACEOF
15187
15188
15189else
15190 cat >>confdefs.h <<_ACEOF
15191#define HAVE_DECL_WRITEV 0
15192_ACEOF
15193
15194
15195fi
15196
15197
15198
15199
15200for ac_func in setresuid
15201do
15202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15203{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15205if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207else
15208 cat >conftest.$ac_ext <<_ACEOF
15209/* confdefs.h. */
15210_ACEOF
15211cat confdefs.h >>conftest.$ac_ext
15212cat >>conftest.$ac_ext <<_ACEOF
15213/* end confdefs.h. */
15214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15216#define $ac_func innocuous_$ac_func
15217
15218/* System header to define __stub macros and hopefully few prototypes,
15219 which can conflict with char $ac_func (); below.
15220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15221 <limits.h> exists even on freestanding compilers. */
15222
15223#ifdef __STDC__
15224# include <limits.h>
15225#else
15226# include <assert.h>
15227#endif
15228
15229#undef $ac_func
15230
15231/* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15234#ifdef __cplusplus
15235extern "C"
15236#endif
15237char $ac_func ();
15238/* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241#if defined __stub_$ac_func || defined __stub___$ac_func
15242choke me
15243#endif
15244
15245int
15246main ()
15247{
15248return $ac_func ();
15249 ;
15250 return 0;
15251}
15252_ACEOF
15253rm -f conftest.$ac_objext conftest$ac_exeext
15254if { (ac_try="$ac_link"
15255case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_link") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15268 { (case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271esac
15272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_try") 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; } &&
15277 { ac_try='test -s conftest$ac_exeext'
15278 { (case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281esac
15282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_try") 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 eval "$as_ac_var=yes"
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 eval "$as_ac_var=no"
15293fi
15294
15295rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15297fi
15298ac_res=`eval echo '${'$as_ac_var'}'`
15299 { echo "$as_me:$LINENO: result: $ac_res" >&5
15300echo "${ECHO_T}$ac_res" >&6; }
15301if test `eval echo '${'$as_ac_var'}'` = yes; then
15302 cat >>confdefs.h <<_ACEOF
15303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15304_ACEOF
15305
15306 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
15307echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
15308 if test "$cross_compiling" = yes; then
15309 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15310echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15311
15312else
15313 cat >conftest.$ac_ext <<_ACEOF
15314/* confdefs.h. */
15315_ACEOF
15316cat confdefs.h >>conftest.$ac_ext
15317cat >>conftest.$ac_ext <<_ACEOF
15318/* end confdefs.h. */
15319
15320#include <stdlib.h>
15321#include <errno.h>
15322int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15323
15324_ACEOF
15325rm -f conftest$ac_exeext
15326if { (ac_try="$ac_link"
15327case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330esac
15331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339esac
15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 { echo "$as_me:$LINENO: result: yes" >&5
15346echo "${ECHO_T}yes" >&6; }
15347else
15348 echo "$as_me: program exited with status $ac_status" >&5
15349echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352( exit $ac_status )
15353
15354cat >>confdefs.h <<\_ACEOF
15355#define BROKEN_SETRESUID 1
15356_ACEOF
15357
15358 { echo "$as_me:$LINENO: result: not implemented" >&5
15359echo "${ECHO_T}not implemented" >&6; }
15360fi
15361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15362fi
15363
15364
15365
15366fi
15367done
15368
15369
15370
15371for ac_func in setresgid
15372do
15373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15374{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15376if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15378else
15379 cat >conftest.$ac_ext <<_ACEOF
15380/* confdefs.h. */
15381_ACEOF
15382cat confdefs.h >>conftest.$ac_ext
15383cat >>conftest.$ac_ext <<_ACEOF
15384/* end confdefs.h. */
15385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15387#define $ac_func innocuous_$ac_func
15388
15389/* System header to define __stub macros and hopefully few prototypes,
15390 which can conflict with char $ac_func (); below.
15391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15392 <limits.h> exists even on freestanding compilers. */
15393
15394#ifdef __STDC__
15395# include <limits.h>
15396#else
15397# include <assert.h>
15398#endif
15399
15400#undef $ac_func
15401
15402/* Override any GCC internal prototype to avoid an error.
15403 Use char because int might match the return type of a GCC
15404 builtin and then its argument prototype would still apply. */
15405#ifdef __cplusplus
15406extern "C"
15407#endif
15408char $ac_func ();
15409/* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412#if defined __stub_$ac_func || defined __stub___$ac_func
15413choke me
15414#endif
15415
15416int
15417main ()
15418{
15419return $ac_func ();
15420 ;
15421 return 0;
15422}
15423_ACEOF
15424rm -f conftest.$ac_objext conftest$ac_exeext
15425if { (ac_try="$ac_link"
15426case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429esac
15430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15442esac
15443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest$ac_exeext'
15449 { (case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452esac
15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_try") 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 eval "$as_ac_var=yes"
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 eval "$as_ac_var=no"
15464fi
15465
15466rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15468fi
15469ac_res=`eval echo '${'$as_ac_var'}'`
15470 { echo "$as_me:$LINENO: result: $ac_res" >&5
15471echo "${ECHO_T}$ac_res" >&6; }
15472if test `eval echo '${'$as_ac_var'}'` = yes; then
15473 cat >>confdefs.h <<_ACEOF
15474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15475_ACEOF
15476
15477 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
15478echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
15479 if test "$cross_compiling" = yes; then
15480 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15481echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15482
15483else
15484 cat >conftest.$ac_ext <<_ACEOF
15485/* confdefs.h. */
15486_ACEOF
15487cat confdefs.h >>conftest.$ac_ext
15488cat >>conftest.$ac_ext <<_ACEOF
15489/* end confdefs.h. */
15490
15491#include <stdlib.h>
15492#include <errno.h>
15493int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15494
15495_ACEOF
15496rm -f conftest$ac_exeext
15497if { (ac_try="$ac_link"
15498case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15501esac
15502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_link") 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15510esac
15511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 { echo "$as_me:$LINENO: result: yes" >&5
15517echo "${ECHO_T}yes" >&6; }
15518else
15519 echo "$as_me: program exited with status $ac_status" >&5
15520echo "$as_me: failed program was:" >&5
15521sed 's/^/| /' conftest.$ac_ext >&5
15522
15523( exit $ac_status )
15524
15525cat >>confdefs.h <<\_ACEOF
15526#define BROKEN_SETRESGID 1
15527_ACEOF
15528
15529 { echo "$as_me:$LINENO: result: not implemented" >&5
15530echo "${ECHO_T}not implemented" >&6; }
15531fi
15532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15533fi
15534
15535
15536
15537fi
15538done
15539
15540
15541
15542
15543for ac_func in gettimeofday time
15544do
15545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15546{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15559#define $ac_func innocuous_$ac_func
15560
15561/* System header to define __stub macros and hopefully few prototypes,
15562 which can conflict with char $ac_func (); below.
15563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15564 <limits.h> exists even on freestanding compilers. */
15565
15566#ifdef __STDC__
15567# include <limits.h>
15568#else
15569# include <assert.h>
15570#endif
15571
15572#undef $ac_func
15573
15574/* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15577#ifdef __cplusplus
15578extern "C"
15579#endif
15580char $ac_func ();
15581/* The GNU C library defines this for functions which it implements
15582 to always fail with ENOSYS. Some functions are actually named
15583 something starting with __ and the normal name is an alias. */
15584#if defined __stub_$ac_func || defined __stub___$ac_func
15585choke me
15586#endif
15587
15588int
15589main ()
15590{
15591return $ac_func ();
15592 ;
15593 return 0;
15594}
15595_ACEOF
15596rm -f conftest.$ac_objext conftest$ac_exeext
15597if { (ac_try="$ac_link"
15598case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15601esac
15602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_link") 2>conftest.er1
15604 ac_status=$?
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 eval "$as_ac_var=yes"
15631else
15632 echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 eval "$as_ac_var=no"
15636fi
15637
15638rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640fi
15641ac_res=`eval echo '${'$as_ac_var'}'`
15642 { echo "$as_me:$LINENO: result: $ac_res" >&5
15643echo "${ECHO_T}$ac_res" >&6; }
15644if test `eval echo '${'$as_ac_var'}'` = yes; then
15645 cat >>confdefs.h <<_ACEOF
15646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15647_ACEOF
15648
15649fi
15650done
15651
15652
15653
15654
15655
15656
15657
15658for ac_func in endutent getutent getutid getutline pututline setutent
15659do
15660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15663if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665else
15666 cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15674#define $ac_func innocuous_$ac_func
15675
15676/* System header to define __stub macros and hopefully few prototypes,
15677 which can conflict with char $ac_func (); below.
15678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679 <limits.h> exists even on freestanding compilers. */
15680
15681#ifdef __STDC__
15682# include <limits.h>
15683#else
15684# include <assert.h>
15685#endif
15686
15687#undef $ac_func
15688
15689/* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15692#ifdef __cplusplus
15693extern "C"
15694#endif
15695char $ac_func ();
15696/* The GNU C library defines this for functions which it implements
15697 to always fail with ENOSYS. Some functions are actually named
15698 something starting with __ and the normal name is an alias. */
15699#if defined __stub_$ac_func || defined __stub___$ac_func
15700choke me
15701#endif
15702
15703int
15704main ()
15705{
15706return $ac_func ();
15707 ;
15708 return 0;
15709}
15710_ACEOF
15711rm -f conftest.$ac_objext conftest$ac_exeext
15712if { (ac_try="$ac_link"
15713case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_link") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729esac
15730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_try") 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest$ac_exeext'
15736 { (case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15739esac
15740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_try") 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 eval "$as_ac_var=yes"
15746else
15747 echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 eval "$as_ac_var=no"
15751fi
15752
15753rm -f core conftest.err conftest.$ac_objext \
15754 conftest$ac_exeext conftest.$ac_ext
15755fi
15756ac_res=`eval echo '${'$as_ac_var'}'`
15757 { echo "$as_me:$LINENO: result: $ac_res" >&5
15758echo "${ECHO_T}$ac_res" >&6; }
15759if test `eval echo '${'$as_ac_var'}'` = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15762_ACEOF
15763
15764fi
15765done
15766
15767
15768for ac_func in utmpname
15769do
15770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15771{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775else
15776 cat >conftest.$ac_ext <<_ACEOF
15777/* confdefs.h. */
15778_ACEOF
15779cat confdefs.h >>conftest.$ac_ext
15780cat >>conftest.$ac_ext <<_ACEOF
15781/* end confdefs.h. */
15782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15784#define $ac_func innocuous_$ac_func
15785
15786/* System header to define __stub macros and hopefully few prototypes,
15787 which can conflict with char $ac_func (); below.
15788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15789 <limits.h> exists even on freestanding compilers. */
15790
15791#ifdef __STDC__
15792# include <limits.h>
15793#else
15794# include <assert.h>
15795#endif
15796
15797#undef $ac_func
15798
15799/* Override any GCC internal prototype to avoid an error.
15800 Use char because int might match the return type of a GCC
15801 builtin and then its argument prototype would still apply. */
15802#ifdef __cplusplus
15803extern "C"
15804#endif
15805char $ac_func ();
15806/* The GNU C library defines this for functions which it implements
15807 to always fail with ENOSYS. Some functions are actually named
15808 something starting with __ and the normal name is an alias. */
15809#if defined __stub_$ac_func || defined __stub___$ac_func
15810choke me
15811#endif
15812
15813int
15814main ()
15815{
15816return $ac_func ();
15817 ;
15818 return 0;
15819}
15820_ACEOF
15821rm -f conftest.$ac_objext conftest$ac_exeext
15822if { (ac_try="$ac_link"
15823case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_link") 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839esac
15840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849esac
15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 eval "$as_ac_var=yes"
15856else
15857 echo "$as_me: failed program was:" >&5
15858sed 's/^/| /' conftest.$ac_ext >&5
15859
15860 eval "$as_ac_var=no"
15861fi
15862
15863rm -f core conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15865fi
15866ac_res=`eval echo '${'$as_ac_var'}'`
15867 { echo "$as_me:$LINENO: result: $ac_res" >&5
15868echo "${ECHO_T}$ac_res" >&6; }
15869if test `eval echo '${'$as_ac_var'}'` = yes; then
15870 cat >>confdefs.h <<_ACEOF
15871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15872_ACEOF
15873
15874fi
15875done
15876
15877
15878
15879
15880
15881
15882for ac_func in endutxent getutxent getutxid getutxline pututxline
15883do
15884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15885{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889else
15890 cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
15896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15898#define $ac_func innocuous_$ac_func
15899
15900/* System header to define __stub macros and hopefully few prototypes,
15901 which can conflict with char $ac_func (); below.
15902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15903 <limits.h> exists even on freestanding compilers. */
15904
15905#ifdef __STDC__
15906# include <limits.h>
15907#else
15908# include <assert.h>
15909#endif
15910
15911#undef $ac_func
15912
15913/* Override any GCC internal prototype to avoid an error.
15914 Use char because int might match the return type of a GCC
15915 builtin and then its argument prototype would still apply. */
15916#ifdef __cplusplus
15917extern "C"
15918#endif
15919char $ac_func ();
15920/* The GNU C library defines this for functions which it implements
15921 to always fail with ENOSYS. Some functions are actually named
15922 something starting with __ and the normal name is an alias. */
15923#if defined __stub_$ac_func || defined __stub___$ac_func
15924choke me
15925#endif
15926
15927int
15928main ()
15929{
15930return $ac_func ();
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935rm -f conftest.$ac_objext conftest$ac_exeext
15936if { (ac_try="$ac_link"
15937case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940esac
15941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest$ac_exeext'
15960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15963esac
15964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 eval "$as_ac_var=yes"
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 eval "$as_ac_var=no"
15975fi
15976
15977rm -f core conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext conftest.$ac_ext
15979fi
15980ac_res=`eval echo '${'$as_ac_var'}'`
15981 { echo "$as_me:$LINENO: result: $ac_res" >&5
15982echo "${ECHO_T}$ac_res" >&6; }
15983if test `eval echo '${'$as_ac_var'}'` = yes; then
15984 cat >>confdefs.h <<_ACEOF
15985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15986_ACEOF
15987
15988fi
15989done
15990
15991
15992
15993for ac_func in setutxent utmpxname
15994do
15995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000else
16001 cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16009#define $ac_func innocuous_$ac_func
16010
16011/* System header to define __stub macros and hopefully few prototypes,
16012 which can conflict with char $ac_func (); below.
16013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16014 <limits.h> exists even on freestanding compilers. */
16015
16016#ifdef __STDC__
16017# include <limits.h>
16018#else
16019# include <assert.h>
16020#endif
16021
16022#undef $ac_func
16023
16024/* Override any GCC internal prototype to avoid an error.
16025 Use char because int might match the return type of a GCC
16026 builtin and then its argument prototype would still apply. */
16027#ifdef __cplusplus
16028extern "C"
16029#endif
16030char $ac_func ();
16031/* The GNU C library defines this for functions which it implements
16032 to always fail with ENOSYS. Some functions are actually named
16033 something starting with __ and the normal name is an alias. */
16034#if defined __stub_$ac_func || defined __stub___$ac_func
16035choke me
16036#endif
16037
16038int
16039main ()
16040{
16041return $ac_func ();
16042 ;
16043 return 0;
16044}
16045_ACEOF
16046rm -f conftest.$ac_objext conftest$ac_exeext
16047if { (ac_try="$ac_link"
16048case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_link") 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061 { (case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_try") 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; } &&
16070 { ac_try='test -s conftest$ac_exeext'
16071 { (case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074esac
16075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_try") 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 eval "$as_ac_var=yes"
16081else
16082 echo "$as_me: failed program was:" >&5
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 eval "$as_ac_var=no"
16086fi
16087
16088rm -f core conftest.err conftest.$ac_objext \
16089 conftest$ac_exeext conftest.$ac_ext
16090fi
16091ac_res=`eval echo '${'$as_ac_var'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093echo "${ECHO_T}$ac_res" >&6; }
16094if test `eval echo '${'$as_ac_var'}'` = yes; then
16095 cat >>confdefs.h <<_ACEOF
16096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16097_ACEOF
16098
16099fi
16100done
16101
16102
16103{ echo "$as_me:$LINENO: checking for daemon" >&5
16104echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
16105if test "${ac_cv_func_daemon+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108 cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
16115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16116#define daemon innocuous_daemon
16117
16118/* System header to define __stub macros and hopefully few prototypes,
16119 which can conflict with char daemon (); below.
16120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16121 <limits.h> exists even on freestanding compilers. */
16122
16123#ifdef __STDC__
16124# include <limits.h>
16125#else
16126# include <assert.h>
16127#endif
16128
16129#undef daemon
16130
16131/* Override any GCC internal prototype to avoid an error.
16132 Use char because int might match the return type of a GCC
16133 builtin and then its argument prototype would still apply. */
16134#ifdef __cplusplus
16135extern "C"
16136#endif
16137char daemon ();
16138/* The GNU C library defines this for functions which it implements
16139 to always fail with ENOSYS. Some functions are actually named
16140 something starting with __ and the normal name is an alias. */
16141#if defined __stub_daemon || defined __stub___daemon
16142choke me
16143#endif
16144
16145int
16146main ()
16147{
16148return daemon ();
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153rm -f conftest.$ac_objext conftest$ac_exeext
16154if { (ac_try="$ac_link"
16155case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158esac
16159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_link") 2>conftest.er1
16161 ac_status=$?
16162 grep -v '^ *+' conftest.er1 >conftest.err
16163 rm -f conftest.er1
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168 { (case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16171esac
16172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_try") 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_try") 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_cv_func_daemon=yes
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ac_cv_func_daemon=no
16193fi
16194
16195rm -f core conftest.err conftest.$ac_objext \
16196 conftest$ac_exeext conftest.$ac_ext
16197fi
16198{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
16199echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
16200if test $ac_cv_func_daemon = yes; then
16201
16202cat >>confdefs.h <<\_ACEOF
16203#define HAVE_DAEMON 1
16204_ACEOF
16205
16206else
16207 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
16208echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
16209if test "${ac_cv_lib_bsd_daemon+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211else
16212 ac_check_lib_save_LIBS=$LIBS
16213LIBS="-lbsd $LIBS"
16214cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
16220
16221/* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16224#ifdef __cplusplus
16225extern "C"
16226#endif
16227char daemon ();
16228int
16229main ()
16230{
16231return daemon ();
16232 ;
16233 return 0;
16234}
16235_ACEOF
16236rm -f conftest.$ac_objext conftest$ac_exeext
16237if { (ac_try="$ac_link"
16238case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241esac
16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest$ac_exeext'
16261 { (case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264esac
16265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_try") 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_lib_bsd_daemon=yes
16271else
16272 echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_cv_lib_bsd_daemon=no
16276fi
16277
16278rm -f core conftest.err conftest.$ac_objext \
16279 conftest$ac_exeext conftest.$ac_ext
16280LIBS=$ac_check_lib_save_LIBS
16281fi
16282{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
16283echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
16284if test $ac_cv_lib_bsd_daemon = yes; then
16285 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
16286#define HAVE_DAEMON 1
16287_ACEOF
16288
16289fi
16290
16291
16292fi
16293
16294
16295{ echo "$as_me:$LINENO: checking for getpagesize" >&5
16296echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16297if test "${ac_cv_func_getpagesize+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299else
16300 cat >conftest.$ac_ext <<_ACEOF
16301/* confdefs.h. */
16302_ACEOF
16303cat confdefs.h >>conftest.$ac_ext
16304cat >>conftest.$ac_ext <<_ACEOF
16305/* end confdefs.h. */
16306/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
16307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16308#define getpagesize innocuous_getpagesize
16309
16310/* System header to define __stub macros and hopefully few prototypes,
16311 which can conflict with char getpagesize (); below.
16312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16313 <limits.h> exists even on freestanding compilers. */
16314
16315#ifdef __STDC__
16316# include <limits.h>
16317#else
16318# include <assert.h>
16319#endif
16320
16321#undef getpagesize
16322
16323/* Override any GCC internal prototype to avoid an error.
16324 Use char because int might match the return type of a GCC
16325 builtin and then its argument prototype would still apply. */
16326#ifdef __cplusplus
16327extern "C"
16328#endif
16329char getpagesize ();
16330/* The GNU C library defines this for functions which it implements
16331 to always fail with ENOSYS. Some functions are actually named
16332 something starting with __ and the normal name is an alias. */
16333#if defined __stub_getpagesize || defined __stub___getpagesize
16334choke me
16335#endif
16336
16337int
16338main ()
16339{
16340return getpagesize ();
16341 ;
16342 return 0;
16343}
16344_ACEOF
16345rm -f conftest.$ac_objext conftest$ac_exeext
16346if { (ac_try="$ac_link"
16347case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350esac
16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_link") 2>conftest.er1
16353 ac_status=$?
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } &&
16369 { ac_try='test -s conftest$ac_exeext'
16370 { (case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16373esac
16374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_try") 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_cv_func_getpagesize=yes
16380else
16381 echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384 ac_cv_func_getpagesize=no
16385fi
16386
16387rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16389fi
16390{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
16391echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
16392if test $ac_cv_func_getpagesize = yes; then
16393
16394cat >>confdefs.h <<\_ACEOF
16395#define HAVE_GETPAGESIZE 1
16396_ACEOF
16397
16398else
16399 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
16400echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
16401if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16403else
16404 ac_check_lib_save_LIBS=$LIBS
16405LIBS="-lucb $LIBS"
16406cat >conftest.$ac_ext <<_ACEOF
16407/* confdefs.h. */
16408_ACEOF
16409cat confdefs.h >>conftest.$ac_ext
16410cat >>conftest.$ac_ext <<_ACEOF
16411/* end confdefs.h. */
16412
16413/* Override any GCC internal prototype to avoid an error.
16414 Use char because int might match the return type of a GCC
16415 builtin and then its argument prototype would still apply. */
16416#ifdef __cplusplus
16417extern "C"
16418#endif
16419char getpagesize ();
16420int
16421main ()
16422{
16423return getpagesize ();
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext conftest$ac_exeext
16429if { (ac_try="$ac_link"
16430case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433esac
16434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
16442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446esac
16447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest$ac_exeext'
16453 { (case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16456esac
16457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458 (eval "$ac_try") 2>&5
16459 ac_status=$?
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16462 ac_cv_lib_ucb_getpagesize=yes
16463else
16464 echo "$as_me: failed program was:" >&5
16465sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 ac_cv_lib_ucb_getpagesize=no
16468fi
16469
16470rm -f core conftest.err conftest.$ac_objext \
16471 conftest$ac_exeext conftest.$ac_ext
16472LIBS=$ac_check_lib_save_LIBS
16473fi
16474{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
16475echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
16476if test $ac_cv_lib_ucb_getpagesize = yes; then
16477 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
16478#define HAVE_GETPAGESIZE 1
16479_ACEOF
16480
16481fi
16482
16483
16484fi
16485
16486
16487# Check for broken snprintf
16488if test "x$ac_cv_func_snprintf" = "xyes" ; then
16489 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
16490echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
16491 if test "$cross_compiling" = yes; then
16492 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
16493echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16494
16495else
16496 cat >conftest.$ac_ext <<_ACEOF
16497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h. */
16502
16503#include <stdio.h>
16504int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
16505
16506_ACEOF
16507rm -f conftest$ac_exeext
16508if { (ac_try="$ac_link"
16509case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16512esac
16513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_link") 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521esac
16522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16524 ac_status=$?
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16527 { echo "$as_me:$LINENO: result: yes" >&5
16528echo "${ECHO_T}yes" >&6; }
16529else
16530 echo "$as_me: program exited with status $ac_status" >&5
16531echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
16534( exit $ac_status )
16535
16536 { echo "$as_me:$LINENO: result: no" >&5
16537echo "${ECHO_T}no" >&6; }
16538
16539cat >>confdefs.h <<\_ACEOF
16540#define BROKEN_SNPRINTF 1
16541_ACEOF
16542
16543 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
16544echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
16545
16546fi
16547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16548fi
16549
16550
16551fi
16552
16553# If we don't have a working asprintf, then we strongly depend on vsnprintf
16554# returning the right thing on overflow: the number of characters it tried to
16555# create (as per SUSv3)
16556if test "x$ac_cv_func_asprintf" != "xyes" && \
16557 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
16558 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
16559echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
16560 if test "$cross_compiling" = yes; then
16561 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
16562echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
16563
16564else
16565 cat >conftest.$ac_ext <<_ACEOF
16566/* confdefs.h. */
16567_ACEOF
16568cat confdefs.h >>conftest.$ac_ext
16569cat >>conftest.$ac_ext <<_ACEOF
16570/* end confdefs.h. */
16571
16572#include <sys/types.h>
16573#include <stdio.h>
16574#include <stdarg.h>
16575
16576int x_snprintf(char *str,size_t count,const char *fmt,...)
16577{
16578 size_t ret; va_list ap;
16579 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
16580 return ret;
16581}
16582int main(void)
16583{
16584 char x[1];
16585 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
16586}
16587_ACEOF
16588rm -f conftest$ac_exeext
16589if { (ac_try="$ac_link"
16590case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593esac
16594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_link") 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602esac
16603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 { echo "$as_me:$LINENO: result: yes" >&5
16609echo "${ECHO_T}yes" >&6; }
16610else
16611 echo "$as_me: program exited with status $ac_status" >&5
16612echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615( exit $ac_status )
16616
16617 { echo "$as_me:$LINENO: result: no" >&5
16618echo "${ECHO_T}no" >&6; }
16619
16620cat >>confdefs.h <<\_ACEOF
16621#define BROKEN_SNPRINTF 1
16622_ACEOF
16623
16624 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
16625echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
16626
16627fi
16628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16629fi
16630
16631
16632fi
16633
16634# On systems where [v]snprintf is broken, but is declared in stdio,
16635# check that the fmt argument is const char * or just char *.
16636# This is only useful for when BROKEN_SNPRINTF
16637{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
16638echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
16639cat >conftest.$ac_ext <<_ACEOF
16640/* confdefs.h. */
16641_ACEOF
16642cat confdefs.h >>conftest.$ac_ext
16643cat >>conftest.$ac_ext <<_ACEOF
16644/* end confdefs.h. */
16645#include <stdio.h>
16646 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
16647 int main(void) { snprintf(0, 0, 0); }
16648
16649_ACEOF
16650rm -f conftest.$ac_objext
16651if { (ac_try="$ac_compile"
16652case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655esac
16656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_compile") 2>conftest.er1
16658 ac_status=$?
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668esac
16669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 { echo "$as_me:$LINENO: result: yes" >&5
16685echo "${ECHO_T}yes" >&6; }
16686
16687cat >>confdefs.h <<\_ACEOF
16688#define SNPRINTF_CONST const
16689_ACEOF
16690
16691else
16692 echo "$as_me: failed program was:" >&5
16693sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 { echo "$as_me:$LINENO: result: no" >&5
16696echo "${ECHO_T}no" >&6; }
16697 cat >>confdefs.h <<\_ACEOF
16698#define SNPRINTF_CONST /* not const */
16699_ACEOF
16700
16701fi
16702
16703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704
16705# Check for missing getpeereid (or equiv) support
16706NO_PEERCHECK=""
16707if test "x$ac_cv_func_getpeereid" != "xyes" ; then
16708 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
16709echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716#include <sys/types.h>
16717 #include <sys/socket.h>
16718int
16719main ()
16720{
16721int i = SO_PEERCRED;
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext
16727if { (ac_try="$ac_compile"
16728case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16731esac
16732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_compile") 2>conftest.er1
16734 ac_status=$?
16735 grep -v '^ *+' conftest.er1 >conftest.err
16736 rm -f conftest.er1
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest.$ac_objext'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 { echo "$as_me:$LINENO: result: yes" >&5
16761echo "${ECHO_T}yes" >&6; }
16762
16763cat >>confdefs.h <<\_ACEOF
16764#define HAVE_SO_PEERCRED 1
16765_ACEOF
16766
16767
16768else
16769 echo "$as_me: failed program was:" >&5
16770sed 's/^/| /' conftest.$ac_ext >&5
16771
16772 { echo "$as_me:$LINENO: result: no" >&5
16773echo "${ECHO_T}no" >&6; }
16774 NO_PEERCHECK=1
16775
16776fi
16777
16778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779fi
16780
16781if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
16782{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
16783echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
16784if test "$cross_compiling" = yes; then
16785
16786 { echo "$as_me:$LINENO: result: yes" >&5
16787echo "${ECHO_T}yes" >&6; }
16788 cat >>confdefs.h <<\_ACEOF
16789#define HAVE_STRICT_MKSTEMP 1
16790_ACEOF
16791
16792
16793
16794else
16795 cat >conftest.$ac_ext <<_ACEOF
16796/* confdefs.h. */
16797_ACEOF
16798cat confdefs.h >>conftest.$ac_ext
16799cat >>conftest.$ac_ext <<_ACEOF
16800/* end confdefs.h. */
16801
16802#include <stdlib.h>
16803main() { char template[]="conftest.mkstemp-test";
16804if (mkstemp(template) == -1)
16805 exit(1);
16806unlink(template); exit(0);
16807}
16808
16809_ACEOF
16810rm -f conftest$ac_exeext
16811if { (ac_try="$ac_link"
16812case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16821 { (case "(($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_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830
16831 { echo "$as_me:$LINENO: result: no" >&5
16832echo "${ECHO_T}no" >&6; }
16833
16834else
16835 echo "$as_me: program exited with status $ac_status" >&5
16836echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
16839( exit $ac_status )
16840
16841 { echo "$as_me:$LINENO: result: yes" >&5
16842echo "${ECHO_T}yes" >&6; }
16843
16844cat >>confdefs.h <<\_ACEOF
16845#define HAVE_STRICT_MKSTEMP 1
16846_ACEOF
16847
16848
16849fi
16850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16851fi
16852
16853
16854fi
16855
16856if test ! -z "$check_for_openpty_ctty_bug"; then
16857 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16858echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
16859 if test "$cross_compiling" = yes; then
16860
16861 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16862echo "${ECHO_T}cross-compiling" >&6; }
16863
16864
16865else
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872
16873#include <stdio.h>
16874#include <sys/fcntl.h>
16875#include <sys/types.h>
16876#include <sys/wait.h>
16877
16878int
16879main()
16880{
16881 pid_t pid;
16882 int fd, ptyfd, ttyfd, status;
16883
16884 pid = fork();
16885 if (pid < 0) { /* failed */
16886 exit(1);
16887 } else if (pid > 0) { /* parent */
16888 waitpid(pid, &status, 0);
16889 if (WIFEXITED(status))
16890 exit(WEXITSTATUS(status));
16891 else
16892 exit(2);
16893 } else { /* child */
16894 close(0); close(1); close(2);
16895 setsid();
16896 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16897 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16898 if (fd >= 0)
16899 exit(3); /* Acquired ctty: broken */
16900 else
16901 exit(0); /* Did not acquire ctty: OK */
16902 }
16903}
16904
16905_ACEOF
16906rm -f conftest$ac_exeext
16907if { (ac_try="$ac_link"
16908case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16911esac
16912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_link") 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926
16927 { echo "$as_me:$LINENO: result: yes" >&5
16928echo "${ECHO_T}yes" >&6; }
16929
16930else
16931 echo "$as_me: program exited with status $ac_status" >&5
16932echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935( exit $ac_status )
16936
16937 { echo "$as_me:$LINENO: result: no" >&5
16938echo "${ECHO_T}no" >&6; }
16939 cat >>confdefs.h <<\_ACEOF
16940#define SSHD_ACQUIRES_CTTY 1
16941_ACEOF
16942
16943
16944fi
16945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16946fi
16947
16948
16949fi
16950
16951if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16952 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16953 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16954echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16955 if test "$cross_compiling" = yes; then
16956
16957 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16958echo "${ECHO_T}cross-compiling" >&6; }
16959
16960
16961else
16962 cat >conftest.$ac_ext <<_ACEOF
16963/* confdefs.h. */
16964_ACEOF
16965cat confdefs.h >>conftest.$ac_ext
16966cat >>conftest.$ac_ext <<_ACEOF
16967/* end confdefs.h. */
16968
16969#include <stdio.h>
16970#include <sys/socket.h>
16971#include <netdb.h>
16972#include <errno.h>
16973#include <netinet/in.h>
16974
16975#define TEST_PORT "2222"
16976
16977int
16978main(void)
16979{
16980 int err, sock;
16981 struct addrinfo *gai_ai, *ai, hints;
16982 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16983
16984 memset(&hints, 0, sizeof(hints));
16985 hints.ai_family = PF_UNSPEC;
16986 hints.ai_socktype = SOCK_STREAM;
16987 hints.ai_flags = AI_PASSIVE;
16988
16989 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16990 if (err != 0) {
16991 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16992 exit(1);
16993 }
16994
16995 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16996 if (ai->ai_family != AF_INET6)
16997 continue;
16998
16999 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17000 sizeof(ntop), strport, sizeof(strport),
17001 NI_NUMERICHOST|NI_NUMERICSERV);
17002
17003 if (err != 0) {
17004 if (err == EAI_SYSTEM)
17005 perror("getnameinfo EAI_SYSTEM");
17006 else
17007 fprintf(stderr, "getnameinfo failed: %s\n",
17008 gai_strerror(err));
17009 exit(2);
17010 }
17011
17012 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
17013 if (sock < 0)
17014 perror("socket");
17015 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
17016 if (errno == EBADF)
17017 exit(3);
17018 }
17019 }
17020 exit(0);
17021}
17022
17023_ACEOF
17024rm -f conftest$ac_exeext
17025if { (ac_try="$ac_link"
17026case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_link") 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17035 { (case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_try") 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044
17045 { echo "$as_me:$LINENO: result: yes" >&5
17046echo "${ECHO_T}yes" >&6; }
17047
17048else
17049 echo "$as_me: program exited with status $ac_status" >&5
17050echo "$as_me: failed program was:" >&5
17051sed 's/^/| /' conftest.$ac_ext >&5
17052
17053( exit $ac_status )
17054
17055 { echo "$as_me:$LINENO: result: no" >&5
17056echo "${ECHO_T}no" >&6; }
17057 cat >>confdefs.h <<\_ACEOF
17058#define BROKEN_GETADDRINFO 1
17059_ACEOF
17060
17061
17062fi
17063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17064fi
17065
17066
17067fi
17068
17069if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
17070 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
17071 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
17072echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
17073 if test "$cross_compiling" = yes; then
17074
17075 { echo "$as_me:$LINENO: result: cross-compiling" >&5
17076echo "${ECHO_T}cross-compiling" >&6; }
17077
17078
17079else
17080 cat >conftest.$ac_ext <<_ACEOF
17081/* confdefs.h. */
17082_ACEOF
17083cat confdefs.h >>conftest.$ac_ext
17084cat >>conftest.$ac_ext <<_ACEOF
17085/* end confdefs.h. */
17086
17087#include <stdio.h>
17088#include <sys/socket.h>
17089#include <netdb.h>
17090#include <errno.h>
17091#include <netinet/in.h>
17092
17093#define TEST_PORT "2222"
17094
17095int
17096main(void)
17097{
17098 int err, sock;
17099 struct addrinfo *gai_ai, *ai, hints;
17100 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
17101
17102 memset(&hints, 0, sizeof(hints));
17103 hints.ai_family = PF_UNSPEC;
17104 hints.ai_socktype = SOCK_STREAM;
17105 hints.ai_flags = AI_PASSIVE;
17106
17107 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
17108 if (err != 0) {
17109 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
17110 exit(1);
17111 }
17112
17113 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
17114 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
17115 continue;
17116
17117 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17118 sizeof(ntop), strport, sizeof(strport),
17119 NI_NUMERICHOST|NI_NUMERICSERV);
17120
17121 if (ai->ai_family == AF_INET && err != 0) {
17122 perror("getnameinfo");
17123 exit(2);
17124 }
17125 }
17126 exit(0);
17127}
17128
17129_ACEOF
17130rm -f conftest$ac_exeext
17131if { (ac_try="$ac_link"
17132case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135esac
17136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_link") 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17141 { (case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144esac
17145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_try") 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17150
17151 { echo "$as_me:$LINENO: result: yes" >&5
17152echo "${ECHO_T}yes" >&6; }
17153
17154cat >>confdefs.h <<\_ACEOF
17155#define AIX_GETNAMEINFO_HACK 1
17156_ACEOF
17157
17158
17159else
17160 echo "$as_me: program exited with status $ac_status" >&5
17161echo "$as_me: failed program was:" >&5
17162sed 's/^/| /' conftest.$ac_ext >&5
17163
17164( exit $ac_status )
17165
17166 { echo "$as_me:$LINENO: result: no" >&5
17167echo "${ECHO_T}no" >&6; }
17168 cat >>confdefs.h <<\_ACEOF
17169#define BROKEN_GETADDRINFO 1
17170_ACEOF
17171
17172
17173fi
17174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17175fi
17176
17177
17178fi
17179
17180if test "x$check_for_conflicting_getspnam" = "x1"; then
17181 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
17182echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17184
17185#include <shadow.h>
17186int main(void) {exit(0);}
17187
17188_ACEOF
17189rm -f conftest.$ac_objext
17190if { (ac_try="$ac_compile"
17191case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
17203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17204 { (case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207esac
17208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_try") 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try='test -s conftest.$ac_objext'
17214 { (case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217esac
17218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_try") 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223
17224 { echo "$as_me:$LINENO: result: no" >&5
17225echo "${ECHO_T}no" >&6; }
17226
17227else
17228 echo "$as_me: failed program was:" >&5
17229sed 's/^/| /' conftest.$ac_ext >&5
17230
17231
17232 { echo "$as_me:$LINENO: result: yes" >&5
17233echo "${ECHO_T}yes" >&6; }
17234
17235cat >>confdefs.h <<\_ACEOF
17236#define GETSPNAM_CONFLICTING_DEFS 1
17237_ACEOF
17238
17239
17240
17241fi
17242
17243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244fi
17245
17246{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17247echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
17248if test "${ac_cv_func_getpgrp_void+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250else
17251 # Use it with a single arg.
17252cat >conftest.$ac_ext <<_ACEOF
17253/* confdefs.h. */
17254_ACEOF
17255cat confdefs.h >>conftest.$ac_ext
17256cat >>conftest.$ac_ext <<_ACEOF
17257/* end confdefs.h. */
17258$ac_includes_default
17259int
17260main ()
17261{
17262getpgrp (0);
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267rm -f conftest.$ac_objext
17268if { (ac_try="$ac_compile"
17269case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272esac
17273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_compile") 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17282 { (case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17285esac
17286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_try") 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
17292 { (case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17295esac
17296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_try") 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_func_getpgrp_void=no
17302else
17303 echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
17306 ac_cv_func_getpgrp_void=yes
17307fi
17308
17309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310
17311fi
17312{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17313echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
17314if test $ac_cv_func_getpgrp_void = yes; then
17315
17316cat >>confdefs.h <<\_ACEOF
17317#define GETPGRP_VOID 1
17318_ACEOF
17319
17320fi
17321
17322
17323# Search for OpenSSL
17324saved_CPPFLAGS="$CPPFLAGS"
17325saved_LDFLAGS="$LDFLAGS"
17326
17327# Check whether --with-ssl-dir was given.
17328if test "${with_ssl_dir+set}" = set; then
17329 withval=$with_ssl_dir;
17330 if test "x$withval" != "xno" ; then
17331 case "$withval" in
17332 # Relative paths
17333 ./*|../*) withval="`pwd`/$withval"
17334 esac
17335 if test -d "$withval/lib"; then
17336 if test -n "${need_dash_r}"; then
17337 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
17338 else
17339 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
17340 fi
17341 else
17342 if test -n "${need_dash_r}"; then
17343 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
17344 else
17345 LDFLAGS="-L${withval} ${LDFLAGS}"
17346 fi
17347 fi
17348 if test -d "$withval/include"; then
17349 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
17350 else
17351 CPPFLAGS="-I${withval} ${CPPFLAGS}"
17352 fi
17353 fi
17354
17355
17356fi
17357
17358LIBS="-lcrypto $LIBS"
17359cat >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/* Override any GCC internal prototype to avoid an error.
17367 Use char because int might match the return type of a GCC
17368 builtin and then its argument prototype would still apply. */
17369#ifdef __cplusplus
17370extern "C"
17371#endif
17372char RAND_add ();
17373int
17374main ()
17375{
17376return RAND_add ();
17377 ;
17378 return 0;
17379}
17380_ACEOF
17381rm -f conftest.$ac_objext conftest$ac_exeext
17382if { (ac_try="$ac_link"
17383case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386esac
17387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_link") 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409esac
17410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415
17416cat >>confdefs.h <<\_ACEOF
17417#define HAVE_OPENSSL 1
17418_ACEOF
17419
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424
17425 if test -n "${need_dash_r}"; then
17426 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
17427 else
17428 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
17429 fi
17430 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
17431 cat >conftest.$ac_ext <<_ACEOF
17432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
17437
17438/* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17441#ifdef __cplusplus
17442extern "C"
17443#endif
17444char RAND_add ();
17445int
17446main ()
17447{
17448return RAND_add ();
17449 ;
17450 return 0;
17451}
17452_ACEOF
17453rm -f conftest.$ac_objext conftest$ac_exeext
17454if { (ac_try="$ac_link"
17455case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458esac
17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_link") 2>conftest.er1
17461 ac_status=$?
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468 { (case "(($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_try") 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481esac
17482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 cat >>confdefs.h <<\_ACEOF
17488#define HAVE_OPENSSL 1
17489_ACEOF
17490
17491else
17492 echo "$as_me: failed program was:" >&5
17493sed 's/^/| /' conftest.$ac_ext >&5
17494
17495
17496 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
17497echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
17498 { (exit 1); exit 1; }; }
17499
17500
17501fi
17502
17503rm -f core conftest.err conftest.$ac_objext \
17504 conftest$ac_exeext conftest.$ac_ext
17505
17506
17507fi
17508
17509rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17511
17512# Determine OpenSSL header version
17513{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
17514echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
17515if test "$cross_compiling" = yes; then
17516
17517 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17518echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17519
17520
17521else
17522 cat >conftest.$ac_ext <<_ACEOF
17523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
17528
17529#include <stdio.h>
17530#include <string.h>
17531#include <openssl/opensslv.h>
17532#define DATA "conftest.sslincver"
17533int main(void) {
17534 FILE *fd;
17535 int rc;
17536
17537 fd = fopen(DATA,"w");
17538 if(fd == NULL)
17539 exit(1);
17540
17541 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
17542 exit(1);
17543
17544 exit(0);
17545}
17546
17547_ACEOF
17548rm -f conftest$ac_exeext
17549if { (ac_try="$ac_link"
17550case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553esac
17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568
17569 ssl_header_ver=`cat conftest.sslincver`
17570 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
17571echo "${ECHO_T}$ssl_header_ver" >&6; }
17572
17573else
17574 echo "$as_me: program exited with status $ac_status" >&5
17575echo "$as_me: failed program was:" >&5
17576sed 's/^/| /' conftest.$ac_ext >&5
17577
17578( exit $ac_status )
17579
17580 { echo "$as_me:$LINENO: result: not found" >&5
17581echo "${ECHO_T}not found" >&6; }
17582 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
17583echo "$as_me: error: OpenSSL version header not found." >&2;}
17584 { (exit 1); exit 1; }; }
17585
17586fi
17587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17588fi
17589
17590
17591
17592# Determine OpenSSL library version
17593{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
17594echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
17595if test "$cross_compiling" = yes; then
17596
17597 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17598echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17599
17600
17601else
17602 cat >conftest.$ac_ext <<_ACEOF
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
17608
17609#include <stdio.h>
17610#include <string.h>
17611#include <openssl/opensslv.h>
17612#include <openssl/crypto.h>
17613#define DATA "conftest.ssllibver"
17614int main(void) {
17615 FILE *fd;
17616 int rc;
17617
17618 fd = fopen(DATA,"w");
17619 if(fd == NULL)
17620 exit(1);
17621
17622 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
17623 exit(1);
17624
17625 exit(0);
17626}
17627
17628_ACEOF
17629rm -f conftest$ac_exeext
17630if { (ac_try="$ac_link"
17631case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17634esac
17635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17640 { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17643esac
17644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_try") 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649
17650 ssl_library_ver=`cat conftest.ssllibver`
17651 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
17652echo "${ECHO_T}$ssl_library_ver" >&6; }
17653
17654else
17655 echo "$as_me: program exited with status $ac_status" >&5
17656echo "$as_me: failed program was:" >&5
17657sed 's/^/| /' conftest.$ac_ext >&5
17658
17659( exit $ac_status )
17660
17661 { echo "$as_me:$LINENO: result: not found" >&5
17662echo "${ECHO_T}not found" >&6; }
17663 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
17664echo "$as_me: error: OpenSSL library not found." >&2;}
17665 { (exit 1); exit 1; }; }
17666
17667fi
17668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17669fi
17670
17671
17672
17673# Sanity check OpenSSL headers
17674{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
17675echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
17676if test "$cross_compiling" = yes; then
17677
17678 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17679echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17680
17681
17682else
17683 cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689
17690#include <string.h>
17691#include <openssl/opensslv.h>
17692int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
17693
17694_ACEOF
17695rm -f conftest$ac_exeext
17696if { (ac_try="$ac_link"
17697case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17700esac
17701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_link") 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709esac
17710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715
17716 { echo "$as_me:$LINENO: result: yes" >&5
17717echo "${ECHO_T}yes" >&6; }
17718
17719else
17720 echo "$as_me: program exited with status $ac_status" >&5
17721echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
17723
17724( exit $ac_status )
17725
17726 { echo "$as_me:$LINENO: result: no" >&5
17727echo "${ECHO_T}no" >&6; }
17728 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
17729Check config.log for details.
17730Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17731echo "$as_me: error: Your OpenSSL headers do not match your library.
17732Check config.log for details.
17733Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17734 { (exit 1); exit 1; }; }
17735
17736fi
17737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17738fi
17739
17740
17741
17742{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17743echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
17744cat >conftest.$ac_ext <<_ACEOF
17745/* confdefs.h. */
17746_ACEOF
17747cat confdefs.h >>conftest.$ac_ext
17748cat >>conftest.$ac_ext <<_ACEOF
17749/* end confdefs.h. */
17750
17751#include <openssl/evp.h>
17752int main(void) { SSLeay_add_all_algorithms(); }
17753
17754_ACEOF
17755rm -f conftest.$ac_objext conftest$ac_exeext
17756if { (ac_try="$ac_link"
17757case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760esac
17761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773esac
17774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest$ac_exeext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783esac
17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789
17790 { echo "$as_me:$LINENO: result: yes" >&5
17791echo "${ECHO_T}yes" >&6; }
17792
17793else
17794 echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
17797
17798 { echo "$as_me:$LINENO: result: no" >&5
17799echo "${ECHO_T}no" >&6; }
17800 saved_LIBS="$LIBS"
17801 LIBS="$LIBS -ldl"
17802 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17803echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
17804 cat >conftest.$ac_ext <<_ACEOF
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
17810
17811#include <openssl/evp.h>
17812int main(void) { SSLeay_add_all_algorithms(); }
17813
17814_ACEOF
17815rm -f conftest.$ac_objext conftest$ac_exeext
17816if { (ac_try="$ac_link"
17817case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820esac
17821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_link") 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17830 { (case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833esac
17834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_try") 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest$ac_exeext'
17840 { (case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17843esac
17844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_try") 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849
17850 { echo "$as_me:$LINENO: result: yes" >&5
17851echo "${ECHO_T}yes" >&6; }
17852
17853else
17854 echo "$as_me: failed program was:" >&5
17855sed 's/^/| /' conftest.$ac_ext >&5
17856
17857
17858 { echo "$as_me:$LINENO: result: no" >&5
17859echo "${ECHO_T}no" >&6; }
17860 LIBS="$saved_LIBS"
17861
17862
17863fi
17864
17865rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867
17868
17869fi
17870
17871rm -f core conftest.err conftest.$ac_objext \
17872 conftest$ac_exeext conftest.$ac_ext
17873
17874
17875# Check whether --with-ssl-engine was given.
17876if test "${with_ssl_engine+set}" = set; then
17877 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
17878 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
17879echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
17886 #include <openssl/engine.h>
17887int
17888main ()
17889{
17890
17891int main(void){ENGINE_load_builtin_engines();ENGINE_register_all_complete();}
17892
17893 ;
17894 return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext
17898if { (ac_try="$ac_compile"
17899case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902esac
17903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_compile") 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17912 { (case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17915esac
17916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_try") 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest.$ac_objext'
17922 { (case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925esac
17926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_try") 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 { echo "$as_me:$LINENO: result: yes" >&5
17932echo "${ECHO_T}yes" >&6; }
17933
17934cat >>confdefs.h <<\_ACEOF
17935#define USE_OPENSSL_ENGINE 1
17936_ACEOF
17937
17938
17939else
17940 echo "$as_me: failed program was:" >&5
17941sed 's/^/| /' conftest.$ac_ext >&5
17942
17943 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
17944echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
17945 { (exit 1); exit 1; }; }
17946
17947fi
17948
17949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950 fi
17951
17952fi
17953
17954
17955# Check for OpenSSL without EVP_aes_{192,256}_cbc
17956{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
17957echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
17958cat >conftest.$ac_ext <<_ACEOF
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964
17965#include <string.h>
17966#include <openssl/evp.h>
17967int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
17968
17969_ACEOF
17970rm -f conftest.$ac_objext conftest$ac_exeext
17971if { (ac_try="$ac_link"
17972case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17975esac
17976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_link") 2>conftest.er1
17978 ac_status=$?
17979 grep -v '^ *+' conftest.er1 >conftest.err
17980 rm -f conftest.er1
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17985 { (case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988esac
17989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_try") 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17998esac
17999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_try") 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004
18005 { echo "$as_me:$LINENO: result: no" >&5
18006echo "${ECHO_T}no" >&6; }
18007
18008else
18009 echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012
18013 { echo "$as_me:$LINENO: result: yes" >&5
18014echo "${ECHO_T}yes" >&6; }
18015
18016cat >>confdefs.h <<\_ACEOF
18017#define OPENSSL_LOBOTOMISED_AES 1
18018_ACEOF
18019
18020
18021
18022fi
18023
18024rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026
18027# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
18028# because the system crypt() is more featureful.
18029if test "x$check_for_libcrypt_before" = "x1"; then
18030
18031{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18032echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18033if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18035else
18036 ac_check_lib_save_LIBS=$LIBS
18037LIBS="-lcrypt $LIBS"
18038cat >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/* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18048#ifdef __cplusplus
18049extern "C"
18050#endif
18051char crypt ();
18052int
18053main ()
18054{
18055return crypt ();
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext conftest$ac_exeext
18061if { (ac_try="$ac_link"
18062case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065esac
18066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078esac
18079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088esac
18089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_crypt_crypt=yes
18095else
18096 echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 ac_cv_lib_crypt_crypt=no
18100fi
18101
18102rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104LIBS=$ac_check_lib_save_LIBS
18105fi
18106{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18107echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18108if test $ac_cv_lib_crypt_crypt = yes; then
18109 cat >>confdefs.h <<_ACEOF
18110#define HAVE_LIBCRYPT 1
18111_ACEOF
18112
18113 LIBS="-lcrypt $LIBS"
18114
18115fi
18116
18117fi
18118
18119# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
18120# version in OpenSSL.
18121if test "x$check_for_libcrypt_later" = "x1"; then
18122 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18123echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18124if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126else
18127 ac_check_lib_save_LIBS=$LIBS
18128LIBS="-lcrypt $LIBS"
18129cat >conftest.$ac_ext <<_ACEOF
18130/* confdefs.h. */
18131_ACEOF
18132cat confdefs.h >>conftest.$ac_ext
18133cat >>conftest.$ac_ext <<_ACEOF
18134/* end confdefs.h. */
18135
18136/* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18139#ifdef __cplusplus
18140extern "C"
18141#endif
18142char crypt ();
18143int
18144main ()
18145{
18146return crypt ();
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151rm -f conftest.$ac_objext conftest$ac_exeext
18152if { (ac_try="$ac_link"
18153case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156esac
18157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_lib_crypt_crypt=yes
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_cv_lib_crypt_crypt=no
18191fi
18192
18193rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195LIBS=$ac_check_lib_save_LIBS
18196fi
18197{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18198echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18199if test $ac_cv_lib_crypt_crypt = yes; then
18200 LIBS="$LIBS -lcrypt"
18201fi
18202
18203fi
18204
18205# Search for SHA256 support in libc and/or OpenSSL
18206
18207
18208for ac_func in SHA256_Update EVP_sha256
18209do
18210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18211{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18213if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18215else
18216 cat >conftest.$ac_ext <<_ACEOF
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
18222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18224#define $ac_func innocuous_$ac_func
18225
18226/* System header to define __stub macros and hopefully few prototypes,
18227 which can conflict with char $ac_func (); below.
18228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18229 <limits.h> exists even on freestanding compilers. */
18230
18231#ifdef __STDC__
18232# include <limits.h>
18233#else
18234# include <assert.h>
18235#endif
18236
18237#undef $ac_func
18238
18239/* Override any GCC internal prototype to avoid an error.
18240 Use char because int might match the return type of a GCC
18241 builtin and then its argument prototype would still apply. */
18242#ifdef __cplusplus
18243extern "C"
18244#endif
18245char $ac_func ();
18246/* The GNU C library defines this for functions which it implements
18247 to always fail with ENOSYS. Some functions are actually named
18248 something starting with __ and the normal name is an alias. */
18249#if defined __stub_$ac_func || defined __stub___$ac_func
18250choke me
18251#endif
18252
18253int
18254main ()
18255{
18256return $ac_func ();
18257 ;
18258 return 0;
18259}
18260_ACEOF
18261rm -f conftest.$ac_objext conftest$ac_exeext
18262if { (ac_try="$ac_link"
18263case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_link") 2>conftest.er1
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18279esac
18280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest$ac_exeext'
18286 { (case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289esac
18290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_try") 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 eval "$as_ac_var=yes"
18296else
18297 echo "$as_me: failed program was:" >&5
18298sed 's/^/| /' conftest.$ac_ext >&5
18299
18300 eval "$as_ac_var=no"
18301fi
18302
18303rm -f core conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18305fi
18306ac_res=`eval echo '${'$as_ac_var'}'`
18307 { echo "$as_me:$LINENO: result: $ac_res" >&5
18308echo "${ECHO_T}$ac_res" >&6; }
18309if test `eval echo '${'$as_ac_var'}'` = yes; then
18310 cat >>confdefs.h <<_ACEOF
18311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18312_ACEOF
18313
18314fi
18315done
18316
18317
18318
18319{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
18320echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
18321if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18323else
18324 ac_check_lib_save_LIBS=$LIBS
18325LIBS="-liaf $LIBS"
18326cat >conftest.$ac_ext <<_ACEOF
18327/* confdefs.h. */
18328_ACEOF
18329cat confdefs.h >>conftest.$ac_ext
18330cat >>conftest.$ac_ext <<_ACEOF
18331/* end confdefs.h. */
18332
18333/* Override any GCC internal prototype to avoid an error.
18334 Use char because int might match the return type of a GCC
18335 builtin and then its argument prototype would still apply. */
18336#ifdef __cplusplus
18337extern "C"
18338#endif
18339char ia_openinfo ();
18340int
18341main ()
18342{
18343return ia_openinfo ();
18344 ;
18345 return 0;
18346}
18347_ACEOF
18348rm -f conftest.$ac_objext conftest$ac_exeext
18349if { (ac_try="$ac_link"
18350case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_link") 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366esac
18367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest$ac_exeext'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18376esac
18377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_lib_iaf_ia_openinfo=yes
18383else
18384 echo "$as_me: failed program was:" >&5
18385sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 ac_cv_lib_iaf_ia_openinfo=no
18388fi
18389
18390rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392LIBS=$ac_check_lib_save_LIBS
18393fi
18394{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
18395echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
18396if test $ac_cv_lib_iaf_ia_openinfo = yes; then
18397 cat >>confdefs.h <<_ACEOF
18398#define HAVE_LIBIAF 1
18399_ACEOF
18400
18401 LIBS="-liaf $LIBS"
18402
18403fi
18404
18405
18406### Configure cryptographic random number support
18407
18408# Check wheter OpenSSL seeds itself
18409{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
18410echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
18411if test "$cross_compiling" = yes; then
18412
18413 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
18414echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
18415 # This is safe, since all recent OpenSSL versions will
18416 # complain at runtime if not seeded correctly.
18417 OPENSSL_SEEDS_ITSELF=yes
18418
18419
18420else
18421 cat >conftest.$ac_ext <<_ACEOF
18422/* confdefs.h. */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
18426/* end confdefs.h. */
18427
18428#include <string.h>
18429#include <openssl/rand.h>
18430int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
18431
18432_ACEOF
18433rm -f conftest$ac_exeext
18434if { (ac_try="$ac_link"
18435case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18444 { (case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447esac
18448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_try") 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453
18454 OPENSSL_SEEDS_ITSELF=yes
18455 { echo "$as_me:$LINENO: result: yes" >&5
18456echo "${ECHO_T}yes" >&6; }
18457
18458else
18459 echo "$as_me: program exited with status $ac_status" >&5
18460echo "$as_me: failed program was:" >&5
18461sed 's/^/| /' conftest.$ac_ext >&5
18462
18463( exit $ac_status )
18464
18465 { echo "$as_me:$LINENO: result: no" >&5
18466echo "${ECHO_T}no" >&6; }
18467 # Default to use of the rand helper if OpenSSL doesn't
18468 # seed itself
18469 USE_RAND_HELPER=yes
18470
18471fi
18472rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18473fi
18474
18475
18476
18477# Check for PAM libs
18478PAM_MSG="no"
18479
18480# Check whether --with-pam was given.
18481if test "${with_pam+set}" = set; then
18482 withval=$with_pam;
18483 if test "x$withval" != "xno" ; then
18484 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
18485 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
18486 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
18487echo "$as_me: error: PAM headers not found" >&2;}
18488 { (exit 1); exit 1; }; }
18489 fi
18490
18491 saved_LIBS="$LIBS"
18492
18493{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18494echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18495if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 ac_check_lib_save_LIBS=$LIBS
18499LIBS="-ldl $LIBS"
18500cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506
18507/* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18510#ifdef __cplusplus
18511extern "C"
18512#endif
18513char dlopen ();
18514int
18515main ()
18516{
18517return dlopen ();
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext conftest$ac_exeext
18523if { (ac_try="$ac_link"
18524case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_link") 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18550esac
18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_lib_dl_dlopen=yes
18557else
18558 echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
18561 ac_cv_lib_dl_dlopen=no
18562fi
18563
18564rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566LIBS=$ac_check_lib_save_LIBS
18567fi
18568{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18569echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18570if test $ac_cv_lib_dl_dlopen = yes; then
18571 cat >>confdefs.h <<_ACEOF
18572#define HAVE_LIBDL 1
18573_ACEOF
18574
18575 LIBS="-ldl $LIBS"
18576
18577fi
18578
18579
18580{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
18581echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
18582if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584else
18585 ac_check_lib_save_LIBS=$LIBS
18586LIBS="-lpam $LIBS"
18587cat >conftest.$ac_ext <<_ACEOF
18588/* confdefs.h. */
18589_ACEOF
18590cat confdefs.h >>conftest.$ac_ext
18591cat >>conftest.$ac_ext <<_ACEOF
18592/* end confdefs.h. */
18593
18594/* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */
18597#ifdef __cplusplus
18598extern "C"
18599#endif
18600char pam_set_item ();
18601int
18602main ()
18603{
18604return pam_set_item ();
18605 ;
18606 return 0;
18607}
18608_ACEOF
18609rm -f conftest.$ac_objext conftest$ac_exeext
18610if { (ac_try="$ac_link"
18611case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614esac
18615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_link") 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627esac
18628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest$ac_exeext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637esac
18638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_cv_lib_pam_pam_set_item=yes
18644else
18645 echo "$as_me: failed program was:" >&5
18646sed 's/^/| /' conftest.$ac_ext >&5
18647
18648 ac_cv_lib_pam_pam_set_item=no
18649fi
18650
18651rm -f core conftest.err conftest.$ac_objext \
18652 conftest$ac_exeext conftest.$ac_ext
18653LIBS=$ac_check_lib_save_LIBS
18654fi
18655{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
18656echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
18657if test $ac_cv_lib_pam_pam_set_item = yes; then
18658 cat >>confdefs.h <<_ACEOF
18659#define HAVE_LIBPAM 1
18660_ACEOF
18661
18662 LIBS="-lpam $LIBS"
18663
18664else
18665 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
18666echo "$as_me: error: *** libpam missing" >&2;}
18667 { (exit 1); exit 1; }; }
18668fi
18669
18670
18671for ac_func in pam_getenvlist
18672do
18673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679 cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h. */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h. */
18685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18687#define $ac_func innocuous_$ac_func
18688
18689/* System header to define __stub macros and hopefully few prototypes,
18690 which can conflict with char $ac_func (); below.
18691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692 <limits.h> exists even on freestanding compilers. */
18693
18694#ifdef __STDC__
18695# include <limits.h>
18696#else
18697# include <assert.h>
18698#endif
18699
18700#undef $ac_func
18701
18702/* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18705#ifdef __cplusplus
18706extern "C"
18707#endif
18708char $ac_func ();
18709/* The GNU C library defines this for functions which it implements
18710 to always fail with ENOSYS. Some functions are actually named
18711 something starting with __ and the normal name is an alias. */
18712#if defined __stub_$ac_func || defined __stub___$ac_func
18713choke me
18714#endif
18715
18716int
18717main ()
18718{
18719return $ac_func ();
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724rm -f conftest.$ac_objext conftest$ac_exeext
18725if { (ac_try="$ac_link"
18726case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752esac
18753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 eval "$as_ac_var=yes"
18759else
18760 echo "$as_me: failed program was:" >&5
18761sed 's/^/| /' conftest.$ac_ext >&5
18762
18763 eval "$as_ac_var=no"
18764fi
18765
18766rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768fi
18769ac_res=`eval echo '${'$as_ac_var'}'`
18770 { echo "$as_me:$LINENO: result: $ac_res" >&5
18771echo "${ECHO_T}$ac_res" >&6; }
18772if test `eval echo '${'$as_ac_var'}'` = yes; then
18773 cat >>confdefs.h <<_ACEOF
18774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18775_ACEOF
18776
18777fi
18778done
18779
18780
18781for ac_func in pam_putenv
18782do
18783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18784{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18786if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788else
18789 cat >conftest.$ac_ext <<_ACEOF
18790/* confdefs.h. */
18791_ACEOF
18792cat confdefs.h >>conftest.$ac_ext
18793cat >>conftest.$ac_ext <<_ACEOF
18794/* end confdefs.h. */
18795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797#define $ac_func innocuous_$ac_func
18798
18799/* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18803
18804#ifdef __STDC__
18805# include <limits.h>
18806#else
18807# include <assert.h>
18808#endif
18809
18810#undef $ac_func
18811
18812/* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18815#ifdef __cplusplus
18816extern "C"
18817#endif
18818char $ac_func ();
18819/* The GNU C library defines this for functions which it implements
18820 to always fail with ENOSYS. Some functions are actually named
18821 something starting with __ and the normal name is an alias. */
18822#if defined __stub_$ac_func || defined __stub___$ac_func
18823choke me
18824#endif
18825
18826int
18827main ()
18828{
18829return $ac_func ();
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext conftest$ac_exeext
18835if { (ac_try="$ac_link"
18836case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839esac
18840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 eval "$as_ac_var=yes"
18869else
18870 echo "$as_me: failed program was:" >&5
18871sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 eval "$as_ac_var=no"
18874fi
18875
18876rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878fi
18879ac_res=`eval echo '${'$as_ac_var'}'`
18880 { echo "$as_me:$LINENO: result: $ac_res" >&5
18881echo "${ECHO_T}$ac_res" >&6; }
18882if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18885_ACEOF
18886
18887fi
18888done
18889
18890 LIBS="$saved_LIBS"
18891
18892 PAM_MSG="yes"
18893
18894 LIBPAM="-lpam"
18895
18896cat >>confdefs.h <<\_ACEOF
18897#define USE_PAM 1
18898_ACEOF
18899
18900
18901 if test $ac_cv_lib_dl_dlopen = yes; then
18902 case "$LIBS" in
18903 *-ldl*)
18904 # libdl already in LIBS
18905 ;;
18906 *)
18907 LIBPAM="$LIBPAM -ldl"
18908 ;;
18909 esac
18910 fi
18911
18912 fi
18913
18914
18915fi
18916
18917
18918# Check for older PAM
18919if test "x$PAM_MSG" = "xyes" ; then
18920 # Check PAM strerror arguments (old PAM)
18921 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
18922echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
18923 cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929
18930#include <stdlib.h>
18931#if defined(HAVE_SECURITY_PAM_APPL_H)
18932#include <security/pam_appl.h>
18933#elif defined (HAVE_PAM_PAM_APPL_H)
18934#include <pam/pam_appl.h>
18935#endif
18936
18937int
18938main ()
18939{
18940(void)pam_strerror((pam_handle_t *)NULL, -1);
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext
18946if { (ac_try="$ac_compile"
18947case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18950esac
18951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_compile") 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960 { (case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18963esac
18964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_try") 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest.$ac_objext'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 { echo "$as_me:$LINENO: result: no" >&5
18980echo "${ECHO_T}no" >&6; }
18981else
18982 echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985
18986
18987cat >>confdefs.h <<\_ACEOF
18988#define HAVE_OLD_PAM 1
18989_ACEOF
18990
18991 { echo "$as_me:$LINENO: result: yes" >&5
18992echo "${ECHO_T}yes" >&6; }
18993 PAM_MSG="yes (old library)"
18994
18995
18996fi
18997
18998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999fi
19000
19001# Do we want to force the use of the rand helper?
19002
19003# Check whether --with-rand-helper was given.
19004if test "${with_rand_helper+set}" = set; then
19005 withval=$with_rand_helper;
19006 if test "x$withval" = "xno" ; then
19007 # Force use of OpenSSL's internal RNG, even if
19008 # the previous test showed it to be unseeded.
19009 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
19010 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
19011echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
19012 OPENSSL_SEEDS_ITSELF=yes
19013 USE_RAND_HELPER=""
19014 fi
19015 else
19016 USE_RAND_HELPER=yes
19017 fi
19018
19019fi
19020
19021
19022# Which randomness source do we use?
19023if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
19024 # OpenSSL only
19025
19026cat >>confdefs.h <<\_ACEOF
19027#define OPENSSL_PRNG_ONLY 1
19028_ACEOF
19029
19030 RAND_MSG="OpenSSL internal ONLY"
19031 INSTALL_SSH_RAND_HELPER=""
19032elif test ! -z "$USE_RAND_HELPER" ; then
19033 # install rand helper
19034 RAND_MSG="ssh-rand-helper"
19035 INSTALL_SSH_RAND_HELPER="yes"
19036fi
19037
19038
19039### Configuration of ssh-rand-helper
19040
19041# PRNGD TCP socket
19042
19043# Check whether --with-prngd-port was given.
19044if test "${with_prngd_port+set}" = set; then
19045 withval=$with_prngd_port;
19046 case "$withval" in
19047 no)
19048 withval=""
19049 ;;
19050 [0-9]*)
19051 ;;
19052 *)
19053 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
19054echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
19055 { (exit 1); exit 1; }; }
19056 ;;
19057 esac
19058 if test ! -z "$withval" ; then
19059 PRNGD_PORT="$withval"
19060
19061cat >>confdefs.h <<_ACEOF
19062#define PRNGD_PORT $PRNGD_PORT
19063_ACEOF
19064
19065 fi
19066
19067
19068fi
19069
19070
19071# PRNGD Unix domain socket
19072
19073# Check whether --with-prngd-socket was given.
19074if test "${with_prngd_socket+set}" = set; then
19075 withval=$with_prngd_socket;
19076 case "$withval" in
19077 yes)
19078 withval="/var/run/egd-pool"
19079 ;;
19080 no)
19081 withval=""
19082 ;;
19083 /*)
19084 ;;
19085 *)
19086 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
19087echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
19088 { (exit 1); exit 1; }; }
19089 ;;
19090 esac
19091
19092 if test ! -z "$withval" ; then
19093 if test ! -z "$PRNGD_PORT" ; then
19094 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
19095echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
19096 { (exit 1); exit 1; }; }
19097 fi
19098 if test ! -r "$withval" ; then
19099 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
19100echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
19101 fi
19102 PRNGD_SOCKET="$withval"
19103
19104cat >>confdefs.h <<_ACEOF
19105#define PRNGD_SOCKET "$PRNGD_SOCKET"
19106_ACEOF
19107
19108 fi
19109
19110else
19111
19112 # Check for existing socket only if we don't have a random device already
19113 if test "$USE_RAND_HELPER" = yes ; then
19114 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
19115echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
19116 # Insert other locations here
19117 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
19118 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
19119 PRNGD_SOCKET="$sock"
19120 cat >>confdefs.h <<_ACEOF
19121#define PRNGD_SOCKET "$PRNGD_SOCKET"
19122_ACEOF
19123
19124 break;
19125 fi
19126 done
19127 if test ! -z "$PRNGD_SOCKET" ; then
19128 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
19129echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
19130 else
19131 { echo "$as_me:$LINENO: result: not found" >&5
19132echo "${ECHO_T}not found" >&6; }
19133 fi
19134 fi
19135
19136
19137fi
19138
19139
19140# Change default command timeout for hashing entropy source
19141entropy_timeout=200
19142
19143# Check whether --with-entropy-timeout was given.
19144if test "${with_entropy_timeout+set}" = set; then
19145 withval=$with_entropy_timeout;
19146 if test -n "$withval" && test "x$withval" != "xno" && \
19147 test "x${withval}" != "xyes"; then
19148 entropy_timeout=$withval
19149 fi
19150
19151
19152fi
19153
19154
19155cat >>confdefs.h <<_ACEOF
19156#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
19157_ACEOF
19158
19159
19160SSH_PRIVSEP_USER=sshd
19161
19162# Check whether --with-privsep-user was given.
19163if test "${with_privsep_user+set}" = set; then
19164 withval=$with_privsep_user;
19165 if test -n "$withval" && test "x$withval" != "xno" && \
19166 test "x${withval}" != "xyes"; then
19167 SSH_PRIVSEP_USER=$withval
19168 fi
19169
19170
19171fi
19172
19173
19174cat >>confdefs.h <<_ACEOF
19175#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
19176_ACEOF
19177
19178
19179
19180# We do this little dance with the search path to insure
19181# that programs that we select for use by installed programs
19182# (which may be run by the super-user) come from trusted
19183# locations before they come from the user's private area.
19184# This should help avoid accidentally configuring some
19185# random version of a program in someone's personal bin.
19186
19187OPATH=$PATH
19188PATH=/bin:/usr/bin
19189test -h /bin 2> /dev/null && PATH=/usr/bin
19190test -d /sbin && PATH=$PATH:/sbin
19191test -d /usr/sbin && PATH=$PATH:/usr/sbin
19192PATH=$PATH:/etc:$OPATH
19193
19194# These programs are used by the command hashing source to gather entropy
19195
19196 # Extract the first word of "ls", so it can be a program name with args.
19197set dummy ls; ac_word=$2
19198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19200if test "${ac_cv_path_PROG_LS+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202else
19203 case $PROG_LS in
19204 [\\/]* | ?:[\\/]*)
19205 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
19206 ;;
19207 *)
19208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209for as_dir in $PATH
19210do
19211 IFS=$as_save_IFS
19212 test -z "$as_dir" && as_dir=.
19213 for ac_exec_ext in '' $ac_executable_extensions; do
19214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19215 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
19216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19217 break 2
19218 fi
19219done
19220done
19221IFS=$as_save_IFS
19222
19223 ;;
19224esac
19225fi
19226PROG_LS=$ac_cv_path_PROG_LS
19227if test -n "$PROG_LS"; then
19228 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
19229echo "${ECHO_T}$PROG_LS" >&6; }
19230else
19231 { echo "$as_me:$LINENO: result: no" >&5
19232echo "${ECHO_T}no" >&6; }
19233fi
19234
19235
19236 if test -z "$PROG_LS" ; then
19237 PROG_LS="undef"
19238 fi
19239
19240
19241
19242 # Extract the first word of "netstat", so it can be a program name with args.
19243set dummy netstat; ac_word=$2
19244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19246if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19248else
19249 case $PROG_NETSTAT in
19250 [\\/]* | ?:[\\/]*)
19251 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
19252 ;;
19253 *)
19254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19255for as_dir in $PATH
19256do
19257 IFS=$as_save_IFS
19258 test -z "$as_dir" && as_dir=.
19259 for ac_exec_ext in '' $ac_executable_extensions; do
19260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19261 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
19262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19263 break 2
19264 fi
19265done
19266done
19267IFS=$as_save_IFS
19268
19269 ;;
19270esac
19271fi
19272PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
19273if test -n "$PROG_NETSTAT"; then
19274 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
19275echo "${ECHO_T}$PROG_NETSTAT" >&6; }
19276else
19277 { echo "$as_me:$LINENO: result: no" >&5
19278echo "${ECHO_T}no" >&6; }
19279fi
19280
19281
19282 if test -z "$PROG_NETSTAT" ; then
19283 PROG_NETSTAT="undef"
19284 fi
19285
19286
19287
19288 # Extract the first word of "arp", so it can be a program name with args.
19289set dummy arp; ac_word=$2
19290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19292if test "${ac_cv_path_PROG_ARP+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294else
19295 case $PROG_ARP in
19296 [\\/]* | ?:[\\/]*)
19297 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
19298 ;;
19299 *)
19300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301for as_dir in $PATH
19302do
19303 IFS=$as_save_IFS
19304 test -z "$as_dir" && as_dir=.
19305 for ac_exec_ext in '' $ac_executable_extensions; do
19306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19307 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
19308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19309 break 2
19310 fi
19311done
19312done
19313IFS=$as_save_IFS
19314
19315 ;;
19316esac
19317fi
19318PROG_ARP=$ac_cv_path_PROG_ARP
19319if test -n "$PROG_ARP"; then
19320 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
19321echo "${ECHO_T}$PROG_ARP" >&6; }
19322else
19323 { echo "$as_me:$LINENO: result: no" >&5
19324echo "${ECHO_T}no" >&6; }
19325fi
19326
19327
19328 if test -z "$PROG_ARP" ; then
19329 PROG_ARP="undef"
19330 fi
19331
19332
19333
19334 # Extract the first word of "ifconfig", so it can be a program name with args.
19335set dummy ifconfig; ac_word=$2
19336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19338if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340else
19341 case $PROG_IFCONFIG in
19342 [\\/]* | ?:[\\/]*)
19343 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
19344 ;;
19345 *)
19346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347for as_dir in $PATH
19348do
19349 IFS=$as_save_IFS
19350 test -z "$as_dir" && as_dir=.
19351 for ac_exec_ext in '' $ac_executable_extensions; do
19352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19353 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
19354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19355 break 2
19356 fi
19357done
19358done
19359IFS=$as_save_IFS
19360
19361 ;;
19362esac
19363fi
19364PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
19365if test -n "$PROG_IFCONFIG"; then
19366 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
19367echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
19368else
19369 { echo "$as_me:$LINENO: result: no" >&5
19370echo "${ECHO_T}no" >&6; }
19371fi
19372
19373
19374 if test -z "$PROG_IFCONFIG" ; then
19375 PROG_IFCONFIG="undef"
19376 fi
19377
19378
19379
19380 # Extract the first word of "jstat", so it can be a program name with args.
19381set dummy jstat; ac_word=$2
19382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19384if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386else
19387 case $PROG_JSTAT in
19388 [\\/]* | ?:[\\/]*)
19389 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
19390 ;;
19391 *)
19392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19393for as_dir in $PATH
19394do
19395 IFS=$as_save_IFS
19396 test -z "$as_dir" && as_dir=.
19397 for ac_exec_ext in '' $ac_executable_extensions; do
19398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19399 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
19400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19401 break 2
19402 fi
19403done
19404done
19405IFS=$as_save_IFS
19406
19407 ;;
19408esac
19409fi
19410PROG_JSTAT=$ac_cv_path_PROG_JSTAT
19411if test -n "$PROG_JSTAT"; then
19412 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
19413echo "${ECHO_T}$PROG_JSTAT" >&6; }
19414else
19415 { echo "$as_me:$LINENO: result: no" >&5
19416echo "${ECHO_T}no" >&6; }
19417fi
19418
19419
19420 if test -z "$PROG_JSTAT" ; then
19421 PROG_JSTAT="undef"
19422 fi
19423
19424
19425
19426 # Extract the first word of "ps", so it can be a program name with args.
19427set dummy ps; ac_word=$2
19428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19430if test "${ac_cv_path_PROG_PS+set}" = set; then
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
19432else
19433 case $PROG_PS in
19434 [\\/]* | ?:[\\/]*)
19435 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
19436 ;;
19437 *)
19438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19439for as_dir in $PATH
19440do
19441 IFS=$as_save_IFS
19442 test -z "$as_dir" && as_dir=.
19443 for ac_exec_ext in '' $ac_executable_extensions; do
19444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19445 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
19446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19447 break 2
19448 fi
19449done
19450done
19451IFS=$as_save_IFS
19452
19453 ;;
19454esac
19455fi
19456PROG_PS=$ac_cv_path_PROG_PS
19457if test -n "$PROG_PS"; then
19458 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
19459echo "${ECHO_T}$PROG_PS" >&6; }
19460else
19461 { echo "$as_me:$LINENO: result: no" >&5
19462echo "${ECHO_T}no" >&6; }
19463fi
19464
19465
19466 if test -z "$PROG_PS" ; then
19467 PROG_PS="undef"
19468 fi
19469
19470
19471
19472 # Extract the first word of "sar", so it can be a program name with args.
19473set dummy sar; ac_word=$2
19474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19476if test "${ac_cv_path_PROG_SAR+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478else
19479 case $PROG_SAR in
19480 [\\/]* | ?:[\\/]*)
19481 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
19482 ;;
19483 *)
19484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19485for as_dir in $PATH
19486do
19487 IFS=$as_save_IFS
19488 test -z "$as_dir" && as_dir=.
19489 for ac_exec_ext in '' $ac_executable_extensions; do
19490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19491 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
19492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19493 break 2
19494 fi
19495done
19496done
19497IFS=$as_save_IFS
19498
19499 ;;
19500esac
19501fi
19502PROG_SAR=$ac_cv_path_PROG_SAR
19503if test -n "$PROG_SAR"; then
19504 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
19505echo "${ECHO_T}$PROG_SAR" >&6; }
19506else
19507 { echo "$as_me:$LINENO: result: no" >&5
19508echo "${ECHO_T}no" >&6; }
19509fi
19510
19511
19512 if test -z "$PROG_SAR" ; then
19513 PROG_SAR="undef"
19514 fi
19515
19516
19517
19518 # Extract the first word of "w", so it can be a program name with args.
19519set dummy w; ac_word=$2
19520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19522if test "${ac_cv_path_PROG_W+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524else
19525 case $PROG_W in
19526 [\\/]* | ?:[\\/]*)
19527 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
19528 ;;
19529 *)
19530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19531for as_dir in $PATH
19532do
19533 IFS=$as_save_IFS
19534 test -z "$as_dir" && as_dir=.
19535 for ac_exec_ext in '' $ac_executable_extensions; do
19536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19537 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
19538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19539 break 2
19540 fi
19541done
19542done
19543IFS=$as_save_IFS
19544
19545 ;;
19546esac
19547fi
19548PROG_W=$ac_cv_path_PROG_W
19549if test -n "$PROG_W"; then
19550 { echo "$as_me:$LINENO: result: $PROG_W" >&5
19551echo "${ECHO_T}$PROG_W" >&6; }
19552else
19553 { echo "$as_me:$LINENO: result: no" >&5
19554echo "${ECHO_T}no" >&6; }
19555fi
19556
19557
19558 if test -z "$PROG_W" ; then
19559 PROG_W="undef"
19560 fi
19561
19562
19563
19564 # Extract the first word of "who", so it can be a program name with args.
19565set dummy who; ac_word=$2
19566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19568if test "${ac_cv_path_PROG_WHO+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570else
19571 case $PROG_WHO in
19572 [\\/]* | ?:[\\/]*)
19573 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
19574 ;;
19575 *)
19576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19577for as_dir in $PATH
19578do
19579 IFS=$as_save_IFS
19580 test -z "$as_dir" && as_dir=.
19581 for ac_exec_ext in '' $ac_executable_extensions; do
19582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19583 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
19584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19585 break 2
19586 fi
19587done
19588done
19589IFS=$as_save_IFS
19590
19591 ;;
19592esac
19593fi
19594PROG_WHO=$ac_cv_path_PROG_WHO
19595if test -n "$PROG_WHO"; then
19596 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
19597echo "${ECHO_T}$PROG_WHO" >&6; }
19598else
19599 { echo "$as_me:$LINENO: result: no" >&5
19600echo "${ECHO_T}no" >&6; }
19601fi
19602
19603
19604 if test -z "$PROG_WHO" ; then
19605 PROG_WHO="undef"
19606 fi
19607
19608
19609
19610 # Extract the first word of "last", so it can be a program name with args.
19611set dummy last; ac_word=$2
19612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19614if test "${ac_cv_path_PROG_LAST+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616else
19617 case $PROG_LAST in
19618 [\\/]* | ?:[\\/]*)
19619 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
19620 ;;
19621 *)
19622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19623for as_dir in $PATH
19624do
19625 IFS=$as_save_IFS
19626 test -z "$as_dir" && as_dir=.
19627 for ac_exec_ext in '' $ac_executable_extensions; do
19628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19629 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
19630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19631 break 2
19632 fi
19633done
19634done
19635IFS=$as_save_IFS
19636
19637 ;;
19638esac
19639fi
19640PROG_LAST=$ac_cv_path_PROG_LAST
19641if test -n "$PROG_LAST"; then
19642 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
19643echo "${ECHO_T}$PROG_LAST" >&6; }
19644else
19645 { echo "$as_me:$LINENO: result: no" >&5
19646echo "${ECHO_T}no" >&6; }
19647fi
19648
19649
19650 if test -z "$PROG_LAST" ; then
19651 PROG_LAST="undef"
19652 fi
19653
19654
19655
19656 # Extract the first word of "lastlog", so it can be a program name with args.
19657set dummy lastlog; ac_word=$2
19658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19660if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
19663 case $PROG_LASTLOG in
19664 [\\/]* | ?:[\\/]*)
19665 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
19666 ;;
19667 *)
19668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669for as_dir in $PATH
19670do
19671 IFS=$as_save_IFS
19672 test -z "$as_dir" && as_dir=.
19673 for ac_exec_ext in '' $ac_executable_extensions; do
19674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19675 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
19676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19677 break 2
19678 fi
19679done
19680done
19681IFS=$as_save_IFS
19682
19683 ;;
19684esac
19685fi
19686PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
19687if test -n "$PROG_LASTLOG"; then
19688 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
19689echo "${ECHO_T}$PROG_LASTLOG" >&6; }
19690else
19691 { echo "$as_me:$LINENO: result: no" >&5
19692echo "${ECHO_T}no" >&6; }
19693fi
19694
19695
19696 if test -z "$PROG_LASTLOG" ; then
19697 PROG_LASTLOG="undef"
19698 fi
19699
19700
19701
19702 # Extract the first word of "df", so it can be a program name with args.
19703set dummy df; ac_word=$2
19704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19706if test "${ac_cv_path_PROG_DF+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19708else
19709 case $PROG_DF in
19710 [\\/]* | ?:[\\/]*)
19711 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
19712 ;;
19713 *)
19714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715for as_dir in $PATH
19716do
19717 IFS=$as_save_IFS
19718 test -z "$as_dir" && as_dir=.
19719 for ac_exec_ext in '' $ac_executable_extensions; do
19720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19721 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
19722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19723 break 2
19724 fi
19725done
19726done
19727IFS=$as_save_IFS
19728
19729 ;;
19730esac
19731fi
19732PROG_DF=$ac_cv_path_PROG_DF
19733if test -n "$PROG_DF"; then
19734 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
19735echo "${ECHO_T}$PROG_DF" >&6; }
19736else
19737 { echo "$as_me:$LINENO: result: no" >&5
19738echo "${ECHO_T}no" >&6; }
19739fi
19740
19741
19742 if test -z "$PROG_DF" ; then
19743 PROG_DF="undef"
19744 fi
19745
19746
19747
19748 # Extract the first word of "vmstat", so it can be a program name with args.
19749set dummy vmstat; ac_word=$2
19750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19752if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754else
19755 case $PROG_VMSTAT in
19756 [\\/]* | ?:[\\/]*)
19757 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
19758 ;;
19759 *)
19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761for as_dir in $PATH
19762do
19763 IFS=$as_save_IFS
19764 test -z "$as_dir" && as_dir=.
19765 for ac_exec_ext in '' $ac_executable_extensions; do
19766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19767 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
19768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19769 break 2
19770 fi
19771done
19772done
19773IFS=$as_save_IFS
19774
19775 ;;
19776esac
19777fi
19778PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19779if test -n "$PROG_VMSTAT"; then
19780 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19781echo "${ECHO_T}$PROG_VMSTAT" >&6; }
19782else
19783 { echo "$as_me:$LINENO: result: no" >&5
19784echo "${ECHO_T}no" >&6; }
19785fi
19786
19787
19788 if test -z "$PROG_VMSTAT" ; then
19789 PROG_VMSTAT="undef"
19790 fi
19791
19792
19793
19794 # Extract the first word of "uptime", so it can be a program name with args.
19795set dummy uptime; ac_word=$2
19796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19798if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800else
19801 case $PROG_UPTIME in
19802 [\\/]* | ?:[\\/]*)
19803 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
19804 ;;
19805 *)
19806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19807for as_dir in $PATH
19808do
19809 IFS=$as_save_IFS
19810 test -z "$as_dir" && as_dir=.
19811 for ac_exec_ext in '' $ac_executable_extensions; do
19812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19813 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
19814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19815 break 2
19816 fi
19817done
19818done
19819IFS=$as_save_IFS
19820
19821 ;;
19822esac
19823fi
19824PROG_UPTIME=$ac_cv_path_PROG_UPTIME
19825if test -n "$PROG_UPTIME"; then
19826 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
19827echo "${ECHO_T}$PROG_UPTIME" >&6; }
19828else
19829 { echo "$as_me:$LINENO: result: no" >&5
19830echo "${ECHO_T}no" >&6; }
19831fi
19832
19833
19834 if test -z "$PROG_UPTIME" ; then
19835 PROG_UPTIME="undef"
19836 fi
19837
19838
19839
19840 # Extract the first word of "ipcs", so it can be a program name with args.
19841set dummy ipcs; ac_word=$2
19842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19844if test "${ac_cv_path_PROG_IPCS+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846else
19847 case $PROG_IPCS in
19848 [\\/]* | ?:[\\/]*)
19849 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
19850 ;;
19851 *)
19852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853for as_dir in $PATH
19854do
19855 IFS=$as_save_IFS
19856 test -z "$as_dir" && as_dir=.
19857 for ac_exec_ext in '' $ac_executable_extensions; do
19858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19859 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
19860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19861 break 2
19862 fi
19863done
19864done
19865IFS=$as_save_IFS
19866
19867 ;;
19868esac
19869fi
19870PROG_IPCS=$ac_cv_path_PROG_IPCS
19871if test -n "$PROG_IPCS"; then
19872 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
19873echo "${ECHO_T}$PROG_IPCS" >&6; }
19874else
19875 { echo "$as_me:$LINENO: result: no" >&5
19876echo "${ECHO_T}no" >&6; }
19877fi
19878
19879
19880 if test -z "$PROG_IPCS" ; then
19881 PROG_IPCS="undef"
19882 fi
19883
19884
19885
19886 # Extract the first word of "tail", so it can be a program name with args.
19887set dummy tail; ac_word=$2
19888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19890if test "${ac_cv_path_PROG_TAIL+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893 case $PROG_TAIL in
19894 [\\/]* | ?:[\\/]*)
19895 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
19896 ;;
19897 *)
19898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19899for as_dir in $PATH
19900do
19901 IFS=$as_save_IFS
19902 test -z "$as_dir" && as_dir=.
19903 for ac_exec_ext in '' $ac_executable_extensions; do
19904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19905 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
19906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19907 break 2
19908 fi
19909done
19910done
19911IFS=$as_save_IFS
19912
19913 ;;
19914esac
19915fi
19916PROG_TAIL=$ac_cv_path_PROG_TAIL
19917if test -n "$PROG_TAIL"; then
19918 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
19919echo "${ECHO_T}$PROG_TAIL" >&6; }
19920else
19921 { echo "$as_me:$LINENO: result: no" >&5
19922echo "${ECHO_T}no" >&6; }
19923fi
19924
19925
19926 if test -z "$PROG_TAIL" ; then
19927 PROG_TAIL="undef"
19928 fi
19929
19930
19931# restore PATH
19932PATH=$OPATH
19933
19934# Where does ssh-rand-helper get its randomness from?
19935INSTALL_SSH_PRNG_CMDS=""
19936if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
19937 if test ! -z "$PRNGD_PORT" ; then
19938 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
19939 elif test ! -z "$PRNGD_SOCKET" ; then
19940 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
19941 else
19942 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
19943 RAND_HELPER_CMDHASH=yes
19944 INSTALL_SSH_PRNG_CMDS="yes"
19945 fi
19946fi
19947
19948
19949
19950# Cheap hack to ensure NEWS-OS libraries are arranged right.
19951if test ! -z "$SONY" ; then
19952 LIBS="$LIBS -liberty";
19953fi
19954
19955# Check for long long datatypes
19956{ echo "$as_me:$LINENO: checking for long long" >&5
19957echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19958if test "${ac_cv_type_long_long+set}" = set; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19960else
19961 cat >conftest.$ac_ext <<_ACEOF
19962/* confdefs.h. */
19963_ACEOF
19964cat confdefs.h >>conftest.$ac_ext
19965cat >>conftest.$ac_ext <<_ACEOF
19966/* end confdefs.h. */
19967$ac_includes_default
19968typedef long long ac__type_new_;
19969int
19970main ()
19971{
19972if ((ac__type_new_ *) 0)
19973 return 0;
19974if (sizeof (ac__type_new_))
19975 return 0;
19976 ;
19977 return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext
19981if { (ac_try="$ac_compile"
19982case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19995 { (case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_try") 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest.$ac_objext'
20005 { (case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008esac
20009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_try") 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
20014 ac_cv_type_long_long=yes
20015else
20016 echo "$as_me: failed program was:" >&5
20017sed 's/^/| /' conftest.$ac_ext >&5
20018
20019 ac_cv_type_long_long=no
20020fi
20021
20022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023fi
20024{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20025echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20026if test $ac_cv_type_long_long = yes; then
20027
20028cat >>confdefs.h <<_ACEOF
20029#define HAVE_LONG_LONG 1
20030_ACEOF
20031
20032
20033fi
20034{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
20035echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20036if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20038else
20039 cat >conftest.$ac_ext <<_ACEOF
20040/* confdefs.h. */
20041_ACEOF
20042cat confdefs.h >>conftest.$ac_ext
20043cat >>conftest.$ac_ext <<_ACEOF
20044/* end confdefs.h. */
20045$ac_includes_default
20046typedef unsigned long long ac__type_new_;
20047int
20048main ()
20049{
20050if ((ac__type_new_ *) 0)
20051 return 0;
20052if (sizeof (ac__type_new_))
20053 return 0;
20054 ;
20055 return 0;
20056}
20057_ACEOF
20058rm -f conftest.$ac_objext
20059if { (ac_try="$ac_compile"
20060case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20063esac
20064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076esac
20077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086esac
20087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_try") 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 ac_cv_type_unsigned_long_long=yes
20093else
20094 echo "$as_me: failed program was:" >&5
20095sed 's/^/| /' conftest.$ac_ext >&5
20096
20097 ac_cv_type_unsigned_long_long=no
20098fi
20099
20100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101fi
20102{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20103echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20104if test $ac_cv_type_unsigned_long_long = yes; then
20105
20106cat >>confdefs.h <<_ACEOF
20107#define HAVE_UNSIGNED_LONG_LONG 1
20108_ACEOF
20109
20110
20111fi
20112{ echo "$as_me:$LINENO: checking for long double" >&5
20113echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
20114if test "${ac_cv_type_long_double+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116else
20117 cat >conftest.$ac_ext <<_ACEOF
20118/* confdefs.h. */
20119_ACEOF
20120cat confdefs.h >>conftest.$ac_ext
20121cat >>conftest.$ac_ext <<_ACEOF
20122/* end confdefs.h. */
20123$ac_includes_default
20124typedef long double ac__type_new_;
20125int
20126main ()
20127{
20128if ((ac__type_new_ *) 0)
20129 return 0;
20130if (sizeof (ac__type_new_))
20131 return 0;
20132 ;
20133 return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext
20137if { (ac_try="$ac_compile"
20138case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141esac
20142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_compile") 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } &&
20150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20151 { (case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20154esac
20155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_try") 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest.$ac_objext'
20161 { (case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164esac
20165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_try") 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_type_long_double=yes
20171else
20172 echo "$as_me: failed program was:" >&5
20173sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 ac_cv_type_long_double=no
20176fi
20177
20178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20179fi
20180{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20181echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
20182if test $ac_cv_type_long_double = yes; then
20183
20184cat >>confdefs.h <<_ACEOF
20185#define HAVE_LONG_DOUBLE 1
20186_ACEOF
20187
20188
20189fi
20190
20191
20192# Check datatype sizes
20193{ echo "$as_me:$LINENO: checking for char" >&5
20194echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20195if test "${ac_cv_type_char+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198 cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
20204$ac_includes_default
20205typedef char ac__type_new_;
20206int
20207main ()
20208{
20209if ((ac__type_new_ *) 0)
20210 return 0;
20211if (sizeof (ac__type_new_))
20212 return 0;
20213 ;
20214 return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext
20218if { (ac_try="$ac_compile"
20219case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20222esac
20223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_compile") 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20232 { (case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20235esac
20236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_try") 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20245esac
20246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_try") 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 ac_cv_type_char=yes
20252else
20253 echo "$as_me: failed program was:" >&5
20254sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 ac_cv_type_char=no
20257fi
20258
20259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260fi
20261{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20262echo "${ECHO_T}$ac_cv_type_char" >&6; }
20263
20264{ echo "$as_me:$LINENO: checking size of char" >&5
20265echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
20266if test "${ac_cv_sizeof_char+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20268else
20269 if test "$ac_cv_type_char" = yes; then
20270 # The cast to long int works around a bug in the HP C Compiler
20271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20273 # This bug is HP SR number 8606223364.
20274 if test "$cross_compiling" = yes; then
20275 # Depending upon the size, compute the lo and hi bounds.
20276cat >conftest.$ac_ext <<_ACEOF
20277/* confdefs.h. */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h. */
20282$ac_includes_default
20283 typedef char ac__type_sizeof_;
20284int
20285main ()
20286{
20287static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20288test_array [0] = 0
20289
20290 ;
20291 return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext
20295if { (ac_try="$ac_compile"
20296case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299esac
20300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_compile") 2>conftest.er1
20302 ac_status=$?
20303 grep -v '^ *+' conftest.er1 >conftest.err
20304 rm -f conftest.er1
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312esac
20313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; } &&
20318 { ac_try='test -s conftest.$ac_objext'
20319 { (case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20322esac
20323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_try") 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_lo=0 ac_mid=0
20329 while :; do
20330 cat >conftest.$ac_ext <<_ACEOF
20331/* confdefs.h. */
20332_ACEOF
20333cat confdefs.h >>conftest.$ac_ext
20334cat >>conftest.$ac_ext <<_ACEOF
20335/* end confdefs.h. */
20336$ac_includes_default
20337 typedef char ac__type_sizeof_;
20338int
20339main ()
20340{
20341static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20342test_array [0] = 0
20343
20344 ;
20345 return 0;
20346}
20347_ACEOF
20348rm -f conftest.$ac_objext
20349if { (ac_try="$ac_compile"
20350case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20353esac
20354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_compile") 2>conftest.er1
20356 ac_status=$?
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } &&
20362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20363 { (case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366esac
20367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_try") 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376esac
20377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_hi=$ac_mid; break
20383else
20384 echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 ac_lo=`expr $ac_mid + 1`
20388 if test $ac_lo -le $ac_mid; then
20389 ac_lo= ac_hi=
20390 break
20391 fi
20392 ac_mid=`expr 2 '*' $ac_mid + 1`
20393fi
20394
20395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20396 done
20397else
20398 echo "$as_me: failed program was:" >&5
20399sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 cat >conftest.$ac_ext <<_ACEOF
20402/* confdefs.h. */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h. */
20407$ac_includes_default
20408 typedef char ac__type_sizeof_;
20409int
20410main ()
20411{
20412static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20413test_array [0] = 0
20414
20415 ;
20416 return 0;
20417}
20418_ACEOF
20419rm -f conftest.$ac_objext
20420if { (ac_try="$ac_compile"
20421case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424esac
20425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_compile") 2>conftest.er1
20427 ac_status=$?
20428 grep -v '^ *+' conftest.er1 >conftest.err
20429 rm -f conftest.er1
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } &&
20433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437esac
20438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; } &&
20443 { ac_try='test -s conftest.$ac_objext'
20444 { (case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447esac
20448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_try") 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_hi=-1 ac_mid=-1
20454 while :; do
20455 cat >conftest.$ac_ext <<_ACEOF
20456/* confdefs.h. */
20457_ACEOF
20458cat confdefs.h >>conftest.$ac_ext
20459cat >>conftest.$ac_ext <<_ACEOF
20460/* end confdefs.h. */
20461$ac_includes_default
20462 typedef char ac__type_sizeof_;
20463int
20464main ()
20465{
20466static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20467test_array [0] = 0
20468
20469 ;
20470 return 0;
20471}
20472_ACEOF
20473rm -f conftest.$ac_objext
20474if { (ac_try="$ac_compile"
20475case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478esac
20479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_compile") 2>conftest.er1
20481 ac_status=$?
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488 { (case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491esac
20492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_try") 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest.$ac_objext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501esac
20502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_lo=$ac_mid; break
20508else
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_hi=`expr '(' $ac_mid ')' - 1`
20513 if test $ac_mid -le $ac_hi; then
20514 ac_lo= ac_hi=
20515 break
20516 fi
20517 ac_mid=`expr 2 '*' $ac_mid`
20518fi
20519
20520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 done
20522else
20523 echo "$as_me: failed program was:" >&5
20524sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_lo= ac_hi=
20527fi
20528
20529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530fi
20531
20532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533# Binary search between lo and hi bounds.
20534while test "x$ac_lo" != "x$ac_hi"; do
20535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20536 cat >conftest.$ac_ext <<_ACEOF
20537/* confdefs.h. */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h. */
20542$ac_includes_default
20543 typedef char ac__type_sizeof_;
20544int
20545main ()
20546{
20547static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20548test_array [0] = 0
20549
20550 ;
20551 return 0;
20552}
20553_ACEOF
20554rm -f conftest.$ac_objext
20555if { (ac_try="$ac_compile"
20556case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20559esac
20560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_compile") 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest.$ac_objext'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20582esac
20583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_hi=$ac_mid
20589else
20590 echo "$as_me: failed program was:" >&5
20591sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 ac_lo=`expr '(' $ac_mid ')' + 1`
20594fi
20595
20596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597done
20598case $ac_lo in
20599?*) ac_cv_sizeof_char=$ac_lo;;
20600'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20601See \`config.log' for more details." >&5
20602echo "$as_me: error: cannot compute sizeof (char)
20603See \`config.log' for more details." >&2;}
20604 { (exit 77); exit 77; }; } ;;
20605esac
20606else
20607 cat >conftest.$ac_ext <<_ACEOF
20608/* confdefs.h. */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h. */
20613$ac_includes_default
20614 typedef char ac__type_sizeof_;
20615static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20616static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20617#include <stdio.h>
20618#include <stdlib.h>
20619int
20620main ()
20621{
20622
20623 FILE *f = fopen ("conftest.val", "w");
20624 if (! f)
20625 return 1;
20626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20627 {
20628 long int i = longval ();
20629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20630 return 1;
20631 fprintf (f, "%ld\n", i);
20632 }
20633 else
20634 {
20635 unsigned long int i = ulongval ();
20636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20637 return 1;
20638 fprintf (f, "%lu\n", i);
20639 }
20640 return ferror (f) || fclose (f) != 0;
20641
20642 ;
20643 return 0;
20644}
20645_ACEOF
20646rm -f conftest$ac_exeext
20647if { (ac_try="$ac_link"
20648case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651esac
20652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20657 { (case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20660esac
20661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_try") 2>&5
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_sizeof_char=`cat conftest.val`
20667else
20668 echo "$as_me: program exited with status $ac_status" >&5
20669echo "$as_me: failed program was:" >&5
20670sed 's/^/| /' conftest.$ac_ext >&5
20671
20672( exit $ac_status )
20673{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20674See \`config.log' for more details." >&5
20675echo "$as_me: error: cannot compute sizeof (char)
20676See \`config.log' for more details." >&2;}
20677 { (exit 77); exit 77; }; }
20678fi
20679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20680fi
20681rm -f conftest.val
20682else
20683 ac_cv_sizeof_char=0
20684fi
20685fi
20686{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20687echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
20688cat >>confdefs.h <<_ACEOF
20689#define SIZEOF_CHAR $ac_cv_sizeof_char
20690_ACEOF
20691
20692
20693{ echo "$as_me:$LINENO: checking for short int" >&5
20694echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
20695if test "${ac_cv_type_short_int+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697else
20698 cat >conftest.$ac_ext <<_ACEOF
20699/* confdefs.h. */
20700_ACEOF
20701cat confdefs.h >>conftest.$ac_ext
20702cat >>conftest.$ac_ext <<_ACEOF
20703/* end confdefs.h. */
20704$ac_includes_default
20705typedef short int ac__type_new_;
20706int
20707main ()
20708{
20709if ((ac__type_new_ *) 0)
20710 return 0;
20711if (sizeof (ac__type_new_))
20712 return 0;
20713 ;
20714 return 0;
20715}
20716_ACEOF
20717rm -f conftest.$ac_objext
20718if { (ac_try="$ac_compile"
20719case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722esac
20723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_compile") 2>conftest.er1
20725 ac_status=$?
20726 grep -v '^ *+' conftest.er1 >conftest.err
20727 rm -f conftest.er1
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
20731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20735esac
20736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest.$ac_objext'
20742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745esac
20746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_type_short_int=yes
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 ac_cv_type_short_int=no
20757fi
20758
20759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760fi
20761{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
20762echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
20763
20764{ echo "$as_me:$LINENO: checking size of short int" >&5
20765echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
20766if test "${ac_cv_sizeof_short_int+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768else
20769 if test "$ac_cv_type_short_int" = yes; then
20770 # The cast to long int works around a bug in the HP C Compiler
20771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20773 # This bug is HP SR number 8606223364.
20774 if test "$cross_compiling" = yes; then
20775 # Depending upon the size, compute the lo and hi bounds.
20776cat >conftest.$ac_ext <<_ACEOF
20777/* confdefs.h. */
20778_ACEOF
20779cat confdefs.h >>conftest.$ac_ext
20780cat >>conftest.$ac_ext <<_ACEOF
20781/* end confdefs.h. */
20782$ac_includes_default
20783 typedef short int ac__type_sizeof_;
20784int
20785main ()
20786{
20787static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20788test_array [0] = 0
20789
20790 ;
20791 return 0;
20792}
20793_ACEOF
20794rm -f conftest.$ac_objext
20795if { (ac_try="$ac_compile"
20796case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20799esac
20800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_compile") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809 { (case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812esac
20813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_try") 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822esac
20823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_lo=0 ac_mid=0
20829 while :; do
20830 cat >conftest.$ac_ext <<_ACEOF
20831/* confdefs.h. */
20832_ACEOF
20833cat confdefs.h >>conftest.$ac_ext
20834cat >>conftest.$ac_ext <<_ACEOF
20835/* end confdefs.h. */
20836$ac_includes_default
20837 typedef short int ac__type_sizeof_;
20838int
20839main ()
20840{
20841static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20842test_array [0] = 0
20843
20844 ;
20845 return 0;
20846}
20847_ACEOF
20848rm -f conftest.$ac_objext
20849if { (ac_try="$ac_compile"
20850case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20853esac
20854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20856 ac_status=$?
20857 grep -v '^ *+' conftest.er1 >conftest.err
20858 rm -f conftest.er1
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863 { (case "(($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_try") 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest.$ac_objext'
20873 { (case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876esac
20877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_try") 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ac_hi=$ac_mid; break
20883else
20884 echo "$as_me: failed program was:" >&5
20885sed 's/^/| /' conftest.$ac_ext >&5
20886
20887 ac_lo=`expr $ac_mid + 1`
20888 if test $ac_lo -le $ac_mid; then
20889 ac_lo= ac_hi=
20890 break
20891 fi
20892 ac_mid=`expr 2 '*' $ac_mid + 1`
20893fi
20894
20895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20896 done
20897else
20898 echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 cat >conftest.$ac_ext <<_ACEOF
20902/* confdefs.h. */
20903_ACEOF
20904cat confdefs.h >>conftest.$ac_ext
20905cat >>conftest.$ac_ext <<_ACEOF
20906/* end confdefs.h. */
20907$ac_includes_default
20908 typedef short int ac__type_sizeof_;
20909int
20910main ()
20911{
20912static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20913test_array [0] = 0
20914
20915 ;
20916 return 0;
20917}
20918_ACEOF
20919rm -f conftest.$ac_objext
20920if { (ac_try="$ac_compile"
20921case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924esac
20925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20927 ac_status=$?
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937esac
20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947esac
20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 ac_hi=-1 ac_mid=-1
20954 while :; do
20955 cat >conftest.$ac_ext <<_ACEOF
20956/* confdefs.h. */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
20960/* end confdefs.h. */
20961$ac_includes_default
20962 typedef short int ac__type_sizeof_;
20963int
20964main ()
20965{
20966static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20967test_array [0] = 0
20968
20969 ;
20970 return 0;
20971}
20972_ACEOF
20973rm -f conftest.$ac_objext
20974if { (ac_try="$ac_compile"
20975case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978esac
20979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001esac
21002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ac_lo=$ac_mid; break
21008else
21009 echo "$as_me: failed program was:" >&5
21010sed 's/^/| /' conftest.$ac_ext >&5
21011
21012 ac_hi=`expr '(' $ac_mid ')' - 1`
21013 if test $ac_mid -le $ac_hi; then
21014 ac_lo= ac_hi=
21015 break
21016 fi
21017 ac_mid=`expr 2 '*' $ac_mid`
21018fi
21019
21020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 done
21022else
21023 echo "$as_me: failed program was:" >&5
21024sed 's/^/| /' conftest.$ac_ext >&5
21025
21026 ac_lo= ac_hi=
21027fi
21028
21029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030fi
21031
21032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033# Binary search between lo and hi bounds.
21034while test "x$ac_lo" != "x$ac_hi"; do
21035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21036 cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
21042$ac_includes_default
21043 typedef short int ac__type_sizeof_;
21044int
21045main ()
21046{
21047static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21048test_array [0] = 0
21049
21050 ;
21051 return 0;
21052}
21053_ACEOF
21054rm -f conftest.$ac_objext
21055if { (ac_try="$ac_compile"
21056case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21059esac
21060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_compile") 2>conftest.er1
21062 ac_status=$?
21063 grep -v '^ *+' conftest.er1 >conftest.err
21064 rm -f conftest.er1
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21069 { (case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21072esac
21073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_try") 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest.$ac_objext'
21079 { (case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21082esac
21083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_try") 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
21088 ac_hi=$ac_mid
21089else
21090 echo "$as_me: failed program was:" >&5
21091sed 's/^/| /' conftest.$ac_ext >&5
21092
21093 ac_lo=`expr '(' $ac_mid ')' + 1`
21094fi
21095
21096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097done
21098case $ac_lo in
21099?*) ac_cv_sizeof_short_int=$ac_lo;;
21100'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21101See \`config.log' for more details." >&5
21102echo "$as_me: error: cannot compute sizeof (short int)
21103See \`config.log' for more details." >&2;}
21104 { (exit 77); exit 77; }; } ;;
21105esac
21106else
21107 cat >conftest.$ac_ext <<_ACEOF
21108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113$ac_includes_default
21114 typedef short int ac__type_sizeof_;
21115static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21116static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21117#include <stdio.h>
21118#include <stdlib.h>
21119int
21120main ()
21121{
21122
21123 FILE *f = fopen ("conftest.val", "w");
21124 if (! f)
21125 return 1;
21126 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21127 {
21128 long int i = longval ();
21129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21130 return 1;
21131 fprintf (f, "%ld\n", i);
21132 }
21133 else
21134 {
21135 unsigned long int i = ulongval ();
21136 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21137 return 1;
21138 fprintf (f, "%lu\n", i);
21139 }
21140 return ferror (f) || fclose (f) != 0;
21141
21142 ;
21143 return 0;
21144}
21145_ACEOF
21146rm -f conftest$ac_exeext
21147if { (ac_try="$ac_link"
21148case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21151esac
21152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_link") 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21157 { (case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21160esac
21161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_try") 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_sizeof_short_int=`cat conftest.val`
21167else
21168 echo "$as_me: program exited with status $ac_status" >&5
21169echo "$as_me: failed program was:" >&5
21170sed 's/^/| /' conftest.$ac_ext >&5
21171
21172( exit $ac_status )
21173{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21174See \`config.log' for more details." >&5
21175echo "$as_me: error: cannot compute sizeof (short int)
21176See \`config.log' for more details." >&2;}
21177 { (exit 77); exit 77; }; }
21178fi
21179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21180fi
21181rm -f conftest.val
21182else
21183 ac_cv_sizeof_short_int=0
21184fi
21185fi
21186{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
21187echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
21188cat >>confdefs.h <<_ACEOF
21189#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
21190_ACEOF
21191
21192
21193{ echo "$as_me:$LINENO: checking for int" >&5
21194echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21195if test "${ac_cv_type_int+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197else
21198 cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h. */
21204$ac_includes_default
21205typedef int ac__type_new_;
21206int
21207main ()
21208{
21209if ((ac__type_new_ *) 0)
21210 return 0;
21211if (sizeof (ac__type_new_))
21212 return 0;
21213 ;
21214 return 0;
21215}
21216_ACEOF
21217rm -f conftest.$ac_objext
21218if { (ac_try="$ac_compile"
21219case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222esac
21223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21225 ac_status=$?
21226 grep -v '^ *+' conftest.er1 >conftest.err
21227 rm -f conftest.er1
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
21231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21232 { (case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21235esac
21236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_try") 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try='test -s conftest.$ac_objext'
21242 { (case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245esac
21246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_try") 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 ac_cv_type_int=yes
21252else
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 ac_cv_type_int=no
21257fi
21258
21259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260fi
21261{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21262echo "${ECHO_T}$ac_cv_type_int" >&6; }
21263
21264{ echo "$as_me:$LINENO: checking size of int" >&5
21265echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21266if test "${ac_cv_sizeof_int+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268else
21269 if test "$ac_cv_type_int" = yes; then
21270 # The cast to long int works around a bug in the HP C Compiler
21271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21273 # This bug is HP SR number 8606223364.
21274 if test "$cross_compiling" = yes; then
21275 # Depending upon the size, compute the lo and hi bounds.
21276cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h. */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h. */
21282$ac_includes_default
21283 typedef int ac__type_sizeof_;
21284int
21285main ()
21286{
21287static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21288test_array [0] = 0
21289
21290 ;
21291 return 0;
21292}
21293_ACEOF
21294rm -f conftest.$ac_objext
21295if { (ac_try="$ac_compile"
21296case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299esac
21300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21309 { (case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21312esac
21313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_try") 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
21319 { (case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21322esac
21323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_try") 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; }; then
21328 ac_lo=0 ac_mid=0
21329 while :; do
21330 cat >conftest.$ac_ext <<_ACEOF
21331/* confdefs.h. */
21332_ACEOF
21333cat confdefs.h >>conftest.$ac_ext
21334cat >>conftest.$ac_ext <<_ACEOF
21335/* end confdefs.h. */
21336$ac_includes_default
21337 typedef int ac__type_sizeof_;
21338int
21339main ()
21340{
21341static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21342test_array [0] = 0
21343
21344 ;
21345 return 0;
21346}
21347_ACEOF
21348rm -f conftest.$ac_objext
21349if { (ac_try="$ac_compile"
21350case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21353esac
21354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_compile") 2>conftest.er1
21356 ac_status=$?
21357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21363 { (case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366esac
21367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_try") 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try='test -s conftest.$ac_objext'
21373 { (case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21376esac
21377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378 (eval "$ac_try") 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 ac_hi=$ac_mid; break
21383else
21384 echo "$as_me: failed program was:" >&5
21385sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ac_lo=`expr $ac_mid + 1`
21388 if test $ac_lo -le $ac_mid; then
21389 ac_lo= ac_hi=
21390 break
21391 fi
21392 ac_mid=`expr 2 '*' $ac_mid + 1`
21393fi
21394
21395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 done
21397else
21398 echo "$as_me: failed program was:" >&5
21399sed 's/^/| /' conftest.$ac_ext >&5
21400
21401 cat >conftest.$ac_ext <<_ACEOF
21402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
21407$ac_includes_default
21408 typedef int ac__type_sizeof_;
21409int
21410main ()
21411{
21412static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21413test_array [0] = 0
21414
21415 ;
21416 return 0;
21417}
21418_ACEOF
21419rm -f conftest.$ac_objext
21420if { (ac_try="$ac_compile"
21421case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424esac
21425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437esac
21438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447esac
21448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_try") 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_hi=-1 ac_mid=-1
21454 while :; do
21455 cat >conftest.$ac_ext <<_ACEOF
21456/* confdefs.h. */
21457_ACEOF
21458cat confdefs.h >>conftest.$ac_ext
21459cat >>conftest.$ac_ext <<_ACEOF
21460/* end confdefs.h. */
21461$ac_includes_default
21462 typedef int ac__type_sizeof_;
21463int
21464main ()
21465{
21466static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21467test_array [0] = 0
21468
21469 ;
21470 return 0;
21471}
21472_ACEOF
21473rm -f conftest.$ac_objext
21474if { (ac_try="$ac_compile"
21475case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21478esac
21479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21481 ac_status=$?
21482 grep -v '^ *+' conftest.er1 >conftest.err
21483 rm -f conftest.er1
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } &&
21487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21488 { (case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21491esac
21492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_try") 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; } &&
21497 { ac_try='test -s conftest.$ac_objext'
21498 { (case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21501esac
21502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_try") 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 ac_lo=$ac_mid; break
21508else
21509 echo "$as_me: failed program was:" >&5
21510sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ac_hi=`expr '(' $ac_mid ')' - 1`
21513 if test $ac_mid -le $ac_hi; then
21514 ac_lo= ac_hi=
21515 break
21516 fi
21517 ac_mid=`expr 2 '*' $ac_mid`
21518fi
21519
21520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521 done
21522else
21523 echo "$as_me: failed program was:" >&5
21524sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ac_lo= ac_hi=
21527fi
21528
21529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530fi
21531
21532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533# Binary search between lo and hi bounds.
21534while test "x$ac_lo" != "x$ac_hi"; do
21535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21536 cat >conftest.$ac_ext <<_ACEOF
21537/* confdefs.h. */
21538_ACEOF
21539cat confdefs.h >>conftest.$ac_ext
21540cat >>conftest.$ac_ext <<_ACEOF
21541/* end confdefs.h. */
21542$ac_includes_default
21543 typedef int ac__type_sizeof_;
21544int
21545main ()
21546{
21547static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21548test_array [0] = 0
21549
21550 ;
21551 return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext
21555if { (ac_try="$ac_compile"
21556case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559esac
21560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_compile") 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } &&
21568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21569 { (case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572esac
21573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_try") 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } &&
21578 { ac_try='test -s conftest.$ac_objext'
21579 { (case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582esac
21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_try") 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 ac_hi=$ac_mid
21589else
21590 echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 ac_lo=`expr '(' $ac_mid ')' + 1`
21594fi
21595
21596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597done
21598case $ac_lo in
21599?*) ac_cv_sizeof_int=$ac_lo;;
21600'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21601See \`config.log' for more details." >&5
21602echo "$as_me: error: cannot compute sizeof (int)
21603See \`config.log' for more details." >&2;}
21604 { (exit 77); exit 77; }; } ;;
21605esac
21606else
21607 cat >conftest.$ac_ext <<_ACEOF
21608/* confdefs.h. */
21609_ACEOF
21610cat confdefs.h >>conftest.$ac_ext
21611cat >>conftest.$ac_ext <<_ACEOF
21612/* end confdefs.h. */
21613$ac_includes_default
21614 typedef int ac__type_sizeof_;
21615static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21616static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21617#include <stdio.h>
21618#include <stdlib.h>
21619int
21620main ()
21621{
21622
21623 FILE *f = fopen ("conftest.val", "w");
21624 if (! f)
21625 return 1;
21626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21627 {
21628 long int i = longval ();
21629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21630 return 1;
21631 fprintf (f, "%ld\n", i);
21632 }
21633 else
21634 {
21635 unsigned long int i = ulongval ();
21636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21637 return 1;
21638 fprintf (f, "%lu\n", i);
21639 }
21640 return ferror (f) || fclose (f) != 0;
21641
21642 ;
21643 return 0;
21644}
21645_ACEOF
21646rm -f conftest$ac_exeext
21647if { (ac_try="$ac_link"
21648case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651esac
21652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_link") 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21657 { (case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21660esac
21661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_try") 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_cv_sizeof_int=`cat conftest.val`
21667else
21668 echo "$as_me: program exited with status $ac_status" >&5
21669echo "$as_me: failed program was:" >&5
21670sed 's/^/| /' conftest.$ac_ext >&5
21671
21672( exit $ac_status )
21673{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21674See \`config.log' for more details." >&5
21675echo "$as_me: error: cannot compute sizeof (int)
21676See \`config.log' for more details." >&2;}
21677 { (exit 77); exit 77; }; }
21678fi
21679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21680fi
21681rm -f conftest.val
21682else
21683 ac_cv_sizeof_int=0
21684fi
21685fi
21686{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21687echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21688cat >>confdefs.h <<_ACEOF
21689#define SIZEOF_INT $ac_cv_sizeof_int
21690_ACEOF
21691
21692
21693{ echo "$as_me:$LINENO: checking for long int" >&5
21694echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
21695if test "${ac_cv_type_long_int+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21697else
21698 cat >conftest.$ac_ext <<_ACEOF
21699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
21704$ac_includes_default
21705typedef long int ac__type_new_;
21706int
21707main ()
21708{
21709if ((ac__type_new_ *) 0)
21710 return 0;
21711if (sizeof (ac__type_new_))
21712 return 0;
21713 ;
21714 return 0;
21715}
21716_ACEOF
21717rm -f conftest.$ac_objext
21718if { (ac_try="$ac_compile"
21719case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21722esac
21723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_compile") 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
21731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21732 { (case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735esac
21736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_try") 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; } &&
21741 { ac_try='test -s conftest.$ac_objext'
21742 { (case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21745esac
21746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747 (eval "$ac_try") 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_type_long_int=yes
21752else
21753 echo "$as_me: failed program was:" >&5
21754sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_cv_type_long_int=no
21757fi
21758
21759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760fi
21761{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
21762echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
21763
21764{ echo "$as_me:$LINENO: checking size of long int" >&5
21765echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
21766if test "${ac_cv_sizeof_long_int+set}" = set; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21768else
21769 if test "$ac_cv_type_long_int" = yes; then
21770 # The cast to long int works around a bug in the HP C Compiler
21771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21773 # This bug is HP SR number 8606223364.
21774 if test "$cross_compiling" = yes; then
21775 # Depending upon the size, compute the lo and hi bounds.
21776cat >conftest.$ac_ext <<_ACEOF
21777/* confdefs.h. */
21778_ACEOF
21779cat confdefs.h >>conftest.$ac_ext
21780cat >>conftest.$ac_ext <<_ACEOF
21781/* end confdefs.h. */
21782$ac_includes_default
21783 typedef long int ac__type_sizeof_;
21784int
21785main ()
21786{
21787static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21788test_array [0] = 0
21789
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext
21795if { (ac_try="$ac_compile"
21796case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21809 { (case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812esac
21813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_try") 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; } &&
21818 { ac_try='test -s conftest.$ac_objext'
21819 { (case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21822esac
21823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_try") 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 ac_lo=0 ac_mid=0
21829 while :; do
21830 cat >conftest.$ac_ext <<_ACEOF
21831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
21836$ac_includes_default
21837 typedef long int ac__type_sizeof_;
21838int
21839main ()
21840{
21841static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21842test_array [0] = 0
21843
21844 ;
21845 return 0;
21846}
21847_ACEOF
21848rm -f conftest.$ac_objext
21849if { (ac_try="$ac_compile"
21850case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21853esac
21854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_compile") 2>conftest.er1
21856 ac_status=$?
21857 grep -v '^ *+' conftest.er1 >conftest.err
21858 rm -f conftest.er1
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } &&
21862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21863 { (case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866esac
21867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_try") 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (case "(($ac_try" in
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21876esac
21877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878 (eval "$ac_try") 2>&5
21879 ac_status=$?
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 ac_hi=$ac_mid; break
21883else
21884 echo "$as_me: failed program was:" >&5
21885sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 ac_lo=`expr $ac_mid + 1`
21888 if test $ac_lo -le $ac_mid; then
21889 ac_lo= ac_hi=
21890 break
21891 fi
21892 ac_mid=`expr 2 '*' $ac_mid + 1`
21893fi
21894
21895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 done
21897else
21898 echo "$as_me: failed program was:" >&5
21899sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 cat >conftest.$ac_ext <<_ACEOF
21902/* confdefs.h. */
21903_ACEOF
21904cat confdefs.h >>conftest.$ac_ext
21905cat >>conftest.$ac_ext <<_ACEOF
21906/* end confdefs.h. */
21907$ac_includes_default
21908 typedef long int ac__type_sizeof_;
21909int
21910main ()
21911{
21912static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21913test_array [0] = 0
21914
21915 ;
21916 return 0;
21917}
21918_ACEOF
21919rm -f conftest.$ac_objext
21920if { (ac_try="$ac_compile"
21921case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21924esac
21925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } &&
21933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21934 { (case "(($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_try") 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
21944 { (case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21947esac
21948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_try") 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 ac_hi=-1 ac_mid=-1
21954 while :; do
21955 cat >conftest.$ac_ext <<_ACEOF
21956/* confdefs.h. */
21957_ACEOF
21958cat confdefs.h >>conftest.$ac_ext
21959cat >>conftest.$ac_ext <<_ACEOF
21960/* end confdefs.h. */
21961$ac_includes_default
21962 typedef long int ac__type_sizeof_;
21963int
21964main ()
21965{
21966static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21967test_array [0] = 0
21968
21969 ;
21970 return 0;
21971}
21972_ACEOF
21973rm -f conftest.$ac_objext
21974if { (ac_try="$ac_compile"
21975case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21978esac
21979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21981 ac_status=$?
21982 grep -v '^ *+' conftest.er1 >conftest.err
21983 rm -f conftest.er1
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } &&
21987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21988 { (case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21991esac
21992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_try") 2>&5
21994 ac_status=$?
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; } &&
21997 { ac_try='test -s conftest.$ac_objext'
21998 { (case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001esac
22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_try") 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }; then
22007 ac_lo=$ac_mid; break
22008else
22009 echo "$as_me: failed program was:" >&5
22010sed 's/^/| /' conftest.$ac_ext >&5
22011
22012 ac_hi=`expr '(' $ac_mid ')' - 1`
22013 if test $ac_mid -le $ac_hi; then
22014 ac_lo= ac_hi=
22015 break
22016 fi
22017 ac_mid=`expr 2 '*' $ac_mid`
22018fi
22019
22020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 done
22022else
22023 echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
22026 ac_lo= ac_hi=
22027fi
22028
22029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030fi
22031
22032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033# Binary search between lo and hi bounds.
22034while test "x$ac_lo" != "x$ac_hi"; do
22035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22036 cat >conftest.$ac_ext <<_ACEOF
22037/* confdefs.h. */
22038_ACEOF
22039cat confdefs.h >>conftest.$ac_ext
22040cat >>conftest.$ac_ext <<_ACEOF
22041/* end confdefs.h. */
22042$ac_includes_default
22043 typedef long int ac__type_sizeof_;
22044int
22045main ()
22046{
22047static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22048test_array [0] = 0
22049
22050 ;
22051 return 0;
22052}
22053_ACEOF
22054rm -f conftest.$ac_objext
22055if { (ac_try="$ac_compile"
22056case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059esac
22060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
22068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22069 { (case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22072esac
22073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_try") 2>&5
22075 ac_status=$?
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; } &&
22078 { ac_try='test -s conftest.$ac_objext'
22079 { (case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082esac
22083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_try") 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22088 ac_hi=$ac_mid
22089else
22090 echo "$as_me: failed program was:" >&5
22091sed 's/^/| /' conftest.$ac_ext >&5
22092
22093 ac_lo=`expr '(' $ac_mid ')' + 1`
22094fi
22095
22096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097done
22098case $ac_lo in
22099?*) ac_cv_sizeof_long_int=$ac_lo;;
22100'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
22101See \`config.log' for more details." >&5
22102echo "$as_me: error: cannot compute sizeof (long int)
22103See \`config.log' for more details." >&2;}
22104 { (exit 77); exit 77; }; } ;;
22105esac
22106else
22107 cat >conftest.$ac_ext <<_ACEOF
22108/* confdefs.h. */
22109_ACEOF
22110cat confdefs.h >>conftest.$ac_ext
22111cat >>conftest.$ac_ext <<_ACEOF
22112/* end confdefs.h. */
22113$ac_includes_default
22114 typedef long int ac__type_sizeof_;
22115static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22116static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22117#include <stdio.h>
22118#include <stdlib.h>
22119int
22120main ()
22121{
22122
22123 FILE *f = fopen ("conftest.val", "w");
22124 if (! f)
22125 return 1;
22126 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22127 {
22128 long int i = longval ();
22129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22130 return 1;
22131 fprintf (f, "%ld\n", i);
22132 }
22133 else
22134 {
22135 unsigned long int i = ulongval ();
22136 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22137 return 1;
22138 fprintf (f, "%lu\n", i);
22139 }
22140 return ferror (f) || fclose (f) != 0;
22141
22142 ;
22143 return 0;
22144}
22145_ACEOF
22146rm -f conftest$ac_exeext
22147if { (ac_try="$ac_link"
22148case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22151esac
22152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153 (eval "$ac_link") 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22157 { (case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160esac
22161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_try") 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_cv_sizeof_long_int=`cat conftest.val`
22167else
22168 echo "$as_me: program exited with status $ac_status" >&5
22169echo "$as_me: failed program was:" >&5
22170sed 's/^/| /' conftest.$ac_ext >&5
22171
22172( exit $ac_status )
22173{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
22174See \`config.log' for more details." >&5
22175echo "$as_me: error: cannot compute sizeof (long int)
22176See \`config.log' for more details." >&2;}
22177 { (exit 77); exit 77; }; }
22178fi
22179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22180fi
22181rm -f conftest.val
22182else
22183 ac_cv_sizeof_long_int=0
22184fi
22185fi
22186{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
22187echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
22188cat >>confdefs.h <<_ACEOF
22189#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
22190_ACEOF
22191
22192
22193{ echo "$as_me:$LINENO: checking for long long int" >&5
22194echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22195if test "${ac_cv_type_long_long_int+set}" = set; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22197else
22198 cat >conftest.$ac_ext <<_ACEOF
22199/* confdefs.h. */
22200_ACEOF
22201cat confdefs.h >>conftest.$ac_ext
22202cat >>conftest.$ac_ext <<_ACEOF
22203/* end confdefs.h. */
22204$ac_includes_default
22205typedef long long int ac__type_new_;
22206int
22207main ()
22208{
22209if ((ac__type_new_ *) 0)
22210 return 0;
22211if (sizeof (ac__type_new_))
22212 return 0;
22213 ;
22214 return 0;
22215}
22216_ACEOF
22217rm -f conftest.$ac_objext
22218if { (ac_try="$ac_compile"
22219case "(($ac_try" in
22220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221 *) ac_try_echo=$ac_try;;
22222esac
22223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_compile") 2>conftest.er1
22225 ac_status=$?
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } &&
22231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22232 { (case "(($ac_try" in
22233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234 *) ac_try_echo=$ac_try;;
22235esac
22236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22237 (eval "$ac_try") 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; } &&
22241 { ac_try='test -s conftest.$ac_objext'
22242 { (case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22245esac
22246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_try") 2>&5
22248 ac_status=$?
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; }; then
22251 ac_cv_type_long_long_int=yes
22252else
22253 echo "$as_me: failed program was:" >&5
22254sed 's/^/| /' conftest.$ac_ext >&5
22255
22256 ac_cv_type_long_long_int=no
22257fi
22258
22259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260fi
22261{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22262echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22263
22264{ echo "$as_me:$LINENO: checking size of long long int" >&5
22265echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
22266if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22268else
22269 if test "$ac_cv_type_long_long_int" = yes; then
22270 # The cast to long int works around a bug in the HP C Compiler
22271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22273 # This bug is HP SR number 8606223364.
22274 if test "$cross_compiling" = yes; then
22275 # Depending upon the size, compute the lo and hi bounds.
22276cat >conftest.$ac_ext <<_ACEOF
22277/* confdefs.h. */
22278_ACEOF
22279cat confdefs.h >>conftest.$ac_ext
22280cat >>conftest.$ac_ext <<_ACEOF
22281/* end confdefs.h. */
22282$ac_includes_default
22283 typedef long long int ac__type_sizeof_;
22284int
22285main ()
22286{
22287static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22288test_array [0] = 0
22289
22290 ;
22291 return 0;
22292}
22293_ACEOF
22294rm -f conftest.$ac_objext
22295if { (ac_try="$ac_compile"
22296case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299esac
22300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_compile") 2>conftest.er1
22302 ac_status=$?
22303 grep -v '^ *+' conftest.er1 >conftest.err
22304 rm -f conftest.er1
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } &&
22308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312esac
22313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest.$ac_objext'
22319 { (case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22322esac
22323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_try") 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22328 ac_lo=0 ac_mid=0
22329 while :; do
22330 cat >conftest.$ac_ext <<_ACEOF
22331/* confdefs.h. */
22332_ACEOF
22333cat confdefs.h >>conftest.$ac_ext
22334cat >>conftest.$ac_ext <<_ACEOF
22335/* end confdefs.h. */
22336$ac_includes_default
22337 typedef long long int ac__type_sizeof_;
22338int
22339main ()
22340{
22341static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22342test_array [0] = 0
22343
22344 ;
22345 return 0;
22346}
22347_ACEOF
22348rm -f conftest.$ac_objext
22349if { (ac_try="$ac_compile"
22350case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22353esac
22354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_compile") 2>conftest.er1
22356 ac_status=$?
22357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22363 { (case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22366esac
22367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_try") 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; } &&
22372 { ac_try='test -s conftest.$ac_objext'
22373 { (case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22376esac
22377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378 (eval "$ac_try") 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; }; then
22382 ac_hi=$ac_mid; break
22383else
22384 echo "$as_me: failed program was:" >&5
22385sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 ac_lo=`expr $ac_mid + 1`
22388 if test $ac_lo -le $ac_mid; then
22389 ac_lo= ac_hi=
22390 break
22391 fi
22392 ac_mid=`expr 2 '*' $ac_mid + 1`
22393fi
22394
22395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396 done
22397else
22398 echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401 cat >conftest.$ac_ext <<_ACEOF
22402/* confdefs.h. */
22403_ACEOF
22404cat confdefs.h >>conftest.$ac_ext
22405cat >>conftest.$ac_ext <<_ACEOF
22406/* end confdefs.h. */
22407$ac_includes_default
22408 typedef long long int ac__type_sizeof_;
22409int
22410main ()
22411{
22412static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22413test_array [0] = 0
22414
22415 ;
22416 return 0;
22417}
22418_ACEOF
22419rm -f conftest.$ac_objext
22420if { (ac_try="$ac_compile"
22421case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22424esac
22425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_compile") 2>conftest.er1
22427 ac_status=$?
22428 grep -v '^ *+' conftest.er1 >conftest.err
22429 rm -f conftest.er1
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } &&
22433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22434 { (case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22437esac
22438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_try") 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest.$ac_objext'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447esac
22448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_hi=-1 ac_mid=-1
22454 while :; do
22455 cat >conftest.$ac_ext <<_ACEOF
22456/* confdefs.h. */
22457_ACEOF
22458cat confdefs.h >>conftest.$ac_ext
22459cat >>conftest.$ac_ext <<_ACEOF
22460/* end confdefs.h. */
22461$ac_includes_default
22462 typedef long long int ac__type_sizeof_;
22463int
22464main ()
22465{
22466static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22467test_array [0] = 0
22468
22469 ;
22470 return 0;
22471}
22472_ACEOF
22473rm -f conftest.$ac_objext
22474if { (ac_try="$ac_compile"
22475case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478esac
22479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_compile") 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } &&
22487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22488 { (case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22491esac
22492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_try") 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest.$ac_objext'
22498 { (case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22501esac
22502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_try") 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 ac_lo=$ac_mid; break
22508else
22509 echo "$as_me: failed program was:" >&5
22510sed 's/^/| /' conftest.$ac_ext >&5
22511
22512 ac_hi=`expr '(' $ac_mid ')' - 1`
22513 if test $ac_mid -le $ac_hi; then
22514 ac_lo= ac_hi=
22515 break
22516 fi
22517 ac_mid=`expr 2 '*' $ac_mid`
22518fi
22519
22520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521 done
22522else
22523 echo "$as_me: failed program was:" >&5
22524sed 's/^/| /' conftest.$ac_ext >&5
22525
22526 ac_lo= ac_hi=
22527fi
22528
22529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530fi
22531
22532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533# Binary search between lo and hi bounds.
22534while test "x$ac_lo" != "x$ac_hi"; do
22535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22536 cat >conftest.$ac_ext <<_ACEOF
22537/* confdefs.h. */
22538_ACEOF
22539cat confdefs.h >>conftest.$ac_ext
22540cat >>conftest.$ac_ext <<_ACEOF
22541/* end confdefs.h. */
22542$ac_includes_default
22543 typedef long long int ac__type_sizeof_;
22544int
22545main ()
22546{
22547static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22548test_array [0] = 0
22549
22550 ;
22551 return 0;
22552}
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (ac_try="$ac_compile"
22556case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22559esac
22560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22562 ac_status=$?
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } &&
22568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22569 { (case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22572esac
22573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_try") 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest.$ac_objext'
22579 { (case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_try") 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_hi=$ac_mid
22589else
22590 echo "$as_me: failed program was:" >&5
22591sed 's/^/| /' conftest.$ac_ext >&5
22592
22593 ac_lo=`expr '(' $ac_mid ')' + 1`
22594fi
22595
22596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22597done
22598case $ac_lo in
22599?*) ac_cv_sizeof_long_long_int=$ac_lo;;
22600'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22601See \`config.log' for more details." >&5
22602echo "$as_me: error: cannot compute sizeof (long long int)
22603See \`config.log' for more details." >&2;}
22604 { (exit 77); exit 77; }; } ;;
22605esac
22606else
22607 cat >conftest.$ac_ext <<_ACEOF
22608/* confdefs.h. */
22609_ACEOF
22610cat confdefs.h >>conftest.$ac_ext
22611cat >>conftest.$ac_ext <<_ACEOF
22612/* end confdefs.h. */
22613$ac_includes_default
22614 typedef long long int ac__type_sizeof_;
22615static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22616static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22617#include <stdio.h>
22618#include <stdlib.h>
22619int
22620main ()
22621{
22622
22623 FILE *f = fopen ("conftest.val", "w");
22624 if (! f)
22625 return 1;
22626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22627 {
22628 long int i = longval ();
22629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22630 return 1;
22631 fprintf (f, "%ld\n", i);
22632 }
22633 else
22634 {
22635 unsigned long int i = ulongval ();
22636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22637 return 1;
22638 fprintf (f, "%lu\n", i);
22639 }
22640 return ferror (f) || fclose (f) != 0;
22641
22642 ;
22643 return 0;
22644}
22645_ACEOF
22646rm -f conftest$ac_exeext
22647if { (ac_try="$ac_link"
22648case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22651esac
22652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_link") 2>&5
22654 ac_status=$?
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22657 { (case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22660esac
22661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_try") 2>&5
22663 ac_status=$?
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; }; then
22666 ac_cv_sizeof_long_long_int=`cat conftest.val`
22667else
22668 echo "$as_me: program exited with status $ac_status" >&5
22669echo "$as_me: failed program was:" >&5
22670sed 's/^/| /' conftest.$ac_ext >&5
22671
22672( exit $ac_status )
22673{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22674See \`config.log' for more details." >&5
22675echo "$as_me: error: cannot compute sizeof (long long int)
22676See \`config.log' for more details." >&2;}
22677 { (exit 77); exit 77; }; }
22678fi
22679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22680fi
22681rm -f conftest.val
22682else
22683 ac_cv_sizeof_long_long_int=0
22684fi
22685fi
22686{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
22687echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
22688cat >>confdefs.h <<_ACEOF
22689#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
22690_ACEOF
22691
22692
22693
22694# Sanity check long long for some platforms (AIX)
22695if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
22696 ac_cv_sizeof_long_long_int=0
22697fi
22698
22699# compute LLONG_MIN and LLONG_MAX if we don't know them.
22700if test -z "$have_llong_max"; then
22701 { echo "$as_me:$LINENO: checking for max value of long long" >&5
22702echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
22703 if test "$cross_compiling" = yes; then
22704
22705 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
22706echo "$as_me: WARNING: cross compiling: not checking" >&2;}
22707
22708
22709else
22710 cat >conftest.$ac_ext <<_ACEOF
22711/* confdefs.h. */
22712_ACEOF
22713cat confdefs.h >>conftest.$ac_ext
22714cat >>conftest.$ac_ext <<_ACEOF
22715/* end confdefs.h. */
22716
22717#include <stdio.h>
22718/* Why is this so damn hard? */
22719#ifdef __GNUC__
22720# undef __GNUC__
22721#endif
22722#define __USE_ISOC99
22723#include <limits.h>
22724#define DATA "conftest.llminmax"
22725#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
22726
22727/*
22728 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
22729 * we do this the hard way.
22730 */
22731static int
22732fprint_ll(FILE *f, long long n)
22733{
22734 unsigned int i;
22735 int l[sizeof(long long) * 8];
22736
22737 if (n < 0)
22738 if (fprintf(f, "-") < 0)
22739 return -1;
22740 for (i = 0; n != 0; i++) {
22741 l[i] = my_abs(n % 10);
22742 n /= 10;
22743 }
22744 do {
22745 if (fprintf(f, "%d", l[--i]) < 0)
22746 return -1;
22747 } while (i != 0);
22748 if (fprintf(f, " ") < 0)
22749 return -1;
22750 return 0;
22751}
22752
22753int main(void) {
22754 FILE *f;
22755 long long i, llmin, llmax = 0;
22756
22757 if((f = fopen(DATA,"w")) == NULL)
22758 exit(1);
22759
22760#if defined(LLONG_MIN) && defined(LLONG_MAX)
22761 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
22762 llmin = LLONG_MIN;
22763 llmax = LLONG_MAX;
22764#else
22765 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
22766 /* This will work on one's complement and two's complement */
22767 for (i = 1; i > llmax; i <<= 1, i++)
22768 llmax = i;
22769 llmin = llmax + 1LL; /* wrap */
22770#endif
22771
22772 /* Sanity check */
22773 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
22774 || llmax - 1 > llmax || llmin == llmax || llmin == 0
22775 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
22776 fprintf(f, "unknown unknown\n");
22777 exit(2);
22778 }
22779
22780 if (fprint_ll(f, llmin) < 0)
22781 exit(3);
22782 if (fprint_ll(f, llmax) < 0)
22783 exit(4);
22784 if (fclose(f) < 0)
22785 exit(5);
22786 exit(0);
22787}
22788
22789_ACEOF
22790rm -f conftest$ac_exeext
22791if { (ac_try="$ac_link"
22792case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22795esac
22796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_link") 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22801 { (case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22804esac
22805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_try") 2>&5
22807 ac_status=$?
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); }; }; then
22810
22811 llong_min=`$AWK '{print $1}' conftest.llminmax`
22812 llong_max=`$AWK '{print $2}' conftest.llminmax`
22813
22814 { echo "$as_me:$LINENO: result: $llong_max" >&5
22815echo "${ECHO_T}$llong_max" >&6; }
22816
22817cat >>confdefs.h <<_ACEOF
22818#define LLONG_MAX ${llong_max}LL
22819_ACEOF
22820
22821 { echo "$as_me:$LINENO: checking for min value of long long" >&5
22822echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
22823 { echo "$as_me:$LINENO: result: $llong_min" >&5
22824echo "${ECHO_T}$llong_min" >&6; }
22825
22826cat >>confdefs.h <<_ACEOF
22827#define LLONG_MIN ${llong_min}LL
22828_ACEOF
22829
22830
22831else
22832 echo "$as_me: program exited with status $ac_status" >&5
22833echo "$as_me: failed program was:" >&5
22834sed 's/^/| /' conftest.$ac_ext >&5
22835
22836( exit $ac_status )
22837
22838 { echo "$as_me:$LINENO: result: not found" >&5
22839echo "${ECHO_T}not found" >&6; }
22840
22841fi
22842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22843fi
22844
22845
22846fi
22847
22848
22849# More checks for data types
22850{ echo "$as_me:$LINENO: checking for u_int type" >&5
22851echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
22852if test "${ac_cv_have_u_int+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22854else
22855
22856 cat >conftest.$ac_ext <<_ACEOF
22857/* confdefs.h. */
22858_ACEOF
22859cat confdefs.h >>conftest.$ac_ext
22860cat >>conftest.$ac_ext <<_ACEOF
22861/* end confdefs.h. */
22862 #include <sys/types.h>
22863int
22864main ()
22865{
22866 u_int a; a = 1;
22867 ;
22868 return 0;
22869}
22870_ACEOF
22871rm -f conftest.$ac_objext
22872if { (ac_try="$ac_compile"
22873case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876esac
22877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22879 ac_status=$?
22880 grep -v '^ *+' conftest.er1 >conftest.err
22881 rm -f conftest.er1
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } &&
22885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22886 { (case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889esac
22890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_try") 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; } &&
22895 { ac_try='test -s conftest.$ac_objext'
22896 { (case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22899esac
22900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_try") 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; }; then
22905 ac_cv_have_u_int="yes"
22906else
22907 echo "$as_me: failed program was:" >&5
22908sed 's/^/| /' conftest.$ac_ext >&5
22909
22910 ac_cv_have_u_int="no"
22911
22912fi
22913
22914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915
22916fi
22917{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
22918echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
22919if test "x$ac_cv_have_u_int" = "xyes" ; then
22920
22921cat >>confdefs.h <<\_ACEOF
22922#define HAVE_U_INT 1
22923_ACEOF
22924
22925 have_u_int=1
22926fi
22927
22928{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
22929echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
22930if test "${ac_cv_have_intxx_t+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
22932else
22933
22934 cat >conftest.$ac_ext <<_ACEOF
22935/* confdefs.h. */
22936_ACEOF
22937cat confdefs.h >>conftest.$ac_ext
22938cat >>conftest.$ac_ext <<_ACEOF
22939/* end confdefs.h. */
22940 #include <sys/types.h>
22941int
22942main ()
22943{
22944 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext
22950if { (ac_try="$ac_compile"
22951case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954esac
22955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_compile") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } &&
22963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22964 { (case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967esac
22968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_try") 2>&5
22970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; } &&
22973 { ac_try='test -s conftest.$ac_objext'
22974 { (case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22977esac
22978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_try") 2>&5
22980 ac_status=$?
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 ac_cv_have_intxx_t="yes"
22984else
22985 echo "$as_me: failed program was:" >&5
22986sed 's/^/| /' conftest.$ac_ext >&5
22987
22988 ac_cv_have_intxx_t="no"
22989
22990fi
22991
22992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993
22994fi
22995{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
22996echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
22997if test "x$ac_cv_have_intxx_t" = "xyes" ; then
22998
22999cat >>confdefs.h <<\_ACEOF
23000#define HAVE_INTXX_T 1
23001_ACEOF
23002
23003 have_intxx_t=1
23004fi
23005
23006if (test -z "$have_intxx_t" && \
23007 test "x$ac_cv_header_stdint_h" = "xyes")
23008then
23009 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
23010echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
23011 cat >conftest.$ac_ext <<_ACEOF
23012/* confdefs.h. */
23013_ACEOF
23014cat confdefs.h >>conftest.$ac_ext
23015cat >>conftest.$ac_ext <<_ACEOF
23016/* end confdefs.h. */
23017 #include <stdint.h>
23018int
23019main ()
23020{
23021 int8_t a; int16_t b; int32_t c; a = b = c = 1;
23022 ;
23023 return 0;
23024}
23025_ACEOF
23026rm -f conftest.$ac_objext
23027if { (ac_try="$ac_compile"
23028case "(($ac_try" in
23029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030 *) ac_try_echo=$ac_try;;
23031esac
23032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033 (eval "$ac_compile") 2>conftest.er1
23034 ac_status=$?
23035 grep -v '^ *+' conftest.er1 >conftest.err
23036 rm -f conftest.er1
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } &&
23040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23041 { (case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23044esac
23045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_try") 2>&5
23047 ac_status=$?
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; } &&
23050 { ac_try='test -s conftest.$ac_objext'
23051 { (case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23054esac
23055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_try") 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060
23061 cat >>confdefs.h <<\_ACEOF
23062#define HAVE_INTXX_T 1
23063_ACEOF
23064
23065 { echo "$as_me:$LINENO: result: yes" >&5
23066echo "${ECHO_T}yes" >&6; }
23067
23068else
23069 echo "$as_me: failed program was:" >&5
23070sed 's/^/| /' conftest.$ac_ext >&5
23071
23072 { echo "$as_me:$LINENO: result: no" >&5
23073echo "${ECHO_T}no" >&6; }
23074
23075fi
23076
23077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078fi
23079
23080{ echo "$as_me:$LINENO: checking for int64_t type" >&5
23081echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
23082if test "${ac_cv_have_int64_t+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23084else
23085
23086 cat >conftest.$ac_ext <<_ACEOF
23087/* confdefs.h. */
23088_ACEOF
23089cat confdefs.h >>conftest.$ac_ext
23090cat >>conftest.$ac_ext <<_ACEOF
23091/* end confdefs.h. */
23092
23093#include <sys/types.h>
23094#ifdef HAVE_STDINT_H
23095# include <stdint.h>
23096#endif
23097#include <sys/socket.h>
23098#ifdef HAVE_SYS_BITYPES_H
23099# include <sys/bitypes.h>
23100#endif
23101
23102int
23103main ()
23104{
23105 int64_t a; a = 1;
23106 ;
23107 return 0;
23108}
23109_ACEOF
23110rm -f conftest.$ac_objext
23111if { (ac_try="$ac_compile"
23112case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23115esac
23116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23118 ac_status=$?
23119 grep -v '^ *+' conftest.er1 >conftest.err
23120 rm -f conftest.er1
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } &&
23124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23125 { (case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23128esac
23129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_try") 2>&5
23131 ac_status=$?
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest.$ac_objext'
23135 { (case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23138esac
23139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_try") 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 ac_cv_have_int64_t="yes"
23145else
23146 echo "$as_me: failed program was:" >&5
23147sed 's/^/| /' conftest.$ac_ext >&5
23148
23149 ac_cv_have_int64_t="no"
23150
23151fi
23152
23153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154
23155fi
23156{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
23157echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
23158if test "x$ac_cv_have_int64_t" = "xyes" ; then
23159
23160cat >>confdefs.h <<\_ACEOF
23161#define HAVE_INT64_T 1
23162_ACEOF
23163
23164fi
23165
23166{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
23167echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
23168if test "${ac_cv_have_u_intxx_t+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23170else
23171
23172 cat >conftest.$ac_ext <<_ACEOF
23173/* confdefs.h. */
23174_ACEOF
23175cat confdefs.h >>conftest.$ac_ext
23176cat >>conftest.$ac_ext <<_ACEOF
23177/* end confdefs.h. */
23178 #include <sys/types.h>
23179int
23180main ()
23181{
23182 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
23183 ;
23184 return 0;
23185}
23186_ACEOF
23187rm -f conftest.$ac_objext
23188if { (ac_try="$ac_compile"
23189case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23192esac
23193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } &&
23201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23202 { (case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23205esac
23206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_try") 2>&5
23208 ac_status=$?
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } &&
23211 { ac_try='test -s conftest.$ac_objext'
23212 { (case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215esac
23216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_try") 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_have_u_intxx_t="yes"
23222else
23223 echo "$as_me: failed program was:" >&5
23224sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 ac_cv_have_u_intxx_t="no"
23227
23228fi
23229
23230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23231
23232fi
23233{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
23234echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
23235if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
23236
23237cat >>confdefs.h <<\_ACEOF
23238#define HAVE_U_INTXX_T 1
23239_ACEOF
23240
23241 have_u_intxx_t=1
23242fi
23243
23244if test -z "$have_u_intxx_t" ; then
23245 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
23246echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
23247 cat >conftest.$ac_ext <<_ACEOF
23248/* confdefs.h. */
23249_ACEOF
23250cat confdefs.h >>conftest.$ac_ext
23251cat >>conftest.$ac_ext <<_ACEOF
23252/* end confdefs.h. */
23253 #include <sys/socket.h>
23254int
23255main ()
23256{
23257 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
23258 ;
23259 return 0;
23260}
23261_ACEOF
23262rm -f conftest.$ac_objext
23263if { (ac_try="$ac_compile"
23264case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23267esac
23268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_compile") 2>conftest.er1
23270 ac_status=$?
23271 grep -v '^ *+' conftest.er1 >conftest.err
23272 rm -f conftest.er1
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
23276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23277 { (case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23280esac
23281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_try") 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; } &&
23286 { ac_try='test -s conftest.$ac_objext'
23287 { (case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23290esac
23291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_try") 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296
23297 cat >>confdefs.h <<\_ACEOF
23298#define HAVE_U_INTXX_T 1
23299_ACEOF
23300
23301 { echo "$as_me:$LINENO: result: yes" >&5
23302echo "${ECHO_T}yes" >&6; }
23303
23304else
23305 echo "$as_me: failed program was:" >&5
23306sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 { echo "$as_me:$LINENO: result: no" >&5
23309echo "${ECHO_T}no" >&6; }
23310
23311fi
23312
23313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314fi
23315
23316{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
23317echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
23318if test "${ac_cv_have_u_int64_t+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23320else
23321
23322 cat >conftest.$ac_ext <<_ACEOF
23323/* confdefs.h. */
23324_ACEOF
23325cat confdefs.h >>conftest.$ac_ext
23326cat >>conftest.$ac_ext <<_ACEOF
23327/* end confdefs.h. */
23328 #include <sys/types.h>
23329int
23330main ()
23331{
23332 u_int64_t a; a = 1;
23333 ;
23334 return 0;
23335}
23336_ACEOF
23337rm -f conftest.$ac_objext
23338if { (ac_try="$ac_compile"
23339case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23342esac
23343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23345 ac_status=$?
23346 grep -v '^ *+' conftest.er1 >conftest.err
23347 rm -f conftest.er1
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23352 { (case "(($ac_try" in
23353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354 *) ac_try_echo=$ac_try;;
23355esac
23356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357 (eval "$ac_try") 2>&5
23358 ac_status=$?
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; } &&
23361 { ac_try='test -s conftest.$ac_objext'
23362 { (case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23365esac
23366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_try") 2>&5
23368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_cv_have_u_int64_t="yes"
23372else
23373 echo "$as_me: failed program was:" >&5
23374sed 's/^/| /' conftest.$ac_ext >&5
23375
23376 ac_cv_have_u_int64_t="no"
23377
23378fi
23379
23380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23381
23382fi
23383{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
23384echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
23385if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
23386
23387cat >>confdefs.h <<\_ACEOF
23388#define HAVE_U_INT64_T 1
23389_ACEOF
23390
23391 have_u_int64_t=1
23392fi
23393
23394if test -z "$have_u_int64_t" ; then
23395 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
23396echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
23397 cat >conftest.$ac_ext <<_ACEOF
23398/* confdefs.h. */
23399_ACEOF
23400cat confdefs.h >>conftest.$ac_ext
23401cat >>conftest.$ac_ext <<_ACEOF
23402/* end confdefs.h. */
23403 #include <sys/bitypes.h>
23404int
23405main ()
23406{
23407 u_int64_t a; a = 1
23408 ;
23409 return 0;
23410}
23411_ACEOF
23412rm -f conftest.$ac_objext
23413if { (ac_try="$ac_compile"
23414case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23417esac
23418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_compile") 2>conftest.er1
23420 ac_status=$?
23421 grep -v '^ *+' conftest.er1 >conftest.err
23422 rm -f conftest.er1
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
23426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23427 { (case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23430esac
23431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_try") 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; } &&
23436 { ac_try='test -s conftest.$ac_objext'
23437 { (case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23440esac
23441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442 (eval "$ac_try") 2>&5
23443 ac_status=$?
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23446
23447 cat >>confdefs.h <<\_ACEOF
23448#define HAVE_U_INT64_T 1
23449_ACEOF
23450
23451 { echo "$as_me:$LINENO: result: yes" >&5
23452echo "${ECHO_T}yes" >&6; }
23453
23454else
23455 echo "$as_me: failed program was:" >&5
23456sed 's/^/| /' conftest.$ac_ext >&5
23457
23458 { echo "$as_me:$LINENO: result: no" >&5
23459echo "${ECHO_T}no" >&6; }
23460
23461fi
23462
23463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23464fi
23465
23466if test -z "$have_u_intxx_t" ; then
23467 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
23468echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
23469if test "${ac_cv_have_uintxx_t+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23471else
23472
23473 cat >conftest.$ac_ext <<_ACEOF
23474/* confdefs.h. */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h. */
23479
23480#include <sys/types.h>
23481
23482int
23483main ()
23484{
23485 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23486 ;
23487 return 0;
23488}
23489_ACEOF
23490rm -f conftest.$ac_objext
23491if { (ac_try="$ac_compile"
23492case "(($ac_try" in
23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494 *) ac_try_echo=$ac_try;;
23495esac
23496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497 (eval "$ac_compile") 2>conftest.er1
23498 ac_status=$?
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
23504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23505 { (case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508esac
23509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; } &&
23514 { ac_try='test -s conftest.$ac_objext'
23515 { (case "(($ac_try" in
23516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517 *) ac_try_echo=$ac_try;;
23518esac
23519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520 (eval "$ac_try") 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 ac_cv_have_uintxx_t="yes"
23525else
23526 echo "$as_me: failed program was:" >&5
23527sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 ac_cv_have_uintxx_t="no"
23530
23531fi
23532
23533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534
23535fi
23536{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
23537echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
23538 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
23539
23540cat >>confdefs.h <<\_ACEOF
23541#define HAVE_UINTXX_T 1
23542_ACEOF
23543
23544 fi
23545fi
23546
23547if test -z "$have_uintxx_t" ; then
23548 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
23549echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
23550 cat >conftest.$ac_ext <<_ACEOF
23551/* confdefs.h. */
23552_ACEOF
23553cat confdefs.h >>conftest.$ac_ext
23554cat >>conftest.$ac_ext <<_ACEOF
23555/* end confdefs.h. */
23556 #include <stdint.h>
23557int
23558main ()
23559{
23560 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext
23566if { (ac_try="$ac_compile"
23567case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570esac
23571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23573 ac_status=$?
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
23579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23580 { (case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23583esac
23584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_try") 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; } &&
23589 { ac_try='test -s conftest.$ac_objext'
23590 { (case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23593esac
23594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_try") 2>&5
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; }; then
23599
23600 cat >>confdefs.h <<\_ACEOF
23601#define HAVE_UINTXX_T 1
23602_ACEOF
23603
23604 { echo "$as_me:$LINENO: result: yes" >&5
23605echo "${ECHO_T}yes" >&6; }
23606
23607else
23608 echo "$as_me: failed program was:" >&5
23609sed 's/^/| /' conftest.$ac_ext >&5
23610
23611 { echo "$as_me:$LINENO: result: no" >&5
23612echo "${ECHO_T}no" >&6; }
23613
23614fi
23615
23616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617fi
23618
23619if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
23620 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
23621then
23622 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
23623echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
23624 cat >conftest.$ac_ext <<_ACEOF
23625/* confdefs.h. */
23626_ACEOF
23627cat confdefs.h >>conftest.$ac_ext
23628cat >>conftest.$ac_ext <<_ACEOF
23629/* end confdefs.h. */
23630
23631#include <sys/bitypes.h>
23632
23633int
23634main ()
23635{
23636
23637 int8_t a; int16_t b; int32_t c;
23638 u_int8_t e; u_int16_t f; u_int32_t g;
23639 a = b = c = e = f = g = 1;
23640
23641 ;
23642 return 0;
23643}
23644_ACEOF
23645rm -f conftest.$ac_objext
23646if { (ac_try="$ac_compile"
23647case "(($ac_try" in
23648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23650esac
23651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652 (eval "$ac_compile") 2>conftest.er1
23653 ac_status=$?
23654 grep -v '^ *+' conftest.er1 >conftest.err
23655 rm -f conftest.er1
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23660 { (case "(($ac_try" in
23661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662 *) ac_try_echo=$ac_try;;
23663esac
23664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665 (eval "$ac_try") 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest.$ac_objext'
23670 { (case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23673esac
23674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_try") 2>&5
23676 ac_status=$?
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; }; then
23679
23680 cat >>confdefs.h <<\_ACEOF
23681#define HAVE_U_INTXX_T 1
23682_ACEOF
23683
23684 cat >>confdefs.h <<\_ACEOF
23685#define HAVE_INTXX_T 1
23686_ACEOF
23687
23688 { echo "$as_me:$LINENO: result: yes" >&5
23689echo "${ECHO_T}yes" >&6; }
23690
23691else
23692 echo "$as_me: failed program was:" >&5
23693sed 's/^/| /' conftest.$ac_ext >&5
23694
23695 { echo "$as_me:$LINENO: result: no" >&5
23696echo "${ECHO_T}no" >&6; }
23697
23698fi
23699
23700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701fi
23702
23703
23704{ echo "$as_me:$LINENO: checking for u_char" >&5
23705echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
23706if test "${ac_cv_have_u_char+set}" = set; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23708else
23709
23710 cat >conftest.$ac_ext <<_ACEOF
23711/* confdefs.h. */
23712_ACEOF
23713cat confdefs.h >>conftest.$ac_ext
23714cat >>conftest.$ac_ext <<_ACEOF
23715/* end confdefs.h. */
23716
23717#include <sys/types.h>
23718
23719int
23720main ()
23721{
23722 u_char foo; foo = 125;
23723 ;
23724 return 0;
23725}
23726_ACEOF
23727rm -f conftest.$ac_objext
23728if { (ac_try="$ac_compile"
23729case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23732esac
23733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_compile") 2>conftest.er1
23735 ac_status=$?
23736 grep -v '^ *+' conftest.er1 >conftest.err
23737 rm -f conftest.er1
23738 cat conftest.err >&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } &&
23741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23742 { (case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23745esac
23746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_try") 2>&5
23748 ac_status=$?
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; } &&
23751 { ac_try='test -s conftest.$ac_objext'
23752 { (case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23755esac
23756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757 (eval "$ac_try") 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ac_cv_have_u_char="yes"
23762else
23763 echo "$as_me: failed program was:" >&5
23764sed 's/^/| /' conftest.$ac_ext >&5
23765
23766 ac_cv_have_u_char="no"
23767
23768fi
23769
23770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771
23772fi
23773{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
23774echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
23775if test "x$ac_cv_have_u_char" = "xyes" ; then
23776
23777cat >>confdefs.h <<\_ACEOF
23778#define HAVE_U_CHAR 1
23779_ACEOF
23780
23781fi
23782
23783
23784 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23785echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23786if test "${ac_cv_type_socklen_t+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23788else
23789 cat >conftest.$ac_ext <<_ACEOF
23790/* confdefs.h. */
23791_ACEOF
23792cat confdefs.h >>conftest.$ac_ext
23793cat >>conftest.$ac_ext <<_ACEOF
23794/* end confdefs.h. */
23795#include <sys/types.h>
23796#include <sys/socket.h>
23797
23798typedef socklen_t ac__type_new_;
23799int
23800main ()
23801{
23802if ((ac__type_new_ *) 0)
23803 return 0;
23804if (sizeof (ac__type_new_))
23805 return 0;
23806 ;
23807 return 0;
23808}
23809_ACEOF
23810rm -f conftest.$ac_objext
23811if { (ac_try="$ac_compile"
23812case "(($ac_try" in
23813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814 *) ac_try_echo=$ac_try;;
23815esac
23816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_compile") 2>conftest.er1
23818 ac_status=$?
23819 grep -v '^ *+' conftest.er1 >conftest.err
23820 rm -f conftest.er1
23821 cat conftest.err >&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } &&
23824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23825 { (case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23828esac
23829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_try") 2>&5
23831 ac_status=$?
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); }; } &&
23834 { ac_try='test -s conftest.$ac_objext'
23835 { (case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23838esac
23839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_try") 2>&5
23841 ac_status=$?
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; }; then
23844 ac_cv_type_socklen_t=yes
23845else
23846 echo "$as_me: failed program was:" >&5
23847sed 's/^/| /' conftest.$ac_ext >&5
23848
23849 ac_cv_type_socklen_t=no
23850fi
23851
23852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853fi
23854{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23855echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23856if test $ac_cv_type_socklen_t = yes; then
23857 :
23858else
23859
23860 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
23861echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
23862 if test "${curl_cv_socklen_t_equiv+set}" = set; then
23863 echo $ECHO_N "(cached) $ECHO_C" >&6
23864else
23865
23866 # Systems have either "struct sockaddr *" or
23867 # "void *" as the second argument to getpeername
23868 curl_cv_socklen_t_equiv=
23869 for arg2 in "struct sockaddr" void; do
23870 for t in int size_t unsigned long "unsigned long"; do
23871 cat >conftest.$ac_ext <<_ACEOF
23872/* confdefs.h. */
23873_ACEOF
23874cat confdefs.h >>conftest.$ac_ext
23875cat >>conftest.$ac_ext <<_ACEOF
23876/* end confdefs.h. */
23877
23878 #include <sys/types.h>
23879 #include <sys/socket.h>
23880
23881 int getpeername (int, $arg2 *, $t *);
23882
23883int
23884main ()
23885{
23886
23887 $t len;
23888 getpeername(0,0,&len);
23889
23890 ;
23891 return 0;
23892}
23893_ACEOF
23894rm -f conftest.$ac_objext
23895if { (ac_try="$ac_compile"
23896case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23899esac
23900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_compile") 2>conftest.er1
23902 ac_status=$?
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } &&
23908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23909 { (case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912esac
23913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_try") 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; } &&
23918 { ac_try='test -s conftest.$ac_objext'
23919 { (case "(($ac_try" in
23920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921 *) ac_try_echo=$ac_try;;
23922esac
23923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924 (eval "$ac_try") 2>&5
23925 ac_status=$?
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); }; }; then
23928
23929 curl_cv_socklen_t_equiv="$t"
23930 break
23931
23932else
23933 echo "$as_me: failed program was:" >&5
23934sed 's/^/| /' conftest.$ac_ext >&5
23935
23936
23937fi
23938
23939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940 done
23941 done
23942
23943 if test "x$curl_cv_socklen_t_equiv" = x; then
23944 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
23945echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
23946 { (exit 1); exit 1; }; }
23947 fi
23948
23949fi
23950
23951 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
23952echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
23953
23954cat >>confdefs.h <<_ACEOF
23955#define socklen_t $curl_cv_socklen_t_equiv
23956_ACEOF
23957
23958fi
23959
23960
23961
23962{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23963echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23964if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23966else
23967 cat >conftest.$ac_ext <<_ACEOF
23968/* confdefs.h. */
23969_ACEOF
23970cat confdefs.h >>conftest.$ac_ext
23971cat >>conftest.$ac_ext <<_ACEOF
23972/* end confdefs.h. */
23973#include <signal.h>
23974
23975typedef sig_atomic_t ac__type_new_;
23976int
23977main ()
23978{
23979if ((ac__type_new_ *) 0)
23980 return 0;
23981if (sizeof (ac__type_new_))
23982 return 0;
23983 ;
23984 return 0;
23985}
23986_ACEOF
23987rm -f conftest.$ac_objext
23988if { (ac_try="$ac_compile"
23989case "(($ac_try" in
23990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991 *) ac_try_echo=$ac_try;;
23992esac
23993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23995 ac_status=$?
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } &&
24001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24002 { (case "(($ac_try" in
24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24005esac
24006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007 (eval "$ac_try") 2>&5
24008 ac_status=$?
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; } &&
24011 { ac_try='test -s conftest.$ac_objext'
24012 { (case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24015esac
24016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_try") 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 ac_cv_type_sig_atomic_t=yes
24022else
24023 echo "$as_me: failed program was:" >&5
24024sed 's/^/| /' conftest.$ac_ext >&5
24025
24026 ac_cv_type_sig_atomic_t=no
24027fi
24028
24029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030fi
24031{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24032echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24033if test $ac_cv_type_sig_atomic_t = yes; then
24034
24035cat >>confdefs.h <<_ACEOF
24036#define HAVE_SIG_ATOMIC_T 1
24037_ACEOF
24038
24039
24040fi
24041
24042
24043{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
24044echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
24045if test "${ac_cv_type_in_addr_t+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24047else
24048 cat >conftest.$ac_ext <<_ACEOF
24049/* confdefs.h. */
24050_ACEOF
24051cat confdefs.h >>conftest.$ac_ext
24052cat >>conftest.$ac_ext <<_ACEOF
24053/* end confdefs.h. */
24054#include <sys/types.h>
24055#include <netinet/in.h>
24056
24057typedef in_addr_t ac__type_new_;
24058int
24059main ()
24060{
24061if ((ac__type_new_ *) 0)
24062 return 0;
24063if (sizeof (ac__type_new_))
24064 return 0;
24065 ;
24066 return 0;
24067}
24068_ACEOF
24069rm -f conftest.$ac_objext
24070if { (ac_try="$ac_compile"
24071case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24074esac
24075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_compile") 2>conftest.er1
24077 ac_status=$?
24078 grep -v '^ *+' conftest.er1 >conftest.err
24079 rm -f conftest.er1
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } &&
24083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24084 { (case "(($ac_try" in
24085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24086 *) ac_try_echo=$ac_try;;
24087esac
24088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24089 (eval "$ac_try") 2>&5
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; } &&
24093 { ac_try='test -s conftest.$ac_objext'
24094 { (case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24097esac
24098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_try") 2>&5
24100 ac_status=$?
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); }; }; then
24103 ac_cv_type_in_addr_t=yes
24104else
24105 echo "$as_me: failed program was:" >&5
24106sed 's/^/| /' conftest.$ac_ext >&5
24107
24108 ac_cv_type_in_addr_t=no
24109fi
24110
24111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112fi
24113{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
24114echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
24115if test $ac_cv_type_in_addr_t = yes; then
24116
24117cat >>confdefs.h <<_ACEOF
24118#define HAVE_IN_ADDR_T 1
24119_ACEOF
24120
24121
24122fi
24123
24124
24125{ echo "$as_me:$LINENO: checking for size_t" >&5
24126echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24127if test "${ac_cv_have_size_t+set}" = set; then
24128 echo $ECHO_N "(cached) $ECHO_C" >&6
24129else
24130
24131 cat >conftest.$ac_ext <<_ACEOF
24132/* confdefs.h. */
24133_ACEOF
24134cat confdefs.h >>conftest.$ac_ext
24135cat >>conftest.$ac_ext <<_ACEOF
24136/* end confdefs.h. */
24137
24138#include <sys/types.h>
24139
24140int
24141main ()
24142{
24143 size_t foo; foo = 1235;
24144 ;
24145 return 0;
24146}
24147_ACEOF
24148rm -f conftest.$ac_objext
24149if { (ac_try="$ac_compile"
24150case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24153esac
24154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } &&
24162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24163 { (case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24166esac
24167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_try") 2>&5
24169 ac_status=$?
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; } &&
24172 { ac_try='test -s conftest.$ac_objext'
24173 { (case "(($ac_try" in
24174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24176esac
24177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_try") 2>&5
24179 ac_status=$?
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 ac_cv_have_size_t="yes"
24183else
24184 echo "$as_me: failed program was:" >&5
24185sed 's/^/| /' conftest.$ac_ext >&5
24186
24187 ac_cv_have_size_t="no"
24188
24189fi
24190
24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192
24193fi
24194{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
24195echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
24196if test "x$ac_cv_have_size_t" = "xyes" ; then
24197
24198cat >>confdefs.h <<\_ACEOF
24199#define HAVE_SIZE_T 1
24200_ACEOF
24201
24202fi
24203
24204{ echo "$as_me:$LINENO: checking for ssize_t" >&5
24205echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24206if test "${ac_cv_have_ssize_t+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24208else
24209
24210 cat >conftest.$ac_ext <<_ACEOF
24211/* confdefs.h. */
24212_ACEOF
24213cat confdefs.h >>conftest.$ac_ext
24214cat >>conftest.$ac_ext <<_ACEOF
24215/* end confdefs.h. */
24216
24217#include <sys/types.h>
24218
24219int
24220main ()
24221{
24222 ssize_t foo; foo = 1235;
24223 ;
24224 return 0;
24225}
24226_ACEOF
24227rm -f conftest.$ac_objext
24228if { (ac_try="$ac_compile"
24229case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24232esac
24233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_compile") 2>conftest.er1
24235 ac_status=$?
24236 grep -v '^ *+' conftest.er1 >conftest.err
24237 rm -f conftest.er1
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } &&
24241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24242 { (case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24245esac
24246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_try") 2>&5
24248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; } &&
24251 { ac_try='test -s conftest.$ac_objext'
24252 { (case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24255esac
24256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_try") 2>&5
24258 ac_status=$?
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; }; then
24261 ac_cv_have_ssize_t="yes"
24262else
24263 echo "$as_me: failed program was:" >&5
24264sed 's/^/| /' conftest.$ac_ext >&5
24265
24266 ac_cv_have_ssize_t="no"
24267
24268fi
24269
24270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24271
24272fi
24273{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
24274echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
24275if test "x$ac_cv_have_ssize_t" = "xyes" ; then
24276
24277cat >>confdefs.h <<\_ACEOF
24278#define HAVE_SSIZE_T 1
24279_ACEOF
24280
24281fi
24282
24283{ echo "$as_me:$LINENO: checking for clock_t" >&5
24284echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
24285if test "${ac_cv_have_clock_t+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24287else
24288
24289 cat >conftest.$ac_ext <<_ACEOF
24290/* confdefs.h. */
24291_ACEOF
24292cat confdefs.h >>conftest.$ac_ext
24293cat >>conftest.$ac_ext <<_ACEOF
24294/* end confdefs.h. */
24295
24296#include <time.h>
24297
24298int
24299main ()
24300{
24301 clock_t foo; foo = 1235;
24302 ;
24303 return 0;
24304}
24305_ACEOF
24306rm -f conftest.$ac_objext
24307if { (ac_try="$ac_compile"
24308case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24311esac
24312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_compile") 2>conftest.er1
24314 ac_status=$?
24315 grep -v '^ *+' conftest.er1 >conftest.err
24316 rm -f conftest.er1
24317 cat conftest.err >&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } &&
24320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24321 { (case "(($ac_try" in
24322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323 *) ac_try_echo=$ac_try;;
24324esac
24325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326 (eval "$ac_try") 2>&5
24327 ac_status=$?
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); }; } &&
24330 { ac_try='test -s conftest.$ac_objext'
24331 { (case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24334esac
24335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_try") 2>&5
24337 ac_status=$?
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; }; then
24340 ac_cv_have_clock_t="yes"
24341else
24342 echo "$as_me: failed program was:" >&5
24343sed 's/^/| /' conftest.$ac_ext >&5
24344
24345 ac_cv_have_clock_t="no"
24346
24347fi
24348
24349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350
24351fi
24352{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
24353echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
24354if test "x$ac_cv_have_clock_t" = "xyes" ; then
24355
24356cat >>confdefs.h <<\_ACEOF
24357#define HAVE_CLOCK_T 1
24358_ACEOF
24359
24360fi
24361
24362{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
24363echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
24364if test "${ac_cv_have_sa_family_t+set}" = set; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24366else
24367
24368 cat >conftest.$ac_ext <<_ACEOF
24369/* confdefs.h. */
24370_ACEOF
24371cat confdefs.h >>conftest.$ac_ext
24372cat >>conftest.$ac_ext <<_ACEOF
24373/* end confdefs.h. */
24374
24375#include <sys/types.h>
24376#include <sys/socket.h>
24377
24378int
24379main ()
24380{
24381 sa_family_t foo; foo = 1235;
24382 ;
24383 return 0;
24384}
24385_ACEOF
24386rm -f conftest.$ac_objext
24387if { (ac_try="$ac_compile"
24388case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24391esac
24392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24394 ac_status=$?
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } &&
24400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24401 { (case "(($ac_try" in
24402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24404esac
24405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406 (eval "$ac_try") 2>&5
24407 ac_status=$?
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; } &&
24410 { ac_try='test -s conftest.$ac_objext'
24411 { (case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24414esac
24415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_try") 2>&5
24417 ac_status=$?
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; }; then
24420 ac_cv_have_sa_family_t="yes"
24421else
24422 echo "$as_me: failed program was:" >&5
24423sed 's/^/| /' conftest.$ac_ext >&5
24424
24425 cat >conftest.$ac_ext <<_ACEOF
24426/* confdefs.h. */
24427_ACEOF
24428cat confdefs.h >>conftest.$ac_ext
24429cat >>conftest.$ac_ext <<_ACEOF
24430/* end confdefs.h. */
24431
24432#include <sys/types.h>
24433#include <sys/socket.h>
24434#include <netinet/in.h>
24435
24436int
24437main ()
24438{
24439 sa_family_t foo; foo = 1235;
24440 ;
24441 return 0;
24442}
24443_ACEOF
24444rm -f conftest.$ac_objext
24445if { (ac_try="$ac_compile"
24446case "(($ac_try" in
24447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448 *) ac_try_echo=$ac_try;;
24449esac
24450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451 (eval "$ac_compile") 2>conftest.er1
24452 ac_status=$?
24453 grep -v '^ *+' conftest.er1 >conftest.err
24454 rm -f conftest.er1
24455 cat conftest.err >&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } &&
24458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24459 { (case "(($ac_try" in
24460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461 *) ac_try_echo=$ac_try;;
24462esac
24463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464 (eval "$ac_try") 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; } &&
24468 { ac_try='test -s conftest.$ac_objext'
24469 { (case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24472esac
24473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474 (eval "$ac_try") 2>&5
24475 ac_status=$?
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; }; then
24478 ac_cv_have_sa_family_t="yes"
24479else
24480 echo "$as_me: failed program was:" >&5
24481sed 's/^/| /' conftest.$ac_ext >&5
24482
24483 ac_cv_have_sa_family_t="no"
24484
24485fi
24486
24487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24488
24489fi
24490
24491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492
24493fi
24494{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
24495echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
24496if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
24497
24498cat >>confdefs.h <<\_ACEOF
24499#define HAVE_SA_FAMILY_T 1
24500_ACEOF
24501
24502fi
24503
24504{ echo "$as_me:$LINENO: checking for pid_t" >&5
24505echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24506if test "${ac_cv_have_pid_t+set}" = set; then
24507 echo $ECHO_N "(cached) $ECHO_C" >&6
24508else
24509
24510 cat >conftest.$ac_ext <<_ACEOF
24511/* confdefs.h. */
24512_ACEOF
24513cat confdefs.h >>conftest.$ac_ext
24514cat >>conftest.$ac_ext <<_ACEOF
24515/* end confdefs.h. */
24516
24517#include <sys/types.h>
24518
24519int
24520main ()
24521{
24522 pid_t foo; foo = 1235;
24523 ;
24524 return 0;
24525}
24526_ACEOF
24527rm -f conftest.$ac_objext
24528if { (ac_try="$ac_compile"
24529case "(($ac_try" in
24530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531 *) ac_try_echo=$ac_try;;
24532esac
24533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24534 (eval "$ac_compile") 2>conftest.er1
24535 ac_status=$?
24536 grep -v '^ *+' conftest.er1 >conftest.err
24537 rm -f conftest.er1
24538 cat conftest.err >&5
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } &&
24541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24542 { (case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24545esac
24546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547 (eval "$ac_try") 2>&5
24548 ac_status=$?
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; } &&
24551 { ac_try='test -s conftest.$ac_objext'
24552 { (case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555esac
24556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_try") 2>&5
24558 ac_status=$?
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; }; then
24561 ac_cv_have_pid_t="yes"
24562else
24563 echo "$as_me: failed program was:" >&5
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ac_cv_have_pid_t="no"
24567
24568fi
24569
24570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571
24572fi
24573{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
24574echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
24575if test "x$ac_cv_have_pid_t" = "xyes" ; then
24576
24577cat >>confdefs.h <<\_ACEOF
24578#define HAVE_PID_T 1
24579_ACEOF
24580
24581fi
24582
24583{ echo "$as_me:$LINENO: checking for mode_t" >&5
24584echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24585if test "${ac_cv_have_mode_t+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24587else
24588
24589 cat >conftest.$ac_ext <<_ACEOF
24590/* confdefs.h. */
24591_ACEOF
24592cat confdefs.h >>conftest.$ac_ext
24593cat >>conftest.$ac_ext <<_ACEOF
24594/* end confdefs.h. */
24595
24596#include <sys/types.h>
24597
24598int
24599main ()
24600{
24601 mode_t foo; foo = 1235;
24602 ;
24603 return 0;
24604}
24605_ACEOF
24606rm -f conftest.$ac_objext
24607if { (ac_try="$ac_compile"
24608case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24611esac
24612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_compile") 2>conftest.er1
24614 ac_status=$?
24615 grep -v '^ *+' conftest.er1 >conftest.err
24616 rm -f conftest.er1
24617 cat conftest.err >&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } &&
24620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24621 { (case "(($ac_try" in
24622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623 *) ac_try_echo=$ac_try;;
24624esac
24625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_try") 2>&5
24627 ac_status=$?
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; } &&
24630 { ac_try='test -s conftest.$ac_objext'
24631 { (case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634esac
24635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_try") 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 ac_cv_have_mode_t="yes"
24641else
24642 echo "$as_me: failed program was:" >&5
24643sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 ac_cv_have_mode_t="no"
24646
24647fi
24648
24649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650
24651fi
24652{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
24653echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
24654if test "x$ac_cv_have_mode_t" = "xyes" ; then
24655
24656cat >>confdefs.h <<\_ACEOF
24657#define HAVE_MODE_T 1
24658_ACEOF
24659
24660fi
24661
24662
24663{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24664echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24665if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24667else
24668
24669 cat >conftest.$ac_ext <<_ACEOF
24670/* confdefs.h. */
24671_ACEOF
24672cat confdefs.h >>conftest.$ac_ext
24673cat >>conftest.$ac_ext <<_ACEOF
24674/* end confdefs.h. */
24675
24676#include <sys/types.h>
24677#include <sys/socket.h>
24678
24679int
24680main ()
24681{
24682 struct sockaddr_storage s;
24683 ;
24684 return 0;
24685}
24686_ACEOF
24687rm -f conftest.$ac_objext
24688if { (ac_try="$ac_compile"
24689case "(($ac_try" in
24690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24691 *) ac_try_echo=$ac_try;;
24692esac
24693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24694 (eval "$ac_compile") 2>conftest.er1
24695 ac_status=$?
24696 grep -v '^ *+' conftest.er1 >conftest.err
24697 rm -f conftest.er1
24698 cat conftest.err >&5
24699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700 (exit $ac_status); } &&
24701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24702 { (case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24705esac
24706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_try") 2>&5
24708 ac_status=$?
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; } &&
24711 { ac_try='test -s conftest.$ac_objext'
24712 { (case "(($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_try") 2>&5
24718 ac_status=$?
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; }; then
24721 ac_cv_have_struct_sockaddr_storage="yes"
24722else
24723 echo "$as_me: failed program was:" >&5
24724sed 's/^/| /' conftest.$ac_ext >&5
24725
24726 ac_cv_have_struct_sockaddr_storage="no"
24727
24728fi
24729
24730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24731
24732fi
24733{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
24734echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
24735if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
24736
24737cat >>confdefs.h <<\_ACEOF
24738#define HAVE_STRUCT_SOCKADDR_STORAGE 1
24739_ACEOF
24740
24741fi
24742
24743{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24744echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24745if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24747else
24748
24749 cat >conftest.$ac_ext <<_ACEOF
24750/* confdefs.h. */
24751_ACEOF
24752cat confdefs.h >>conftest.$ac_ext
24753cat >>conftest.$ac_ext <<_ACEOF
24754/* end confdefs.h. */
24755
24756#include <sys/types.h>
24757#include <netinet/in.h>
24758
24759int
24760main ()
24761{
24762 struct sockaddr_in6 s; s.sin6_family = 0;
24763 ;
24764 return 0;
24765}
24766_ACEOF
24767rm -f conftest.$ac_objext
24768if { (ac_try="$ac_compile"
24769case "(($ac_try" in
24770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771 *) ac_try_echo=$ac_try;;
24772esac
24773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774 (eval "$ac_compile") 2>conftest.er1
24775 ac_status=$?
24776 grep -v '^ *+' conftest.er1 >conftest.err
24777 rm -f conftest.er1
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } &&
24781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24782 { (case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24785esac
24786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787 (eval "$ac_try") 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; } &&
24791 { ac_try='test -s conftest.$ac_objext'
24792 { (case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24795esac
24796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_try") 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_have_struct_sockaddr_in6="yes"
24802else
24803 echo "$as_me: failed program was:" >&5
24804sed 's/^/| /' conftest.$ac_ext >&5
24805
24806 ac_cv_have_struct_sockaddr_in6="no"
24807
24808fi
24809
24810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811
24812fi
24813{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
24814echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
24815if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
24816
24817cat >>confdefs.h <<\_ACEOF
24818#define HAVE_STRUCT_SOCKADDR_IN6 1
24819_ACEOF
24820
24821fi
24822
24823{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24824echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24825if test "${ac_cv_have_struct_in6_addr+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24827else
24828
24829 cat >conftest.$ac_ext <<_ACEOF
24830/* confdefs.h. */
24831_ACEOF
24832cat confdefs.h >>conftest.$ac_ext
24833cat >>conftest.$ac_ext <<_ACEOF
24834/* end confdefs.h. */
24835
24836#include <sys/types.h>
24837#include <netinet/in.h>
24838
24839int
24840main ()
24841{
24842 struct in6_addr s; s.s6_addr[0] = 0;
24843 ;
24844 return 0;
24845}
24846_ACEOF
24847rm -f conftest.$ac_objext
24848if { (ac_try="$ac_compile"
24849case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24852esac
24853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_compile") 2>conftest.er1
24855 ac_status=$?
24856 grep -v '^ *+' conftest.er1 >conftest.err
24857 rm -f conftest.er1
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } &&
24861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24862 { (case "(($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_try") 2>&5
24868 ac_status=$?
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); }; } &&
24871 { ac_try='test -s conftest.$ac_objext'
24872 { (case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24875esac
24876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877 (eval "$ac_try") 2>&5
24878 ac_status=$?
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); }; }; then
24881 ac_cv_have_struct_in6_addr="yes"
24882else
24883 echo "$as_me: failed program was:" >&5
24884sed 's/^/| /' conftest.$ac_ext >&5
24885
24886 ac_cv_have_struct_in6_addr="no"
24887
24888fi
24889
24890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891
24892fi
24893{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
24894echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
24895if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
24896
24897cat >>confdefs.h <<\_ACEOF
24898#define HAVE_STRUCT_IN6_ADDR 1
24899_ACEOF
24900
24901fi
24902
24903{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24904echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24905if test "${ac_cv_have_struct_addrinfo+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24907else
24908
24909 cat >conftest.$ac_ext <<_ACEOF
24910/* confdefs.h. */
24911_ACEOF
24912cat confdefs.h >>conftest.$ac_ext
24913cat >>conftest.$ac_ext <<_ACEOF
24914/* end confdefs.h. */
24915
24916#include <sys/types.h>
24917#include <sys/socket.h>
24918#include <netdb.h>
24919
24920int
24921main ()
24922{
24923 struct addrinfo s; s.ai_flags = AI_PASSIVE;
24924 ;
24925 return 0;
24926}
24927_ACEOF
24928rm -f conftest.$ac_objext
24929if { (ac_try="$ac_compile"
24930case "(($ac_try" in
24931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24932 *) ac_try_echo=$ac_try;;
24933esac
24934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24935 (eval "$ac_compile") 2>conftest.er1
24936 ac_status=$?
24937 grep -v '^ *+' conftest.er1 >conftest.err
24938 rm -f conftest.er1
24939 cat conftest.err >&5
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } &&
24942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24943 { (case "(($ac_try" in
24944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945 *) ac_try_echo=$ac_try;;
24946esac
24947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948 (eval "$ac_try") 2>&5
24949 ac_status=$?
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; } &&
24952 { ac_try='test -s conftest.$ac_objext'
24953 { (case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24956esac
24957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958 (eval "$ac_try") 2>&5
24959 ac_status=$?
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; }; then
24962 ac_cv_have_struct_addrinfo="yes"
24963else
24964 echo "$as_me: failed program was:" >&5
24965sed 's/^/| /' conftest.$ac_ext >&5
24966
24967 ac_cv_have_struct_addrinfo="no"
24968
24969fi
24970
24971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24972
24973fi
24974{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
24975echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
24976if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
24977
24978cat >>confdefs.h <<\_ACEOF
24979#define HAVE_STRUCT_ADDRINFO 1
24980_ACEOF
24981
24982fi
24983
24984{ echo "$as_me:$LINENO: checking for struct timeval" >&5
24985echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
24986if test "${ac_cv_have_struct_timeval+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24988else
24989
24990 cat >conftest.$ac_ext <<_ACEOF
24991/* confdefs.h. */
24992_ACEOF
24993cat confdefs.h >>conftest.$ac_ext
24994cat >>conftest.$ac_ext <<_ACEOF
24995/* end confdefs.h. */
24996 #include <sys/time.h>
24997int
24998main ()
24999{
25000 struct timeval tv; tv.tv_sec = 1;
25001 ;
25002 return 0;
25003}
25004_ACEOF
25005rm -f conftest.$ac_objext
25006if { (ac_try="$ac_compile"
25007case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25010esac
25011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_compile") 2>conftest.er1
25013 ac_status=$?
25014 grep -v '^ *+' conftest.er1 >conftest.err
25015 rm -f conftest.er1
25016 cat conftest.err >&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
25019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25020 { (case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25023esac
25024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025 (eval "$ac_try") 2>&5
25026 ac_status=$?
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest.$ac_objext'
25030 { (case "(($ac_try" in
25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 *) ac_try_echo=$ac_try;;
25033esac
25034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035 (eval "$ac_try") 2>&5
25036 ac_status=$?
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); }; }; then
25039 ac_cv_have_struct_timeval="yes"
25040else
25041 echo "$as_me: failed program was:" >&5
25042sed 's/^/| /' conftest.$ac_ext >&5
25043
25044 ac_cv_have_struct_timeval="no"
25045
25046fi
25047
25048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049
25050fi
25051{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
25052echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
25053if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
25054
25055cat >>confdefs.h <<\_ACEOF
25056#define HAVE_STRUCT_TIMEVAL 1
25057_ACEOF
25058
25059 have_struct_timeval=1
25060fi
25061
25062{ echo "$as_me:$LINENO: checking for struct timespec" >&5
25063echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
25064if test "${ac_cv_type_struct_timespec+set}" = set; then
25065 echo $ECHO_N "(cached) $ECHO_C" >&6
25066else
25067 cat >conftest.$ac_ext <<_ACEOF
25068/* confdefs.h. */
25069_ACEOF
25070cat confdefs.h >>conftest.$ac_ext
25071cat >>conftest.$ac_ext <<_ACEOF
25072/* end confdefs.h. */
25073$ac_includes_default
25074typedef struct timespec ac__type_new_;
25075int
25076main ()
25077{
25078if ((ac__type_new_ *) 0)
25079 return 0;
25080if (sizeof (ac__type_new_))
25081 return 0;
25082 ;
25083 return 0;
25084}
25085_ACEOF
25086rm -f conftest.$ac_objext
25087if { (ac_try="$ac_compile"
25088case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25091esac
25092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_compile") 2>conftest.er1
25094 ac_status=$?
25095 grep -v '^ *+' conftest.er1 >conftest.err
25096 rm -f conftest.er1
25097 cat conftest.err >&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } &&
25100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25101 { (case "(($ac_try" in
25102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103 *) ac_try_echo=$ac_try;;
25104esac
25105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106 (eval "$ac_try") 2>&5
25107 ac_status=$?
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest.$ac_objext'
25111 { (case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25114esac
25115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_try") 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25120 ac_cv_type_struct_timespec=yes
25121else
25122 echo "$as_me: failed program was:" >&5
25123sed 's/^/| /' conftest.$ac_ext >&5
25124
25125 ac_cv_type_struct_timespec=no
25126fi
25127
25128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129fi
25130{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
25131echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
25132if test $ac_cv_type_struct_timespec = yes; then
25133
25134cat >>confdefs.h <<_ACEOF
25135#define HAVE_STRUCT_TIMESPEC 1
25136_ACEOF
25137
25138
25139fi
25140
25141
25142# We need int64_t or else certian parts of the compile will fail.
25143if test "x$ac_cv_have_int64_t" = "xno" && \
25144 test "x$ac_cv_sizeof_long_int" != "x8" && \
25145 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
25146 echo "OpenSSH requires int64_t support. Contact your vendor or install"
25147 echo "an alternative compiler (I.E., GCC) before continuing."
25148 echo ""
25149 exit 1;
25150else
25151 if test "$cross_compiling" = yes; then
25152 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
25153echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
25154
25155else
25156 cat >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
25163#include <stdio.h>
25164#include <string.h>
25165#ifdef HAVE_SNPRINTF
25166main()
25167{
25168 char buf[50];
25169 char expected_out[50];
25170 int mazsize = 50 ;
25171#if (SIZEOF_LONG_INT == 8)
25172 long int num = 0x7fffffffffffffff;
25173#else
25174 long long num = 0x7fffffffffffffffll;
25175#endif
25176 strcpy(expected_out, "9223372036854775807");
25177 snprintf(buf, mazsize, "%lld", num);
25178 if(strcmp(buf, expected_out) != 0)
25179 exit(1);
25180 exit(0);
25181}
25182#else
25183main() { exit(0); }
25184#endif
25185
25186_ACEOF
25187rm -f conftest$ac_exeext
25188if { (ac_try="$ac_link"
25189case "(($ac_try" in
25190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191 *) ac_try_echo=$ac_try;;
25192esac
25193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194 (eval "$ac_link") 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25198 { (case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201esac
25202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_try") 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; }; then
25207 true
25208else
25209 echo "$as_me: program exited with status $ac_status" >&5
25210echo "$as_me: failed program was:" >&5
25211sed 's/^/| /' conftest.$ac_ext >&5
25212
25213( exit $ac_status )
25214 cat >>confdefs.h <<\_ACEOF
25215#define BROKEN_SNPRINTF 1
25216_ACEOF
25217
25218fi
25219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25220fi
25221
25222
25223fi
25224
25225
25226# look for field 'ut_host' in header 'utmp.h'
25227 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25228 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
25229 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
25230echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
25231 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25232 echo $ECHO_N "(cached) $ECHO_C" >&6
25233else
25234
25235 cat >conftest.$ac_ext <<_ACEOF
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
25241#include <utmp.h>
25242
25243_ACEOF
25244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25245 $EGREP "ut_host" >/dev/null 2>&1; then
25246 eval "$ossh_varname=yes"
25247else
25248 eval "$ossh_varname=no"
25249fi
25250rm -f conftest*
25251
25252fi
25253
25254 ossh_result=`eval 'echo $'"$ossh_varname"`
25255 if test -n "`echo $ossh_varname`"; then
25256 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25257echo "${ECHO_T}$ossh_result" >&6; }
25258 if test "x$ossh_result" = "xyes"; then
25259
25260cat >>confdefs.h <<\_ACEOF
25261#define HAVE_HOST_IN_UTMP 1
25262_ACEOF
25263
25264 fi
25265 else
25266 { echo "$as_me:$LINENO: result: no" >&5
25267echo "${ECHO_T}no" >&6; }
25268 fi
25269
25270
25271# look for field 'ut_host' in header 'utmpx.h'
25272 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25273 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
25274 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
25275echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
25276 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25278else
25279
25280 cat >conftest.$ac_ext <<_ACEOF
25281/* confdefs.h. */
25282_ACEOF
25283cat confdefs.h >>conftest.$ac_ext
25284cat >>conftest.$ac_ext <<_ACEOF
25285/* end confdefs.h. */
25286#include <utmpx.h>
25287
25288_ACEOF
25289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25290 $EGREP "ut_host" >/dev/null 2>&1; then
25291 eval "$ossh_varname=yes"
25292else
25293 eval "$ossh_varname=no"
25294fi
25295rm -f conftest*
25296
25297fi
25298
25299 ossh_result=`eval 'echo $'"$ossh_varname"`
25300 if test -n "`echo $ossh_varname`"; then
25301 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25302echo "${ECHO_T}$ossh_result" >&6; }
25303 if test "x$ossh_result" = "xyes"; then
25304
25305cat >>confdefs.h <<\_ACEOF
25306#define HAVE_HOST_IN_UTMPX 1
25307_ACEOF
25308
25309 fi
25310 else
25311 { echo "$as_me:$LINENO: result: no" >&5
25312echo "${ECHO_T}no" >&6; }
25313 fi
25314
25315
25316# look for field 'syslen' in header 'utmpx.h'
25317 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25318 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
25319 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
25320echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
25321 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
25323else
25324
25325 cat >conftest.$ac_ext <<_ACEOF
25326/* confdefs.h. */
25327_ACEOF
25328cat confdefs.h >>conftest.$ac_ext
25329cat >>conftest.$ac_ext <<_ACEOF
25330/* end confdefs.h. */
25331#include <utmpx.h>
25332
25333_ACEOF
25334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25335 $EGREP "syslen" >/dev/null 2>&1; then
25336 eval "$ossh_varname=yes"
25337else
25338 eval "$ossh_varname=no"
25339fi
25340rm -f conftest*
25341
25342fi
25343
25344 ossh_result=`eval 'echo $'"$ossh_varname"`
25345 if test -n "`echo $ossh_varname`"; then
25346 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25347echo "${ECHO_T}$ossh_result" >&6; }
25348 if test "x$ossh_result" = "xyes"; then
25349
25350cat >>confdefs.h <<\_ACEOF
25351#define HAVE_SYSLEN_IN_UTMPX 1
25352_ACEOF
25353
25354 fi
25355 else
25356 { echo "$as_me:$LINENO: result: no" >&5
25357echo "${ECHO_T}no" >&6; }
25358 fi
25359
25360
25361# look for field 'ut_pid' in header 'utmp.h'
25362 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25363 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
25364 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
25365echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
25366 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25368else
25369
25370 cat >conftest.$ac_ext <<_ACEOF
25371/* confdefs.h. */
25372_ACEOF
25373cat confdefs.h >>conftest.$ac_ext
25374cat >>conftest.$ac_ext <<_ACEOF
25375/* end confdefs.h. */
25376#include <utmp.h>
25377
25378_ACEOF
25379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25380 $EGREP "ut_pid" >/dev/null 2>&1; then
25381 eval "$ossh_varname=yes"
25382else
25383 eval "$ossh_varname=no"
25384fi
25385rm -f conftest*
25386
25387fi
25388
25389 ossh_result=`eval 'echo $'"$ossh_varname"`
25390 if test -n "`echo $ossh_varname`"; then
25391 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25392echo "${ECHO_T}$ossh_result" >&6; }
25393 if test "x$ossh_result" = "xyes"; then
25394
25395cat >>confdefs.h <<\_ACEOF
25396#define HAVE_PID_IN_UTMP 1
25397_ACEOF
25398
25399 fi
25400 else
25401 { echo "$as_me:$LINENO: result: no" >&5
25402echo "${ECHO_T}no" >&6; }
25403 fi
25404
25405
25406# look for field 'ut_type' in header 'utmp.h'
25407 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25408 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
25409 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
25410echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
25411 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25412 echo $ECHO_N "(cached) $ECHO_C" >&6
25413else
25414
25415 cat >conftest.$ac_ext <<_ACEOF
25416/* confdefs.h. */
25417_ACEOF
25418cat confdefs.h >>conftest.$ac_ext
25419cat >>conftest.$ac_ext <<_ACEOF
25420/* end confdefs.h. */
25421#include <utmp.h>
25422
25423_ACEOF
25424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25425 $EGREP "ut_type" >/dev/null 2>&1; then
25426 eval "$ossh_varname=yes"
25427else
25428 eval "$ossh_varname=no"
25429fi
25430rm -f conftest*
25431
25432fi
25433
25434 ossh_result=`eval 'echo $'"$ossh_varname"`
25435 if test -n "`echo $ossh_varname`"; then
25436 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25437echo "${ECHO_T}$ossh_result" >&6; }
25438 if test "x$ossh_result" = "xyes"; then
25439
25440cat >>confdefs.h <<\_ACEOF
25441#define HAVE_TYPE_IN_UTMP 1
25442_ACEOF
25443
25444 fi
25445 else
25446 { echo "$as_me:$LINENO: result: no" >&5
25447echo "${ECHO_T}no" >&6; }
25448 fi
25449
25450
25451# look for field 'ut_type' in header 'utmpx.h'
25452 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25453 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
25454 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
25455echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
25456 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25458else
25459
25460 cat >conftest.$ac_ext <<_ACEOF
25461/* confdefs.h. */
25462_ACEOF
25463cat confdefs.h >>conftest.$ac_ext
25464cat >>conftest.$ac_ext <<_ACEOF
25465/* end confdefs.h. */
25466#include <utmpx.h>
25467
25468_ACEOF
25469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25470 $EGREP "ut_type" >/dev/null 2>&1; then
25471 eval "$ossh_varname=yes"
25472else
25473 eval "$ossh_varname=no"
25474fi
25475rm -f conftest*
25476
25477fi
25478
25479 ossh_result=`eval 'echo $'"$ossh_varname"`
25480 if test -n "`echo $ossh_varname`"; then
25481 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25482echo "${ECHO_T}$ossh_result" >&6; }
25483 if test "x$ossh_result" = "xyes"; then
25484
25485cat >>confdefs.h <<\_ACEOF
25486#define HAVE_TYPE_IN_UTMPX 1
25487_ACEOF
25488
25489 fi
25490 else
25491 { echo "$as_me:$LINENO: result: no" >&5
25492echo "${ECHO_T}no" >&6; }
25493 fi
25494
25495
25496# look for field 'ut_tv' in header 'utmp.h'
25497 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25498 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25499 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
25500echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
25501 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25502 echo $ECHO_N "(cached) $ECHO_C" >&6
25503else
25504
25505 cat >conftest.$ac_ext <<_ACEOF
25506/* confdefs.h. */
25507_ACEOF
25508cat confdefs.h >>conftest.$ac_ext
25509cat >>conftest.$ac_ext <<_ACEOF
25510/* end confdefs.h. */
25511#include <utmp.h>
25512
25513_ACEOF
25514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25515 $EGREP "ut_tv" >/dev/null 2>&1; then
25516 eval "$ossh_varname=yes"
25517else
25518 eval "$ossh_varname=no"
25519fi
25520rm -f conftest*
25521
25522fi
25523
25524 ossh_result=`eval 'echo $'"$ossh_varname"`
25525 if test -n "`echo $ossh_varname`"; then
25526 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25527echo "${ECHO_T}$ossh_result" >&6; }
25528 if test "x$ossh_result" = "xyes"; then
25529
25530cat >>confdefs.h <<\_ACEOF
25531#define HAVE_TV_IN_UTMP 1
25532_ACEOF
25533
25534 fi
25535 else
25536 { echo "$as_me:$LINENO: result: no" >&5
25537echo "${ECHO_T}no" >&6; }
25538 fi
25539
25540
25541# look for field 'ut_id' in header 'utmp.h'
25542 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25543 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25544 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
25545echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
25546 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25548else
25549
25550 cat >conftest.$ac_ext <<_ACEOF
25551/* confdefs.h. */
25552_ACEOF
25553cat confdefs.h >>conftest.$ac_ext
25554cat >>conftest.$ac_ext <<_ACEOF
25555/* end confdefs.h. */
25556#include <utmp.h>
25557
25558_ACEOF
25559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25560 $EGREP "ut_id" >/dev/null 2>&1; then
25561 eval "$ossh_varname=yes"
25562else
25563 eval "$ossh_varname=no"
25564fi
25565rm -f conftest*
25566
25567fi
25568
25569 ossh_result=`eval 'echo $'"$ossh_varname"`
25570 if test -n "`echo $ossh_varname`"; then
25571 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25572echo "${ECHO_T}$ossh_result" >&6; }
25573 if test "x$ossh_result" = "xyes"; then
25574
25575cat >>confdefs.h <<\_ACEOF
25576#define HAVE_ID_IN_UTMP 1
25577_ACEOF
25578
25579 fi
25580 else
25581 { echo "$as_me:$LINENO: result: no" >&5
25582echo "${ECHO_T}no" >&6; }
25583 fi
25584
25585
25586# look for field 'ut_id' in header 'utmpx.h'
25587 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25588 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25589 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
25590echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
25591 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25593else
25594
25595 cat >conftest.$ac_ext <<_ACEOF
25596/* confdefs.h. */
25597_ACEOF
25598cat confdefs.h >>conftest.$ac_ext
25599cat >>conftest.$ac_ext <<_ACEOF
25600/* end confdefs.h. */
25601#include <utmpx.h>
25602
25603_ACEOF
25604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25605 $EGREP "ut_id" >/dev/null 2>&1; then
25606 eval "$ossh_varname=yes"
25607else
25608 eval "$ossh_varname=no"
25609fi
25610rm -f conftest*
25611
25612fi
25613
25614 ossh_result=`eval 'echo $'"$ossh_varname"`
25615 if test -n "`echo $ossh_varname`"; then
25616 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25617echo "${ECHO_T}$ossh_result" >&6; }
25618 if test "x$ossh_result" = "xyes"; then
25619
25620cat >>confdefs.h <<\_ACEOF
25621#define HAVE_ID_IN_UTMPX 1
25622_ACEOF
25623
25624 fi
25625 else
25626 { echo "$as_me:$LINENO: result: no" >&5
25627echo "${ECHO_T}no" >&6; }
25628 fi
25629
25630
25631# look for field 'ut_addr' in header 'utmp.h'
25632 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25633 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25634 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
25635echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
25636 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25638else
25639
25640 cat >conftest.$ac_ext <<_ACEOF
25641/* confdefs.h. */
25642_ACEOF
25643cat confdefs.h >>conftest.$ac_ext
25644cat >>conftest.$ac_ext <<_ACEOF
25645/* end confdefs.h. */
25646#include <utmp.h>
25647
25648_ACEOF
25649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25650 $EGREP "ut_addr" >/dev/null 2>&1; then
25651 eval "$ossh_varname=yes"
25652else
25653 eval "$ossh_varname=no"
25654fi
25655rm -f conftest*
25656
25657fi
25658
25659 ossh_result=`eval 'echo $'"$ossh_varname"`
25660 if test -n "`echo $ossh_varname`"; then
25661 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25662echo "${ECHO_T}$ossh_result" >&6; }
25663 if test "x$ossh_result" = "xyes"; then
25664
25665cat >>confdefs.h <<\_ACEOF
25666#define HAVE_ADDR_IN_UTMP 1
25667_ACEOF
25668
25669 fi
25670 else
25671 { echo "$as_me:$LINENO: result: no" >&5
25672echo "${ECHO_T}no" >&6; }
25673 fi
25674
25675
25676# look for field 'ut_addr' in header 'utmpx.h'
25677 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25678 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25679 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
25680echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
25681 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25682 echo $ECHO_N "(cached) $ECHO_C" >&6
25683else
25684
25685 cat >conftest.$ac_ext <<_ACEOF
25686/* confdefs.h. */
25687_ACEOF
25688cat confdefs.h >>conftest.$ac_ext
25689cat >>conftest.$ac_ext <<_ACEOF
25690/* end confdefs.h. */
25691#include <utmpx.h>
25692
25693_ACEOF
25694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25695 $EGREP "ut_addr" >/dev/null 2>&1; then
25696 eval "$ossh_varname=yes"
25697else
25698 eval "$ossh_varname=no"
25699fi
25700rm -f conftest*
25701
25702fi
25703
25704 ossh_result=`eval 'echo $'"$ossh_varname"`
25705 if test -n "`echo $ossh_varname`"; then
25706 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25707echo "${ECHO_T}$ossh_result" >&6; }
25708 if test "x$ossh_result" = "xyes"; then
25709
25710cat >>confdefs.h <<\_ACEOF
25711#define HAVE_ADDR_IN_UTMPX 1
25712_ACEOF
25713
25714 fi
25715 else
25716 { echo "$as_me:$LINENO: result: no" >&5
25717echo "${ECHO_T}no" >&6; }
25718 fi
25719
25720
25721# look for field 'ut_addr_v6' in header 'utmp.h'
25722 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25723 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25724 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
25725echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
25726 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25728else
25729
25730 cat >conftest.$ac_ext <<_ACEOF
25731/* confdefs.h. */
25732_ACEOF
25733cat confdefs.h >>conftest.$ac_ext
25734cat >>conftest.$ac_ext <<_ACEOF
25735/* end confdefs.h. */
25736#include <utmp.h>
25737
25738_ACEOF
25739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25740 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25741 eval "$ossh_varname=yes"
25742else
25743 eval "$ossh_varname=no"
25744fi
25745rm -f conftest*
25746
25747fi
25748
25749 ossh_result=`eval 'echo $'"$ossh_varname"`
25750 if test -n "`echo $ossh_varname`"; then
25751 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25752echo "${ECHO_T}$ossh_result" >&6; }
25753 if test "x$ossh_result" = "xyes"; then
25754
25755cat >>confdefs.h <<\_ACEOF
25756#define HAVE_ADDR_V6_IN_UTMP 1
25757_ACEOF
25758
25759 fi
25760 else
25761 { echo "$as_me:$LINENO: result: no" >&5
25762echo "${ECHO_T}no" >&6; }
25763 fi
25764
25765
25766# look for field 'ut_addr_v6' in header 'utmpx.h'
25767 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25768 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25769 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
25770echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
25771 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25772 echo $ECHO_N "(cached) $ECHO_C" >&6
25773else
25774
25775 cat >conftest.$ac_ext <<_ACEOF
25776/* confdefs.h. */
25777_ACEOF
25778cat confdefs.h >>conftest.$ac_ext
25779cat >>conftest.$ac_ext <<_ACEOF
25780/* end confdefs.h. */
25781#include <utmpx.h>
25782
25783_ACEOF
25784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25785 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25786 eval "$ossh_varname=yes"
25787else
25788 eval "$ossh_varname=no"
25789fi
25790rm -f conftest*
25791
25792fi
25793
25794 ossh_result=`eval 'echo $'"$ossh_varname"`
25795 if test -n "`echo $ossh_varname`"; then
25796 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25797echo "${ECHO_T}$ossh_result" >&6; }
25798 if test "x$ossh_result" = "xyes"; then
25799
25800cat >>confdefs.h <<\_ACEOF
25801#define HAVE_ADDR_V6_IN_UTMPX 1
25802_ACEOF
25803
25804 fi
25805 else
25806 { echo "$as_me:$LINENO: result: no" >&5
25807echo "${ECHO_T}no" >&6; }
25808 fi
25809
25810
25811# look for field 'ut_exit' in header 'utmp.h'
25812 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25813 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
25814 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
25815echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
25816 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25818else
25819
25820 cat >conftest.$ac_ext <<_ACEOF
25821/* confdefs.h. */
25822_ACEOF
25823cat confdefs.h >>conftest.$ac_ext
25824cat >>conftest.$ac_ext <<_ACEOF
25825/* end confdefs.h. */
25826#include <utmp.h>
25827
25828_ACEOF
25829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25830 $EGREP "ut_exit" >/dev/null 2>&1; then
25831 eval "$ossh_varname=yes"
25832else
25833 eval "$ossh_varname=no"
25834fi
25835rm -f conftest*
25836
25837fi
25838
25839 ossh_result=`eval 'echo $'"$ossh_varname"`
25840 if test -n "`echo $ossh_varname`"; then
25841 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25842echo "${ECHO_T}$ossh_result" >&6; }
25843 if test "x$ossh_result" = "xyes"; then
25844
25845cat >>confdefs.h <<\_ACEOF
25846#define HAVE_EXIT_IN_UTMP 1
25847_ACEOF
25848
25849 fi
25850 else
25851 { echo "$as_me:$LINENO: result: no" >&5
25852echo "${ECHO_T}no" >&6; }
25853 fi
25854
25855
25856# look for field 'ut_time' in header 'utmp.h'
25857 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25858 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25859 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
25860echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
25861 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25863else
25864
25865 cat >conftest.$ac_ext <<_ACEOF
25866/* confdefs.h. */
25867_ACEOF
25868cat confdefs.h >>conftest.$ac_ext
25869cat >>conftest.$ac_ext <<_ACEOF
25870/* end confdefs.h. */
25871#include <utmp.h>
25872
25873_ACEOF
25874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25875 $EGREP "ut_time" >/dev/null 2>&1; then
25876 eval "$ossh_varname=yes"
25877else
25878 eval "$ossh_varname=no"
25879fi
25880rm -f conftest*
25881
25882fi
25883
25884 ossh_result=`eval 'echo $'"$ossh_varname"`
25885 if test -n "`echo $ossh_varname`"; then
25886 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25887echo "${ECHO_T}$ossh_result" >&6; }
25888 if test "x$ossh_result" = "xyes"; then
25889
25890cat >>confdefs.h <<\_ACEOF
25891#define HAVE_TIME_IN_UTMP 1
25892_ACEOF
25893
25894 fi
25895 else
25896 { echo "$as_me:$LINENO: result: no" >&5
25897echo "${ECHO_T}no" >&6; }
25898 fi
25899
25900
25901# look for field 'ut_time' in header 'utmpx.h'
25902 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25903 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25904 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
25905echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
25906 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25907 echo $ECHO_N "(cached) $ECHO_C" >&6
25908else
25909
25910 cat >conftest.$ac_ext <<_ACEOF
25911/* confdefs.h. */
25912_ACEOF
25913cat confdefs.h >>conftest.$ac_ext
25914cat >>conftest.$ac_ext <<_ACEOF
25915/* end confdefs.h. */
25916#include <utmpx.h>
25917
25918_ACEOF
25919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25920 $EGREP "ut_time" >/dev/null 2>&1; then
25921 eval "$ossh_varname=yes"
25922else
25923 eval "$ossh_varname=no"
25924fi
25925rm -f conftest*
25926
25927fi
25928
25929 ossh_result=`eval 'echo $'"$ossh_varname"`
25930 if test -n "`echo $ossh_varname`"; then
25931 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25932echo "${ECHO_T}$ossh_result" >&6; }
25933 if test "x$ossh_result" = "xyes"; then
25934
25935cat >>confdefs.h <<\_ACEOF
25936#define HAVE_TIME_IN_UTMPX 1
25937_ACEOF
25938
25939 fi
25940 else
25941 { echo "$as_me:$LINENO: result: no" >&5
25942echo "${ECHO_T}no" >&6; }
25943 fi
25944
25945
25946# look for field 'ut_tv' in header 'utmpx.h'
25947 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25948 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25949 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
25950echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
25951 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25953else
25954
25955 cat >conftest.$ac_ext <<_ACEOF
25956/* confdefs.h. */
25957_ACEOF
25958cat confdefs.h >>conftest.$ac_ext
25959cat >>conftest.$ac_ext <<_ACEOF
25960/* end confdefs.h. */
25961#include <utmpx.h>
25962
25963_ACEOF
25964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25965 $EGREP "ut_tv" >/dev/null 2>&1; then
25966 eval "$ossh_varname=yes"
25967else
25968 eval "$ossh_varname=no"
25969fi
25970rm -f conftest*
25971
25972fi
25973
25974 ossh_result=`eval 'echo $'"$ossh_varname"`
25975 if test -n "`echo $ossh_varname`"; then
25976 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25977echo "${ECHO_T}$ossh_result" >&6; }
25978 if test "x$ossh_result" = "xyes"; then
25979
25980cat >>confdefs.h <<\_ACEOF
25981#define HAVE_TV_IN_UTMPX 1
25982_ACEOF
25983
25984 fi
25985 else
25986 { echo "$as_me:$LINENO: result: no" >&5
25987echo "${ECHO_T}no" >&6; }
25988 fi
25989
25990
25991{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25992echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25993if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25995else
25996 cat >conftest.$ac_ext <<_ACEOF
25997/* confdefs.h. */
25998_ACEOF
25999cat confdefs.h >>conftest.$ac_ext
26000cat >>conftest.$ac_ext <<_ACEOF
26001/* end confdefs.h. */
26002$ac_includes_default
26003int
26004main ()
26005{
26006static struct stat ac_aggr;
26007if (ac_aggr.st_blksize)
26008return 0;
26009 ;
26010 return 0;
26011}
26012_ACEOF
26013rm -f conftest.$ac_objext
26014if { (ac_try="$ac_compile"
26015case "(($ac_try" in
26016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26017 *) ac_try_echo=$ac_try;;
26018esac
26019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26020 (eval "$ac_compile") 2>conftest.er1
26021 ac_status=$?
26022 grep -v '^ *+' conftest.er1 >conftest.err
26023 rm -f conftest.er1
26024 cat conftest.err >&5
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } &&
26027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26028 { (case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26031esac
26032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033 (eval "$ac_try") 2>&5
26034 ac_status=$?
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; } &&
26037 { ac_try='test -s conftest.$ac_objext'
26038 { (case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26041esac
26042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043 (eval "$ac_try") 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ac_cv_member_struct_stat_st_blksize=yes
26048else
26049 echo "$as_me: failed program was:" >&5
26050sed 's/^/| /' conftest.$ac_ext >&5
26051
26052 cat >conftest.$ac_ext <<_ACEOF
26053/* confdefs.h. */
26054_ACEOF
26055cat confdefs.h >>conftest.$ac_ext
26056cat >>conftest.$ac_ext <<_ACEOF
26057/* end confdefs.h. */
26058$ac_includes_default
26059int
26060main ()
26061{
26062static struct stat ac_aggr;
26063if (sizeof ac_aggr.st_blksize)
26064return 0;
26065 ;
26066 return 0;
26067}
26068_ACEOF
26069rm -f conftest.$ac_objext
26070if { (ac_try="$ac_compile"
26071case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26074esac
26075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_compile") 2>conftest.er1
26077 ac_status=$?
26078 grep -v '^ *+' conftest.er1 >conftest.err
26079 rm -f conftest.er1
26080 cat conftest.err >&5
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); } &&
26083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26084 { (case "(($ac_try" in
26085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086 *) ac_try_echo=$ac_try;;
26087esac
26088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26089 (eval "$ac_try") 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } &&
26093 { ac_try='test -s conftest.$ac_objext'
26094 { (case "(($ac_try" in
26095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26096 *) ac_try_echo=$ac_try;;
26097esac
26098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26099 (eval "$ac_try") 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26103 ac_cv_member_struct_stat_st_blksize=yes
26104else
26105 echo "$as_me: failed program was:" >&5
26106sed 's/^/| /' conftest.$ac_ext >&5
26107
26108 ac_cv_member_struct_stat_st_blksize=no
26109fi
26110
26111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26112fi
26113
26114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115fi
26116{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
26117echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
26118if test $ac_cv_member_struct_stat_st_blksize = yes; then
26119
26120cat >>confdefs.h <<_ACEOF
26121#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26122_ACEOF
26123
26124
26125fi
26126
26127{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
26128echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
26129if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
26130 echo $ECHO_N "(cached) $ECHO_C" >&6
26131else
26132 cat >conftest.$ac_ext <<_ACEOF
26133/* confdefs.h. */
26134_ACEOF
26135cat confdefs.h >>conftest.$ac_ext
26136cat >>conftest.$ac_ext <<_ACEOF
26137/* end confdefs.h. */
26138
26139#include <stdio.h>
26140#if HAVE_SYS_TYPES_H
26141# include <sys/types.h>
26142#endif
26143#include <netinet/in.h>
26144#include <arpa/nameser.h>
26145#include <resolv.h>
26146
26147
26148int
26149main ()
26150{
26151static struct __res_state ac_aggr;
26152if (ac_aggr.retrans)
26153return 0;
26154 ;
26155 return 0;
26156}
26157_ACEOF
26158rm -f conftest.$ac_objext
26159if { (ac_try="$ac_compile"
26160case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26163esac
26164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_compile") 2>conftest.er1
26166 ac_status=$?
26167 grep -v '^ *+' conftest.er1 >conftest.err
26168 rm -f conftest.er1
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } &&
26172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26173 { (case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26176esac
26177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178 (eval "$ac_try") 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } &&
26182 { ac_try='test -s conftest.$ac_objext'
26183 { (case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26186esac
26187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188 (eval "$ac_try") 2>&5
26189 ac_status=$?
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 ac_cv_member_struct___res_state_retrans=yes
26193else
26194 echo "$as_me: failed program was:" >&5
26195sed 's/^/| /' conftest.$ac_ext >&5
26196
26197 cat >conftest.$ac_ext <<_ACEOF
26198/* confdefs.h. */
26199_ACEOF
26200cat confdefs.h >>conftest.$ac_ext
26201cat >>conftest.$ac_ext <<_ACEOF
26202/* end confdefs.h. */
26203
26204#include <stdio.h>
26205#if HAVE_SYS_TYPES_H
26206# include <sys/types.h>
26207#endif
26208#include <netinet/in.h>
26209#include <arpa/nameser.h>
26210#include <resolv.h>
26211
26212
26213int
26214main ()
26215{
26216static struct __res_state ac_aggr;
26217if (sizeof ac_aggr.retrans)
26218return 0;
26219 ;
26220 return 0;
26221}
26222_ACEOF
26223rm -f conftest.$ac_objext
26224if { (ac_try="$ac_compile"
26225case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26228esac
26229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230 (eval "$ac_compile") 2>conftest.er1
26231 ac_status=$?
26232 grep -v '^ *+' conftest.er1 >conftest.err
26233 rm -f conftest.er1
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } &&
26237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26238 { (case "(($ac_try" in
26239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240 *) ac_try_echo=$ac_try;;
26241esac
26242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243 (eval "$ac_try") 2>&5
26244 ac_status=$?
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; } &&
26247 { ac_try='test -s conftest.$ac_objext'
26248 { (case "(($ac_try" in
26249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250 *) ac_try_echo=$ac_try;;
26251esac
26252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253 (eval "$ac_try") 2>&5
26254 ac_status=$?
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; }; then
26257 ac_cv_member_struct___res_state_retrans=yes
26258else
26259 echo "$as_me: failed program was:" >&5
26260sed 's/^/| /' conftest.$ac_ext >&5
26261
26262 ac_cv_member_struct___res_state_retrans=no
26263fi
26264
26265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266fi
26267
26268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26269fi
26270{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
26271echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
26272if test $ac_cv_member_struct___res_state_retrans = yes; then
26273 :
26274else
26275
26276cat >>confdefs.h <<\_ACEOF
26277#define __res_state state
26278_ACEOF
26279
26280fi
26281
26282
26283{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
26284echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
26285if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26287else
26288
26289 cat >conftest.$ac_ext <<_ACEOF
26290/* confdefs.h. */
26291_ACEOF
26292cat confdefs.h >>conftest.$ac_ext
26293cat >>conftest.$ac_ext <<_ACEOF
26294/* end confdefs.h. */
26295
26296#include <sys/types.h>
26297#include <sys/socket.h>
26298
26299int
26300main ()
26301{
26302 struct sockaddr_storage s; s.ss_family = 1;
26303 ;
26304 return 0;
26305}
26306_ACEOF
26307rm -f conftest.$ac_objext
26308if { (ac_try="$ac_compile"
26309case "(($ac_try" in
26310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311 *) ac_try_echo=$ac_try;;
26312esac
26313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314 (eval "$ac_compile") 2>conftest.er1
26315 ac_status=$?
26316 grep -v '^ *+' conftest.er1 >conftest.err
26317 rm -f conftest.er1
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
26321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26322 { (case "(($ac_try" in
26323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324 *) ac_try_echo=$ac_try;;
26325esac
26326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327 (eval "$ac_try") 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; } &&
26331 { ac_try='test -s conftest.$ac_objext'
26332 { (case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26335esac
26336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_try") 2>&5
26338 ac_status=$?
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; }; then
26341 ac_cv_have_ss_family_in_struct_ss="yes"
26342else
26343 echo "$as_me: failed program was:" >&5
26344sed 's/^/| /' conftest.$ac_ext >&5
26345
26346 ac_cv_have_ss_family_in_struct_ss="no"
26347fi
26348
26349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26350
26351fi
26352{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
26353echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
26354if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
26355
26356cat >>confdefs.h <<\_ACEOF
26357#define HAVE_SS_FAMILY_IN_SS 1
26358_ACEOF
26359
26360fi
26361
26362{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
26363echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
26364if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
26365 echo $ECHO_N "(cached) $ECHO_C" >&6
26366else
26367
26368 cat >conftest.$ac_ext <<_ACEOF
26369/* confdefs.h. */
26370_ACEOF
26371cat confdefs.h >>conftest.$ac_ext
26372cat >>conftest.$ac_ext <<_ACEOF
26373/* end confdefs.h. */
26374
26375#include <sys/types.h>
26376#include <sys/socket.h>
26377
26378int
26379main ()
26380{
26381 struct sockaddr_storage s; s.__ss_family = 1;
26382 ;
26383 return 0;
26384}
26385_ACEOF
26386rm -f conftest.$ac_objext
26387if { (ac_try="$ac_compile"
26388case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26391esac
26392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_compile") 2>conftest.er1
26394 ac_status=$?
26395 grep -v '^ *+' conftest.er1 >conftest.err
26396 rm -f conftest.er1
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } &&
26400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26401 { (case "(($ac_try" in
26402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403 *) ac_try_echo=$ac_try;;
26404esac
26405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406 (eval "$ac_try") 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
26410 { ac_try='test -s conftest.$ac_objext'
26411 { (case "(($ac_try" in
26412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413 *) ac_try_echo=$ac_try;;
26414esac
26415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416 (eval "$ac_try") 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; }; then
26420 ac_cv_have___ss_family_in_struct_ss="yes"
26421else
26422 echo "$as_me: failed program was:" >&5
26423sed 's/^/| /' conftest.$ac_ext >&5
26424
26425 ac_cv_have___ss_family_in_struct_ss="no"
26426
26427fi
26428
26429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430
26431fi
26432{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
26433echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
26434if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
26435
26436cat >>confdefs.h <<\_ACEOF
26437#define HAVE___SS_FAMILY_IN_SS 1
26438_ACEOF
26439
26440fi
26441
26442{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
26443echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
26444if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26446else
26447
26448 cat >conftest.$ac_ext <<_ACEOF
26449/* confdefs.h. */
26450_ACEOF
26451cat confdefs.h >>conftest.$ac_ext
26452cat >>conftest.$ac_ext <<_ACEOF
26453/* end confdefs.h. */
26454
26455#include <pwd.h>
26456
26457int
26458main ()
26459{
26460 struct passwd p; p.pw_class = 0;
26461 ;
26462 return 0;
26463}
26464_ACEOF
26465rm -f conftest.$ac_objext
26466if { (ac_try="$ac_compile"
26467case "(($ac_try" in
26468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26470esac
26471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472 (eval "$ac_compile") 2>conftest.er1
26473 ac_status=$?
26474 grep -v '^ *+' conftest.er1 >conftest.err
26475 rm -f conftest.er1
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } &&
26479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26480 { (case "(($ac_try" in
26481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26482 *) ac_try_echo=$ac_try;;
26483esac
26484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485 (eval "$ac_try") 2>&5
26486 ac_status=$?
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); }; } &&
26489 { ac_try='test -s conftest.$ac_objext'
26490 { (case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26493esac
26494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_try") 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; }; then
26499 ac_cv_have_pw_class_in_struct_passwd="yes"
26500else
26501 echo "$as_me: failed program was:" >&5
26502sed 's/^/| /' conftest.$ac_ext >&5
26503
26504 ac_cv_have_pw_class_in_struct_passwd="no"
26505
26506fi
26507
26508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26509
26510fi
26511{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
26512echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
26513if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
26514
26515cat >>confdefs.h <<\_ACEOF
26516#define HAVE_PW_CLASS_IN_PASSWD 1
26517_ACEOF
26518
26519fi
26520
26521{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
26522echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
26523if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26525else
26526
26527 cat >conftest.$ac_ext <<_ACEOF
26528/* confdefs.h. */
26529_ACEOF
26530cat confdefs.h >>conftest.$ac_ext
26531cat >>conftest.$ac_ext <<_ACEOF
26532/* end confdefs.h. */
26533
26534#include <pwd.h>
26535
26536int
26537main ()
26538{
26539 struct passwd p; p.pw_expire = 0;
26540 ;
26541 return 0;
26542}
26543_ACEOF
26544rm -f conftest.$ac_objext
26545if { (ac_try="$ac_compile"
26546case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26549esac
26550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551 (eval "$ac_compile") 2>conftest.er1
26552 ac_status=$?
26553 grep -v '^ *+' conftest.er1 >conftest.err
26554 rm -f conftest.er1
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } &&
26558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26559 { (case "(($ac_try" in
26560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561 *) ac_try_echo=$ac_try;;
26562esac
26563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26564 (eval "$ac_try") 2>&5
26565 ac_status=$?
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; } &&
26568 { ac_try='test -s conftest.$ac_objext'
26569 { (case "(($ac_try" in
26570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571 *) ac_try_echo=$ac_try;;
26572esac
26573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574 (eval "$ac_try") 2>&5
26575 ac_status=$?
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 ac_cv_have_pw_expire_in_struct_passwd="yes"
26579else
26580 echo "$as_me: failed program was:" >&5
26581sed 's/^/| /' conftest.$ac_ext >&5
26582
26583 ac_cv_have_pw_expire_in_struct_passwd="no"
26584
26585fi
26586
26587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26588
26589fi
26590{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
26591echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
26592if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
26593
26594cat >>confdefs.h <<\_ACEOF
26595#define HAVE_PW_EXPIRE_IN_PASSWD 1
26596_ACEOF
26597
26598fi
26599
26600{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
26601echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
26602if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
26603 echo $ECHO_N "(cached) $ECHO_C" >&6
26604else
26605
26606 cat >conftest.$ac_ext <<_ACEOF
26607/* confdefs.h. */
26608_ACEOF
26609cat confdefs.h >>conftest.$ac_ext
26610cat >>conftest.$ac_ext <<_ACEOF
26611/* end confdefs.h. */
26612
26613#include <pwd.h>
26614
26615int
26616main ()
26617{
26618 struct passwd p; p.pw_change = 0;
26619 ;
26620 return 0;
26621}
26622_ACEOF
26623rm -f conftest.$ac_objext
26624if { (ac_try="$ac_compile"
26625case "(($ac_try" in
26626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627 *) ac_try_echo=$ac_try;;
26628esac
26629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26630 (eval "$ac_compile") 2>conftest.er1
26631 ac_status=$?
26632 grep -v '^ *+' conftest.er1 >conftest.err
26633 rm -f conftest.er1
26634 cat conftest.err >&5
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); } &&
26637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26638 { (case "(($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_try") 2>&5
26644 ac_status=$?
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; } &&
26647 { ac_try='test -s conftest.$ac_objext'
26648 { (case "(($ac_try" in
26649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650 *) ac_try_echo=$ac_try;;
26651esac
26652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653 (eval "$ac_try") 2>&5
26654 ac_status=$?
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; }; then
26657 ac_cv_have_pw_change_in_struct_passwd="yes"
26658else
26659 echo "$as_me: failed program was:" >&5
26660sed 's/^/| /' conftest.$ac_ext >&5
26661
26662 ac_cv_have_pw_change_in_struct_passwd="no"
26663
26664fi
26665
26666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26667
26668fi
26669{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
26670echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
26671if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
26672
26673cat >>confdefs.h <<\_ACEOF
26674#define HAVE_PW_CHANGE_IN_PASSWD 1
26675_ACEOF
26676
26677fi
26678
26679{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
26680echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
26681if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26683else
26684
26685 cat >conftest.$ac_ext <<_ACEOF
26686
26687#include <sys/types.h>
26688#include <sys/socket.h>
26689#include <sys/uio.h>
26690int main() {
26691#ifdef msg_accrights
26692#error "msg_accrights is a macro"
26693exit(1);
26694#endif
26695struct msghdr m;
26696m.msg_accrights = 0;
26697exit(0);
26698}
26699
26700_ACEOF
26701rm -f conftest.$ac_objext
26702if { (ac_try="$ac_compile"
26703case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26706esac
26707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_compile") 2>conftest.er1
26709 ac_status=$?
26710 grep -v '^ *+' conftest.er1 >conftest.err
26711 rm -f conftest.er1
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } &&
26715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26716 { (case "(($ac_try" in
26717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718 *) ac_try_echo=$ac_try;;
26719esac
26720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721 (eval "$ac_try") 2>&5
26722 ac_status=$?
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; } &&
26725 { ac_try='test -s conftest.$ac_objext'
26726 { (case "(($ac_try" in
26727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728 *) ac_try_echo=$ac_try;;
26729esac
26730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731 (eval "$ac_try") 2>&5
26732 ac_status=$?
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; }; then
26735 ac_cv_have_accrights_in_msghdr="yes"
26736else
26737 echo "$as_me: failed program was:" >&5
26738sed 's/^/| /' conftest.$ac_ext >&5
26739
26740 ac_cv_have_accrights_in_msghdr="no"
26741
26742fi
26743
26744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745
26746fi
26747{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
26748echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
26749if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
26750
26751cat >>confdefs.h <<\_ACEOF
26752#define HAVE_ACCRIGHTS_IN_MSGHDR 1
26753_ACEOF
26754
26755fi
26756
26757{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
26758echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
26759if test "${ac_cv_have_control_in_msghdr+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26761else
26762
26763 cat >conftest.$ac_ext <<_ACEOF
26764
26765#include <sys/types.h>
26766#include <sys/socket.h>
26767#include <sys/uio.h>
26768int main() {
26769#ifdef msg_control
26770#error "msg_control is a macro"
26771exit(1);
26772#endif
26773struct msghdr m;
26774m.msg_control = 0;
26775exit(0);
26776}
26777
26778_ACEOF
26779rm -f conftest.$ac_objext
26780if { (ac_try="$ac_compile"
26781case "(($ac_try" in
26782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26783 *) ac_try_echo=$ac_try;;
26784esac
26785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26786 (eval "$ac_compile") 2>conftest.er1
26787 ac_status=$?
26788 grep -v '^ *+' conftest.er1 >conftest.err
26789 rm -f conftest.er1
26790 cat conftest.err >&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
26793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26794 { (case "(($ac_try" in
26795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796 *) ac_try_echo=$ac_try;;
26797esac
26798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799 (eval "$ac_try") 2>&5
26800 ac_status=$?
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; } &&
26803 { ac_try='test -s conftest.$ac_objext'
26804 { (case "(($ac_try" in
26805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806 *) ac_try_echo=$ac_try;;
26807esac
26808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26809 (eval "$ac_try") 2>&5
26810 ac_status=$?
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); }; }; then
26813 ac_cv_have_control_in_msghdr="yes"
26814else
26815 echo "$as_me: failed program was:" >&5
26816sed 's/^/| /' conftest.$ac_ext >&5
26817
26818 ac_cv_have_control_in_msghdr="no"
26819
26820fi
26821
26822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26823
26824fi
26825{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
26826echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
26827if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
26828
26829cat >>confdefs.h <<\_ACEOF
26830#define HAVE_CONTROL_IN_MSGHDR 1
26831_ACEOF
26832
26833fi
26834
26835{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
26836echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
26837if test "${ac_cv_libc_defines___progname+set}" = set; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26839else
26840
26841 cat >conftest.$ac_ext <<_ACEOF
26842/* confdefs.h. */
26843_ACEOF
26844cat confdefs.h >>conftest.$ac_ext
26845cat >>conftest.$ac_ext <<_ACEOF
26846/* end confdefs.h. */
26847
26848int
26849main ()
26850{
26851 extern char *__progname; printf("%s", __progname);
26852 ;
26853 return 0;
26854}
26855_ACEOF
26856rm -f conftest.$ac_objext conftest$ac_exeext
26857if { (ac_try="$ac_link"
26858case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26861esac
26862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_link") 2>conftest.er1
26864 ac_status=$?
26865 grep -v '^ *+' conftest.er1 >conftest.err
26866 rm -f conftest.er1
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } &&
26870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26871 { (case "(($ac_try" in
26872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873 *) ac_try_echo=$ac_try;;
26874esac
26875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876 (eval "$ac_try") 2>&5
26877 ac_status=$?
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; } &&
26880 { ac_try='test -s conftest$ac_exeext'
26881 { (case "(($ac_try" in
26882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883 *) ac_try_echo=$ac_try;;
26884esac
26885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886 (eval "$ac_try") 2>&5
26887 ac_status=$?
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; }; then
26890 ac_cv_libc_defines___progname="yes"
26891else
26892 echo "$as_me: failed program was:" >&5
26893sed 's/^/| /' conftest.$ac_ext >&5
26894
26895 ac_cv_libc_defines___progname="no"
26896
26897fi
26898
26899rm -f core conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
26901
26902fi
26903{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
26904echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
26905if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
26906
26907cat >>confdefs.h <<\_ACEOF
26908#define HAVE___PROGNAME 1
26909_ACEOF
26910
26911fi
26912
26913{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
26914echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
26915if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26917else
26918
26919 cat >conftest.$ac_ext <<_ACEOF
26920/* confdefs.h. */
26921_ACEOF
26922cat confdefs.h >>conftest.$ac_ext
26923cat >>conftest.$ac_ext <<_ACEOF
26924/* end confdefs.h. */
26925
26926#include <stdio.h>
26927
26928int
26929main ()
26930{
26931 printf("%s", __FUNCTION__);
26932 ;
26933 return 0;
26934}
26935_ACEOF
26936rm -f conftest.$ac_objext conftest$ac_exeext
26937if { (ac_try="$ac_link"
26938case "(($ac_try" in
26939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940 *) ac_try_echo=$ac_try;;
26941esac
26942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26943 (eval "$ac_link") 2>conftest.er1
26944 ac_status=$?
26945 grep -v '^ *+' conftest.er1 >conftest.err
26946 rm -f conftest.er1
26947 cat conftest.err >&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } &&
26950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26951 { (case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_try") 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; } &&
26960 { ac_try='test -s conftest$ac_exeext'
26961 { (case "(($ac_try" in
26962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963 *) ac_try_echo=$ac_try;;
26964esac
26965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966 (eval "$ac_try") 2>&5
26967 ac_status=$?
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; }; then
26970 ac_cv_cc_implements___FUNCTION__="yes"
26971else
26972 echo "$as_me: failed program was:" >&5
26973sed 's/^/| /' conftest.$ac_ext >&5
26974
26975 ac_cv_cc_implements___FUNCTION__="no"
26976
26977fi
26978
26979rm -f core conftest.err conftest.$ac_objext \
26980 conftest$ac_exeext conftest.$ac_ext
26981
26982fi
26983{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
26984echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
26985if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
26986
26987cat >>confdefs.h <<\_ACEOF
26988#define HAVE___FUNCTION__ 1
26989_ACEOF
26990
26991fi
26992
26993{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
26994echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
26995if test "${ac_cv_cc_implements___func__+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997else
26998
26999 cat >conftest.$ac_ext <<_ACEOF
27000/* confdefs.h. */
27001_ACEOF
27002cat confdefs.h >>conftest.$ac_ext
27003cat >>conftest.$ac_ext <<_ACEOF
27004/* end confdefs.h. */
27005
27006#include <stdio.h>
27007
27008int
27009main ()
27010{
27011 printf("%s", __func__);
27012 ;
27013 return 0;
27014}
27015_ACEOF
27016rm -f conftest.$ac_objext conftest$ac_exeext
27017if { (ac_try="$ac_link"
27018case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27021esac
27022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_link") 2>conftest.er1
27024 ac_status=$?
27025 grep -v '^ *+' conftest.er1 >conftest.err
27026 rm -f conftest.er1
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } &&
27030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27031 { (case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27034esac
27035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_try") 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; } &&
27040 { ac_try='test -s conftest$ac_exeext'
27041 { (case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27044esac
27045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046 (eval "$ac_try") 2>&5
27047 ac_status=$?
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; }; then
27050 ac_cv_cc_implements___func__="yes"
27051else
27052 echo "$as_me: failed program was:" >&5
27053sed 's/^/| /' conftest.$ac_ext >&5
27054
27055 ac_cv_cc_implements___func__="no"
27056
27057fi
27058
27059rm -f core conftest.err conftest.$ac_objext \
27060 conftest$ac_exeext conftest.$ac_ext
27061
27062fi
27063{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
27064echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
27065if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
27066
27067cat >>confdefs.h <<\_ACEOF
27068#define HAVE___func__ 1
27069_ACEOF
27070
27071fi
27072
27073{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
27074echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
27075if test "${ac_cv_have_va_copy+set}" = set; then
27076 echo $ECHO_N "(cached) $ECHO_C" >&6
27077else
27078
27079 cat >conftest.$ac_ext <<_ACEOF
27080/* confdefs.h. */
27081_ACEOF
27082cat confdefs.h >>conftest.$ac_ext
27083cat >>conftest.$ac_ext <<_ACEOF
27084/* end confdefs.h. */
27085#include <stdarg.h>
27086 va_list x,y;
27087int
27088main ()
27089{
27090va_copy(x,y);
27091 ;
27092 return 0;
27093}
27094_ACEOF
27095rm -f conftest.$ac_objext conftest$ac_exeext
27096if { (ac_try="$ac_link"
27097case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27100esac
27101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102 (eval "$ac_link") 2>conftest.er1
27103 ac_status=$?
27104 grep -v '^ *+' conftest.er1 >conftest.err
27105 rm -f conftest.er1
27106 cat conftest.err >&5
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); } &&
27109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27110 { (case "(($ac_try" in
27111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112 *) ac_try_echo=$ac_try;;
27113esac
27114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115 (eval "$ac_try") 2>&5
27116 ac_status=$?
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; } &&
27119 { ac_try='test -s conftest$ac_exeext'
27120 { (case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27123esac
27124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_try") 2>&5
27126 ac_status=$?
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; }; then
27129 ac_cv_have_va_copy="yes"
27130else
27131 echo "$as_me: failed program was:" >&5
27132sed 's/^/| /' conftest.$ac_ext >&5
27133
27134 ac_cv_have_va_copy="no"
27135
27136fi
27137
27138rm -f core conftest.err conftest.$ac_objext \
27139 conftest$ac_exeext conftest.$ac_ext
27140
27141fi
27142{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
27143echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
27144if test "x$ac_cv_have_va_copy" = "xyes" ; then
27145
27146cat >>confdefs.h <<\_ACEOF
27147#define HAVE_VA_COPY 1
27148_ACEOF
27149
27150fi
27151
27152{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
27153echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
27154if test "${ac_cv_have___va_copy+set}" = set; then
27155 echo $ECHO_N "(cached) $ECHO_C" >&6
27156else
27157
27158 cat >conftest.$ac_ext <<_ACEOF
27159/* confdefs.h. */
27160_ACEOF
27161cat confdefs.h >>conftest.$ac_ext
27162cat >>conftest.$ac_ext <<_ACEOF
27163/* end confdefs.h. */
27164#include <stdarg.h>
27165 va_list x,y;
27166int
27167main ()
27168{
27169__va_copy(x,y);
27170 ;
27171 return 0;
27172}
27173_ACEOF
27174rm -f conftest.$ac_objext conftest$ac_exeext
27175if { (ac_try="$ac_link"
27176case "(($ac_try" in
27177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178 *) ac_try_echo=$ac_try;;
27179esac
27180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27181 (eval "$ac_link") 2>conftest.er1
27182 ac_status=$?
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } &&
27188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27189 { (case "(($ac_try" in
27190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27192esac
27193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_try") 2>&5
27195 ac_status=$?
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); }; } &&
27198 { ac_try='test -s conftest$ac_exeext'
27199 { (case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27202esac
27203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_try") 2>&5
27205 ac_status=$?
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); }; }; then
27208 ac_cv_have___va_copy="yes"
27209else
27210 echo "$as_me: failed program was:" >&5
27211sed 's/^/| /' conftest.$ac_ext >&5
27212
27213 ac_cv_have___va_copy="no"
27214
27215fi
27216
27217rm -f core conftest.err conftest.$ac_objext \
27218 conftest$ac_exeext conftest.$ac_ext
27219
27220fi
27221{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
27222echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
27223if test "x$ac_cv_have___va_copy" = "xyes" ; then
27224
27225cat >>confdefs.h <<\_ACEOF
27226#define HAVE___VA_COPY 1
27227_ACEOF
27228
27229fi
27230
27231{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
27232echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
27233if test "${ac_cv_have_getopt_optreset+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27235else
27236
27237 cat >conftest.$ac_ext <<_ACEOF
27238/* confdefs.h. */
27239_ACEOF
27240cat confdefs.h >>conftest.$ac_ext
27241cat >>conftest.$ac_ext <<_ACEOF
27242/* end confdefs.h. */
27243
27244#include <getopt.h>
27245
27246int
27247main ()
27248{
27249 extern int optreset; optreset = 0;
27250 ;
27251 return 0;
27252}
27253_ACEOF
27254rm -f conftest.$ac_objext conftest$ac_exeext
27255if { (ac_try="$ac_link"
27256case "(($ac_try" in
27257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258 *) ac_try_echo=$ac_try;;
27259esac
27260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27261 (eval "$ac_link") 2>conftest.er1
27262 ac_status=$?
27263 grep -v '^ *+' conftest.er1 >conftest.err
27264 rm -f conftest.er1
27265 cat conftest.err >&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); } &&
27268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27269 { (case "(($ac_try" in
27270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271 *) ac_try_echo=$ac_try;;
27272esac
27273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274 (eval "$ac_try") 2>&5
27275 ac_status=$?
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; } &&
27278 { ac_try='test -s conftest$ac_exeext'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27282esac
27283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27285 ac_status=$?
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; }; then
27288 ac_cv_have_getopt_optreset="yes"
27289else
27290 echo "$as_me: failed program was:" >&5
27291sed 's/^/| /' conftest.$ac_ext >&5
27292
27293 ac_cv_have_getopt_optreset="no"
27294
27295fi
27296
27297rm -f core conftest.err conftest.$ac_objext \
27298 conftest$ac_exeext conftest.$ac_ext
27299
27300fi
27301{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
27302echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
27303if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
27304
27305cat >>confdefs.h <<\_ACEOF
27306#define HAVE_GETOPT_OPTRESET 1
27307_ACEOF
27308
27309fi
27310
27311{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
27312echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
27313if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27315else
27316
27317 cat >conftest.$ac_ext <<_ACEOF
27318/* confdefs.h. */
27319_ACEOF
27320cat confdefs.h >>conftest.$ac_ext
27321cat >>conftest.$ac_ext <<_ACEOF
27322/* end confdefs.h. */
27323
27324int
27325main ()
27326{
27327 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
27328 ;
27329 return 0;
27330}
27331_ACEOF
27332rm -f conftest.$ac_objext conftest$ac_exeext
27333if { (ac_try="$ac_link"
27334case "(($ac_try" in
27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27337esac
27338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_link") 2>conftest.er1
27340 ac_status=$?
27341 grep -v '^ *+' conftest.er1 >conftest.err
27342 rm -f conftest.er1
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } &&
27346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27347 { (case "(($ac_try" in
27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349 *) ac_try_echo=$ac_try;;
27350esac
27351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352 (eval "$ac_try") 2>&5
27353 ac_status=$?
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; } &&
27356 { ac_try='test -s conftest$ac_exeext'
27357 { (case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27360esac
27361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362 (eval "$ac_try") 2>&5
27363 ac_status=$?
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; }; then
27366 ac_cv_libc_defines_sys_errlist="yes"
27367else
27368 echo "$as_me: failed program was:" >&5
27369sed 's/^/| /' conftest.$ac_ext >&5
27370
27371 ac_cv_libc_defines_sys_errlist="no"
27372
27373fi
27374
27375rm -f core conftest.err conftest.$ac_objext \
27376 conftest$ac_exeext conftest.$ac_ext
27377
27378fi
27379{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
27380echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
27381if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
27382
27383cat >>confdefs.h <<\_ACEOF
27384#define HAVE_SYS_ERRLIST 1
27385_ACEOF
27386
27387fi
27388
27389
27390{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
27391echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
27392if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
27393 echo $ECHO_N "(cached) $ECHO_C" >&6
27394else
27395
27396 cat >conftest.$ac_ext <<_ACEOF
27397/* confdefs.h. */
27398_ACEOF
27399cat confdefs.h >>conftest.$ac_ext
27400cat >>conftest.$ac_ext <<_ACEOF
27401/* end confdefs.h. */
27402
27403int
27404main ()
27405{
27406 extern int sys_nerr; printf("%i", sys_nerr);
27407 ;
27408 return 0;
27409}
27410_ACEOF
27411rm -f conftest.$ac_objext conftest$ac_exeext
27412if { (ac_try="$ac_link"
27413case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_link") 2>conftest.er1
27419 ac_status=$?
27420 grep -v '^ *+' conftest.er1 >conftest.err
27421 rm -f conftest.er1
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } &&
27425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27426 { (case "(($ac_try" in
27427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27429esac
27430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_try") 2>&5
27432 ac_status=$?
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; } &&
27435 { ac_try='test -s conftest$ac_exeext'
27436 { (case "(($ac_try" in
27437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438 *) ac_try_echo=$ac_try;;
27439esac
27440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441 (eval "$ac_try") 2>&5
27442 ac_status=$?
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; }; then
27445 ac_cv_libc_defines_sys_nerr="yes"
27446else
27447 echo "$as_me: failed program was:" >&5
27448sed 's/^/| /' conftest.$ac_ext >&5
27449
27450 ac_cv_libc_defines_sys_nerr="no"
27451
27452fi
27453
27454rm -f core conftest.err conftest.$ac_objext \
27455 conftest$ac_exeext conftest.$ac_ext
27456
27457fi
27458{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
27459echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
27460if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
27461
27462cat >>confdefs.h <<\_ACEOF
27463#define HAVE_SYS_NERR 1
27464_ACEOF
27465
27466fi
27467
27468SCARD_MSG="no"
27469# Check whether user wants sectok support
27470
27471# Check whether --with-sectok was given.
27472if test "${with_sectok+set}" = set; then
27473 withval=$with_sectok;
27474 if test "x$withval" != "xno" ; then
27475 if test "x$withval" != "xyes" ; then
27476 CPPFLAGS="$CPPFLAGS -I${withval}"
27477 LDFLAGS="$LDFLAGS -L${withval}"
27478 if test ! -z "$need_dash_r" ; then
27479 LDFLAGS="$LDFLAGS -R${withval}"
27480 fi
27481 if test ! -z "$blibpath" ; then
27482 blibpath="$blibpath:${withval}"
27483 fi
27484 fi
27485
27486for ac_header in sectok.h
27487do
27488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27494fi
27495ac_res=`eval echo '${'$as_ac_Header'}'`
27496 { echo "$as_me:$LINENO: result: $ac_res" >&5
27497echo "${ECHO_T}$ac_res" >&6; }
27498else
27499 # Is the header compilable?
27500{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27502cat >conftest.$ac_ext <<_ACEOF
27503/* confdefs.h. */
27504_ACEOF
27505cat confdefs.h >>conftest.$ac_ext
27506cat >>conftest.$ac_ext <<_ACEOF
27507/* end confdefs.h. */
27508$ac_includes_default
27509#include <$ac_header>
27510_ACEOF
27511rm -f conftest.$ac_objext
27512if { (ac_try="$ac_compile"
27513case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27516esac
27517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_compile") 2>conftest.er1
27519 ac_status=$?
27520 grep -v '^ *+' conftest.er1 >conftest.err
27521 rm -f conftest.er1
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529esac
27530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27532 ac_status=$?
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27539esac
27540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541 (eval "$ac_try") 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; }; then
27545 ac_header_compiler=yes
27546else
27547 echo "$as_me: failed program was:" >&5
27548sed 's/^/| /' conftest.$ac_ext >&5
27549
27550 ac_header_compiler=no
27551fi
27552
27553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27555echo "${ECHO_T}$ac_header_compiler" >&6; }
27556
27557# Is the header present?
27558{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27560cat >conftest.$ac_ext <<_ACEOF
27561/* confdefs.h. */
27562_ACEOF
27563cat confdefs.h >>conftest.$ac_ext
27564cat >>conftest.$ac_ext <<_ACEOF
27565/* end confdefs.h. */
27566#include <$ac_header>
27567_ACEOF
27568if { (ac_try="$ac_cpp conftest.$ac_ext"
27569case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27572esac
27573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27575 ac_status=$?
27576 grep -v '^ *+' conftest.er1 >conftest.err
27577 rm -f conftest.er1
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); } >/dev/null; then
27581 if test -s conftest.err; then
27582 ac_cpp_err=$ac_c_preproc_warn_flag
27583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27584 else
27585 ac_cpp_err=
27586 fi
27587else
27588 ac_cpp_err=yes
27589fi
27590if test -z "$ac_cpp_err"; then
27591 ac_header_preproc=yes
27592else
27593 echo "$as_me: failed program was:" >&5
27594sed 's/^/| /' conftest.$ac_ext >&5
27595
27596 ac_header_preproc=no
27597fi
27598
27599rm -f conftest.err conftest.$ac_ext
27600{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27601echo "${ECHO_T}$ac_header_preproc" >&6; }
27602
27603# So? What about this header?
27604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27605 yes:no: )
27606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27610 ac_header_preproc=yes
27611 ;;
27612 no:yes:* )
27613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27625 ( cat <<\_ASBOX
27626## ------------------------------------------- ##
27627## Report this to openssh-unix-dev@mindrot.org ##
27628## ------------------------------------------- ##
27629_ASBOX
27630 ) | sed "s/^/$as_me: WARNING: /" >&2
27631 ;;
27632esac
27633{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27637else
27638 eval "$as_ac_Header=\$ac_header_preproc"
27639fi
27640ac_res=`eval echo '${'$as_ac_Header'}'`
27641 { echo "$as_me:$LINENO: result: $ac_res" >&5
27642echo "${ECHO_T}$ac_res" >&6; }
27643
27644fi
27645if test `eval echo '${'$as_ac_Header'}'` = yes; then
27646 cat >>confdefs.h <<_ACEOF
27647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27648_ACEOF
27649
27650fi
27651
27652done
27653
27654 if test "$ac_cv_header_sectok_h" != yes; then
27655 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
27656echo "$as_me: error: Can't find sectok.h" >&2;}
27657 { (exit 1); exit 1; }; }
27658 fi
27659
27660{ echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
27661echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
27662if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
27663 echo $ECHO_N "(cached) $ECHO_C" >&6
27664else
27665 ac_check_lib_save_LIBS=$LIBS
27666LIBS="-lsectok $LIBS"
27667cat >conftest.$ac_ext <<_ACEOF
27668/* confdefs.h. */
27669_ACEOF
27670cat confdefs.h >>conftest.$ac_ext
27671cat >>conftest.$ac_ext <<_ACEOF
27672/* end confdefs.h. */
27673
27674/* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27677#ifdef __cplusplus
27678extern "C"
27679#endif
27680char sectok_open ();
27681int
27682main ()
27683{
27684return sectok_open ();
27685 ;
27686 return 0;
27687}
27688_ACEOF
27689rm -f conftest.$ac_objext conftest$ac_exeext
27690if { (ac_try="$ac_link"
27691case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27694esac
27695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_link") 2>conftest.er1
27697 ac_status=$?
27698 grep -v '^ *+' conftest.er1 >conftest.err
27699 rm -f conftest.er1
27700 cat conftest.err >&5
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); } &&
27703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27704 { (case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27707esac
27708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_try") 2>&5
27710 ac_status=$?
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; } &&
27713 { ac_try='test -s conftest$ac_exeext'
27714 { (case "(($ac_try" in
27715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716 *) ac_try_echo=$ac_try;;
27717esac
27718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719 (eval "$ac_try") 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
27723 ac_cv_lib_sectok_sectok_open=yes
27724else
27725 echo "$as_me: failed program was:" >&5
27726sed 's/^/| /' conftest.$ac_ext >&5
27727
27728 ac_cv_lib_sectok_sectok_open=no
27729fi
27730
27731rm -f core conftest.err conftest.$ac_objext \
27732 conftest$ac_exeext conftest.$ac_ext
27733LIBS=$ac_check_lib_save_LIBS
27734fi
27735{ echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
27736echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
27737if test $ac_cv_lib_sectok_sectok_open = yes; then
27738 cat >>confdefs.h <<_ACEOF
27739#define HAVE_LIBSECTOK 1
27740_ACEOF
27741
27742 LIBS="-lsectok $LIBS"
27743
27744fi
27745
27746 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
27747 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
27748echo "$as_me: error: Can't find libsectok" >&2;}
27749 { (exit 1); exit 1; }; }
27750 fi
27751
27752cat >>confdefs.h <<\_ACEOF
27753#define SMARTCARD 1
27754_ACEOF
27755
27756
27757cat >>confdefs.h <<\_ACEOF
27758#define USE_SECTOK 1
27759_ACEOF
27760
27761 SCARD_MSG="yes, using sectok"
27762 fi
27763
27764
27765fi
27766
27767
27768# Check whether user wants OpenSC support
27769OPENSC_CONFIG="no"
27770
27771# Check whether --with-opensc was given.
27772if test "${with_opensc+set}" = set; then
27773 withval=$with_opensc;
27774 if test "x$withval" != "xno" ; then
27775 if test "x$withval" != "xyes" ; then
27776 OPENSC_CONFIG=$withval/bin/opensc-config
27777 else
27778 # Extract the first word of "opensc-config", so it can be a program name with args.
27779set dummy opensc-config; ac_word=$2
27780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27782if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27784else
27785 case $OPENSC_CONFIG in
27786 [\\/]* | ?:[\\/]*)
27787 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
27788 ;;
27789 *)
27790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27791for as_dir in $PATH
27792do
27793 IFS=$as_save_IFS
27794 test -z "$as_dir" && as_dir=.
27795 for ac_exec_ext in '' $ac_executable_extensions; do
27796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27797 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27799 break 2
27800 fi
27801done
27802done
27803IFS=$as_save_IFS
27804
27805 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
27806 ;;
27807esac
27808fi
27809OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
27810if test -n "$OPENSC_CONFIG"; then
27811 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
27812echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
27813else
27814 { echo "$as_me:$LINENO: result: no" >&5
27815echo "${ECHO_T}no" >&6; }
27816fi
27817
27818
27819 fi
27820 if test "$OPENSC_CONFIG" != "no"; then
27821 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
27822 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
27823 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
27824 LIBS="$LIBS $LIBOPENSC_LIBS"
27825 cat >>confdefs.h <<\_ACEOF
27826#define SMARTCARD 1
27827_ACEOF
27828
27829
27830cat >>confdefs.h <<\_ACEOF
27831#define USE_OPENSC 1
27832_ACEOF
27833
27834 SCARD_MSG="yes, using OpenSC"
27835 fi
27836 fi
27837
27838
27839fi
27840
27841
27842# Check libraries needed by DNS fingerprint support
27843{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
27844echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
27845if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27847else
27848 ac_func_search_save_LIBS=$LIBS
27849cat >conftest.$ac_ext <<_ACEOF
27850/* confdefs.h. */
27851_ACEOF
27852cat confdefs.h >>conftest.$ac_ext
27853cat >>conftest.$ac_ext <<_ACEOF
27854/* end confdefs.h. */
27855
27856/* Override any GCC internal prototype to avoid an error.
27857 Use char because int might match the return type of a GCC
27858 builtin and then its argument prototype would still apply. */
27859#ifdef __cplusplus
27860extern "C"
27861#endif
27862char getrrsetbyname ();
27863int
27864main ()
27865{
27866return getrrsetbyname ();
27867 ;
27868 return 0;
27869}
27870_ACEOF
27871for ac_lib in '' resolv; do
27872 if test -z "$ac_lib"; then
27873 ac_res="none required"
27874 else
27875 ac_res=-l$ac_lib
27876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27877 fi
27878 rm -f conftest.$ac_objext conftest$ac_exeext
27879if { (ac_try="$ac_link"
27880case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27883esac
27884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_link") 2>conftest.er1
27886 ac_status=$?
27887 grep -v '^ *+' conftest.er1 >conftest.err
27888 rm -f conftest.er1
27889 cat conftest.err >&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } &&
27892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27893 { (case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27896esac
27897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_try") 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; } &&
27902 { ac_try='test -s conftest$ac_exeext'
27903 { (case "(($ac_try" in
27904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905 *) ac_try_echo=$ac_try;;
27906esac
27907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908 (eval "$ac_try") 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; }; then
27912 ac_cv_search_getrrsetbyname=$ac_res
27913else
27914 echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917
27918fi
27919
27920rm -f core conftest.err conftest.$ac_objext \
27921 conftest$ac_exeext
27922 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27923 break
27924fi
27925done
27926if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27927 :
27928else
27929 ac_cv_search_getrrsetbyname=no
27930fi
27931rm conftest.$ac_ext
27932LIBS=$ac_func_search_save_LIBS
27933fi
27934{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
27935echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
27936ac_res=$ac_cv_search_getrrsetbyname
27937if test "$ac_res" != no; then
27938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27939
27940cat >>confdefs.h <<\_ACEOF
27941#define HAVE_GETRRSETBYNAME 1
27942_ACEOF
27943
27944else
27945
27946 # Needed by our getrrsetbyname()
27947 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
27948echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
27949if test "${ac_cv_search_res_query+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27951else
27952 ac_func_search_save_LIBS=$LIBS
27953cat >conftest.$ac_ext <<_ACEOF
27954/* confdefs.h. */
27955_ACEOF
27956cat confdefs.h >>conftest.$ac_ext
27957cat >>conftest.$ac_ext <<_ACEOF
27958/* end confdefs.h. */
27959
27960/* Override any GCC internal prototype to avoid an error.
27961 Use char because int might match the return type of a GCC
27962 builtin and then its argument prototype would still apply. */
27963#ifdef __cplusplus
27964extern "C"
27965#endif
27966char res_query ();
27967int
27968main ()
27969{
27970return res_query ();
27971 ;
27972 return 0;
27973}
27974_ACEOF
27975for ac_lib in '' resolv; do
27976 if test -z "$ac_lib"; then
27977 ac_res="none required"
27978 else
27979 ac_res=-l$ac_lib
27980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27981 fi
27982 rm -f conftest.$ac_objext conftest$ac_exeext
27983if { (ac_try="$ac_link"
27984case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27987esac
27988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_link") 2>conftest.er1
27990 ac_status=$?
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } &&
27996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27997 { (case "(($ac_try" in
27998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999 *) ac_try_echo=$ac_try;;
28000esac
28001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002 (eval "$ac_try") 2>&5
28003 ac_status=$?
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); }; } &&
28006 { ac_try='test -s conftest$ac_exeext'
28007 { (case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28010esac
28011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_try") 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 ac_cv_search_res_query=$ac_res
28017else
28018 echo "$as_me: failed program was:" >&5
28019sed 's/^/| /' conftest.$ac_ext >&5
28020
28021
28022fi
28023
28024rm -f core conftest.err conftest.$ac_objext \
28025 conftest$ac_exeext
28026 if test "${ac_cv_search_res_query+set}" = set; then
28027 break
28028fi
28029done
28030if test "${ac_cv_search_res_query+set}" = set; then
28031 :
28032else
28033 ac_cv_search_res_query=no
28034fi
28035rm conftest.$ac_ext
28036LIBS=$ac_func_search_save_LIBS
28037fi
28038{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
28039echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
28040ac_res=$ac_cv_search_res_query
28041if test "$ac_res" != no; then
28042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28043
28044fi
28045
28046 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
28047echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
28048if test "${ac_cv_search_dn_expand+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28050else
28051 ac_func_search_save_LIBS=$LIBS
28052cat >conftest.$ac_ext <<_ACEOF
28053/* confdefs.h. */
28054_ACEOF
28055cat confdefs.h >>conftest.$ac_ext
28056cat >>conftest.$ac_ext <<_ACEOF
28057/* end confdefs.h. */
28058
28059/* Override any GCC internal prototype to avoid an error.
28060 Use char because int might match the return type of a GCC
28061 builtin and then its argument prototype would still apply. */
28062#ifdef __cplusplus
28063extern "C"
28064#endif
28065char dn_expand ();
28066int
28067main ()
28068{
28069return dn_expand ();
28070 ;
28071 return 0;
28072}
28073_ACEOF
28074for ac_lib in '' resolv; do
28075 if test -z "$ac_lib"; then
28076 ac_res="none required"
28077 else
28078 ac_res=-l$ac_lib
28079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28080 fi
28081 rm -f conftest.$ac_objext conftest$ac_exeext
28082if { (ac_try="$ac_link"
28083case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_link") 2>conftest.er1
28089 ac_status=$?
28090 grep -v '^ *+' conftest.er1 >conftest.err
28091 rm -f conftest.er1
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28096 { (case "(($ac_try" in
28097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28098 *) ac_try_echo=$ac_try;;
28099esac
28100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28101 (eval "$ac_try") 2>&5
28102 ac_status=$?
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; } &&
28105 { ac_try='test -s conftest$ac_exeext'
28106 { (case "(($ac_try" in
28107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108 *) ac_try_echo=$ac_try;;
28109esac
28110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111 (eval "$ac_try") 2>&5
28112 ac_status=$?
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; }; then
28115 ac_cv_search_dn_expand=$ac_res
28116else
28117 echo "$as_me: failed program was:" >&5
28118sed 's/^/| /' conftest.$ac_ext >&5
28119
28120
28121fi
28122
28123rm -f core conftest.err conftest.$ac_objext \
28124 conftest$ac_exeext
28125 if test "${ac_cv_search_dn_expand+set}" = set; then
28126 break
28127fi
28128done
28129if test "${ac_cv_search_dn_expand+set}" = set; then
28130 :
28131else
28132 ac_cv_search_dn_expand=no
28133fi
28134rm conftest.$ac_ext
28135LIBS=$ac_func_search_save_LIBS
28136fi
28137{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
28138echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
28139ac_res=$ac_cv_search_dn_expand
28140if test "$ac_res" != no; then
28141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28142
28143fi
28144
28145 { echo "$as_me:$LINENO: checking if res_query will link" >&5
28146echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
28147 cat >conftest.$ac_ext <<_ACEOF
28148/* confdefs.h. */
28149_ACEOF
28150cat confdefs.h >>conftest.$ac_ext
28151cat >>conftest.$ac_ext <<_ACEOF
28152/* end confdefs.h. */
28153
28154/* Override any GCC internal prototype to avoid an error.
28155 Use char because int might match the return type of a GCC
28156 builtin and then its argument prototype would still apply. */
28157#ifdef __cplusplus
28158extern "C"
28159#endif
28160char res_query ();
28161int
28162main ()
28163{
28164return res_query ();
28165 ;
28166 return 0;
28167}
28168_ACEOF
28169rm -f conftest.$ac_objext conftest$ac_exeext
28170if { (ac_try="$ac_link"
28171case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>conftest.er1
28177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest$ac_exeext'
28194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28197esac
28198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 { echo "$as_me:$LINENO: result: yes" >&5
28204echo "${ECHO_T}yes" >&6; }
28205else
28206 echo "$as_me: failed program was:" >&5
28207sed 's/^/| /' conftest.$ac_ext >&5
28208
28209 { echo "$as_me:$LINENO: result: no" >&5
28210echo "${ECHO_T}no" >&6; }
28211 saved_LIBS="$LIBS"
28212 LIBS="$LIBS -lresolv"
28213 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
28214echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
28215 cat >conftest.$ac_ext <<_ACEOF
28216
28217#include <resolv.h>
28218int main()
28219{
28220 res_query (0, 0, 0, 0, 0);
28221 return 0;
28222}
28223
28224_ACEOF
28225rm -f conftest.$ac_objext conftest$ac_exeext
28226if { (ac_try="$ac_link"
28227case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28230esac
28231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_link") 2>conftest.er1
28233 ac_status=$?
28234 grep -v '^ *+' conftest.er1 >conftest.err
28235 rm -f conftest.er1
28236 cat conftest.err >&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } &&
28239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240 { (case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28243esac
28244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_try") 2>&5
28246 ac_status=$?
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; } &&
28249 { ac_try='test -s conftest$ac_exeext'
28250 { (case "(($ac_try" in
28251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252 *) ac_try_echo=$ac_try;;
28253esac
28254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255 (eval "$ac_try") 2>&5
28256 ac_status=$?
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 LIBS="$LIBS -lresolv"
28260 { echo "$as_me:$LINENO: result: yes" >&5
28261echo "${ECHO_T}yes" >&6; }
28262else
28263 echo "$as_me: failed program was:" >&5
28264sed 's/^/| /' conftest.$ac_ext >&5
28265
28266 LIBS="$saved_LIBS"
28267 { echo "$as_me:$LINENO: result: no" >&5
28268echo "${ECHO_T}no" >&6; }
28269fi
28270
28271rm -f core conftest.err conftest.$ac_objext \
28272 conftest$ac_exeext conftest.$ac_ext
28273
28274fi
28275
28276rm -f core conftest.err conftest.$ac_objext \
28277 conftest$ac_exeext conftest.$ac_ext
28278
28279
28280for ac_func in _getshort _getlong
28281do
28282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28283{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28287else
28288 cat >conftest.$ac_ext <<_ACEOF
28289/* confdefs.h. */
28290_ACEOF
28291cat confdefs.h >>conftest.$ac_ext
28292cat >>conftest.$ac_ext <<_ACEOF
28293/* end confdefs.h. */
28294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28296#define $ac_func innocuous_$ac_func
28297
28298/* System header to define __stub macros and hopefully few prototypes,
28299 which can conflict with char $ac_func (); below.
28300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28301 <limits.h> exists even on freestanding compilers. */
28302
28303#ifdef __STDC__
28304# include <limits.h>
28305#else
28306# include <assert.h>
28307#endif
28308
28309#undef $ac_func
28310
28311/* Override any GCC internal prototype to avoid an error.
28312 Use char because int might match the return type of a GCC
28313 builtin and then its argument prototype would still apply. */
28314#ifdef __cplusplus
28315extern "C"
28316#endif
28317char $ac_func ();
28318/* The GNU C library defines this for functions which it implements
28319 to always fail with ENOSYS. Some functions are actually named
28320 something starting with __ and the normal name is an alias. */
28321#if defined __stub_$ac_func || defined __stub___$ac_func
28322choke me
28323#endif
28324
28325int
28326main ()
28327{
28328return $ac_func ();
28329 ;
28330 return 0;
28331}
28332_ACEOF
28333rm -f conftest.$ac_objext conftest$ac_exeext
28334if { (ac_try="$ac_link"
28335case "(($ac_try" in
28336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28337 *) ac_try_echo=$ac_try;;
28338esac
28339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28340 (eval "$ac_link") 2>conftest.er1
28341 ac_status=$?
28342 grep -v '^ *+' conftest.er1 >conftest.err
28343 rm -f conftest.er1
28344 cat conftest.err >&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); } &&
28347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28348 { (case "(($ac_try" in
28349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28351esac
28352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353 (eval "$ac_try") 2>&5
28354 ac_status=$?
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); }; } &&
28357 { ac_try='test -s conftest$ac_exeext'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28361esac
28362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363 (eval "$ac_try") 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; }; then
28367 eval "$as_ac_var=yes"
28368else
28369 echo "$as_me: failed program was:" >&5
28370sed 's/^/| /' conftest.$ac_ext >&5
28371
28372 eval "$as_ac_var=no"
28373fi
28374
28375rm -f core conftest.err conftest.$ac_objext \
28376 conftest$ac_exeext conftest.$ac_ext
28377fi
28378ac_res=`eval echo '${'$as_ac_var'}'`
28379 { echo "$as_me:$LINENO: result: $ac_res" >&5
28380echo "${ECHO_T}$ac_res" >&6; }
28381if test `eval echo '${'$as_ac_var'}'` = yes; then
28382 cat >>confdefs.h <<_ACEOF
28383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28384_ACEOF
28385
28386fi
28387done
28388
28389 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
28390echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
28391if test "${ac_cv_have_decl__getshort+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28393else
28394 cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
28400#include <sys/types.h>
28401 #include <arpa/nameser.h>
28402
28403int
28404main ()
28405{
28406#ifndef _getshort
28407 char *p = (char *) _getshort;
28408 return !p;
28409#endif
28410
28411 ;
28412 return 0;
28413}
28414_ACEOF
28415rm -f conftest.$ac_objext
28416if { (ac_try="$ac_compile"
28417case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28420esac
28421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_compile") 2>conftest.er1
28423 ac_status=$?
28424 grep -v '^ *+' conftest.er1 >conftest.err
28425 rm -f conftest.er1
28426 cat conftest.err >&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); } &&
28429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28430 { (case "(($ac_try" in
28431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28432 *) ac_try_echo=$ac_try;;
28433esac
28434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28435 (eval "$ac_try") 2>&5
28436 ac_status=$?
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); }; } &&
28439 { ac_try='test -s conftest.$ac_objext'
28440 { (case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443esac
28444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_try") 2>&5
28446 ac_status=$?
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; }; then
28449 ac_cv_have_decl__getshort=yes
28450else
28451 echo "$as_me: failed program was:" >&5
28452sed 's/^/| /' conftest.$ac_ext >&5
28453
28454 ac_cv_have_decl__getshort=no
28455fi
28456
28457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28458fi
28459{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
28460echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
28461if test $ac_cv_have_decl__getshort = yes; then
28462
28463cat >>confdefs.h <<_ACEOF
28464#define HAVE_DECL__GETSHORT 1
28465_ACEOF
28466
28467
28468else
28469 cat >>confdefs.h <<_ACEOF
28470#define HAVE_DECL__GETSHORT 0
28471_ACEOF
28472
28473
28474fi
28475{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
28476echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
28477if test "${ac_cv_have_decl__getlong+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28479else
28480 cat >conftest.$ac_ext <<_ACEOF
28481/* confdefs.h. */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h. */
28486#include <sys/types.h>
28487 #include <arpa/nameser.h>
28488
28489int
28490main ()
28491{
28492#ifndef _getlong
28493 char *p = (char *) _getlong;
28494 return !p;
28495#endif
28496
28497 ;
28498 return 0;
28499}
28500_ACEOF
28501rm -f conftest.$ac_objext
28502if { (ac_try="$ac_compile"
28503case "(($ac_try" in
28504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505 *) ac_try_echo=$ac_try;;
28506esac
28507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508 (eval "$ac_compile") 2>conftest.er1
28509 ac_status=$?
28510 grep -v '^ *+' conftest.er1 >conftest.err
28511 rm -f conftest.er1
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
28515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28516 { (case "(($ac_try" in
28517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518 *) ac_try_echo=$ac_try;;
28519esac
28520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28521 (eval "$ac_try") 2>&5
28522 ac_status=$?
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; } &&
28525 { ac_try='test -s conftest.$ac_objext'
28526 { (case "(($ac_try" in
28527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28529esac
28530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_try") 2>&5
28532 ac_status=$?
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; }; then
28535 ac_cv_have_decl__getlong=yes
28536else
28537 echo "$as_me: failed program was:" >&5
28538sed 's/^/| /' conftest.$ac_ext >&5
28539
28540 ac_cv_have_decl__getlong=no
28541fi
28542
28543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28544fi
28545{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
28546echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
28547if test $ac_cv_have_decl__getlong = yes; then
28548
28549cat >>confdefs.h <<_ACEOF
28550#define HAVE_DECL__GETLONG 1
28551_ACEOF
28552
28553
28554else
28555 cat >>confdefs.h <<_ACEOF
28556#define HAVE_DECL__GETLONG 0
28557_ACEOF
28558
28559
28560fi
28561
28562
28563 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
28564echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
28565if test "${ac_cv_member_HEADER_ad+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28567else
28568 cat >conftest.$ac_ext <<_ACEOF
28569/* confdefs.h. */
28570_ACEOF
28571cat confdefs.h >>conftest.$ac_ext
28572cat >>conftest.$ac_ext <<_ACEOF
28573/* end confdefs.h. */
28574#include <arpa/nameser.h>
28575
28576int
28577main ()
28578{
28579static HEADER ac_aggr;
28580if (ac_aggr.ad)
28581return 0;
28582 ;
28583 return 0;
28584}
28585_ACEOF
28586rm -f conftest.$ac_objext
28587if { (ac_try="$ac_compile"
28588case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_compile") 2>conftest.er1
28594 ac_status=$?
28595 grep -v '^ *+' conftest.er1 >conftest.err
28596 rm -f conftest.er1
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } &&
28600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest.$ac_objext'
28611 { (case "(($ac_try" in
28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28614esac
28615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_try") 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_cv_member_HEADER_ad=yes
28621else
28622 echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 cat >conftest.$ac_ext <<_ACEOF
28626/* confdefs.h. */
28627_ACEOF
28628cat confdefs.h >>conftest.$ac_ext
28629cat >>conftest.$ac_ext <<_ACEOF
28630/* end confdefs.h. */
28631#include <arpa/nameser.h>
28632
28633int
28634main ()
28635{
28636static HEADER ac_aggr;
28637if (sizeof ac_aggr.ad)
28638return 0;
28639 ;
28640 return 0;
28641}
28642_ACEOF
28643rm -f conftest.$ac_objext
28644if { (ac_try="$ac_compile"
28645case "(($ac_try" in
28646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647 *) ac_try_echo=$ac_try;;
28648esac
28649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_compile") 2>conftest.er1
28651 ac_status=$?
28652 grep -v '^ *+' conftest.er1 >conftest.err
28653 rm -f conftest.er1
28654 cat conftest.err >&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } &&
28657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28658 { (case "(($ac_try" in
28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660 *) ac_try_echo=$ac_try;;
28661esac
28662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663 (eval "$ac_try") 2>&5
28664 ac_status=$?
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); }; } &&
28667 { ac_try='test -s conftest.$ac_objext'
28668 { (case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28671esac
28672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_try") 2>&5
28674 ac_status=$?
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; }; then
28677 ac_cv_member_HEADER_ad=yes
28678else
28679 echo "$as_me: failed program was:" >&5
28680sed 's/^/| /' conftest.$ac_ext >&5
28681
28682 ac_cv_member_HEADER_ad=no
28683fi
28684
28685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28686fi
28687
28688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28689fi
28690{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
28691echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
28692if test $ac_cv_member_HEADER_ad = yes; then
28693
28694cat >>confdefs.h <<\_ACEOF
28695#define HAVE_HEADER_AD 1
28696_ACEOF
28697
28698fi
28699
28700
28701fi
28702
28703
28704# Check whether user wants SELinux support
28705SELINUX_MSG="no"
28706LIBSELINUX=""
28707
28708# Check whether --with-selinux was given.
28709if test "${with_selinux+set}" = set; then
28710 withval=$with_selinux; if test "x$withval" != "xno" ; then
28711
28712cat >>confdefs.h <<\_ACEOF
28713#define WITH_SELINUX 1
28714_ACEOF
28715
28716 SELINUX_MSG="yes"
28717 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28718 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
28719echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
28720if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28722fi
28723{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
28724echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
28725else
28726 # Is the header compilable?
28727{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
28728echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
28729cat >conftest.$ac_ext <<_ACEOF
28730/* confdefs.h. */
28731_ACEOF
28732cat confdefs.h >>conftest.$ac_ext
28733cat >>conftest.$ac_ext <<_ACEOF
28734/* end confdefs.h. */
28735$ac_includes_default
28736#include <selinux/selinux.h>
28737_ACEOF
28738rm -f conftest.$ac_objext
28739if { (ac_try="$ac_compile"
28740case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28743esac
28744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_compile") 2>conftest.er1
28746 ac_status=$?
28747 grep -v '^ *+' conftest.er1 >conftest.err
28748 rm -f conftest.er1
28749 cat conftest.err >&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } &&
28752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28753 { (case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756esac
28757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
28759 ac_status=$?
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; } &&
28762 { ac_try='test -s conftest.$ac_objext'
28763 { (case "(($ac_try" in
28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28766esac
28767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768 (eval "$ac_try") 2>&5
28769 ac_status=$?
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); }; }; then
28772 ac_header_compiler=yes
28773else
28774 echo "$as_me: failed program was:" >&5
28775sed 's/^/| /' conftest.$ac_ext >&5
28776
28777 ac_header_compiler=no
28778fi
28779
28780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28782echo "${ECHO_T}$ac_header_compiler" >&6; }
28783
28784# Is the header present?
28785{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
28786echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
28787cat >conftest.$ac_ext <<_ACEOF
28788/* confdefs.h. */
28789_ACEOF
28790cat confdefs.h >>conftest.$ac_ext
28791cat >>conftest.$ac_ext <<_ACEOF
28792/* end confdefs.h. */
28793#include <selinux/selinux.h>
28794_ACEOF
28795if { (ac_try="$ac_cpp conftest.$ac_ext"
28796case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28799esac
28800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28802 ac_status=$?
28803 grep -v '^ *+' conftest.er1 >conftest.err
28804 rm -f conftest.er1
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } >/dev/null; then
28808 if test -s conftest.err; then
28809 ac_cpp_err=$ac_c_preproc_warn_flag
28810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28811 else
28812 ac_cpp_err=
28813 fi
28814else
28815 ac_cpp_err=yes
28816fi
28817if test -z "$ac_cpp_err"; then
28818 ac_header_preproc=yes
28819else
28820 echo "$as_me: failed program was:" >&5
28821sed 's/^/| /' conftest.$ac_ext >&5
28822
28823 ac_header_preproc=no
28824fi
28825
28826rm -f conftest.err conftest.$ac_ext
28827{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28828echo "${ECHO_T}$ac_header_preproc" >&6; }
28829
28830# So? What about this header?
28831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28832 yes:no: )
28833 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
28834echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28835 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
28836echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
28837 ac_header_preproc=yes
28838 ;;
28839 no:yes:* )
28840 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
28841echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
28842 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
28843echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
28844 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
28845echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
28847echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
28849echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
28850 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
28851echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
28852 ( cat <<\_ASBOX
28853## ------------------------------------------- ##
28854## Report this to openssh-unix-dev@mindrot.org ##
28855## ------------------------------------------- ##
28856_ASBOX
28857 ) | sed "s/^/$as_me: WARNING: /" >&2
28858 ;;
28859esac
28860{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
28861echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
28862if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28863 echo $ECHO_N "(cached) $ECHO_C" >&6
28864else
28865 ac_cv_header_selinux_selinux_h=$ac_header_preproc
28866fi
28867{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
28868echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
28869
28870fi
28871if test $ac_cv_header_selinux_selinux_h = yes; then
28872 :
28873else
28874 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
28875echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
28876 { (exit 1); exit 1; }; }
28877fi
28878
28879
28880 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
28881echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
28882if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28884else
28885 ac_check_lib_save_LIBS=$LIBS
28886LIBS="-lselinux $LIBS"
28887cat >conftest.$ac_ext <<_ACEOF
28888/* confdefs.h. */
28889_ACEOF
28890cat confdefs.h >>conftest.$ac_ext
28891cat >>conftest.$ac_ext <<_ACEOF
28892/* end confdefs.h. */
28893
28894/* Override any GCC internal prototype to avoid an error.
28895 Use char because int might match the return type of a GCC
28896 builtin and then its argument prototype would still apply. */
28897#ifdef __cplusplus
28898extern "C"
28899#endif
28900char setexeccon ();
28901int
28902main ()
28903{
28904return setexeccon ();
28905 ;
28906 return 0;
28907}
28908_ACEOF
28909rm -f conftest.$ac_objext conftest$ac_exeext
28910if { (ac_try="$ac_link"
28911case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28914esac
28915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_link") 2>conftest.er1
28917 ac_status=$?
28918 grep -v '^ *+' conftest.er1 >conftest.err
28919 rm -f conftest.er1
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
28923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28924 { (case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28927esac
28928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_try") 2>&5
28930 ac_status=$?
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; } &&
28933 { ac_try='test -s conftest$ac_exeext'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937esac
28938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28940 ac_status=$?
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 ac_cv_lib_selinux_setexeccon=yes
28944else
28945 echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948 ac_cv_lib_selinux_setexeccon=no
28949fi
28950
28951rm -f core conftest.err conftest.$ac_objext \
28952 conftest$ac_exeext conftest.$ac_ext
28953LIBS=$ac_check_lib_save_LIBS
28954fi
28955{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
28956echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
28957if test $ac_cv_lib_selinux_setexeccon = yes; then
28958 LIBSELINUX="-lselinux"
28959else
28960 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
28961echo "$as_me: error: SELinux support requires libselinux library" >&2;}
28962 { (exit 1); exit 1; }; }
28963fi
28964
28965
28966
28967for ac_func in getseuserbyname get_default_context_with_level
28968do
28969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28970{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28972if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28974else
28975 cat >conftest.$ac_ext <<_ACEOF
28976/* confdefs.h. */
28977_ACEOF
28978cat confdefs.h >>conftest.$ac_ext
28979cat >>conftest.$ac_ext <<_ACEOF
28980/* end confdefs.h. */
28981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28983#define $ac_func innocuous_$ac_func
28984
28985/* System header to define __stub macros and hopefully few prototypes,
28986 which can conflict with char $ac_func (); below.
28987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28988 <limits.h> exists even on freestanding compilers. */
28989
28990#ifdef __STDC__
28991# include <limits.h>
28992#else
28993# include <assert.h>
28994#endif
28995
28996#undef $ac_func
28997
28998/* Override any GCC internal prototype to avoid an error.
28999 Use char because int might match the return type of a GCC
29000 builtin and then its argument prototype would still apply. */
29001#ifdef __cplusplus
29002extern "C"
29003#endif
29004char $ac_func ();
29005/* The GNU C library defines this for functions which it implements
29006 to always fail with ENOSYS. Some functions are actually named
29007 something starting with __ and the normal name is an alias. */
29008#if defined __stub_$ac_func || defined __stub___$ac_func
29009choke me
29010#endif
29011
29012int
29013main ()
29014{
29015return $ac_func ();
29016 ;
29017 return 0;
29018}
29019_ACEOF
29020rm -f conftest.$ac_objext conftest$ac_exeext
29021if { (ac_try="$ac_link"
29022case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29025esac
29026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027 (eval "$ac_link") 2>conftest.er1
29028 ac_status=$?
29029 grep -v '^ *+' conftest.er1 >conftest.err
29030 rm -f conftest.er1
29031 cat conftest.err >&5
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } &&
29034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29035 { (case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29038esac
29039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_try") 2>&5
29041 ac_status=$?
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; } &&
29044 { ac_try='test -s conftest$ac_exeext'
29045 { (case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29048esac
29049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_try") 2>&5
29051 ac_status=$?
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; }; then
29054 eval "$as_ac_var=yes"
29055else
29056 echo "$as_me: failed program was:" >&5
29057sed 's/^/| /' conftest.$ac_ext >&5
29058
29059 eval "$as_ac_var=no"
29060fi
29061
29062rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
29064fi
29065ac_res=`eval echo '${'$as_ac_var'}'`
29066 { echo "$as_me:$LINENO: result: $ac_res" >&5
29067echo "${ECHO_T}$ac_res" >&6; }
29068if test `eval echo '${'$as_ac_var'}'` = yes; then
29069 cat >>confdefs.h <<_ACEOF
29070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29071_ACEOF
29072
29073fi
29074done
29075
29076 fi
29077
29078fi
29079
29080
29081
29082# Check whether user wants Kerberos 5 support
29083KRB5_MSG="no"
29084
29085# Check whether --with-kerberos5 was given.
29086if test "${with_kerberos5+set}" = set; then
29087 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
29088 if test "x$withval" = "xyes" ; then
29089 KRB5ROOT="/usr/local"
29090 else
29091 KRB5ROOT=${withval}
29092 fi
29093
29094
29095cat >>confdefs.h <<\_ACEOF
29096#define KRB5 1
29097_ACEOF
29098
29099 KRB5_MSG="yes"
29100
29101 { echo "$as_me:$LINENO: checking for krb5-config" >&5
29102echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
29103 if test -x $KRB5ROOT/bin/krb5-config ; then
29104 KRB5CONF=$KRB5ROOT/bin/krb5-config
29105 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
29106echo "${ECHO_T}$KRB5CONF" >&6; }
29107
29108 { echo "$as_me:$LINENO: checking for gssapi support" >&5
29109echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
29110 if $KRB5CONF | grep gssapi >/dev/null ; then
29111 { echo "$as_me:$LINENO: result: yes" >&5
29112echo "${ECHO_T}yes" >&6; }
29113
29114cat >>confdefs.h <<\_ACEOF
29115#define GSSAPI 1
29116_ACEOF
29117
29118 k5confopts=gssapi
29119 else
29120 { echo "$as_me:$LINENO: result: no" >&5
29121echo "${ECHO_T}no" >&6; }
29122 k5confopts=""
29123 fi
29124 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
29125 K5LIBS="`$KRB5CONF --libs $k5confopts`"
29126 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
29127 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29128echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
29129 cat >conftest.$ac_ext <<_ACEOF
29130/* confdefs.h. */
29131_ACEOF
29132cat confdefs.h >>conftest.$ac_ext
29133cat >>conftest.$ac_ext <<_ACEOF
29134/* end confdefs.h. */
29135 #include <krb5.h>
29136int
29137main ()
29138{
29139 char *tmp = heimdal_version;
29140 ;
29141 return 0;
29142}
29143_ACEOF
29144rm -f conftest.$ac_objext
29145if { (ac_try="$ac_compile"
29146case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29149esac
29150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_compile") 2>conftest.er1
29152 ac_status=$?
29153 grep -v '^ *+' conftest.er1 >conftest.err
29154 rm -f conftest.er1
29155 cat conftest.err >&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
29158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29159 { (case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29162esac
29163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_try") 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; } &&
29168 { ac_try='test -s conftest.$ac_objext'
29169 { (case "(($ac_try" in
29170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171 *) ac_try_echo=$ac_try;;
29172esac
29173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174 (eval "$ac_try") 2>&5
29175 ac_status=$?
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; }; then
29178 { echo "$as_me:$LINENO: result: yes" >&5
29179echo "${ECHO_T}yes" >&6; }
29180
29181cat >>confdefs.h <<\_ACEOF
29182#define HEIMDAL 1
29183_ACEOF
29184
29185else
29186 echo "$as_me: failed program was:" >&5
29187sed 's/^/| /' conftest.$ac_ext >&5
29188
29189 { echo "$as_me:$LINENO: result: no" >&5
29190echo "${ECHO_T}no" >&6; }
29191
29192fi
29193
29194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29195 else
29196 { echo "$as_me:$LINENO: result: no" >&5
29197echo "${ECHO_T}no" >&6; }
29198 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
29199 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
29200 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29201echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
29202 cat >conftest.$ac_ext <<_ACEOF
29203/* confdefs.h. */
29204_ACEOF
29205cat confdefs.h >>conftest.$ac_ext
29206cat >>conftest.$ac_ext <<_ACEOF
29207/* end confdefs.h. */
29208 #include <krb5.h>
29209int
29210main ()
29211{
29212 char *tmp = heimdal_version;
29213 ;
29214 return 0;
29215}
29216_ACEOF
29217rm -f conftest.$ac_objext
29218if { (ac_try="$ac_compile"
29219case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29222esac
29223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_compile") 2>conftest.er1
29225 ac_status=$?
29226 grep -v '^ *+' conftest.er1 >conftest.err
29227 rm -f conftest.er1
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); } &&
29231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29232 { (case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29235esac
29236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_try") 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest.$ac_objext'
29242 { (case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29245esac
29246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_try") 2>&5
29248 ac_status=$?
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
29251 { echo "$as_me:$LINENO: result: yes" >&5
29252echo "${ECHO_T}yes" >&6; }
29253 cat >>confdefs.h <<\_ACEOF
29254#define HEIMDAL 1
29255_ACEOF
29256
29257 K5LIBS="-lkrb5 -ldes"
29258 K5LIBS="$K5LIBS -lcom_err -lasn1"
29259 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
29260echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
29261if test "${ac_cv_lib_roken_net_write+set}" = set; then
29262 echo $ECHO_N "(cached) $ECHO_C" >&6
29263else
29264 ac_check_lib_save_LIBS=$LIBS
29265LIBS="-lroken $LIBS"
29266cat >conftest.$ac_ext <<_ACEOF
29267/* confdefs.h. */
29268_ACEOF
29269cat confdefs.h >>conftest.$ac_ext
29270cat >>conftest.$ac_ext <<_ACEOF
29271/* end confdefs.h. */
29272
29273/* Override any GCC internal prototype to avoid an error.
29274 Use char because int might match the return type of a GCC
29275 builtin and then its argument prototype would still apply. */
29276#ifdef __cplusplus
29277extern "C"
29278#endif
29279char net_write ();
29280int
29281main ()
29282{
29283return net_write ();
29284 ;
29285 return 0;
29286}
29287_ACEOF
29288rm -f conftest.$ac_objext conftest$ac_exeext
29289if { (ac_try="$ac_link"
29290case "(($ac_try" in
29291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292 *) ac_try_echo=$ac_try;;
29293esac
29294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295 (eval "$ac_link") 2>conftest.er1
29296 ac_status=$?
29297 grep -v '^ *+' conftest.er1 >conftest.err
29298 rm -f conftest.er1
29299 cat conftest.err >&5
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); } &&
29302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29303 { (case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29306esac
29307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308 (eval "$ac_try") 2>&5
29309 ac_status=$?
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; } &&
29312 { ac_try='test -s conftest$ac_exeext'
29313 { (case "(($ac_try" in
29314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315 *) ac_try_echo=$ac_try;;
29316esac
29317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318 (eval "$ac_try") 2>&5
29319 ac_status=$?
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; }; then
29322 ac_cv_lib_roken_net_write=yes
29323else
29324 echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327 ac_cv_lib_roken_net_write=no
29328fi
29329
29330rm -f core conftest.err conftest.$ac_objext \
29331 conftest$ac_exeext conftest.$ac_ext
29332LIBS=$ac_check_lib_save_LIBS
29333fi
29334{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
29335echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
29336if test $ac_cv_lib_roken_net_write = yes; then
29337 K5LIBS="$K5LIBS -lroken"
29338fi
29339
29340
29341else
29342 echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
29345 { echo "$as_me:$LINENO: result: no" >&5
29346echo "${ECHO_T}no" >&6; }
29347 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
29348
29349
29350fi
29351
29352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29353 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
29354echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
29355if test "${ac_cv_search_dn_expand+set}" = set; then
29356 echo $ECHO_N "(cached) $ECHO_C" >&6
29357else
29358 ac_func_search_save_LIBS=$LIBS
29359cat >conftest.$ac_ext <<_ACEOF
29360/* confdefs.h. */
29361_ACEOF
29362cat confdefs.h >>conftest.$ac_ext
29363cat >>conftest.$ac_ext <<_ACEOF
29364/* end confdefs.h. */
29365
29366/* Override any GCC internal prototype to avoid an error.
29367 Use char because int might match the return type of a GCC
29368 builtin and then its argument prototype would still apply. */
29369#ifdef __cplusplus
29370extern "C"
29371#endif
29372char dn_expand ();
29373int
29374main ()
29375{
29376return dn_expand ();
29377 ;
29378 return 0;
29379}
29380_ACEOF
29381for ac_lib in '' resolv; do
29382 if test -z "$ac_lib"; then
29383 ac_res="none required"
29384 else
29385 ac_res=-l$ac_lib
29386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29387 fi
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389if { (ac_try="$ac_link"
29390case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29393esac
29394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_link") 2>conftest.er1
29396 ac_status=$?
29397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403 { (case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29406esac
29407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_try") 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest$ac_exeext'
29413 { (case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416esac
29417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_try") 2>&5
29419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; }; then
29422 ac_cv_search_dn_expand=$ac_res
29423else
29424 echo "$as_me: failed program was:" >&5
29425sed 's/^/| /' conftest.$ac_ext >&5
29426
29427
29428fi
29429
29430rm -f core conftest.err conftest.$ac_objext \
29431 conftest$ac_exeext
29432 if test "${ac_cv_search_dn_expand+set}" = set; then
29433 break
29434fi
29435done
29436if test "${ac_cv_search_dn_expand+set}" = set; then
29437 :
29438else
29439 ac_cv_search_dn_expand=no
29440fi
29441rm conftest.$ac_ext
29442LIBS=$ac_func_search_save_LIBS
29443fi
29444{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
29445echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
29446ac_res=$ac_cv_search_dn_expand
29447if test "$ac_res" != no; then
29448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29449
29450fi
29451
29452
29453 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
29454echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
29455if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
29456 echo $ECHO_N "(cached) $ECHO_C" >&6
29457else
29458 ac_check_lib_save_LIBS=$LIBS
29459LIBS="-lgssapi $K5LIBS $LIBS"
29460cat >conftest.$ac_ext <<_ACEOF
29461/* confdefs.h. */
29462_ACEOF
29463cat confdefs.h >>conftest.$ac_ext
29464cat >>conftest.$ac_ext <<_ACEOF
29465/* end confdefs.h. */
29466
29467/* Override any GCC internal prototype to avoid an error.
29468 Use char because int might match the return type of a GCC
29469 builtin and then its argument prototype would still apply. */
29470#ifdef __cplusplus
29471extern "C"
29472#endif
29473char gss_init_sec_context ();
29474int
29475main ()
29476{
29477return gss_init_sec_context ();
29478 ;
29479 return 0;
29480}
29481_ACEOF
29482rm -f conftest.$ac_objext conftest$ac_exeext
29483if { (ac_try="$ac_link"
29484case "(($ac_try" in
29485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486 *) ac_try_echo=$ac_try;;
29487esac
29488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29489 (eval "$ac_link") 2>conftest.er1
29490 ac_status=$?
29491 grep -v '^ *+' conftest.er1 >conftest.err
29492 rm -f conftest.er1
29493 cat conftest.err >&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } &&
29496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29497 { (case "(($ac_try" in
29498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499 *) ac_try_echo=$ac_try;;
29500esac
29501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502 (eval "$ac_try") 2>&5
29503 ac_status=$?
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; } &&
29506 { ac_try='test -s conftest$ac_exeext'
29507 { (case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29510esac
29511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_try") 2>&5
29513 ac_status=$?
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); }; }; then
29516 ac_cv_lib_gssapi_gss_init_sec_context=yes
29517else
29518 echo "$as_me: failed program was:" >&5
29519sed 's/^/| /' conftest.$ac_ext >&5
29520
29521 ac_cv_lib_gssapi_gss_init_sec_context=no
29522fi
29523
29524rm -f core conftest.err conftest.$ac_objext \
29525 conftest$ac_exeext conftest.$ac_ext
29526LIBS=$ac_check_lib_save_LIBS
29527fi
29528{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
29529echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
29530if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
29531 cat >>confdefs.h <<\_ACEOF
29532#define GSSAPI 1
29533_ACEOF
29534
29535 K5LIBS="-lgssapi $K5LIBS"
29536else
29537 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
29538echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
29539if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29541else
29542 ac_check_lib_save_LIBS=$LIBS
29543LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
29544cat >conftest.$ac_ext <<_ACEOF
29545/* confdefs.h. */
29546_ACEOF
29547cat confdefs.h >>conftest.$ac_ext
29548cat >>conftest.$ac_ext <<_ACEOF
29549/* end confdefs.h. */
29550
29551/* Override any GCC internal prototype to avoid an error.
29552 Use char because int might match the return type of a GCC
29553 builtin and then its argument prototype would still apply. */
29554#ifdef __cplusplus
29555extern "C"
29556#endif
29557char gss_init_sec_context ();
29558int
29559main ()
29560{
29561return gss_init_sec_context ();
29562 ;
29563 return 0;
29564}
29565_ACEOF
29566rm -f conftest.$ac_objext conftest$ac_exeext
29567if { (ac_try="$ac_link"
29568case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29571esac
29572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_link") 2>conftest.er1
29574 ac_status=$?
29575 grep -v '^ *+' conftest.er1 >conftest.err
29576 rm -f conftest.er1
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } &&
29580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29581 { (case "(($ac_try" in
29582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583 *) ac_try_echo=$ac_try;;
29584esac
29585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586 (eval "$ac_try") 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest$ac_exeext'
29591 { (case "(($ac_try" in
29592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593 *) ac_try_echo=$ac_try;;
29594esac
29595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29596 (eval "$ac_try") 2>&5
29597 ac_status=$?
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); }; }; then
29600 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
29601else
29602 echo "$as_me: failed program was:" >&5
29603sed 's/^/| /' conftest.$ac_ext >&5
29604
29605 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
29606fi
29607
29608rm -f core conftest.err conftest.$ac_objext \
29609 conftest$ac_exeext conftest.$ac_ext
29610LIBS=$ac_check_lib_save_LIBS
29611fi
29612{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
29613echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
29614if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
29615 cat >>confdefs.h <<\_ACEOF
29616#define GSSAPI 1
29617_ACEOF
29618
29619 K5LIBS="-lgssapi_krb5 $K5LIBS"
29620else
29621 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
29622echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
29623fi
29624
29625
29626fi
29627
29628
29629 if test "${ac_cv_header_gssapi_h+set}" = set; then
29630 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29631echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29632if test "${ac_cv_header_gssapi_h+set}" = set; then
29633 echo $ECHO_N "(cached) $ECHO_C" >&6
29634fi
29635{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29636echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29637else
29638 # Is the header compilable?
29639{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
29640echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
29641cat >conftest.$ac_ext <<_ACEOF
29642/* confdefs.h. */
29643_ACEOF
29644cat confdefs.h >>conftest.$ac_ext
29645cat >>conftest.$ac_ext <<_ACEOF
29646/* end confdefs.h. */
29647$ac_includes_default
29648#include <gssapi.h>
29649_ACEOF
29650rm -f conftest.$ac_objext
29651if { (ac_try="$ac_compile"
29652case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29655esac
29656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_compile") 2>conftest.er1
29658 ac_status=$?
29659 grep -v '^ *+' conftest.er1 >conftest.err
29660 rm -f conftest.er1
29661 cat conftest.err >&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } &&
29664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29665 { (case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29668esac
29669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_try") 2>&5
29671 ac_status=$?
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; } &&
29674 { ac_try='test -s conftest.$ac_objext'
29675 { (case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29678esac
29679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_try") 2>&5
29681 ac_status=$?
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); }; }; then
29684 ac_header_compiler=yes
29685else
29686 echo "$as_me: failed program was:" >&5
29687sed 's/^/| /' conftest.$ac_ext >&5
29688
29689 ac_header_compiler=no
29690fi
29691
29692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29693{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29694echo "${ECHO_T}$ac_header_compiler" >&6; }
29695
29696# Is the header present?
29697{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
29698echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
29699cat >conftest.$ac_ext <<_ACEOF
29700/* confdefs.h. */
29701_ACEOF
29702cat confdefs.h >>conftest.$ac_ext
29703cat >>conftest.$ac_ext <<_ACEOF
29704/* end confdefs.h. */
29705#include <gssapi.h>
29706_ACEOF
29707if { (ac_try="$ac_cpp conftest.$ac_ext"
29708case "(($ac_try" in
29709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29710 *) ac_try_echo=$ac_try;;
29711esac
29712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29714 ac_status=$?
29715 grep -v '^ *+' conftest.er1 >conftest.err
29716 rm -f conftest.er1
29717 cat conftest.err >&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } >/dev/null; then
29720 if test -s conftest.err; then
29721 ac_cpp_err=$ac_c_preproc_warn_flag
29722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29723 else
29724 ac_cpp_err=
29725 fi
29726else
29727 ac_cpp_err=yes
29728fi
29729if test -z "$ac_cpp_err"; then
29730 ac_header_preproc=yes
29731else
29732 echo "$as_me: failed program was:" >&5
29733sed 's/^/| /' conftest.$ac_ext >&5
29734
29735 ac_header_preproc=no
29736fi
29737
29738rm -f conftest.err conftest.$ac_ext
29739{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29740echo "${ECHO_T}$ac_header_preproc" >&6; }
29741
29742# So? What about this header?
29743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29744 yes:no: )
29745 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
29746echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
29748echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
29749 ac_header_preproc=yes
29750 ;;
29751 no:yes:* )
29752 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
29753echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
29754 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
29755echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
29757echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
29758 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
29759echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
29760 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
29761echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
29762 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
29763echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
29764 ( cat <<\_ASBOX
29765## ------------------------------------------- ##
29766## Report this to openssh-unix-dev@mindrot.org ##
29767## ------------------------------------------- ##
29768_ASBOX
29769 ) | sed "s/^/$as_me: WARNING: /" >&2
29770 ;;
29771esac
29772{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
29773echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29774if test "${ac_cv_header_gssapi_h+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29776else
29777 ac_cv_header_gssapi_h=$ac_header_preproc
29778fi
29779{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29780echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29781
29782fi
29783if test $ac_cv_header_gssapi_h = yes; then
29784 :
29785else
29786 unset ac_cv_header_gssapi_h
29787 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
29788
29789for ac_header in gssapi.h
29790do
29791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29797fi
29798ac_res=`eval echo '${'$as_ac_Header'}'`
29799 { echo "$as_me:$LINENO: result: $ac_res" >&5
29800echo "${ECHO_T}$ac_res" >&6; }
29801else
29802 # Is the header compilable?
29803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29805cat >conftest.$ac_ext <<_ACEOF
29806/* confdefs.h. */
29807_ACEOF
29808cat confdefs.h >>conftest.$ac_ext
29809cat >>conftest.$ac_ext <<_ACEOF
29810/* end confdefs.h. */
29811$ac_includes_default
29812#include <$ac_header>
29813_ACEOF
29814rm -f conftest.$ac_objext
29815if { (ac_try="$ac_compile"
29816case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29819esac
29820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_compile") 2>conftest.er1
29822 ac_status=$?
29823 grep -v '^ *+' conftest.er1 >conftest.err
29824 rm -f conftest.er1
29825 cat conftest.err >&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); } &&
29828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29829 { (case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29832esac
29833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_try") 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; } &&
29838 { ac_try='test -s conftest.$ac_objext'
29839 { (case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29842esac
29843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_try") 2>&5
29845 ac_status=$?
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; }; then
29848 ac_header_compiler=yes
29849else
29850 echo "$as_me: failed program was:" >&5
29851sed 's/^/| /' conftest.$ac_ext >&5
29852
29853 ac_header_compiler=no
29854fi
29855
29856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29858echo "${ECHO_T}$ac_header_compiler" >&6; }
29859
29860# Is the header present?
29861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29863cat >conftest.$ac_ext <<_ACEOF
29864/* confdefs.h. */
29865_ACEOF
29866cat confdefs.h >>conftest.$ac_ext
29867cat >>conftest.$ac_ext <<_ACEOF
29868/* end confdefs.h. */
29869#include <$ac_header>
29870_ACEOF
29871if { (ac_try="$ac_cpp conftest.$ac_ext"
29872case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29875esac
29876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29878 ac_status=$?
29879 grep -v '^ *+' conftest.er1 >conftest.err
29880 rm -f conftest.er1
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } >/dev/null; then
29884 if test -s conftest.err; then
29885 ac_cpp_err=$ac_c_preproc_warn_flag
29886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29887 else
29888 ac_cpp_err=
29889 fi
29890else
29891 ac_cpp_err=yes
29892fi
29893if test -z "$ac_cpp_err"; then
29894 ac_header_preproc=yes
29895else
29896 echo "$as_me: failed program was:" >&5
29897sed 's/^/| /' conftest.$ac_ext >&5
29898
29899 ac_header_preproc=no
29900fi
29901
29902rm -f conftest.err conftest.$ac_ext
29903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29904echo "${ECHO_T}$ac_header_preproc" >&6; }
29905
29906# So? What about this header?
29907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29908 yes:no: )
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29913 ac_header_preproc=yes
29914 ;;
29915 no:yes:* )
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29928 ( cat <<\_ASBOX
29929## ------------------------------------------- ##
29930## Report this to openssh-unix-dev@mindrot.org ##
29931## ------------------------------------------- ##
29932_ASBOX
29933 ) | sed "s/^/$as_me: WARNING: /" >&2
29934 ;;
29935esac
29936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940else
29941 eval "$as_ac_Header=\$ac_header_preproc"
29942fi
29943ac_res=`eval echo '${'$as_ac_Header'}'`
29944 { echo "$as_me:$LINENO: result: $ac_res" >&5
29945echo "${ECHO_T}$ac_res" >&6; }
29946
29947fi
29948if test `eval echo '${'$as_ac_Header'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29951_ACEOF
29952
29953else
29954 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
29955echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
29956
29957fi
29958
29959done
29960
29961
29962
29963fi
29964
29965
29966
29967 oldCPP="$CPPFLAGS"
29968 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
29969 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
29970 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
29971echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
29972if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
29973 echo $ECHO_N "(cached) $ECHO_C" >&6
29974fi
29975{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
29976echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
29977else
29978 # Is the header compilable?
29979{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
29980echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
29981cat >conftest.$ac_ext <<_ACEOF
29982/* confdefs.h. */
29983_ACEOF
29984cat confdefs.h >>conftest.$ac_ext
29985cat >>conftest.$ac_ext <<_ACEOF
29986/* end confdefs.h. */
29987$ac_includes_default
29988#include <gssapi_krb5.h>
29989_ACEOF
29990rm -f conftest.$ac_objext
29991if { (ac_try="$ac_compile"
29992case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29995esac
29996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_compile") 2>conftest.er1
29998 ac_status=$?
29999 grep -v '^ *+' conftest.er1 >conftest.err
30000 rm -f conftest.er1
30001 cat conftest.err >&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
30004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30005 { (case "(($ac_try" in
30006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007 *) ac_try_echo=$ac_try;;
30008esac
30009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_try") 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; } &&
30014 { ac_try='test -s conftest.$ac_objext'
30015 { (case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30018esac
30019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
30021 ac_status=$?
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; }; then
30024 ac_header_compiler=yes
30025else
30026 echo "$as_me: failed program was:" >&5
30027sed 's/^/| /' conftest.$ac_ext >&5
30028
30029 ac_header_compiler=no
30030fi
30031
30032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30033{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30034echo "${ECHO_T}$ac_header_compiler" >&6; }
30035
30036# Is the header present?
30037{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
30038echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
30039cat >conftest.$ac_ext <<_ACEOF
30040/* confdefs.h. */
30041_ACEOF
30042cat confdefs.h >>conftest.$ac_ext
30043cat >>conftest.$ac_ext <<_ACEOF
30044/* end confdefs.h. */
30045#include <gssapi_krb5.h>
30046_ACEOF
30047if { (ac_try="$ac_cpp conftest.$ac_ext"
30048case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30051esac
30052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30054 ac_status=$?
30055 grep -v '^ *+' conftest.er1 >conftest.err
30056 rm -f conftest.er1
30057 cat conftest.err >&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); } >/dev/null; then
30060 if test -s conftest.err; then
30061 ac_cpp_err=$ac_c_preproc_warn_flag
30062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30063 else
30064 ac_cpp_err=
30065 fi
30066else
30067 ac_cpp_err=yes
30068fi
30069if test -z "$ac_cpp_err"; then
30070 ac_header_preproc=yes
30071else
30072 echo "$as_me: failed program was:" >&5
30073sed 's/^/| /' conftest.$ac_ext >&5
30074
30075 ac_header_preproc=no
30076fi
30077
30078rm -f conftest.err conftest.$ac_ext
30079{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30080echo "${ECHO_T}$ac_header_preproc" >&6; }
30081
30082# So? What about this header?
30083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30084 yes:no: )
30085 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
30086echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
30088echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
30089 ac_header_preproc=yes
30090 ;;
30091 no:yes:* )
30092 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
30093echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
30094 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
30095echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
30096 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
30097echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
30098 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
30099echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
30101echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
30103echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
30104 ( cat <<\_ASBOX
30105## ------------------------------------------- ##
30106## Report this to openssh-unix-dev@mindrot.org ##
30107## ------------------------------------------- ##
30108_ASBOX
30109 ) | sed "s/^/$as_me: WARNING: /" >&2
30110 ;;
30111esac
30112{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
30113echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
30114if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30116else
30117 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
30118fi
30119{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
30120echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
30121
30122fi
30123if test $ac_cv_header_gssapi_krb5_h = yes; then
30124 :
30125else
30126 CPPFLAGS="$oldCPP"
30127fi
30128
30129
30130
30131 fi
30132 if test ! -z "$need_dash_r" ; then
30133 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
30134 fi
30135 if test ! -z "$blibpath" ; then
30136 blibpath="$blibpath:${KRB5ROOT}/lib"
30137 fi
30138
30139
30140
30141for ac_header in gssapi.h gssapi/gssapi.h
30142do
30143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30148 echo $ECHO_N "(cached) $ECHO_C" >&6
30149fi
30150ac_res=`eval echo '${'$as_ac_Header'}'`
30151 { echo "$as_me:$LINENO: result: $ac_res" >&5
30152echo "${ECHO_T}$ac_res" >&6; }
30153else
30154 # Is the header compilable?
30155{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30157cat >conftest.$ac_ext <<_ACEOF
30158/* confdefs.h. */
30159_ACEOF
30160cat confdefs.h >>conftest.$ac_ext
30161cat >>conftest.$ac_ext <<_ACEOF
30162/* end confdefs.h. */
30163$ac_includes_default
30164#include <$ac_header>
30165_ACEOF
30166rm -f conftest.$ac_objext
30167if { (ac_try="$ac_compile"
30168case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171esac
30172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_compile") 2>conftest.er1
30174 ac_status=$?
30175 grep -v '^ *+' conftest.er1 >conftest.err
30176 rm -f conftest.er1
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } &&
30180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181 { (case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30184esac
30185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_try") 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 ac_header_compiler=yes
30201else
30202 echo "$as_me: failed program was:" >&5
30203sed 's/^/| /' conftest.$ac_ext >&5
30204
30205 ac_header_compiler=no
30206fi
30207
30208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30210echo "${ECHO_T}$ac_header_compiler" >&6; }
30211
30212# Is the header present?
30213{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30215cat >conftest.$ac_ext <<_ACEOF
30216/* confdefs.h. */
30217_ACEOF
30218cat confdefs.h >>conftest.$ac_ext
30219cat >>conftest.$ac_ext <<_ACEOF
30220/* end confdefs.h. */
30221#include <$ac_header>
30222_ACEOF
30223if { (ac_try="$ac_cpp conftest.$ac_ext"
30224case "(($ac_try" in
30225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226 *) ac_try_echo=$ac_try;;
30227esac
30228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30230 ac_status=$?
30231 grep -v '^ *+' conftest.er1 >conftest.err
30232 rm -f conftest.er1
30233 cat conftest.err >&5
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); } >/dev/null; then
30236 if test -s conftest.err; then
30237 ac_cpp_err=$ac_c_preproc_warn_flag
30238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30239 else
30240 ac_cpp_err=
30241 fi
30242else
30243 ac_cpp_err=yes
30244fi
30245if test -z "$ac_cpp_err"; then
30246 ac_header_preproc=yes
30247else
30248 echo "$as_me: failed program was:" >&5
30249sed 's/^/| /' conftest.$ac_ext >&5
30250
30251 ac_header_preproc=no
30252fi
30253
30254rm -f conftest.err conftest.$ac_ext
30255{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30256echo "${ECHO_T}$ac_header_preproc" >&6; }
30257
30258# So? What about this header?
30259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30260 yes:no: )
30261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30265 ac_header_preproc=yes
30266 ;;
30267 no:yes:* )
30268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30271echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30275echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30280 ( cat <<\_ASBOX
30281## ------------------------------------------- ##
30282## Report this to openssh-unix-dev@mindrot.org ##
30283## ------------------------------------------- ##
30284_ASBOX
30285 ) | sed "s/^/$as_me: WARNING: /" >&2
30286 ;;
30287esac
30288{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291 echo $ECHO_N "(cached) $ECHO_C" >&6
30292else
30293 eval "$as_ac_Header=\$ac_header_preproc"
30294fi
30295ac_res=`eval echo '${'$as_ac_Header'}'`
30296 { echo "$as_me:$LINENO: result: $ac_res" >&5
30297echo "${ECHO_T}$ac_res" >&6; }
30298
30299fi
30300if test `eval echo '${'$as_ac_Header'}'` = yes; then
30301 cat >>confdefs.h <<_ACEOF
30302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30303_ACEOF
30304
30305fi
30306
30307done
30308
30309
30310
30311for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
30312do
30313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30318 echo $ECHO_N "(cached) $ECHO_C" >&6
30319fi
30320ac_res=`eval echo '${'$as_ac_Header'}'`
30321 { echo "$as_me:$LINENO: result: $ac_res" >&5
30322echo "${ECHO_T}$ac_res" >&6; }
30323else
30324 # Is the header compilable?
30325{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30327cat >conftest.$ac_ext <<_ACEOF
30328/* confdefs.h. */
30329_ACEOF
30330cat confdefs.h >>conftest.$ac_ext
30331cat >>conftest.$ac_ext <<_ACEOF
30332/* end confdefs.h. */
30333$ac_includes_default
30334#include <$ac_header>
30335_ACEOF
30336rm -f conftest.$ac_objext
30337if { (ac_try="$ac_compile"
30338case "(($ac_try" in
30339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340 *) ac_try_echo=$ac_try;;
30341esac
30342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343 (eval "$ac_compile") 2>conftest.er1
30344 ac_status=$?
30345 grep -v '^ *+' conftest.er1 >conftest.err
30346 rm -f conftest.er1
30347 cat conftest.err >&5
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); } &&
30350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30351 { (case "(($ac_try" in
30352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353 *) ac_try_echo=$ac_try;;
30354esac
30355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356 (eval "$ac_try") 2>&5
30357 ac_status=$?
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; } &&
30360 { ac_try='test -s conftest.$ac_objext'
30361 { (case "(($ac_try" in
30362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363 *) ac_try_echo=$ac_try;;
30364esac
30365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366 (eval "$ac_try") 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 ac_header_compiler=yes
30371else
30372 echo "$as_me: failed program was:" >&5
30373sed 's/^/| /' conftest.$ac_ext >&5
30374
30375 ac_header_compiler=no
30376fi
30377
30378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30380echo "${ECHO_T}$ac_header_compiler" >&6; }
30381
30382# Is the header present?
30383{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30385cat >conftest.$ac_ext <<_ACEOF
30386/* confdefs.h. */
30387_ACEOF
30388cat confdefs.h >>conftest.$ac_ext
30389cat >>conftest.$ac_ext <<_ACEOF
30390/* end confdefs.h. */
30391#include <$ac_header>
30392_ACEOF
30393if { (ac_try="$ac_cpp conftest.$ac_ext"
30394case "(($ac_try" in
30395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396 *) ac_try_echo=$ac_try;;
30397esac
30398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30400 ac_status=$?
30401 grep -v '^ *+' conftest.er1 >conftest.err
30402 rm -f conftest.er1
30403 cat conftest.err >&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } >/dev/null; then
30406 if test -s conftest.err; then
30407 ac_cpp_err=$ac_c_preproc_warn_flag
30408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30409 else
30410 ac_cpp_err=
30411 fi
30412else
30413 ac_cpp_err=yes
30414fi
30415if test -z "$ac_cpp_err"; then
30416 ac_header_preproc=yes
30417else
30418 echo "$as_me: failed program was:" >&5
30419sed 's/^/| /' conftest.$ac_ext >&5
30420
30421 ac_header_preproc=no
30422fi
30423
30424rm -f conftest.err conftest.$ac_ext
30425{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30426echo "${ECHO_T}$ac_header_preproc" >&6; }
30427
30428# So? What about this header?
30429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30430 yes:no: )
30431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30435 ac_header_preproc=yes
30436 ;;
30437 no:yes:* )
30438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30450 ( cat <<\_ASBOX
30451## ------------------------------------------- ##
30452## Report this to openssh-unix-dev@mindrot.org ##
30453## ------------------------------------------- ##
30454_ASBOX
30455 ) | sed "s/^/$as_me: WARNING: /" >&2
30456 ;;
30457esac
30458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462else
30463 eval "$as_ac_Header=\$ac_header_preproc"
30464fi
30465ac_res=`eval echo '${'$as_ac_Header'}'`
30466 { echo "$as_me:$LINENO: result: $ac_res" >&5
30467echo "${ECHO_T}$ac_res" >&6; }
30468
30469fi
30470if test `eval echo '${'$as_ac_Header'}'` = yes; then
30471 cat >>confdefs.h <<_ACEOF
30472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30473_ACEOF
30474
30475fi
30476
30477done
30478
30479
30480
30481for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
30482do
30483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30488 echo $ECHO_N "(cached) $ECHO_C" >&6
30489fi
30490ac_res=`eval echo '${'$as_ac_Header'}'`
30491 { echo "$as_me:$LINENO: result: $ac_res" >&5
30492echo "${ECHO_T}$ac_res" >&6; }
30493else
30494 # Is the header compilable?
30495{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30497cat >conftest.$ac_ext <<_ACEOF
30498/* confdefs.h. */
30499_ACEOF
30500cat confdefs.h >>conftest.$ac_ext
30501cat >>conftest.$ac_ext <<_ACEOF
30502/* end confdefs.h. */
30503$ac_includes_default
30504#include <$ac_header>
30505_ACEOF
30506rm -f conftest.$ac_objext
30507if { (ac_try="$ac_compile"
30508case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30511esac
30512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_compile") 2>conftest.er1
30514 ac_status=$?
30515 grep -v '^ *+' conftest.er1 >conftest.err
30516 rm -f conftest.er1
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
30520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30521 { (case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30524esac
30525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_try") 2>&5
30527 ac_status=$?
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; } &&
30530 { ac_try='test -s conftest.$ac_objext'
30531 { (case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30534esac
30535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_try") 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; }; then
30540 ac_header_compiler=yes
30541else
30542 echo "$as_me: failed program was:" >&5
30543sed 's/^/| /' conftest.$ac_ext >&5
30544
30545 ac_header_compiler=no
30546fi
30547
30548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30549{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30550echo "${ECHO_T}$ac_header_compiler" >&6; }
30551
30552# Is the header present?
30553{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30555cat >conftest.$ac_ext <<_ACEOF
30556/* confdefs.h. */
30557_ACEOF
30558cat confdefs.h >>conftest.$ac_ext
30559cat >>conftest.$ac_ext <<_ACEOF
30560/* end confdefs.h. */
30561#include <$ac_header>
30562_ACEOF
30563if { (ac_try="$ac_cpp conftest.$ac_ext"
30564case "(($ac_try" in
30565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566 *) ac_try_echo=$ac_try;;
30567esac
30568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30570 ac_status=$?
30571 grep -v '^ *+' conftest.er1 >conftest.err
30572 rm -f conftest.er1
30573 cat conftest.err >&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } >/dev/null; then
30576 if test -s conftest.err; then
30577 ac_cpp_err=$ac_c_preproc_warn_flag
30578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30579 else
30580 ac_cpp_err=
30581 fi
30582else
30583 ac_cpp_err=yes
30584fi
30585if test -z "$ac_cpp_err"; then
30586 ac_header_preproc=yes
30587else
30588 echo "$as_me: failed program was:" >&5
30589sed 's/^/| /' conftest.$ac_ext >&5
30590
30591 ac_header_preproc=no
30592fi
30593
30594rm -f conftest.err conftest.$ac_ext
30595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30596echo "${ECHO_T}$ac_header_preproc" >&6; }
30597
30598# So? What about this header?
30599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30600 yes:no: )
30601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30605 ac_header_preproc=yes
30606 ;;
30607 no:yes:* )
30608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30620 ( cat <<\_ASBOX
30621## ------------------------------------------- ##
30622## Report this to openssh-unix-dev@mindrot.org ##
30623## ------------------------------------------- ##
30624_ASBOX
30625 ) | sed "s/^/$as_me: WARNING: /" >&2
30626 ;;
30627esac
30628{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30631 echo $ECHO_N "(cached) $ECHO_C" >&6
30632else
30633 eval "$as_ac_Header=\$ac_header_preproc"
30634fi
30635ac_res=`eval echo '${'$as_ac_Header'}'`
30636 { echo "$as_me:$LINENO: result: $ac_res" >&5
30637echo "${ECHO_T}$ac_res" >&6; }
30638
30639fi
30640if test `eval echo '${'$as_ac_Header'}'` = yes; then
30641 cat >>confdefs.h <<_ACEOF
30642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30643_ACEOF
30644
30645fi
30646
30647done
30648
30649
30650 LIBS="$LIBS $K5LIBS"
30651 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
30652echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
30653if test "${ac_cv_search_k_hasafs+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30655else
30656 ac_func_search_save_LIBS=$LIBS
30657cat >conftest.$ac_ext <<_ACEOF
30658/* confdefs.h. */
30659_ACEOF
30660cat confdefs.h >>conftest.$ac_ext
30661cat >>conftest.$ac_ext <<_ACEOF
30662/* end confdefs.h. */
30663
30664/* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
30667#ifdef __cplusplus
30668extern "C"
30669#endif
30670char k_hasafs ();
30671int
30672main ()
30673{
30674return k_hasafs ();
30675 ;
30676 return 0;
30677}
30678_ACEOF
30679for ac_lib in '' kafs; do
30680 if test -z "$ac_lib"; then
30681 ac_res="none required"
30682 else
30683 ac_res=-l$ac_lib
30684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30685 fi
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687if { (ac_try="$ac_link"
30688case "(($ac_try" in
30689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30691esac
30692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_link") 2>conftest.er1
30694 ac_status=$?
30695 grep -v '^ *+' conftest.er1 >conftest.err
30696 rm -f conftest.er1
30697 cat conftest.err >&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } &&
30700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701 { (case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30704esac
30705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_try") 2>&5
30707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest$ac_exeext'
30711 { (case "(($ac_try" in
30712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30714esac
30715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_try") 2>&5
30717 ac_status=$?
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; }; then
30720 ac_cv_search_k_hasafs=$ac_res
30721else
30722 echo "$as_me: failed program was:" >&5
30723sed 's/^/| /' conftest.$ac_ext >&5
30724
30725
30726fi
30727
30728rm -f core conftest.err conftest.$ac_objext \
30729 conftest$ac_exeext
30730 if test "${ac_cv_search_k_hasafs+set}" = set; then
30731 break
30732fi
30733done
30734if test "${ac_cv_search_k_hasafs+set}" = set; then
30735 :
30736else
30737 ac_cv_search_k_hasafs=no
30738fi
30739rm conftest.$ac_ext
30740LIBS=$ac_func_search_save_LIBS
30741fi
30742{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
30743echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
30744ac_res=$ac_cv_search_k_hasafs
30745if test "$ac_res" != no; then
30746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30747
30748cat >>confdefs.h <<\_ACEOF
30749#define USE_AFS 1
30750_ACEOF
30751
30752fi
30753
30754 fi
30755
30756
30757fi
30758
30759
30760# Looking for programs, paths and files
30761
30762PRIVSEP_PATH=/var/empty
30763
30764# Check whether --with-privsep-path was given.
30765if test "${with_privsep_path+set}" = set; then
30766 withval=$with_privsep_path;
30767 if test -n "$withval" && test "x$withval" != "xno" && \
30768 test "x${withval}" != "xyes"; then
30769 PRIVSEP_PATH=$withval
30770 fi
30771
30772
30773fi
30774
30775
30776
30777
30778# Check whether --with-xauth was given.
30779if test "${with_xauth+set}" = set; then
30780 withval=$with_xauth;
30781 if test -n "$withval" && test "x$withval" != "xno" && \
30782 test "x${withval}" != "xyes"; then
30783 xauth_path=$withval
30784 fi
30785
30786else
30787
30788 TestPath="$PATH"
30789 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
30790 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
30791 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
30792 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
30793 # Extract the first word of "xauth", so it can be a program name with args.
30794set dummy xauth; ac_word=$2
30795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30797if test "${ac_cv_path_xauth_path+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30799else
30800 case $xauth_path in
30801 [\\/]* | ?:[\\/]*)
30802 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
30803 ;;
30804 *)
30805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30806for as_dir in $TestPath
30807do
30808 IFS=$as_save_IFS
30809 test -z "$as_dir" && as_dir=.
30810 for ac_exec_ext in '' $ac_executable_extensions; do
30811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30812 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
30813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30814 break 2
30815 fi
30816done
30817done
30818IFS=$as_save_IFS
30819
30820 ;;
30821esac
30822fi
30823xauth_path=$ac_cv_path_xauth_path
30824if test -n "$xauth_path"; then
30825 { echo "$as_me:$LINENO: result: $xauth_path" >&5
30826echo "${ECHO_T}$xauth_path" >&6; }
30827else
30828 { echo "$as_me:$LINENO: result: no" >&5
30829echo "${ECHO_T}no" >&6; }
30830fi
30831
30832
30833 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
30834 xauth_path="/usr/openwin/bin/xauth"
30835 fi
30836
30837
30838fi
30839
30840
30841STRIP_OPT=-s
30842# Check whether --enable-strip was given.
30843if test "${enable_strip+set}" = set; then
30844 enableval=$enable_strip;
30845 if test "x$enableval" = "xno" ; then
30846 STRIP_OPT=
30847 fi
30848
30849
30850fi
30851
30852
30853
30854if test -z "$xauth_path" ; then
30855 XAUTH_PATH="undefined"
30856
30857else
30858
30859cat >>confdefs.h <<_ACEOF
30860#define XAUTH_PATH "$xauth_path"
30861_ACEOF
30862
30863 XAUTH_PATH=$xauth_path
30864
30865fi
30866
30867# Check for mail directory (last resort if we cannot get it from headers)
30868if test ! -z "$MAIL" ; then
30869 maildir=`dirname $MAIL`
30870
30871cat >>confdefs.h <<_ACEOF
30872#define MAIL_DIRECTORY "$maildir"
30873_ACEOF
30874
30875fi
30876
30877if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
30878 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
30879echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
30880 disable_ptmx_check=yes
30881fi
30882if test -z "$no_dev_ptmx" ; then
30883 if test "x$disable_ptmx_check" != "xyes" ; then
30884 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
30885echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
30886if test "${ac_cv_file___dev_ptmx_+set}" = set; then
30887 echo $ECHO_N "(cached) $ECHO_C" >&6
30888else
30889 test "$cross_compiling" = yes &&
30890 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30891echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30892 { (exit 1); exit 1; }; }
30893if test -r ""/dev/ptmx""; then
30894 ac_cv_file___dev_ptmx_=yes
30895else
30896 ac_cv_file___dev_ptmx_=no
30897fi
30898fi
30899{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
30900echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
30901if test $ac_cv_file___dev_ptmx_ = yes; then
30902
30903
30904cat >>confdefs.h <<_ACEOF
30905#define HAVE_DEV_PTMX 1
30906_ACEOF
30907
30908 have_dev_ptmx=1
30909
30910
30911fi
30912
30913 fi
30914fi
30915
30916if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
30917 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
30918echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
30919if test "${ac_cv_file___dev_ptc_+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922 test "$cross_compiling" = yes &&
30923 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30924echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30925 { (exit 1); exit 1; }; }
30926if test -r ""/dev/ptc""; then
30927 ac_cv_file___dev_ptc_=yes
30928else
30929 ac_cv_file___dev_ptc_=no
30930fi
30931fi
30932{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
30933echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
30934if test $ac_cv_file___dev_ptc_ = yes; then
30935
30936
30937cat >>confdefs.h <<_ACEOF
30938#define HAVE_DEV_PTS_AND_PTC 1
30939_ACEOF
30940
30941 have_dev_ptc=1
30942
30943
30944fi
30945
30946else
30947 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
30948echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
30949fi
30950
30951# Options from here on. Some of these are preset by platform above
30952
30953# Check whether --with-mantype was given.
30954if test "${with_mantype+set}" = set; then
30955 withval=$with_mantype;
30956 case "$withval" in
30957 man|cat|doc)
30958 MANTYPE=$withval
30959 ;;
30960 *)
30961 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
30962echo "$as_me: error: invalid man type: $withval" >&2;}
30963 { (exit 1); exit 1; }; }
30964 ;;
30965 esac
30966
30967
30968fi
30969
30970if test -z "$MANTYPE"; then
30971 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
30972 for ac_prog in nroff awf
30973do
30974 # Extract the first word of "$ac_prog", so it can be a program name with args.
30975set dummy $ac_prog; ac_word=$2
30976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30978if test "${ac_cv_path_NROFF+set}" = set; then
30979 echo $ECHO_N "(cached) $ECHO_C" >&6
30980else
30981 case $NROFF in
30982 [\\/]* | ?:[\\/]*)
30983 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
30984 ;;
30985 *)
30986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30987for as_dir in $TestPath
30988do
30989 IFS=$as_save_IFS
30990 test -z "$as_dir" && as_dir=.
30991 for ac_exec_ext in '' $ac_executable_extensions; do
30992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30993 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
30994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30995 break 2
30996 fi
30997done
30998done
30999IFS=$as_save_IFS
31000
31001 ;;
31002esac
31003fi
31004NROFF=$ac_cv_path_NROFF
31005if test -n "$NROFF"; then
31006 { echo "$as_me:$LINENO: result: $NROFF" >&5
31007echo "${ECHO_T}$NROFF" >&6; }
31008else
31009 { echo "$as_me:$LINENO: result: no" >&5
31010echo "${ECHO_T}no" >&6; }
31011fi
31012
31013
31014 test -n "$NROFF" && break
31015done
31016test -n "$NROFF" || NROFF="/bin/false"
31017
31018 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
31019 MANTYPE=doc
31020 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
31021 MANTYPE=man
31022 else
31023 MANTYPE=cat
31024 fi
31025fi
31026
31027if test "$MANTYPE" = "doc"; then
31028 mansubdir=man;
31029else
31030 mansubdir=$MANTYPE;
31031fi
31032
31033
31034# Check whether to enable MD5 passwords
31035MD5_MSG="no"
31036
31037# Check whether --with-md5-passwords was given.
31038if test "${with_md5_passwords+set}" = set; then
31039 withval=$with_md5_passwords;
31040 if test "x$withval" != "xno" ; then
31041
31042cat >>confdefs.h <<\_ACEOF
31043#define HAVE_MD5_PASSWORDS 1
31044_ACEOF
31045
31046 MD5_MSG="yes"
31047 fi
31048
31049
31050fi
31051
31052
31053# Whether to disable shadow password support
31054
31055# Check whether --with-shadow was given.
31056if test "${with_shadow+set}" = set; then
31057 withval=$with_shadow;
31058 if test "x$withval" = "xno" ; then
31059 cat >>confdefs.h <<\_ACEOF
31060#define DISABLE_SHADOW 1
31061_ACEOF
31062
31063 disable_shadow=yes
31064 fi
31065
31066
31067fi
31068
31069
31070if test -z "$disable_shadow" ; then
31071 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
31072echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
31073 cat >conftest.$ac_ext <<_ACEOF
31074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
31079
31080#include <sys/types.h>
31081#include <shadow.h>
31082 struct spwd sp;
31083
31084int
31085main ()
31086{
31087 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
31088 ;
31089 return 0;
31090}
31091_ACEOF
31092rm -f conftest.$ac_objext
31093if { (ac_try="$ac_compile"
31094case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31097esac
31098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_compile") 2>conftest.er1
31100 ac_status=$?
31101 grep -v '^ *+' conftest.er1 >conftest.err
31102 rm -f conftest.er1
31103 cat conftest.err >&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); } &&
31106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31107 { (case "(($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_try") 2>&5
31113 ac_status=$?
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; } &&
31116 { ac_try='test -s conftest.$ac_objext'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31123 ac_status=$?
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 sp_expire_available=yes
31127else
31128 echo "$as_me: failed program was:" >&5
31129sed 's/^/| /' conftest.$ac_ext >&5
31130
31131
31132
31133fi
31134
31135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31136
31137 if test "x$sp_expire_available" = "xyes" ; then
31138 { echo "$as_me:$LINENO: result: yes" >&5
31139echo "${ECHO_T}yes" >&6; }
31140
31141cat >>confdefs.h <<\_ACEOF
31142#define HAS_SHADOW_EXPIRE 1
31143_ACEOF
31144
31145 else
31146 { echo "$as_me:$LINENO: result: no" >&5
31147echo "${ECHO_T}no" >&6; }
31148 fi
31149fi
31150
31151# Use ip address instead of hostname in $DISPLAY
31152if test ! -z "$IPADDR_IN_DISPLAY" ; then
31153 DISPLAY_HACK_MSG="yes"
31154
31155cat >>confdefs.h <<\_ACEOF
31156#define IPADDR_IN_DISPLAY 1
31157_ACEOF
31158
31159else
31160 DISPLAY_HACK_MSG="no"
31161
31162# Check whether --with-ipaddr-display was given.
31163if test "${with_ipaddr_display+set}" = set; then
31164 withval=$with_ipaddr_display;
31165 if test "x$withval" != "xno" ; then
31166 cat >>confdefs.h <<\_ACEOF
31167#define IPADDR_IN_DISPLAY 1
31168_ACEOF
31169
31170 DISPLAY_HACK_MSG="yes"
31171 fi
31172
31173
31174fi
31175
31176fi
31177
31178# check for /etc/default/login and use it if present.
31179# Check whether --enable-etc-default-login was given.
31180if test "${enable_etc_default_login+set}" = set; then
31181 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
31182 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
31183echo "$as_me: /etc/default/login handling disabled" >&6;}
31184 etc_default_login=no
31185 else
31186 etc_default_login=yes
31187 fi
31188else
31189 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
31190 then
31191 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
31192echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
31193 etc_default_login=no
31194 else
31195 etc_default_login=yes
31196 fi
31197
31198fi
31199
31200
31201if test "x$etc_default_login" != "xno"; then
31202 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
31203echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
31204if test "${ac_cv_file___etc_default_login_+set}" = set; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31206else
31207 test "$cross_compiling" = yes &&
31208 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
31209echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
31210 { (exit 1); exit 1; }; }
31211if test -r ""/etc/default/login""; then
31212 ac_cv_file___etc_default_login_=yes
31213else
31214 ac_cv_file___etc_default_login_=no
31215fi
31216fi
31217{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
31218echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
31219if test $ac_cv_file___etc_default_login_ = yes; then
31220 external_path_file=/etc/default/login
31221fi
31222
31223 if test "x$external_path_file" = "x/etc/default/login"; then
31224
31225cat >>confdefs.h <<\_ACEOF
31226#define HAVE_ETC_DEFAULT_LOGIN 1
31227_ACEOF
31228
31229 fi
31230fi
31231
31232if test $ac_cv_func_login_getcapbool = "yes" && \
31233 test $ac_cv_header_login_cap_h = "yes" ; then
31234 external_path_file=/etc/login.conf
31235fi
31236
31237# Whether to mess with the default path
31238SERVER_PATH_MSG="(default)"
31239
31240# Check whether --with-default-path was given.
31241if test "${with_default_path+set}" = set; then
31242 withval=$with_default_path;
31243 if test "x$external_path_file" = "x/etc/login.conf" ; then
31244 { echo "$as_me:$LINENO: WARNING:
31245--with-default-path=PATH has no effect on this system.
31246Edit /etc/login.conf instead." >&5
31247echo "$as_me: WARNING:
31248--with-default-path=PATH has no effect on this system.
31249Edit /etc/login.conf instead." >&2;}
31250 elif test "x$withval" != "xno" ; then
31251 if test ! -z "$external_path_file" ; then
31252 { echo "$as_me:$LINENO: WARNING:
31253--with-default-path=PATH will only be used if PATH is not defined in
31254$external_path_file ." >&5
31255echo "$as_me: WARNING:
31256--with-default-path=PATH will only be used if PATH is not defined in
31257$external_path_file ." >&2;}
31258 fi
31259 user_path="$withval"
31260 SERVER_PATH_MSG="$withval"
31261 fi
31262
31263else
31264 if test "x$external_path_file" = "x/etc/login.conf" ; then
31265 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
31266echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
31267 else
31268 if test ! -z "$external_path_file" ; then
31269 { echo "$as_me:$LINENO: WARNING:
31270If PATH is defined in $external_path_file, ensure the path to scp is included,
31271otherwise scp will not work." >&5
31272echo "$as_me: WARNING:
31273If PATH is defined in $external_path_file, ensure the path to scp is included,
31274otherwise scp will not work." >&2;}
31275 fi
31276 if test "$cross_compiling" = yes; then
31277 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
31278
31279else
31280 cat >conftest.$ac_ext <<_ACEOF
31281/* confdefs.h. */
31282_ACEOF
31283cat confdefs.h >>conftest.$ac_ext
31284cat >>conftest.$ac_ext <<_ACEOF
31285/* end confdefs.h. */
31286
31287/* find out what STDPATH is */
31288#include <stdio.h>
31289#ifdef HAVE_PATHS_H
31290# include <paths.h>
31291#endif
31292#ifndef _PATH_STDPATH
31293# ifdef _PATH_USERPATH /* Irix */
31294# define _PATH_STDPATH _PATH_USERPATH
31295# else
31296# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
31297# endif
31298#endif
31299#include <sys/types.h>
31300#include <sys/stat.h>
31301#include <fcntl.h>
31302#define DATA "conftest.stdpath"
31303
31304main()
31305{
31306 FILE *fd;
31307 int rc;
31308
31309 fd = fopen(DATA,"w");
31310 if(fd == NULL)
31311 exit(1);
31312
31313 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
31314 exit(1);
31315
31316 exit(0);
31317}
31318
31319_ACEOF
31320rm -f conftest$ac_exeext
31321if { (ac_try="$ac_link"
31322case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31325esac
31326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_link") 2>&5
31328 ac_status=$?
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31331 { (case "(($ac_try" in
31332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31333 *) ac_try_echo=$ac_try;;
31334esac
31335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31336 (eval "$ac_try") 2>&5
31337 ac_status=$?
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); }; }; then
31340 user_path=`cat conftest.stdpath`
31341else
31342 echo "$as_me: program exited with status $ac_status" >&5
31343echo "$as_me: failed program was:" >&5
31344sed 's/^/| /' conftest.$ac_ext >&5
31345
31346( exit $ac_status )
31347 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
31348fi
31349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31350fi
31351
31352
31353# make sure $bindir is in USER_PATH so scp will work
31354 t_bindir=`eval echo ${bindir}`
31355 case $t_bindir in
31356 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
31357 esac
31358 case $t_bindir in
31359 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
31360 esac
31361 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
31362 if test $? -ne 0 ; then
31363 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
31364 if test $? -ne 0 ; then
31365 user_path=$user_path:$t_bindir
31366 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
31367echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
31368 fi
31369 fi
31370 fi
31371
31372fi
31373
31374if test "x$external_path_file" != "x/etc/login.conf" ; then
31375
31376cat >>confdefs.h <<_ACEOF
31377#define USER_PATH "$user_path"
31378_ACEOF
31379
31380
31381fi
31382
31383# Set superuser path separately to user path
31384
31385# Check whether --with-superuser-path was given.
31386if test "${with_superuser_path+set}" = set; then
31387 withval=$with_superuser_path;
31388 if test -n "$withval" && test "x$withval" != "xno" && \
31389 test "x${withval}" != "xyes"; then
31390
31391cat >>confdefs.h <<_ACEOF
31392#define SUPERUSER_PATH "$withval"
31393_ACEOF
31394
31395 superuser_path=$withval
31396 fi
31397
31398
31399fi
31400
31401
31402
31403{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
31404echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
31405IPV4_IN6_HACK_MSG="no"
31406
31407# Check whether --with-4in6 was given.
31408if test "${with_4in6+set}" = set; then
31409 withval=$with_4in6;
31410 if test "x$withval" != "xno" ; then
31411 { echo "$as_me:$LINENO: result: yes" >&5
31412echo "${ECHO_T}yes" >&6; }
31413
31414cat >>confdefs.h <<\_ACEOF
31415#define IPV4_IN_IPV6 1
31416_ACEOF
31417
31418 IPV4_IN6_HACK_MSG="yes"
31419 else
31420 { echo "$as_me:$LINENO: result: no" >&5
31421echo "${ECHO_T}no" >&6; }
31422 fi
31423
31424else
31425
31426 if test "x$inet6_default_4in6" = "xyes"; then
31427 { echo "$as_me:$LINENO: result: yes (default)" >&5
31428echo "${ECHO_T}yes (default)" >&6; }
31429 cat >>confdefs.h <<\_ACEOF
31430#define IPV4_IN_IPV6 1
31431_ACEOF
31432
31433 IPV4_IN6_HACK_MSG="yes"
31434 else
31435 { echo "$as_me:$LINENO: result: no (default)" >&5
31436echo "${ECHO_T}no (default)" >&6; }
31437 fi
31438
31439
31440fi
31441
31442
31443# Whether to enable BSD auth support
31444BSD_AUTH_MSG=no
31445
31446# Check whether --with-bsd-auth was given.
31447if test "${with_bsd_auth+set}" = set; then
31448 withval=$with_bsd_auth;
31449 if test "x$withval" != "xno" ; then
31450
31451cat >>confdefs.h <<\_ACEOF
31452#define BSD_AUTH 1
31453_ACEOF
31454
31455 BSD_AUTH_MSG=yes
31456 fi
31457
31458
31459fi
31460
31461
31462# Where to place sshd.pid
31463piddir=/var/run
31464# make sure the directory exists
31465if test ! -d $piddir ; then
31466 piddir=`eval echo ${sysconfdir}`
31467 case $piddir in
31468 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
31469 esac
31470fi
31471
31472
31473# Check whether --with-pid-dir was given.
31474if test "${with_pid_dir+set}" = set; then
31475 withval=$with_pid_dir;
31476 if test -n "$withval" && test "x$withval" != "xno" && \
31477 test "x${withval}" != "xyes"; then
31478 piddir=$withval
31479 if test ! -d $piddir ; then
31480 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
31481echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
31482 fi
31483 fi
31484
31485
31486fi
31487
31488
31489
31490cat >>confdefs.h <<_ACEOF
31491#define _PATH_SSH_PIDDIR "$piddir"
31492_ACEOF
31493
31494
31495
31496# Check whether --enable-lastlog was given.
31497if test "${enable_lastlog+set}" = set; then
31498 enableval=$enable_lastlog;
31499 if test "x$enableval" = "xno" ; then
31500 cat >>confdefs.h <<\_ACEOF
31501#define DISABLE_LASTLOG 1
31502_ACEOF
31503
31504 fi
31505
31506
31507fi
31508
31509# Check whether --enable-utmp was given.
31510if test "${enable_utmp+set}" = set; then
31511 enableval=$enable_utmp;
31512 if test "x$enableval" = "xno" ; then
31513 cat >>confdefs.h <<\_ACEOF
31514#define DISABLE_UTMP 1
31515_ACEOF
31516
31517 fi
31518
31519
31520fi
31521
31522# Check whether --enable-utmpx was given.
31523if test "${enable_utmpx+set}" = set; then
31524 enableval=$enable_utmpx;
31525 if test "x$enableval" = "xno" ; then
31526
31527cat >>confdefs.h <<\_ACEOF
31528#define DISABLE_UTMPX 1
31529_ACEOF
31530
31531 fi
31532
31533
31534fi
31535
31536# Check whether --enable-wtmp was given.
31537if test "${enable_wtmp+set}" = set; then
31538 enableval=$enable_wtmp;
31539 if test "x$enableval" = "xno" ; then
31540 cat >>confdefs.h <<\_ACEOF
31541#define DISABLE_WTMP 1
31542_ACEOF
31543
31544 fi
31545
31546
31547fi
31548
31549# Check whether --enable-wtmpx was given.
31550if test "${enable_wtmpx+set}" = set; then
31551 enableval=$enable_wtmpx;
31552 if test "x$enableval" = "xno" ; then
31553
31554cat >>confdefs.h <<\_ACEOF
31555#define DISABLE_WTMPX 1
31556_ACEOF
31557
31558 fi
31559
31560
31561fi
31562
31563# Check whether --enable-libutil was given.
31564if test "${enable_libutil+set}" = set; then
31565 enableval=$enable_libutil;
31566 if test "x$enableval" = "xno" ; then
31567 cat >>confdefs.h <<\_ACEOF
31568#define DISABLE_LOGIN 1
31569_ACEOF
31570
31571 fi
31572
31573
31574fi
31575
31576# Check whether --enable-pututline was given.
31577if test "${enable_pututline+set}" = set; then
31578 enableval=$enable_pututline;
31579 if test "x$enableval" = "xno" ; then
31580
31581cat >>confdefs.h <<\_ACEOF
31582#define DISABLE_PUTUTLINE 1
31583_ACEOF
31584
31585 fi
31586
31587
31588fi
31589
31590# Check whether --enable-pututxline was given.
31591if test "${enable_pututxline+set}" = set; then
31592 enableval=$enable_pututxline;
31593 if test "x$enableval" = "xno" ; then
31594
31595cat >>confdefs.h <<\_ACEOF
31596#define DISABLE_PUTUTXLINE 1
31597_ACEOF
31598
31599 fi
31600
31601
31602fi
31603
31604
31605# Check whether --with-lastlog was given.
31606if test "${with_lastlog+set}" = set; then
31607 withval=$with_lastlog;
31608 if test "x$withval" = "xno" ; then
31609 cat >>confdefs.h <<\_ACEOF
31610#define DISABLE_LASTLOG 1
31611_ACEOF
31612
31613 elif test -n "$withval" && test "x${withval}" != "xyes"; then
31614 conf_lastlog_location=$withval
31615 fi
31616
31617
31618fi
31619
31620
31621
31622{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
31623echo $ECHO_N "checking if your system defines LASTLOG_FILE... $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
31631#include <sys/types.h>
31632#include <utmp.h>
31633#ifdef HAVE_LASTLOG_H
31634# include <lastlog.h>
31635#endif
31636#ifdef HAVE_PATHS_H
31637# include <paths.h>
31638#endif
31639#ifdef HAVE_LOGIN_H
31640# include <login.h>
31641#endif
31642
31643int
31644main ()
31645{
31646 char *lastlog = LASTLOG_FILE;
31647 ;
31648 return 0;
31649}
31650_ACEOF
31651rm -f conftest.$ac_objext
31652if { (ac_try="$ac_compile"
31653case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31656esac
31657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_compile") 2>conftest.er1
31659 ac_status=$?
31660 grep -v '^ *+' conftest.er1 >conftest.err
31661 rm -f conftest.er1
31662 cat conftest.err >&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } &&
31665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31669esac
31670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; } &&
31675 { ac_try='test -s conftest.$ac_objext'
31676 { (case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31679esac
31680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_try") 2>&5
31682 ac_status=$?
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); }; }; then
31685 { echo "$as_me:$LINENO: result: yes" >&5
31686echo "${ECHO_T}yes" >&6; }
31687else
31688 echo "$as_me: failed program was:" >&5
31689sed 's/^/| /' conftest.$ac_ext >&5
31690
31691
31692 { echo "$as_me:$LINENO: result: no" >&5
31693echo "${ECHO_T}no" >&6; }
31694 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
31695echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
31696 cat >conftest.$ac_ext <<_ACEOF
31697/* confdefs.h. */
31698_ACEOF
31699cat confdefs.h >>conftest.$ac_ext
31700cat >>conftest.$ac_ext <<_ACEOF
31701/* end confdefs.h. */
31702
31703#include <sys/types.h>
31704#include <utmp.h>
31705#ifdef HAVE_LASTLOG_H
31706# include <lastlog.h>
31707#endif
31708#ifdef HAVE_PATHS_H
31709# include <paths.h>
31710#endif
31711
31712int
31713main ()
31714{
31715 char *lastlog = _PATH_LASTLOG;
31716 ;
31717 return 0;
31718}
31719_ACEOF
31720rm -f conftest.$ac_objext
31721if { (ac_try="$ac_compile"
31722case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31725esac
31726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_compile") 2>conftest.er1
31728 ac_status=$?
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31735 { (case "(($ac_try" in
31736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737 *) ac_try_echo=$ac_try;;
31738esac
31739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740 (eval "$ac_try") 2>&5
31741 ac_status=$?
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
31745 { (case "(($ac_try" in
31746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747 *) ac_try_echo=$ac_try;;
31748esac
31749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750 (eval "$ac_try") 2>&5
31751 ac_status=$?
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; }; then
31754 { echo "$as_me:$LINENO: result: yes" >&5
31755echo "${ECHO_T}yes" >&6; }
31756else
31757 echo "$as_me: failed program was:" >&5
31758sed 's/^/| /' conftest.$ac_ext >&5
31759
31760
31761 { echo "$as_me:$LINENO: result: no" >&5
31762echo "${ECHO_T}no" >&6; }
31763 system_lastlog_path=no
31764
31765fi
31766
31767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768
31769
31770fi
31771
31772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31773
31774if test -z "$conf_lastlog_location"; then
31775 if test x"$system_lastlog_path" = x"no" ; then
31776 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
31777 if (test -d "$f" || test -f "$f") ; then
31778 conf_lastlog_location=$f
31779 fi
31780 done
31781 if test -z "$conf_lastlog_location"; then
31782 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
31783echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
31784 fi
31785 fi
31786fi
31787
31788if test -n "$conf_lastlog_location"; then
31789
31790cat >>confdefs.h <<_ACEOF
31791#define CONF_LASTLOG_FILE "$conf_lastlog_location"
31792_ACEOF
31793
31794fi
31795
31796{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
31797echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
31798cat >conftest.$ac_ext <<_ACEOF
31799/* confdefs.h. */
31800_ACEOF
31801cat confdefs.h >>conftest.$ac_ext
31802cat >>conftest.$ac_ext <<_ACEOF
31803/* end confdefs.h. */
31804
31805#include <sys/types.h>
31806#include <utmp.h>
31807#ifdef HAVE_PATHS_H
31808# include <paths.h>
31809#endif
31810
31811int
31812main ()
31813{
31814 char *utmp = UTMP_FILE;
31815 ;
31816 return 0;
31817}
31818_ACEOF
31819rm -f conftest.$ac_objext
31820if { (ac_try="$ac_compile"
31821case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31824esac
31825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_compile") 2>conftest.er1
31827 ac_status=$?
31828 grep -v '^ *+' conftest.er1 >conftest.err
31829 rm -f conftest.er1
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } &&
31833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31834 { (case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31837esac
31838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_try") 2>&5
31840 ac_status=$?
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; } &&
31843 { ac_try='test -s conftest.$ac_objext'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31847esac
31848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31850 ac_status=$?
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; }; then
31853 { echo "$as_me:$LINENO: result: yes" >&5
31854echo "${ECHO_T}yes" >&6; }
31855else
31856 echo "$as_me: failed program was:" >&5
31857sed 's/^/| /' conftest.$ac_ext >&5
31858
31859 { echo "$as_me:$LINENO: result: no" >&5
31860echo "${ECHO_T}no" >&6; }
31861 system_utmp_path=no
31862
31863fi
31864
31865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31866if test -z "$conf_utmp_location"; then
31867 if test x"$system_utmp_path" = x"no" ; then
31868 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
31869 if test -f $f ; then
31870 conf_utmp_location=$f
31871 fi
31872 done
31873 if test -z "$conf_utmp_location"; then
31874 cat >>confdefs.h <<\_ACEOF
31875#define DISABLE_UTMP 1
31876_ACEOF
31877
31878 fi
31879 fi
31880fi
31881if test -n "$conf_utmp_location"; then
31882
31883cat >>confdefs.h <<_ACEOF
31884#define CONF_UTMP_FILE "$conf_utmp_location"
31885_ACEOF
31886
31887fi
31888
31889{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
31890echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
31891cat >conftest.$ac_ext <<_ACEOF
31892/* confdefs.h. */
31893_ACEOF
31894cat confdefs.h >>conftest.$ac_ext
31895cat >>conftest.$ac_ext <<_ACEOF
31896/* end confdefs.h. */
31897
31898#include <sys/types.h>
31899#include <utmp.h>
31900#ifdef HAVE_PATHS_H
31901# include <paths.h>
31902#endif
31903
31904int
31905main ()
31906{
31907 char *wtmp = WTMP_FILE;
31908 ;
31909 return 0;
31910}
31911_ACEOF
31912rm -f conftest.$ac_objext
31913if { (ac_try="$ac_compile"
31914case "(($ac_try" in
31915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916 *) ac_try_echo=$ac_try;;
31917esac
31918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919 (eval "$ac_compile") 2>conftest.er1
31920 ac_status=$?
31921 grep -v '^ *+' conftest.er1 >conftest.err
31922 rm -f conftest.er1
31923 cat conftest.err >&5
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); } &&
31926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31927 { (case "(($ac_try" in
31928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31929 *) ac_try_echo=$ac_try;;
31930esac
31931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31932 (eval "$ac_try") 2>&5
31933 ac_status=$?
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); }; } &&
31936 { ac_try='test -s conftest.$ac_objext'
31937 { (case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31940esac
31941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_try") 2>&5
31943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
31946 { echo "$as_me:$LINENO: result: yes" >&5
31947echo "${ECHO_T}yes" >&6; }
31948else
31949 echo "$as_me: failed program was:" >&5
31950sed 's/^/| /' conftest.$ac_ext >&5
31951
31952 { echo "$as_me:$LINENO: result: no" >&5
31953echo "${ECHO_T}no" >&6; }
31954 system_wtmp_path=no
31955
31956fi
31957
31958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959if test -z "$conf_wtmp_location"; then
31960 if test x"$system_wtmp_path" = x"no" ; then
31961 for f in /usr/adm/wtmp /var/log/wtmp; do
31962 if test -f $f ; then
31963 conf_wtmp_location=$f
31964 fi
31965 done
31966 if test -z "$conf_wtmp_location"; then
31967 cat >>confdefs.h <<\_ACEOF
31968#define DISABLE_WTMP 1
31969_ACEOF
31970
31971 fi
31972 fi
31973fi
31974if test -n "$conf_wtmp_location"; then
31975
31976cat >>confdefs.h <<_ACEOF
31977#define CONF_WTMP_FILE "$conf_wtmp_location"
31978_ACEOF
31979
31980fi
31981
31982
31983{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
31984echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
31985cat >conftest.$ac_ext <<_ACEOF
31986/* confdefs.h. */
31987_ACEOF
31988cat confdefs.h >>conftest.$ac_ext
31989cat >>conftest.$ac_ext <<_ACEOF
31990/* end confdefs.h. */
31991
31992#include <sys/types.h>
31993#include <utmp.h>
31994#ifdef HAVE_UTMPX_H
31995#include <utmpx.h>
31996#endif
31997#ifdef HAVE_PATHS_H
31998# include <paths.h>
31999#endif
32000
32001int
32002main ()
32003{
32004 char *utmpx = UTMPX_FILE;
32005 ;
32006 return 0;
32007}
32008_ACEOF
32009rm -f conftest.$ac_objext
32010if { (ac_try="$ac_compile"
32011case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32014esac
32015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_compile") 2>conftest.er1
32017 ac_status=$?
32018 grep -v '^ *+' conftest.er1 >conftest.err
32019 rm -f conftest.er1
32020 cat conftest.err >&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); } &&
32023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest.$ac_objext'
32034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32037esac
32038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
32040 ac_status=$?
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
32043 { echo "$as_me:$LINENO: result: yes" >&5
32044echo "${ECHO_T}yes" >&6; }
32045else
32046 echo "$as_me: failed program was:" >&5
32047sed 's/^/| /' conftest.$ac_ext >&5
32048
32049 { echo "$as_me:$LINENO: result: no" >&5
32050echo "${ECHO_T}no" >&6; }
32051 system_utmpx_path=no
32052
32053fi
32054
32055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32056if test -z "$conf_utmpx_location"; then
32057 if test x"$system_utmpx_path" = x"no" ; then
32058 cat >>confdefs.h <<\_ACEOF
32059#define DISABLE_UTMPX 1
32060_ACEOF
32061
32062 fi
32063else
32064
32065cat >>confdefs.h <<_ACEOF
32066#define CONF_UTMPX_FILE "$conf_utmpx_location"
32067_ACEOF
32068
32069fi
32070
32071{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
32072echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
32073cat >conftest.$ac_ext <<_ACEOF
32074/* confdefs.h. */
32075_ACEOF
32076cat confdefs.h >>conftest.$ac_ext
32077cat >>conftest.$ac_ext <<_ACEOF
32078/* end confdefs.h. */
32079
32080#include <sys/types.h>
32081#include <utmp.h>
32082#ifdef HAVE_UTMPX_H
32083#include <utmpx.h>
32084#endif
32085#ifdef HAVE_PATHS_H
32086# include <paths.h>
32087#endif
32088
32089int
32090main ()
32091{
32092 char *wtmpx = WTMPX_FILE;
32093 ;
32094 return 0;
32095}
32096_ACEOF
32097rm -f conftest.$ac_objext
32098if { (ac_try="$ac_compile"
32099case "(($ac_try" in
32100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32101 *) ac_try_echo=$ac_try;;
32102esac
32103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32104 (eval "$ac_compile") 2>conftest.er1
32105 ac_status=$?
32106 grep -v '^ *+' conftest.er1 >conftest.err
32107 rm -f conftest.er1
32108 cat conftest.err >&5
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); } &&
32111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32112 { (case "(($ac_try" in
32113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32114 *) ac_try_echo=$ac_try;;
32115esac
32116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32117 (eval "$ac_try") 2>&5
32118 ac_status=$?
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; } &&
32121 { ac_try='test -s conftest.$ac_objext'
32122 { (case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32125esac
32126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_try") 2>&5
32128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; }; then
32131 { echo "$as_me:$LINENO: result: yes" >&5
32132echo "${ECHO_T}yes" >&6; }
32133else
32134 echo "$as_me: failed program was:" >&5
32135sed 's/^/| /' conftest.$ac_ext >&5
32136
32137 { echo "$as_me:$LINENO: result: no" >&5
32138echo "${ECHO_T}no" >&6; }
32139 system_wtmpx_path=no
32140
32141fi
32142
32143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144if test -z "$conf_wtmpx_location"; then
32145 if test x"$system_wtmpx_path" = x"no" ; then
32146 cat >>confdefs.h <<\_ACEOF
32147#define DISABLE_WTMPX 1
32148_ACEOF
32149
32150 fi
32151else
32152
32153cat >>confdefs.h <<_ACEOF
32154#define CONF_WTMPX_FILE "$conf_wtmpx_location"
32155_ACEOF
32156
32157fi
32158
32159
32160if test ! -z "$blibpath" ; then
32161 LDFLAGS="$LDFLAGS $blibflags$blibpath"
32162 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
32163echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
32164fi
32165
32166CFLAGS="$CFLAGS $werror_flags"
32167
32168
32169ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
32170
32171cat >confcache <<\_ACEOF
32172# This file is a shell script that caches the results of configure
32173# tests run on this system so they can be shared between configure
32174# scripts and configure runs, see configure's option --config-cache.
32175# It is not useful on other systems. If it contains results you don't
32176# want to keep, you may remove or edit it.
32177#
32178# config.status only pays attention to the cache file if you give it
32179# the --recheck option to rerun configure.
32180#
32181# `ac_cv_env_foo' variables (set or unset) will be overridden when
32182# loading this file, other *unset* `ac_cv_foo' will be assigned the
32183# following values.
32184
32185_ACEOF
32186
32187# The following way of writing the cache mishandles newlines in values,
32188# but we know of no workaround that is simple, portable, and efficient.
32189# So, we kill variables containing newlines.
32190# Ultrix sh set writes to stderr and can't be redirected directly,
32191# and sets the high bit in the cache file unless we assign to the vars.
32192(
32193 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32194 eval ac_val=\$$ac_var
32195 case $ac_val in #(
32196 *${as_nl}*)
32197 case $ac_var in #(
32198 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32199echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32200 esac
32201 case $ac_var in #(
32202 _ | IFS | as_nl) ;; #(
32203 *) $as_unset $ac_var ;;
32204 esac ;;
32205 esac
32206 done
32207
32208 (set) 2>&1 |
32209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32210 *${as_nl}ac_space=\ *)
32211 # `set' does not quote correctly, so add quotes (double-quote
32212 # substitution turns \\\\ into \\, and sed turns \\ into \).
32213 sed -n \
32214 "s/'/'\\\\''/g;
32215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32216 ;; #(
32217 *)
32218 # `set' quotes correctly as required by POSIX, so do not add quotes.
32219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32220 ;;
32221 esac |
32222 sort
32223) |
32224 sed '
32225 /^ac_cv_env_/b end
32226 t clear
32227 :clear
32228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32229 t end
32230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32231 :end' >>confcache
32232if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32233 if test -w "$cache_file"; then
32234 test "x$cache_file" != "x/dev/null" &&
32235 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32236echo "$as_me: updating cache $cache_file" >&6;}
32237 cat confcache >$cache_file
32238 else
32239 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32240echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32241 fi
32242fi
32243rm -f confcache
32244
32245test "x$prefix" = xNONE && prefix=$ac_default_prefix
32246# Let make expand exec_prefix.
32247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32248
32249DEFS=-DHAVE_CONFIG_H
32250
32251ac_libobjs=
32252ac_ltlibobjs=
32253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32254 # 1. Remove the extension, and $U if already installed.
32255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32256 ac_i=`echo "$ac_i" | sed "$ac_script"`
32257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32258 # will be set to the directory where LIBOBJS objects are built.
32259 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32260 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32261done
32262LIBOBJS=$ac_libobjs
32263
32264LTLIBOBJS=$ac_ltlibobjs
32265
32266
32267
32268: ${CONFIG_STATUS=./config.status}
32269ac_clean_files_save=$ac_clean_files
32270ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32271{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32272echo "$as_me: creating $CONFIG_STATUS" >&6;}
32273cat >$CONFIG_STATUS <<_ACEOF
32274#! $SHELL
32275# Generated by $as_me.
32276# Run this file to recreate the current configuration.
32277# Compiler output produced by configure, useful for debugging
32278# configure, is in config.log if it exists.
32279
32280debug=false
32281ac_cs_recheck=false
32282ac_cs_silent=false
32283SHELL=\${CONFIG_SHELL-$SHELL}
32284_ACEOF
32285
32286cat >>$CONFIG_STATUS <<\_ACEOF
32287## --------------------- ##
32288## M4sh Initialization. ##
32289## --------------------- ##
32290
32291# Be Bourne compatible
32292if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32293 emulate sh
32294 NULLCMD=:
32295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32296 # is contrary to our usage. Disable this feature.
32297 alias -g '${1+"$@"}'='"$@"'
32298 setopt NO_GLOB_SUBST
32299else
32300 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
32301fi
32302BIN_SH=xpg4; export BIN_SH # for Tru64
32303DUALCASE=1; export DUALCASE # for MKS sh
32304
32305
32306# PATH needs CR
32307# Avoid depending upon Character Ranges.
32308as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32309as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32310as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32311as_cr_digits='0123456789'
32312as_cr_alnum=$as_cr_Letters$as_cr_digits
32313
32314# The user is always right.
32315if test "${PATH_SEPARATOR+set}" != set; then
32316 echo "#! /bin/sh" >conf$$.sh
32317 echo "exit 0" >>conf$$.sh
32318 chmod +x conf$$.sh
32319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32320 PATH_SEPARATOR=';'
32321 else
32322 PATH_SEPARATOR=:
32323 fi
32324 rm -f conf$$.sh
32325fi
32326
32327# Support unset when possible.
32328if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32329 as_unset=unset
32330else
32331 as_unset=false
32332fi
32333
32334
32335# IFS
32336# We need space, tab and new line, in precisely that order. Quoting is
32337# there to prevent editors from complaining about space-tab.
32338# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32339# splitting by setting IFS to empty value.)
32340as_nl='
32341'
32342IFS=" "" $as_nl"
32343
32344# Find who we are. Look in the path if we contain no directory separator.
32345case $0 in
32346 *[\\/]* ) as_myself=$0 ;;
32347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348for as_dir in $PATH
32349do
32350 IFS=$as_save_IFS
32351 test -z "$as_dir" && as_dir=.
32352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32353done
32354IFS=$as_save_IFS
32355
32356 ;;
32357esac
32358# We did not find ourselves, most probably we were run as `sh COMMAND'
32359# in which case we are not to be found in the path.
32360if test "x$as_myself" = x; then
32361 as_myself=$0
32362fi
32363if test ! -f "$as_myself"; then
32364 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32365 { (exit 1); exit 1; }
32366fi
32367
32368# Work around bugs in pre-3.0 UWIN ksh.
32369for as_var in ENV MAIL MAILPATH
32370do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32371done
32372PS1='$ '
32373PS2='> '
32374PS4='+ '
32375
32376# NLS nuisances.
32377for as_var in \
32378 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32379 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32380 LC_TELEPHONE LC_TIME
32381do
32382 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32383 eval $as_var=C; export $as_var
32384 else
32385 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32386 fi
32387done
32388
32389# Required to use basename.
32390if expr a : '\(a\)' >/dev/null 2>&1 &&
32391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32392 as_expr=expr
32393else
32394 as_expr=false
32395fi
32396
32397if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32398 as_basename=basename
32399else
32400 as_basename=false
32401fi
32402
32403
32404# Name of the executable.
32405as_me=`$as_basename -- "$0" ||
32406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32407 X"$0" : 'X\(//\)$' \| \
32408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32409echo X/"$0" |
32410 sed '/^.*\/\([^/][^/]*\)\/*$/{
32411 s//\1/
32412 q
32413 }
32414 /^X\/\(\/\/\)$/{
32415 s//\1/
32416 q
32417 }
32418 /^X\/\(\/\).*/{
32419 s//\1/
32420 q
32421 }
32422 s/.*/./; q'`
32423
32424# CDPATH.
32425$as_unset CDPATH
32426
32427
32428
32429 as_lineno_1=$LINENO
32430 as_lineno_2=$LINENO
32431 test "x$as_lineno_1" != "x$as_lineno_2" &&
32432 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32433
32434 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32435 # uniformly replaced by the line number. The first 'sed' inserts a
32436 # line-number line after each line using $LINENO; the second 'sed'
32437 # does the real work. The second script uses 'N' to pair each
32438 # line-number line with the line containing $LINENO, and appends
32439 # trailing '-' during substitution so that $LINENO is not a special
32440 # case at line end.
32441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32442 # scripts with optimization help from Paolo Bonzini. Blame Lee
32443 # E. McMahon (1931-1989) for sed's syntax. :-)
32444 sed -n '
32445 p
32446 /[$]LINENO/=
32447 ' <$as_myself |
32448 sed '
32449 s/[$]LINENO.*/&-/
32450 t lineno
32451 b
32452 :lineno
32453 N
32454 :loop
32455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32456 t loop
32457 s/-\n.*//
32458 ' >$as_me.lineno &&
32459 chmod +x "$as_me.lineno" ||
32460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32461 { (exit 1); exit 1; }; }
32462
32463 # Don't try to exec as it changes $[0], causing all sort of problems
32464 # (the dirname of $[0] is not the place where we might find the
32465 # original and so on. Autoconf is especially sensitive to this).
32466 . "./$as_me.lineno"
32467 # Exit status is that of the last command.
32468 exit
32469}
32470
32471
32472if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32473 as_dirname=dirname
32474else
32475 as_dirname=false
32476fi
32477
32478ECHO_C= ECHO_N= ECHO_T=
32479case `echo -n x` in
32480-n*)
32481 case `echo 'x\c'` in
32482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32483 *) ECHO_C='\c';;
32484 esac;;
32485*)
32486 ECHO_N='-n';;
32487esac
32488
32489if expr a : '\(a\)' >/dev/null 2>&1 &&
32490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32491 as_expr=expr
32492else
32493 as_expr=false
32494fi
32495
32496rm -f conf$$ conf$$.exe conf$$.file
32497if test -d conf$$.dir; then
32498 rm -f conf$$.dir/conf$$.file
32499else
32500 rm -f conf$$.dir
32501 mkdir conf$$.dir
32502fi
32503echo >conf$$.file
32504if ln -s conf$$.file conf$$ 2>/dev/null; then
32505 as_ln_s='ln -s'
32506 # ... but there are two gotchas:
32507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32509 # In both cases, we have to default to `cp -p'.
32510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32511 as_ln_s='cp -p'
32512elif ln conf$$.file conf$$ 2>/dev/null; then
32513 as_ln_s=ln
32514else
32515 as_ln_s='cp -p'
32516fi
32517rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32518rmdir conf$$.dir 2>/dev/null
32519
32520if mkdir -p . 2>/dev/null; then
32521 as_mkdir_p=:
32522else
32523 test -d ./-p && rmdir ./-p
32524 as_mkdir_p=false
32525fi
32526
32527# Find out whether ``test -x'' works. Don't use a zero-byte file, as
32528# systems may use methods other than mode bits to determine executability.
32529cat >conf$$.file <<_ASEOF
32530#! /bin/sh
32531exit 0
32532_ASEOF
32533chmod +x conf$$.file
32534if test -x conf$$.file >/dev/null 2>&1; then
32535 as_executable_p="test -x"
32536else
32537 as_executable_p=:
32538fi
32539rm -f conf$$.file
32540
32541# Sed expression to map a string onto a valid CPP name.
32542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32543
32544# Sed expression to map a string onto a valid variable name.
32545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32546
32547
32548exec 6>&1
32549
32550# Save the log message, to keep $[0] and so on meaningful, and to
32551# report actual input values of CONFIG_FILES etc. instead of their
32552# values after options handling.
32553ac_log="
32554This file was extended by OpenSSH $as_me Portable, which was
32555generated by GNU Autoconf 2.60. Invocation command line was
32556
32557 CONFIG_FILES = $CONFIG_FILES
32558 CONFIG_HEADERS = $CONFIG_HEADERS
32559 CONFIG_LINKS = $CONFIG_LINKS
32560 CONFIG_COMMANDS = $CONFIG_COMMANDS
32561 $ $0 $@
32562
32563on `(hostname || uname -n) 2>/dev/null | sed 1q`
32564"
32565
32566_ACEOF
32567
32568cat >>$CONFIG_STATUS <<_ACEOF
32569# Files that config.status was made for.
32570config_files="$ac_config_files"
32571config_headers="$ac_config_headers"
32572
32573_ACEOF
32574
32575cat >>$CONFIG_STATUS <<\_ACEOF
32576ac_cs_usage="\
32577\`$as_me' instantiates files from templates according to the
32578current configuration.
32579
32580Usage: $0 [OPTIONS] [FILE]...
32581
32582 -h, --help print this help, then exit
32583 -V, --version print version number, then exit
32584 -q, --quiet do not print progress messages
32585 -d, --debug don't remove temporary files
32586 --recheck update $as_me by reconfiguring in the same conditions
32587 --file=FILE[:TEMPLATE]
32588 instantiate the configuration file FILE
32589 --header=FILE[:TEMPLATE]
32590 instantiate the configuration header FILE
32591
32592Configuration files:
32593$config_files
32594
32595Configuration headers:
32596$config_headers
32597
32598Report bugs to <bug-autoconf@gnu.org>."
32599
32600_ACEOF
32601cat >>$CONFIG_STATUS <<_ACEOF
32602ac_cs_version="\\
32603OpenSSH config.status Portable
32604configured by $0, generated by GNU Autoconf 2.60,
32605 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32606
32607Copyright (C) 2006 Free Software Foundation, Inc.
32608This config.status script is free software; the Free Software Foundation
32609gives unlimited permission to copy, distribute and modify it."
32610
32611ac_pwd='$ac_pwd'
32612srcdir='$srcdir'
32613INSTALL='$INSTALL'
32614_ACEOF
32615
32616cat >>$CONFIG_STATUS <<\_ACEOF
32617# If no file are specified by the user, then we need to provide default
32618# value. By we need to know if files were specified by the user.
32619ac_need_defaults=:
32620while test $# != 0
32621do
32622 case $1 in
32623 --*=*)
32624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32626 ac_shift=:
32627 ;;
32628 *)
32629 ac_option=$1
32630 ac_optarg=$2
32631 ac_shift=shift
32632 ;;
32633 esac
32634
32635 case $ac_option in
32636 # Handling of the options.
32637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32638 ac_cs_recheck=: ;;
32639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32640 echo "$ac_cs_version"; exit ;;
32641 --debug | --debu | --deb | --de | --d | -d )
32642 debug=: ;;
32643 --file | --fil | --fi | --f )
32644 $ac_shift
32645 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32646 ac_need_defaults=false;;
32647 --header | --heade | --head | --hea )
32648 $ac_shift
32649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32650 ac_need_defaults=false;;
32651 --he | --h)
32652 # Conflict between --help and --header
32653 { echo "$as_me: error: ambiguous option: $1
32654Try \`$0 --help' for more information." >&2
32655 { (exit 1); exit 1; }; };;
32656 --help | --hel | -h )
32657 echo "$ac_cs_usage"; exit ;;
32658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32660 ac_cs_silent=: ;;
32661
32662 # This is an error.
32663 -*) { echo "$as_me: error: unrecognized option: $1
32664Try \`$0 --help' for more information." >&2
32665 { (exit 1); exit 1; }; } ;;
32666
32667 *) ac_config_targets="$ac_config_targets $1"
32668 ac_need_defaults=false ;;
32669
32670 esac
32671 shift
32672done
32673
32674ac_configure_extra_args=
32675
32676if $ac_cs_silent; then
32677 exec 6>/dev/null
32678 ac_configure_extra_args="$ac_configure_extra_args --silent"
32679fi
32680
32681_ACEOF
32682cat >>$CONFIG_STATUS <<_ACEOF
32683if \$ac_cs_recheck; then
32684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32685 CONFIG_SHELL=$SHELL
32686 export CONFIG_SHELL
32687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32688fi
32689
32690_ACEOF
32691cat >>$CONFIG_STATUS <<\_ACEOF
32692exec 5>>config.log
32693{
32694 echo
32695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32696## Running $as_me. ##
32697_ASBOX
32698 echo "$ac_log"
32699} >&5
32700
32701_ACEOF
32702cat >>$CONFIG_STATUS <<_ACEOF
32703_ACEOF
32704
32705cat >>$CONFIG_STATUS <<\_ACEOF
32706
32707# Handling of arguments.
32708for ac_config_target in $ac_config_targets
32709do
32710 case $ac_config_target in
32711 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32713 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
32714 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
32715 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
32716 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
32717 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
32718 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
32719 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
32720 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
32721
32722 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32723echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32724 { (exit 1); exit 1; }; };;
32725 esac
32726done
32727
32728
32729# If the user did not use the arguments to specify the items to instantiate,
32730# then the envvar interface is used. Set only those that are not.
32731# We use the long form for the default assignment because of an extremely
32732# bizarre bug on SunOS 4.1.3.
32733if $ac_need_defaults; then
32734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32736fi
32737
32738# Have a temporary directory for convenience. Make it in the build tree
32739# simply because there is no reason against having it here, and in addition,
32740# creating and moving files from /tmp can sometimes cause problems.
32741# Hook for its removal unless debugging.
32742# Note that there is a small window in which the directory will not be cleaned:
32743# after its creation but before its name has been assigned to `$tmp'.
32744$debug ||
32745{
32746 tmp=
32747 trap 'exit_status=$?
32748 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32749' 0
32750 trap '{ (exit 1); exit 1; }' 1 2 13 15
32751}
32752# Create a (secure) tmp directory for tmp files.
32753
32754{
32755 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32756 test -n "$tmp" && test -d "$tmp"
32757} ||
32758{
32759 tmp=./conf$$-$RANDOM
32760 (umask 077 && mkdir "$tmp")
32761} ||
32762{
32763 echo "$me: cannot create a temporary directory in ." >&2
32764 { (exit 1); exit 1; }
32765}
32766
32767#
32768# Set up the sed scripts for CONFIG_FILES section.
32769#
32770
32771# No need to generate the scripts if there are no CONFIG_FILES.
32772# This happens for instance when ./config.status config.h
32773if test -n "$CONFIG_FILES"; then
32774
32775_ACEOF
32776
32777
32778
32779ac_delim='%!_!# '
32780for ac_last_try in false false false false false :; do
32781 cat >conf$$subs.sed <<_ACEOF
32782SHELL!$SHELL$ac_delim
32783PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32784PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32785PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32786PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32787PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32788PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32789exec_prefix!$exec_prefix$ac_delim
32790prefix!$prefix$ac_delim
32791program_transform_name!$program_transform_name$ac_delim
32792bindir!$bindir$ac_delim
32793sbindir!$sbindir$ac_delim
32794libexecdir!$libexecdir$ac_delim
32795datarootdir!$datarootdir$ac_delim
32796datadir!$datadir$ac_delim
32797sysconfdir!$sysconfdir$ac_delim
32798sharedstatedir!$sharedstatedir$ac_delim
32799localstatedir!$localstatedir$ac_delim
32800includedir!$includedir$ac_delim
32801oldincludedir!$oldincludedir$ac_delim
32802docdir!$docdir$ac_delim
32803infodir!$infodir$ac_delim
32804htmldir!$htmldir$ac_delim
32805dvidir!$dvidir$ac_delim
32806pdfdir!$pdfdir$ac_delim
32807psdir!$psdir$ac_delim
32808libdir!$libdir$ac_delim
32809localedir!$localedir$ac_delim
32810mandir!$mandir$ac_delim
32811DEFS!$DEFS$ac_delim
32812ECHO_C!$ECHO_C$ac_delim
32813ECHO_N!$ECHO_N$ac_delim
32814ECHO_T!$ECHO_T$ac_delim
32815LIBS!$LIBS$ac_delim
32816build_alias!$build_alias$ac_delim
32817host_alias!$host_alias$ac_delim
32818target_alias!$target_alias$ac_delim
32819CC!$CC$ac_delim
32820CFLAGS!$CFLAGS$ac_delim
32821LDFLAGS!$LDFLAGS$ac_delim
32822CPPFLAGS!$CPPFLAGS$ac_delim
32823ac_ct_CC!$ac_ct_CC$ac_delim
32824EXEEXT!$EXEEXT$ac_delim
32825OBJEXT!$OBJEXT$ac_delim
32826build!$build$ac_delim
32827build_cpu!$build_cpu$ac_delim
32828build_vendor!$build_vendor$ac_delim
32829build_os!$build_os$ac_delim
32830host!$host$ac_delim
32831host_cpu!$host_cpu$ac_delim
32832host_vendor!$host_vendor$ac_delim
32833host_os!$host_os$ac_delim
32834CPP!$CPP$ac_delim
32835GREP!$GREP$ac_delim
32836EGREP!$EGREP$ac_delim
32837AWK!$AWK$ac_delim
32838RANLIB!$RANLIB$ac_delim
32839INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32840INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32841INSTALL_DATA!$INSTALL_DATA$ac_delim
32842AR!$AR$ac_delim
32843CAT!$CAT$ac_delim
32844KILL!$KILL$ac_delim
32845PERL!$PERL$ac_delim
32846SED!$SED$ac_delim
32847ENT!$ENT$ac_delim
32848TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
32849SH!$SH$ac_delim
32850TEST_SHELL!$TEST_SHELL$ac_delim
32851PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
32852PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
32853MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
32854STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
32855LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
32856PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
32857LD!$LD$ac_delim
32858SSHDLIBS!$SSHDLIBS$ac_delim
32859LIBWRAP!$LIBWRAP$ac_delim
32860LIBEDIT!$LIBEDIT$ac_delim
32861LIBPAM!$LIBPAM$ac_delim
32862INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
32863SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
32864PROG_LS!$PROG_LS$ac_delim
32865PROG_NETSTAT!$PROG_NETSTAT$ac_delim
32866PROG_ARP!$PROG_ARP$ac_delim
32867PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
32868PROG_JSTAT!$PROG_JSTAT$ac_delim
32869PROG_PS!$PROG_PS$ac_delim
32870PROG_SAR!$PROG_SAR$ac_delim
32871PROG_W!$PROG_W$ac_delim
32872PROG_WHO!$PROG_WHO$ac_delim
32873PROG_LAST!$PROG_LAST$ac_delim
32874PROG_LASTLOG!$PROG_LASTLOG$ac_delim
32875PROG_DF!$PROG_DF$ac_delim
32876PROG_VMSTAT!$PROG_VMSTAT$ac_delim
32877PROG_UPTIME!$PROG_UPTIME$ac_delim
32878PROG_IPCS!$PROG_IPCS$ac_delim
32879_ACEOF
32880
32881 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32882 break
32883 elif $ac_last_try; then
32884 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32885echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32886 { (exit 1); exit 1; }; }
32887 else
32888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32889 fi
32890done
32891
32892ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32893if test -n "$ac_eof"; then
32894 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32895 ac_eof=`expr $ac_eof + 1`
32896fi
32897
32898cat >>$CONFIG_STATUS <<_ACEOF
32899cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32900/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32901_ACEOF
32902sed '
32903s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32904s/^/s,@/; s/!/@,|#_!!_#|/
32905:n
32906t n
32907s/'"$ac_delim"'$/,g/; t
32908s/$/\\/; p
32909N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32910' >>$CONFIG_STATUS <conf$$subs.sed
32911rm -f conf$$subs.sed
32912cat >>$CONFIG_STATUS <<_ACEOF
32913CEOF$ac_eof
32914_ACEOF
32915
32916
32917ac_delim='%!_!# '
32918for ac_last_try in false false false false false :; do
32919 cat >conf$$subs.sed <<_ACEOF
32920PROG_TAIL!$PROG_TAIL$ac_delim
32921INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
32922OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
32923LIBSELINUX!$LIBSELINUX$ac_delim
32924PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
32925xauth_path!$xauth_path$ac_delim
32926STRIP_OPT!$STRIP_OPT$ac_delim
32927XAUTH_PATH!$XAUTH_PATH$ac_delim
32928NROFF!$NROFF$ac_delim
32929MANTYPE!$MANTYPE$ac_delim
32930mansubdir!$mansubdir$ac_delim
32931user_path!$user_path$ac_delim
32932piddir!$piddir$ac_delim
32933LIBOBJS!$LIBOBJS$ac_delim
32934LTLIBOBJS!$LTLIBOBJS$ac_delim
32935_ACEOF
32936
32937 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
32938 break
32939 elif $ac_last_try; then
32940 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32941echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32942 { (exit 1); exit 1; }; }
32943 else
32944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32945 fi
32946done
32947
32948ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32949if test -n "$ac_eof"; then
32950 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32951 ac_eof=`expr $ac_eof + 1`
32952fi
32953
32954cat >>$CONFIG_STATUS <<_ACEOF
32955cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32956/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32957_ACEOF
32958sed '
32959s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32960s/^/s,@/; s/!/@,|#_!!_#|/
32961:n
32962t n
32963s/'"$ac_delim"'$/,g/; t
32964s/$/\\/; p
32965N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32966' >>$CONFIG_STATUS <conf$$subs.sed
32967rm -f conf$$subs.sed
32968cat >>$CONFIG_STATUS <<_ACEOF
32969:end
32970s/|#_!!_#|//g
32971CEOF$ac_eof
32972_ACEOF
32973
32974
32975# VPATH may cause trouble with some makes, so we remove $(srcdir),
32976# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32977# trailing colons and then remove the whole line if VPATH becomes empty
32978# (actually we leave an empty line to preserve line numbers).
32979if test "x$srcdir" = x.; then
32980 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32981s/:*\$(srcdir):*/:/
32982s/:*\${srcdir}:*/:/
32983s/:*@srcdir@:*/:/
32984s/^\([^=]*=[ ]*\):*/\1/
32985s/:*$//
32986s/^[^=]*=[ ]*$//
32987}'
32988fi
32989
32990cat >>$CONFIG_STATUS <<\_ACEOF
32991fi # test -n "$CONFIG_FILES"
32992
32993
32994for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
32995do
32996 case $ac_tag in
32997 :[FHLC]) ac_mode=$ac_tag; continue;;
32998 esac
32999 case $ac_mode$ac_tag in
33000 :[FHL]*:*);;
33001 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33002echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33003 { (exit 1); exit 1; }; };;
33004 :[FH]-) ac_tag=-:-;;
33005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33006 esac
33007 ac_save_IFS=$IFS
33008 IFS=:
33009 set x $ac_tag
33010 IFS=$ac_save_IFS
33011 shift
33012 ac_file=$1
33013 shift
33014
33015 case $ac_mode in
33016 :L) ac_source=$1;;
33017 :[FH])
33018 ac_file_inputs=
33019 for ac_f
33020 do
33021 case $ac_f in
33022 -) ac_f="$tmp/stdin";;
33023 *) # Look for the file first in the build tree, then in the source tree
33024 # (if the path is not absolute). The absolute path cannot be DOS-style,
33025 # because $ac_f cannot contain `:'.
33026 test -f "$ac_f" ||
33027 case $ac_f in
33028 [\\/$]*) false;;
33029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33030 esac ||
33031 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33032echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33033 { (exit 1); exit 1; }; };;
33034 esac
33035 ac_file_inputs="$ac_file_inputs $ac_f"
33036 done
33037
33038 # Let's still pretend it is `configure' which instantiates (i.e., don't
33039 # use $as_me), people would be surprised to read:
33040 # /* config.h. Generated by config.status. */
33041 configure_input="Generated from "`IFS=:
33042 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33043 if test x"$ac_file" != x-; then
33044 configure_input="$ac_file. $configure_input"
33045 { echo "$as_me:$LINENO: creating $ac_file" >&5
33046echo "$as_me: creating $ac_file" >&6;}
33047 fi
33048
33049 case $ac_tag in
33050 *:-:* | *:-) cat >"$tmp/stdin";;
33051 esac
33052 ;;
33053 esac
33054
33055 ac_dir=`$as_dirname -- "$ac_file" ||
33056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33057 X"$ac_file" : 'X\(//\)[^/]' \| \
33058 X"$ac_file" : 'X\(//\)$' \| \
33059 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33060echo X"$ac_file" |
33061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33062 s//\1/
33063 q
33064 }
33065 /^X\(\/\/\)[^/].*/{
33066 s//\1/
33067 q
33068 }
33069 /^X\(\/\/\)$/{
33070 s//\1/
33071 q
33072 }
33073 /^X\(\/\).*/{
33074 s//\1/
33075 q
33076 }
33077 s/.*/./; q'`
33078 { as_dir="$ac_dir"
33079 case $as_dir in #(
33080 -*) as_dir=./$as_dir;;
33081 esac
33082 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33083 as_dirs=
33084 while :; do
33085 case $as_dir in #(
33086 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33087 *) as_qdir=$as_dir;;
33088 esac
33089 as_dirs="'$as_qdir' $as_dirs"
33090 as_dir=`$as_dirname -- "$as_dir" ||
33091$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33092 X"$as_dir" : 'X\(//\)[^/]' \| \
33093 X"$as_dir" : 'X\(//\)$' \| \
33094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33095echo X"$as_dir" |
33096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33097 s//\1/
33098 q
33099 }
33100 /^X\(\/\/\)[^/].*/{
33101 s//\1/
33102 q
33103 }
33104 /^X\(\/\/\)$/{
33105 s//\1/
33106 q
33107 }
33108 /^X\(\/\).*/{
33109 s//\1/
33110 q
33111 }
33112 s/.*/./; q'`
33113 test -d "$as_dir" && break
33114 done
33115 test -z "$as_dirs" || eval "mkdir $as_dirs"
33116 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33117echo "$as_me: error: cannot create directory $as_dir" >&2;}
33118 { (exit 1); exit 1; }; }; }
33119 ac_builddir=.
33120
33121case "$ac_dir" in
33122.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33123*)
33124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33125 # A ".." for each directory in $ac_dir_suffix.
33126 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33127 case $ac_top_builddir_sub in
33128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33130 esac ;;
33131esac
33132ac_abs_top_builddir=$ac_pwd
33133ac_abs_builddir=$ac_pwd$ac_dir_suffix
33134# for backward compatibility:
33135ac_top_builddir=$ac_top_build_prefix
33136
33137case $srcdir in
33138 .) # We are building in place.
33139 ac_srcdir=.
33140 ac_top_srcdir=$ac_top_builddir_sub
33141 ac_abs_top_srcdir=$ac_pwd ;;
33142 [\\/]* | ?:[\\/]* ) # Absolute name.
33143 ac_srcdir=$srcdir$ac_dir_suffix;
33144 ac_top_srcdir=$srcdir
33145 ac_abs_top_srcdir=$srcdir ;;
33146 *) # Relative name.
33147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33148 ac_top_srcdir=$ac_top_build_prefix$srcdir
33149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33150esac
33151ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33152
33153
33154 case $ac_mode in
33155 :F)
33156 #
33157 # CONFIG_FILE
33158 #
33159
33160 case $INSTALL in
33161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33163 esac
33164_ACEOF
33165
33166cat >>$CONFIG_STATUS <<\_ACEOF
33167# If the template does not know about datarootdir, expand it.
33168# FIXME: This hack should be removed a few years after 2.60.
33169ac_datarootdir_hack=; ac_datarootdir_seen=
33170
33171case `sed -n '/datarootdir/ {
33172 p
33173 q
33174}
33175/@datadir@/p
33176/@docdir@/p
33177/@infodir@/p
33178/@localedir@/p
33179/@mandir@/p
33180' $ac_file_inputs` in
33181*datarootdir*) ac_datarootdir_seen=yes;;
33182*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33183 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33184echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33185_ACEOF
33186cat >>$CONFIG_STATUS <<_ACEOF
33187 ac_datarootdir_hack='
33188 s&@datadir@&$datadir&g
33189 s&@docdir@&$docdir&g
33190 s&@infodir@&$infodir&g
33191 s&@localedir@&$localedir&g
33192 s&@mandir@&$mandir&g
33193 s&\\\${datarootdir}&$datarootdir&g' ;;
33194esac
33195_ACEOF
33196
33197# Neutralize VPATH when `$srcdir' = `.'.
33198# Shell code in configure.ac might set extrasub.
33199# FIXME: do we really want to maintain this feature?
33200cat >>$CONFIG_STATUS <<_ACEOF
33201 sed "$ac_vpsub
33202$extrasub
33203_ACEOF
33204cat >>$CONFIG_STATUS <<\_ACEOF
33205:t
33206/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33207s&@configure_input@&$configure_input&;t t
33208s&@top_builddir@&$ac_top_builddir_sub&;t t
33209s&@srcdir@&$ac_srcdir&;t t
33210s&@abs_srcdir@&$ac_abs_srcdir&;t t
33211s&@top_srcdir@&$ac_top_srcdir&;t t
33212s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33213s&@builddir@&$ac_builddir&;t t
33214s&@abs_builddir@&$ac_abs_builddir&;t t
33215s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33216s&@INSTALL@&$ac_INSTALL&;t t
33217$ac_datarootdir_hack
33218" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33219
33220test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33221 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33222 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33223 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33224which seems to be undefined. Please make sure it is defined." >&5
33225echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33226which seems to be undefined. Please make sure it is defined." >&2;}
33227
33228 rm -f "$tmp/stdin"
33229 case $ac_file in
33230 -) cat "$tmp/out"; rm -f "$tmp/out";;
33231 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33232 esac
33233 ;;
33234 :H)
33235 #
33236 # CONFIG_HEADER
33237 #
33238_ACEOF
33239
33240# Transform confdefs.h into a sed script `conftest.defines', that
33241# substitutes the proper values into config.h.in to produce config.h.
33242rm -f conftest.defines conftest.tail
33243# First, append a space to every undef/define line, to ease matching.
33244echo 's/$/ /' >conftest.defines
33245# Then, protect against being on the right side of a sed subst, or in
33246# an unquoted here document, in config.status. If some macros were
33247# called several times there might be several #defines for the same
33248# symbol, which is useless. But do not sort them, since the last
33249# AC_DEFINE must be honored.
33250ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33251# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33252# NAME is the cpp macro being defined, VALUE is the value it is being given.
33253# PARAMS is the parameter list in the macro definition--in most cases, it's
33254# just an empty string.
33255ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33256ac_dB='\\)[ (].*,\\1define\\2'
33257ac_dC=' '
33258ac_dD=' ,'
33259
33260uniq confdefs.h |
33261 sed -n '
33262 t rset
33263 :rset
33264 s/^[ ]*#[ ]*define[ ][ ]*//
33265 t ok
33266 d
33267 :ok
33268 s/[\\&,]/\\&/g
33269 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33270 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33271 ' >>conftest.defines
33272
33273# Remove the space that was appended to ease matching.
33274# Then replace #undef with comments. This is necessary, for
33275# example, in the case of _POSIX_SOURCE, which is predefined and required
33276# on some systems where configure will not decide to define it.
33277# (The regexp can be short, since the line contains either #define or #undef.)
33278echo 's/ $//
33279s,^[ #]*u.*,/* & */,' >>conftest.defines
33280
33281# Break up conftest.defines:
33282ac_max_sed_lines=50
33283
33284# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33285# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33286# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33287# et cetera.
33288ac_in='$ac_file_inputs'
33289ac_out='"$tmp/out1"'
33290ac_nxt='"$tmp/out2"'
33291
33292while :
33293do
33294 # Write a here document:
33295 cat >>$CONFIG_STATUS <<_ACEOF
33296 # First, check the format of the line:
33297 cat >"\$tmp/defines.sed" <<\\CEOF
33298/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33299/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33300b
33301:def
33302_ACEOF
33303 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33304 echo 'CEOF
33305 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33306 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33307 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33308 grep . conftest.tail >/dev/null || break
33309 rm -f conftest.defines
33310 mv conftest.tail conftest.defines
33311done
33312rm -f conftest.defines conftest.tail
33313
33314echo "ac_result=$ac_in" >>$CONFIG_STATUS
33315cat >>$CONFIG_STATUS <<\_ACEOF
33316 if test x"$ac_file" != x-; then
33317 echo "/* $configure_input */" >"$tmp/config.h"
33318 cat "$ac_result" >>"$tmp/config.h"
33319 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33320 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33321echo "$as_me: $ac_file is unchanged" >&6;}
33322 else
33323 rm -f $ac_file
33324 mv "$tmp/config.h" $ac_file
33325 fi
33326 else
33327 echo "/* $configure_input */"
33328 cat "$ac_result"
33329 fi
33330 rm -f "$tmp/out12"
33331 ;;
33332
33333
33334 esac
33335
33336done # for ac_tag
33337
33338
33339{ (exit 0); exit 0; }
33340_ACEOF
33341chmod +x $CONFIG_STATUS
33342ac_clean_files=$ac_clean_files_save
33343
33344
33345# configure is writing to config.log, and then calls config.status.
33346# config.status does its own redirection, appending to config.log.
33347# Unfortunately, on DOS this fails, as config.log is still kept open
33348# by configure, so config.status won't be able to write to it; its
33349# output is simply discarded. So we exec the FD to /dev/null,
33350# effectively closing config.log, so it can be properly (re)opened and
33351# appended to by config.status. When coming back to configure, we
33352# need to make the FD available again.
33353if test "$no_create" != yes; then
33354 ac_cs_success=:
33355 ac_config_status_args=
33356 test "$silent" = yes &&
33357 ac_config_status_args="$ac_config_status_args --quiet"
33358 exec 5>/dev/null
33359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33360 exec 5>>config.log
33361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33362 # would make configure fail if this is the last instruction.
33363 $ac_cs_success || { (exit 1); exit 1; }
33364fi
33365
33366
33367# Print summary of options
33368
33369# Someone please show me a better way :)
33370A=`eval echo ${prefix}` ; A=`eval echo ${A}`
33371B=`eval echo ${bindir}` ; B=`eval echo ${B}`
33372C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
33373D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
33374E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
33375F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
33376G=`eval echo ${piddir}` ; G=`eval echo ${G}`
33377H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
33378I=`eval echo ${user_path}` ; I=`eval echo ${I}`
33379J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
33380
33381echo ""
33382echo "OpenSSH has been configured with the following options:"
33383echo " User binaries: $B"
33384echo " System binaries: $C"
33385echo " Configuration files: $D"
33386echo " Askpass program: $E"
33387echo " Manual pages: $F"
33388echo " PID file: $G"
33389echo " Privilege separation chroot path: $H"
33390if test "x$external_path_file" = "x/etc/login.conf" ; then
33391echo " At runtime, sshd will use the path defined in $external_path_file"
33392echo " Make sure the path to scp is present, otherwise scp will not work"
33393else
33394echo " sshd default user PATH: $I"
33395 if test ! -z "$external_path_file"; then
33396echo " (If PATH is set in $external_path_file it will be used instead. If"
33397echo " used, ensure the path to scp is present, otherwise scp will not work.)"
33398 fi
33399fi
33400if test ! -z "$superuser_path" ; then
33401echo " sshd superuser user PATH: $J"
33402fi
33403echo " Manpage format: $MANTYPE"
33404echo " PAM support: $PAM_MSG"
33405echo " OSF SIA support: $SIA_MSG"
33406echo " KerberosV support: $KRB5_MSG"
33407echo " SELinux support: $SELINUX_MSG"
33408echo " Smartcard support: $SCARD_MSG"
33409echo " S/KEY support: $SKEY_MSG"
33410echo " TCP Wrappers support: $TCPW_MSG"
33411echo " MD5 password support: $MD5_MSG"
33412echo " libedit support: $LIBEDIT_MSG"
33413echo " Solaris process contract support: $SPC_MSG"
33414echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
33415echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
33416echo " BSD Auth support: $BSD_AUTH_MSG"
33417echo " Random number source: $RAND_MSG"
33418if test ! -z "$USE_RAND_HELPER" ; then
33419echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
33420fi
33421
33422echo ""
33423
33424echo " Host: ${host}"
33425echo " Compiler: ${CC}"
33426echo " Compiler flags: ${CFLAGS}"
33427echo "Preprocessor flags: ${CPPFLAGS}"
33428echo " Linker flags: ${LDFLAGS}"
33429echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
33430
33431echo ""
33432
33433if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
33434 echo "SVR4 style packages are supported with \"make package\""
33435 echo ""
33436fi
33437
33438if test "x$PAM_MSG" = "xyes" ; then
33439 echo "PAM is enabled. You may need to install a PAM control file "
33440 echo "for sshd, otherwise password authentication may fail. "
33441 echo "Example PAM control files can be found in the contrib/ "
33442 echo "subdirectory"
33443 echo ""
33444fi
33445
33446if test ! -z "$RAND_HELPER_CMDHASH" ; then
33447 echo "WARNING: you are using the builtin random number collection "
33448 echo "service. Please read WARNING.RNG and request that your OS "
33449 echo "vendor includes kernel-based random number collection in "
33450 echo "future versions of your OS."
33451 echo ""
33452fi
33453
33454if test ! -z "$NO_PEERCHECK" ; then
33455 echo "WARNING: the operating system that you are using does not "
33456 echo "appear to support either the getpeereid() API nor the "
33457 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
33458 echo "enforce security checks to prevent unauthorised connections to "
33459 echo "ssh-agent. Their absence increases the risk that a malicious "
33460 echo "user can connect to your agent. "
33461 echo ""
33462fi
33463
33464if test "$AUDIT_MODULE" = "bsm" ; then
33465 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
33466 echo "See the Solaris section in README.platform for details."
33467fi
This page took 4.341738 seconds and 5 git commands to generate.